Socket
Socket
Sign inDemoInstall

@wildberries/service-cdn-uploader

Package Overview
Dependencies
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wildberries/service-cdn-uploader - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

11

index.js

@@ -56,2 +56,9 @@ /* eslint-disable import/no-unresolved */

const timeoutSleep = ms =>
new Promise((res, rej) => {
setTimeout(() => {
rej(new Error('Timeout'));
}, ms);
});
const fetchFile = async params => {

@@ -68,2 +75,4 @@ const {

try {
console.log(`File ${fileName} start uploading to ${filePath}`.yellow);
const formData = new FormData();

@@ -108,3 +117,3 @@ const task = {

try {
await request(params);
await Promise.race([request(params), timeoutSleep(2000)]);
} catch (error) {

@@ -111,0 +120,0 @@ console.log(`Request error ${error}`.red.underline);

4

package.json
{
"name": "@wildberries/service-cdn-uploader",
"version": "2.0.2",
"version": "2.0.3",
"main": "./index.js",

@@ -66,2 +66,2 @@ "scripts": {

"bin": "index.js"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc