Comparing version 5.1.0 to 5.1.1
{ | ||
"name": "error", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "Custom errors", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -14,5 +14,2 @@ var camelize = require("camelize") | ||
} | ||
if (!args.message) { | ||
throw new Error("args.message is required"); | ||
} | ||
@@ -44,5 +41,5 @@ var message = args.message | ||
extend(result, options) | ||
if (opts.message) { | ||
if (opts && opts.message) { | ||
result.message = template(opts.message, options) | ||
} else { | ||
} else if (message) { | ||
result.message = template(message, options) | ||
@@ -49,0 +46,0 @@ } |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
7749
107