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

error

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

error - npm Package Compare versions

Comparing version 7.2.0 to 7.2.1

2

package.json
{
"name": "error",
"version": "7.2.0",
"version": "7.2.1",
"description": "Custom errors",

@@ -5,0 +5,0 @@ "keywords": [],

@@ -10,2 +10,3 @@ 'use strict';

var ServerListenError = WrappedError({
name: 'SomeError',
message: 'server: {causeMessage}',

@@ -12,0 +13,0 @@ type: 'server.listen-failed',

@@ -14,2 +14,4 @@ 'use strict';

var FUNCTION_FIELD_WHITELIST = Object.getOwnPropertyNames(WrappedError)
module.exports = WrappedError;

@@ -31,4 +33,10 @@

var copyArgs = {}
extend(copyArgs, options)
for (var i = 0; i < FUNCTION_FIELD_WHITELIST.length; i++) {
delete copyArgs[FUNCTION_FIELD_WHITELIST[i]]
}
var createTypedError = TypedError(options);
extend(createError, options);
extend(createError, copyArgs);
createError._name = options.name;

@@ -35,0 +43,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