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.8 to 1.0.9

18

lib/errors/batch.js

@@ -56,6 +56,2 @@ 'use strict';

var temp = Error.apply(this, arguments);
temp.name = this.name = 'BatchError';
this.stack = temp.stack;
this.data = result;

@@ -96,2 +92,5 @@

} else {
if (typeof first !== 'string') {
first = $npm.u.inspect(first);
}
this.message = first;

@@ -107,11 +106,8 @@ }

Error.captureStackTrace(this, BatchError);
}
BatchError.prototype = Object.create(Error.prototype, {
constructor: {
value: BatchError,
writable: true,
configurable: true
}
});
$npm.u.inherits(BatchError, Error);
BatchError.prototype.name = 'BatchError';

@@ -118,0 +114,0 @@ /**

@@ -53,6 +53,2 @@ 'use strict';

var temp = Error.apply(this, arguments);
temp.name = this.name = 'PageError';
this.stack = temp.stack;
this.index = e.index;

@@ -66,2 +62,5 @@ this.duration = duration;

this.message = this.error;
if (typeof this.message !== 'string') {
this.message = $npm.u.inspect(this.message);
}
}

@@ -83,11 +82,9 @@

}
Error.captureStackTrace(this, PageError);
}
PageError.prototype = Object.create(Error.prototype, {
constructor: {
value: PageError,
writable: true,
configurable: true
}
});
$npm.u.inherits(PageError, Error);
PageError.prototype.name = 'PageError';

@@ -94,0 +91,0 @@ /**

@@ -49,6 +49,2 @@ 'use strict';

var temp = Error.apply(this, arguments);
temp.name = this.name = 'SequenceError';
this.stack = temp.stack;
this.index = e.index;

@@ -62,2 +58,5 @@ this.duration = duration;

this.message = this.error;
if (typeof this.message !== 'string') {
this.message = $npm.u.inspect(this.message);
}
}

@@ -73,11 +72,8 @@

this.reason = $npm.u.format(errorReasons[code], cbName, e.index);
Error.captureStackTrace(this, SequenceError);
}
SequenceError.prototype = Object.create(Error.prototype, {
constructor: {
value: SequenceError,
writable: true,
configurable: true
}
});
$npm.u.inherits(SequenceError, Error);
SequenceError.prototype.name = 'SequenceError';

@@ -99,3 +95,3 @@ /**

level = level > 0 ? parseInt(level) : 0;
var gap0 = $npm.utils.messageGap(level),

@@ -110,3 +106,3 @@ gap1 = $npm.utils.messageGap(level + 1),

];
lines.push(gap1 + 'error: ' + $npm.utils.formatError(this.error, level + 1));

@@ -113,0 +109,0 @@ lines.push(gap0 + '}');

{
"name": "spex",
"version": "1.0.8",
"version": "1.0.9",
"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