Skip to content

Commit

Permalink
updated ignore list
Browse files Browse the repository at this point in the history
updated ignore list
  • Loading branch information
suryavaddiraju committed Apr 19, 2024
1 parent 12acff4 commit 0bd3e47
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.github/
examples/
test/
.gitignore
4 changes: 2 additions & 2 deletions lib/time_work.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ async function sleep_for_availability_check(ticket_time){
if (ticket_time === 1 || ticket_time === 2){
if (ticket_time === 1){
const targetTime = new Date();
targetTime.setHours(10, 0, 0, 0); // Set target time to 10:00:00.000 AM
targetTime.setHours(10, 0, 1, 0); // Set target time to 10:00:00.000 AM
const currentTime = new Date();
if (currentTime < targetTime) {
await sleep(targetTime - currentTime);
}
}
if (ticket_time === 2){
const targetTime = new Date();
targetTime.setHours(11, 0, 0, 0); // Set target time to 11:00:00.000 AM
targetTime.setHours(11, 0, 1, 0); // Set target time to 11:00:00.000 AM
const currentTime = new Date();
if (currentTime < targetTime) {
await sleep(targetTime - currentTime);
Expand Down
10 changes: 9 additions & 1 deletion 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.6",
"version": "1.0.7",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand All @@ -20,6 +20,14 @@
"url": "https://github.com/suryavaddiraju/irctc-api/issues"
},
"homepage": "https://dev.vaddiraju.in/irctc-api",
"files":[
"index.mjs",
"lib",
"LICENSE",
"README.md",
"package.json",
".npmignore"
],
"dependencies": {
"axios": "^1.6.5",
"axios-cookiejar-support": "^5.0.0",
Expand Down

0 comments on commit 0bd3e47

Please sign in to comment.