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 1.1.3 to 1.1.4

13

build/src/aggregate.js

@@ -29,17 +29,6 @@ import{setErrorProperty}from"./descriptors.js";

return(
supportsAggregateError()&&(
"AggregateError"in globalThis&&(
error.name==="AggregateError"||error instanceof AggregateError));
};
export const supportsAggregateError=function(){
try{
AggregateError;
return true;
}catch{
return false;
}
};
//# sourceMappingURL=aggregate.js.map

3

build/src/create.js
import isPlainObj from"is-plain-obj";
import{supportsAggregateError}from"./aggregate.js";
import{setErrorProperty,isNonModifiableError}from"./descriptors.js";

@@ -66,3 +65,3 @@ import{setFullStack}from"./stack.js";

const newError=function(name,message){
if(name==="AggregateError"&&supportsAggregateError()){
if(name==="AggregateError"&&"AggregateError"in globalThis){
return new AggregateError([],message);

@@ -69,0 +68,0 @@ }

{
"name": "normalize-exception",
"version": "1.1.3",
"version": "1.1.4",
"type": "module",

@@ -49,3 +49,3 @@ "exports": "./build/src/main.js",

"devDependencies": {
"@ehmicky/dev-tasks": "^1.0.76",
"@ehmicky/dev-tasks": "^1.0.77",
"test-each": "^5.0.0",

@@ -52,0 +52,0 @@ "tsd": "^0.20.0"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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