Socket
Socket
Sign inDemoInstall

multiblob

Package Overview
Dependencies
Maintainers
21
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multiblob - npm Package Compare versions

Comparing version 1.13.6 to 1.13.7

2

package.json
{
"name": "multiblob",
"description": "",
"version": "1.13.6",
"version": "1.13.7",
"homepage": "https://github.com/dominictarr/multiblob",

@@ -6,0 +6,0 @@ "repository": {

@@ -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 @@

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