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

normalize-exception

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

normalize-exception - npm Package Compare versions

Comparing version 2.4.0 to 2.5.0

15

build/src/stack.js

@@ -18,8 +18,8 @@ import{setErrorProperty}from"./descriptors.js";

const getStack=function(message="",name="Error"){
const StackError=getErrorClass(name);
const{stack}=new StackError(message);
return stack===undefined||stack===""?
`${name}: ${message}`:
stack.split("\n").filter(isNotInternalLine).join("\n");
return stack===undefined||stack===""?`${name}: ${message}`:stack;
};

@@ -43,11 +43,2 @@

};
const isNotInternalLine=function(line){
return!line.includes(INTERNAL_LINE);
};
const INTERNAL_LINE="normalize-exception";
//# sourceMappingURL=stack.js.map

2

package.json
{
"name": "normalize-exception",
"version": "2.4.0",
"version": "2.5.0",
"type": "module",

@@ -5,0 +5,0 @@ "exports": "./build/src/main.js",

@@ -363,2 +363,4 @@ [![Codecov](https://img.shields.io/codecov/c/github/ehmicky/normalize-exception.svg?label=tested&logo=codecov)](https://codecov.io/gh/ehmicky/normalize-exception)

error with its `cause`
- [`set-error-message`](https://github.com/ehmicky/set-error-message): Properly
update an error's message
- [`set-error-props`](https://github.com/ehmicky/set-error-props): Properly

@@ -365,0 +367,0 @@ update an error's properties

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