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

aggregate-error

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aggregate-error - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

7

index.js

@@ -26,3 +26,8 @@ 'use strict';

let message = errors.map(error => cleanInternalStack(cleanStack(error.stack))).join('\n');
let message = errors
.map(error => {
// The `stack` property is not standardized, so we can't assume it exists
return typeof error.stack === 'string' ? cleanInternalStack(cleanStack(error.stack)) : String(error);
})
.join('\n');
message = '\n' + indentString(message, 4);

@@ -29,0 +34,0 @@ super(message);

6

package.json
{
"name": "aggregate-error",
"version": "2.0.0",
"version": "2.1.0",
"description": "Create an error from multiple errors",

@@ -37,5 +37,5 @@ "license": "MIT",

"devDependencies": {
"ava": "^1.0.1",
"xo": "^0.23.0"
"ava": "^1.2.1",
"xo": "^0.24.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