Comparing version 2.0.13 to 3.0.1
{ | ||
"name": "irctc-api", | ||
"description": "An exclusive NodeJs only package built on top of IRCTC Website APIs to book train tickets, managing user profile faster and simpler from anywhere in the world", | ||
"version": "2.0.13", | ||
"version": "3.0.1", | ||
"scripts": { | ||
"postinstall": "node ./lib/postinstall.mjs", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
@@ -50,3 +49,2 @@ }, | ||
"files": [ | ||
"index.mjs", | ||
"lib", | ||
@@ -59,6 +57,4 @@ "LICENSE", | ||
"dependencies": { | ||
"axios": "^1.6.8", | ||
"axios-cookiejar-support": "^5.0.2", | ||
"cheerio": "^1.0.0-rc.12", | ||
"tough-cookie": "^4.1.4" | ||
"tough-cookie": "^5.0.0", | ||
"undici": "^6.20.1" | ||
}, | ||
@@ -69,5 +65,5 @@ "engines": { | ||
}, | ||
"main": "./index.mjs", | ||
"exports": "./index.mjs", | ||
"main": "./lib/index.mjs", | ||
"exports": "./lib/index.mjs", | ||
"type": "module" | ||
} |
@@ -51,3 +51,2 @@ A package built on top of IRCTC Website APIs to book 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. | ||
{ | ||
"train_number": "11020", | ||
"viu":"path/to/binary/viu | path/to/binary/viu.exe" | ||
@@ -60,3 +59,3 @@ } | ||
- Currently this project is designed to accept only UPI Collect request as payment option and other payment modes are not supported as of now. When the payment request is initiated, The command line will display the payment request details such that you need to complete the payment from your UPI mobile App. | ||
- Currently this project is designed to accept only UPI Collect request and IRCTC wallet as payment option and other payment modes are not supported as of now. When the payment request is initiated, The command line will display the payment request details such that you need to complete the payment from your UPI mobile App for UPI payment method. | ||
@@ -70,3 +69,9 @@ ### Import | ||
- pnr_status | ||
- master_passengers | ||
Other variables export | ||
- countries | ||
- stations | ||
To send a request, you only need to import the `IRCTC`. | ||
@@ -96,3 +101,5 @@ | ||
// a client can be shared by different commands. But it is currently in development untill then use client seperately. | ||
const client = new IRCTC(); | ||
const client = new IRCTC({ | ||
// irctc_class_params | ||
}); | ||
@@ -99,0 +106,0 @@ const params = { |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
207428
2
10634
169
0
0
11
1
+ Addedundici@^6.20.1
+ Addedtldts@6.1.76(transitive)
+ Addedtldts-core@6.1.76(transitive)
+ Addedtough-cookie@5.1.0(transitive)
- Removedaxios@^1.6.8
- Removedaxios-cookiejar-support@^5.0.2
- Removedcheerio@^1.0.0-rc.12
- Removedagent-base@7.1.3(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaxios@1.7.9(transitive)
- Removedaxios-cookiejar-support@5.0.5(transitive)
- Removedboolbase@1.0.0(transitive)
- Removedcheerio@1.0.0(transitive)
- Removedcheerio-select@2.1.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedcss-select@5.1.0(transitive)
- Removedcss-what@6.1.0(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removeddom-serializer@2.0.0(transitive)
- Removeddomelementtype@2.3.0(transitive)
- Removeddomhandler@5.0.3(transitive)
- Removeddomutils@3.2.2(transitive)
- Removedencoding-sniffer@0.2.0(transitive)
- Removedentities@4.5.0(transitive)
- Removedfollow-redirects@1.15.9(transitive)
- Removedform-data@4.0.1(transitive)
- Removedhtmlparser2@9.1.0(transitive)
- Removedhttp-cookie-agent@6.0.8(transitive)
- Removediconv-lite@0.6.3(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removednth-check@2.1.1(transitive)
- Removedparse5@7.2.1(transitive)
- Removedparse5-htmlparser2-tree-adapter@7.1.0(transitive)
- Removedparse5-parser-stream@7.1.2(transitive)
- Removedproxy-from-env@1.1.0(transitive)
- Removedpsl@1.15.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedquerystringify@2.2.0(transitive)
- Removedrequires-port@1.0.0(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedtough-cookie@4.1.4(transitive)
- Removeduniversalify@0.2.0(transitive)
- Removedurl-parse@1.5.10(transitive)
- Removedwhatwg-encoding@3.1.1(transitive)
- Removedwhatwg-mimetype@4.0.0(transitive)
Updatedtough-cookie@^5.0.0