Comparing version 2.0.1 to 2.0.2
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4385
7
1
+ Addedxtend@~2.0.6
+ Addedforeach@2.0.6(transitive)
+ Addedindexof@0.0.1(transitive)
+ Addedis@0.2.7(transitive)
+ Addedis-object@0.1.2(transitive)
+ Addedobject-keys@0.2.0(transitive)
+ Addedxtend@2.0.6(transitive)