multiblob
Advanced tools
Comparing version 1.13.6 to 1.13.7
{ | ||
"name": "multiblob", | ||
"description": "", | ||
"version": "1.13.6", | ||
"version": "1.13.7", | ||
"homepage": "https://github.com/dominictarr/multiblob", | ||
@@ -6,0 +6,0 @@ "repository": { |
11
util.js
@@ -55,3 +55,3 @@ var Blake2s = require('blake2s') | ||
* Wraps the `pull-file` function module with two changes: errors are redacted, | ||
* and any error except ENOENT (file not found) will be logged to the server. | ||
* to avoid leaking private information about the file system. | ||
* | ||
@@ -64,6 +64,2 @@ * @param {...object} args - arguments to pass to `pull-file` | ||
exports.readFile = function readFile (...args) { | ||
const ignoredErrorCodes = [ | ||
'ENOENT', | ||
'EBADF' | ||
] | ||
@@ -73,6 +69,3 @@ return pull( | ||
Catch(err => { | ||
if (ignoredErrorCodes.includes(err.code) === false) { | ||
console.error(new Error(err)) | ||
} | ||
//redact stack trace | ||
err.message = 'could not get blob' | ||
@@ -79,0 +72,0 @@ |
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
31456
876