Comparing version 0.1.0 to 0.2.0
@@ -6,3 +6,3 @@ 'use strict'; | ||
var errorEx = function errorEx(name, properties) { | ||
if (name.constructor !== String) { | ||
if (!name || name.constructor !== String) { | ||
properties = name || {}; | ||
@@ -56,3 +56,3 @@ name = Error.name; | ||
if (v) { | ||
stack[0] += ' ' + str.replace('{}', v.toString()); | ||
stack[0] += ' ' + str.replace('%s', v.toString()); | ||
} | ||
@@ -66,3 +66,3 @@ }; | ||
if (v) { | ||
return str.replace('{}', v.toString()); | ||
return str.replace('%s', v.toString()); | ||
} | ||
@@ -69,0 +69,0 @@ }; |
{ | ||
"name": "error-ex", | ||
"description": "Easy error subclassing and stack customization", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"author": "Qix (http://github.com/qix-)", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
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
5083