Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lib

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lib - npm Package Compare versions

Comparing version 4.0.5 to 4.1.0

18

lib/remote.js

@@ -11,2 +11,19 @@ const https = require('https');

function parseBuffers (value) {
if (Buffer.isBuffer(value)) {
return value;
} else if (Array.isArray(value)) {
return value.map(v => parseBuffers(v));
} else if (typeof value === 'object' && Object.keys(value).length === 1 && typeof value._base64 === 'string') {
return Buffer.from(value._base64, 'base64');
} else if (typeof value === 'object') {
return Object.keys(value).reduce((n, key) => {
n[key] = parseBuffers(value[key]);
return n;
}, {});
} else {
return value;
}
};
module.exports = (cfg, names, params, callback) => {

@@ -95,2 +112,3 @@

response = parseBuffers(response);
responded = true;

@@ -97,0 +115,0 @@

2

package.json
{
"name": "lib",
"version": "4.0.5",
"version": "4.1.0",
"description": "StdLib: Standard Library for Microservices Node.js Bindings",

@@ -5,0 +5,0 @@ "main": "lib.js",

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