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 5.1.0 to 5.1.1

2

package.json
{
"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 @@ }

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