Skip to content

Commit

Permalink
done test
Browse files Browse the repository at this point in the history
done new test
  • Loading branch information
suryavaddiraju committed Apr 16, 2024
1 parent 8b75a53 commit 58a0174
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/workings.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class IRCTC{
return "Sign Button Clicked Successfully";
}
async answer_captcha(){
let imagePath = 'captcha.jpg';
let imagePath = './captcha.jpg';
writeFileSync(imagePath, this.captchaQuestion, 'base64');
exec('viu captcha.jpg -t', (error, stdout, stderr) => {
console.log(`${stdout}\nEnter the Captcha Answer below in this terminal`);
Expand Down
10 changes: 3 additions & 7 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.4",
"version": "1.0.5",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down Expand Up @@ -31,11 +31,7 @@
"node": ">=20.0.0",
"npm": ">=10.0.0"
},
"exports": {
".": {
"default": "./index.mjs"
}
},
"module": "index.js",
"main":"./index.mjs",
"exports": "./index.mjs",
"type": "module"
}
2 changes: 1 addition & 1 deletion test/book_ticket.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {IRCTC} from "../index.js";
import {IRCTC} from "irctc-api";
const params = {
"UPI": "9876543210@ybl", // Your NPCI UPI VPA ID
"class": "2S", // class code such as 2A | 3A | SL | CC | 2S | FC | 1A
Expand Down

0 comments on commit 58a0174

Please sign in to comment.