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

error-ex

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

error-ex - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

6

index.js

@@ -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": [

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