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

error

Package Overview
Dependencies
Maintainers
1
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 2.0.1 to 2.0.2

.npmignore

6

package.json
{
"name": "error",
"version": "2.0.1",
"version": "2.0.2",
"description": "Custom errors",

@@ -19,3 +19,5 @@ "keywords": [],

},
"dependencies": {},
"dependencies": {
"xtend": "~2.0.6"
},
"devDependencies": {

@@ -22,0 +24,0 @@ "tape": "~1.0.2"

var format = require("util").format
var extend = require("xtend/mutable")

@@ -9,3 +10,2 @@ var slice = Array.prototype.slice

var message = opts.message
var type = opts.type

@@ -17,4 +17,4 @@ return function createError() {

extend(result, opts)
result.message = format.apply(null, args)
result.type = type

@@ -21,0 +21,0 @@ return result

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