@wildberries/service-cdn-uploader
Advanced tools
Comparing version 3.0.4 to 3.0.5
@@ -49,2 +49,9 @@ /* eslint-disable import/no-unresolved */ | ||
const sleep = ms => | ||
new Promise(res => { | ||
setTimeout(() => { | ||
res(); | ||
}, ms); | ||
}); | ||
const timeoutSleep = ms => | ||
@@ -82,2 +89,4 @@ new Promise((res, rej) => { | ||
if (downloadResponse.status !== 200) { | ||
await sleep(5000); | ||
throw new Error(`Status code – ${downloadResponse.status}`.red); | ||
@@ -84,0 +93,0 @@ } |
{ | ||
"name": "@wildberries/service-cdn-uploader", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"main": "./index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8197
171