Socket
Socket
Sign inDemoInstall

errs

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

errs - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

2

lib/errs.js

@@ -99,3 +99,3 @@ /*

if (!error.name || error.name === 'Error') {
error.name = ErrorProto.name || 'Error';
error.name = (opts && opts.name) || ErrorProto.name || 'Error';
}

@@ -102,0 +102,0 @@

{
"name": "errs",
"description": "Simple error creation and passing utilities",
"version": "0.2.2",
"version": "0.2.3",
"author": "Nodejitsu Inc. <info@nodejitsu.com>",

@@ -6,0 +6,0 @@ "maintainers": [

@@ -48,3 +48,9 @@ /*

"that has no message": macros.create.object(opts[0]),
"that has a message": macros.create.object(opts[1])
"that has a message": macros.create.object(opts[1]),
"that has a name": {
topic : errs.create({name: 'OverflowError'}),
"should respect that name in the stack trace" : function (err) {
assert.match(err.stack, /^OverflowError/);
},
}
},

@@ -51,0 +57,0 @@ "an error": macros.create.err(new Error('An instance of an error')),

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