New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

errorex

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

errorex - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

15

lib/errorex.js

@@ -147,8 +147,11 @@ /* errorex

const a2 = ex.split(/\n/).filter(line => !!line.match(STACK_REGEXP));
/* Locate merge index */
for (let [i1, line] of a1.entries()) {
const i2 = a2.indexOf(line);
if (i2 >= 0) {
/* Merge stack lines */
a1.splice(i1, 0, ...a2.slice(0, i2));
for (let k = 1; k <= a2.length; k++) {
if (a2[a2.length - k] !== a1[a1.length - k]) {
a2.splice(a1.length - k, a2.length);
break;
}
}
for (let k = 0; k < a1.length; k++) {
if (a1[k].match(STACK_REGEXP)) {
a1.splice(k, 0, ...a2);
return a1.join('\n');

@@ -155,0 +158,0 @@ }

4

package.json
{
"name": "errorex",
"description": "'Extensible Error Class' implementation and predefined additional error types for javascript",
"version": "2.2.0",
"version": "2.3.0",
"author": "Panates Ltd.",

@@ -25,3 +25,3 @@ "contributors": [

"eslint": "^5.12.1",
"eslint-config-google": "^0.10.0",
"eslint-config-google": "^0.11.0",
"mocha": "^5.2.0",

@@ -28,0 +28,0 @@ "nyc": "^13.1.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