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

spex

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spex - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

31

lib/errors/batch.js

@@ -47,10 +47,26 @@ 'use strict';

err[i] = result[errors[i]].result;
if (err[i].errors instanceof BatchError) {
if (err[i] instanceof BatchError) {
err[i] = err[i].getErrors();
}
}
$npm.utils.extend(err, '$isErrorList', true);
return err;
};
var e = this.getErrors(),
first = e[0];
while (first && first.$isErrorList) {
first = first[0];
}
// we do not show it within the inspect, because when the error
// happens for a nested result, the output becomes a mess.
this.first = first;
var e = this.getErrors();
if (first instanceof Error) {
this.message = first.message;
} else {
this.message = first;
}

@@ -64,11 +80,2 @@ this.stat = {

// we do not show it within the inspect, because when the error
// happens for a nested result, the output becomes a mess.
this.first = e[0];
if (this.first instanceof Error) {
this.message = this.first.message;
} else {
this.message = this.first;
}
}

@@ -109,3 +116,3 @@

];
this.data.forEach(function (d, index, data) {

@@ -112,0 +119,0 @@ lines.push(gap2 + index + ': {');

{
"name": "spex",
"version": "1.0.2",
"version": "1.0.3",
"description": "Specialized Promise Extensions",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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