Comparing version 0.4.1 to 0.4.2
@@ -19,2 +19,8 @@ const path = require('path') | ||
const uploadStates = options.state.uploadStates | ||
if (sizeNum === 0) { | ||
uploadStates.delete(uploadId) | ||
return Buffer.from(uploadId, 'base64') | ||
} | ||
const start = Number(firstByte) | ||
@@ -33,3 +39,2 @@ const writeStream = fs.createWriteStream(targetPath, { | ||
const uploadStates = options.state.uploadStates | ||
let uploadState = uploadStates.get(uploadId) | ||
@@ -36,0 +41,0 @@ if (!uploadState) { |
{ | ||
"name": "mega-mock", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "mega-mock mocks MEGA API servers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
21298
524