Skip to content

Commit

Permalink
corrected for export
Browse files Browse the repository at this point in the history
export mistake
  • Loading branch information
suryavaddiraju committed Apr 16, 2024
1 parent 6b6fa9a commit 265cdd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions index.js → index.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {IRCTC as main_class} from "./lib/workings.mjs";
class IRCTC extends main_class{
export default class IRCTC extends main_class{
constructor(){
super();
}
Expand All @@ -12,5 +12,4 @@ class IRCTC extends main_class{
async pnr_status(params){
return await super.pnr_status(params);
}
};
module.exports = {IRCTC};
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "irctc-api",
"description": "A package built on top of IRCTC Website APIs to make train tickets , managing user profile faster and simpler. Currently this package only works on NodeJs environment and we were not recommending this to use on browser or any other Javascript environment.",
"version": "1.0.1",
"version": "1.0.2",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down Expand Up @@ -31,6 +31,6 @@
"node": ">=20.0.0",
"npm": ">=10.0.0"
},
"main": "index.js",
"main": "index.mjs",
"type": "module"
}

0 comments on commit 265cdd5

Please sign in to comment.