amazon-buddy
Advanced tools
Comparing version 2.2.28 to 2.2.29
@@ -135,2 +135,3 @@ // @ts-nocheck | ||
pragma: Math.floor(Math.random() * 500) + 50, | ||
DNT: 1, | ||
}, | ||
@@ -232,3 +233,3 @@ strictSSL: false, | ||
async mainLoop() { | ||
return new Promise((resolve) => { | ||
return new Promise((resolve, reject) => { | ||
forEachLimit( | ||
@@ -258,3 +259,4 @@ Array.from({ length: this.asyncPage }, (_, k) => k + 1), | ||
}, | ||
() => { | ||
(err) => { | ||
if (err && err.message != 'Done') reject(err); | ||
resolve(); | ||
@@ -261,0 +263,0 @@ }, |
{ | ||
"name": "amazon-buddy", | ||
"version": "2.2.28", | ||
"version": "2.2.29", | ||
"description": "Amazon Scraper. You can scrape products from amazon search result and you can also scrape reviews from a specific product", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
163285
2667