@wildberries/service-cdn-uploader
Advanced tools
Comparing version 3.0.2-beta.1 to 3.0.2-beta.2
@@ -69,6 +69,7 @@ /* eslint-disable import/no-unresolved */ | ||
tryNumber, | ||
fileFolder, | ||
}) => { | ||
try { | ||
console.log( | ||
`File ${filePath} start uploading: try ${tryNumber}, Request_Id: ${requestId}, timestamp: ${new Date().toISOString()}` | ||
`File ${filePath} start uploading: fileFolder ${fileFolder} try ${tryNumber}, Request_Id: ${requestId}, timestamp: ${new Date().toISOString()}` | ||
.yellow, | ||
@@ -81,3 +82,3 @@ ); | ||
const uploadResponse = await fetch(`${renderGoUrl}/${newStaticPath}`, { | ||
const uploadResponse = await fetch(`${renderGoUrl}/${fileFolder}`, { | ||
method: 'POST', | ||
@@ -163,2 +164,5 @@ body: formData, | ||
const fileName = file.split('/').pop(); | ||
const fileFolder = staticPath.replace(`/${fileName}`, ''); | ||
await fetchRetryer({ | ||
@@ -171,2 +175,3 @@ request: fetchFile, | ||
requestId, | ||
fileFolder, | ||
}, | ||
@@ -173,0 +178,0 @@ }); |
{ | ||
"name": "@wildberries/service-cdn-uploader", | ||
"version": "3.0.2-beta.1", | ||
"version": "3.0.2-beta.2", | ||
"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
7846
157