Comparing version 1.3.2 to 1.3.4
{ | ||
"name": "castor", | ||
"version": "1.3.2", | ||
"version": "1.3.4", | ||
"description": "An ES7 [CAS designed](https://en.wikipedia.org/wiki/Content-addressable_storage) file storage for nodejs with a simple API and robust implementation.", | ||
@@ -9,3 +9,3 @@ "main": "store.js", | ||
"checkall": "npm run eslint", | ||
"test": "npm run checkall && npm run cover", | ||
"test": "npm run checkall && npm run mocha", | ||
"mocha": "mocha -b", | ||
@@ -20,3 +20,3 @@ "coveralls": "npm install coveralls && node ./node_modules/coveralls/bin/coveralls.js < ./coverage/lcov.info", | ||
"mout": "^1.1.0", | ||
"nyks": "^6.8.5", | ||
"nyks": "^6.9.2", | ||
"send": "^0.16.2" | ||
@@ -23,0 +23,0 @@ }, |
@@ -187,4 +187,8 @@ 'use strict'; | ||
await pipe(fs.createReadStream(tmp_path), hash); | ||
let src = fs.createReadStream(tmp_path); | ||
pipe(src, hash, {end : false}).catch(() => false); | ||
await new Promise((resolve) => src.once('end', resolve)); | ||
file_url.headers['Range'] = `bytes=${current_size}-`; | ||
@@ -191,0 +195,0 @@ } else { |
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
15188
286
Updatednyks@^6.9.2