@@ -44,8 +44,8 @@ const retalierConfig = {
4444 } ,
4545 walmartgroceriespickup : {
4646 label : 'Walmart Groceries - Pickup' ,
47- url : `https://grocery.walmart.com/v4/api/accessPoints/${ authConfig [ WALMART_GROCERIES ] . store_id } /slots?contractId =${ authConfig [ WALMART_GROCERIES ] . cart_id } &fulfillmentType=INSTORE_PICKUP&express=true&mergedSlots=true&restrictedSlots=true` ,
48- signature : '"available":true' ,
47+ url : `https://grocery.walmart.com/v4/api/accessPoints/${ authConfig [ WALMART_GROCERIES ] . store_id } /slots?cartId =${ authConfig [ WALMART_GROCERIES ] . cart_id } &fulfillmentType=INSTORE_PICKUP&express=true&mergedSlots=true&restrictedSlots=true` ,
48+ signature : '\\ "available\\ ":true' ,
4949 responseDataType : 'json' ,
5050 auth : authConfig [ WALMART_GROCERIES ] ,
5151 cookie : authConfig [ WALMART_GROCERIES ] . cookie ,
@@ -54,7 +54,7 @@ const retalierConfig = {
5454 walmartgroceriesdelivery : {
5555 label : 'Walmart Groceries - Delivery' ,
5656 url : `https://grocery.walmart.com/v4/api/accessPoints/${ authConfig [ WALMART_GROCERIES ] . store_id } /slots?contractId=${ authConfig [ WALMART_GROCERIES ] . cart_id } &fulfillmentType=DELIVERY&express=true&mergedSlots=true&restrictedSlots=true` ,
57- signature : '"available":true' ,
57+ signature : '\\ "available\\ ":true' ,
5858 responseDataType : 'json' ,
5959 auth : authConfig . walmartgroceries ,
6060 cookie : authConfig [ WALMART_GROCERIES ] . cookie ,
@@ -65,7 +65,7 @@ const retalierConfig = {
6565const sleep = require ( 'sleep' )
6666const https = require ( 'https' )
6767const player = require ( 'play-sound' ) ( )
68- let checkingInEveryXminutes = 1
68+ let checkingInEveryXminutes = 1
6969const minFrequency = 1 // Minimum value is 1 minute
7070
7171// Don't bombard by checking in every less than minFrequency minute(s)
@@ -90,7 +90,7 @@ const retailer = retalierConfig[retailerNamePassed]
9090
9191function beep ( ) {
9292 player . play ( 'beep.mp3' , function ( err ) {
93-
93+
9494 } )
9595}
9696
@@ -152,7 +152,7 @@ function pingRetailer (retailer, freqInterval, confirmConfig) {
152152 } else {
153153 const responseString = data
154154 }
155-
155+
156156 if ( responseString . indexOf ( retailer . signature ) > - 1 ) {
157157 console . log ( `${ new Date ( ) . toString ( ) } - ******** WOHOOOO FOUND A DELIVERY WINDOW, GO TO YOUR ALREADY OPENED CART WEB PAGE AND REFRESH THE PAGE TO SEE AVAILABLE WINDOWS *********` )
158158 while ( true ) {
0 commit comments