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

compilerr

Package Overview
Dependencies
Maintainers
1
Versions
184
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compilerr - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

2

package.json

@@ -23,3 +23,3 @@ {

},
"version": "0.2.0"
"version": "0.3.0"
}

@@ -83,3 +83,4 @@ 'use strict';

if (arguments.length === 2 && parameters instanceof Error) {
if (arguments.length === 2 &&
(parameters instanceof Error || (parameters.code !== undefined && parameters.code.slice(-9) === 'Exception'))) {
cause = parameters;

@@ -86,0 +87,0 @@ }

@@ -122,3 +122,3 @@ 'use strict';

it('should return an error with a given cause as a third argument', function () {
it('should return an error with a given cause as a second argument', function () {
var cause,

@@ -136,4 +136,19 @@ err;

it('should return an error with a given AWS style exception as a second argument', function () {
var cause,
err;
cause = {
code: 'SomeCrazyException'
};
err = compilerr.compile({}, cause);
expect(err).to.be.an.instanceOf(Error);
expect(err.cause).to.equal(cause);
});
});
});
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