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 2.1.5 to 2.1.6

12

lib/local.js

@@ -24,2 +24,13 @@ const path = require('path');

if (cfg.webhook) {
let cb = callback;
callback = (err, result, headers) => {
let prefix = `-> Simulated Webhook [${names.join('.')}]${err ? ' ERROR' : ''}: `;
let presult = typeof result === 'object' ? JSON.stringify(result, null, 2) : (result + '');
let message = (err ? (err.stack || err.message) : presult).split('\n').map(v => `${prefix}${v}`).join('\n');
console.log(message);
cb(err, 'webhook ok', headers);
};
}
try {

@@ -30,2 +41,3 @@ fn = require(pathname);

} catch (e) {
cfg.webhook || console.error(e);
return callback(e);

@@ -32,0 +44,0 @@ }

2

package.json
{
"name": "lib",
"version": "2.1.5",
"version": "2.1.6",
"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