Socket
Socket
Sign inDemoInstall

boom

Package Overview
Dependencies
1
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.3.1

1

lib/index.js

@@ -24,2 +24,3 @@ // Load modules

Error.call(this);
this.isBoom = true;

@@ -26,0 +27,0 @@ this.response = {

2

package.json
{
"name": "boom",
"description": "HTTP-friendly error objects",
"version": "0.3.0",
"version": "0.3.1",
"author": "Eran Hammer <eran@hueniverse.com> (http://hueniverse.com)",

@@ -6,0 +6,0 @@ "contributors": [],

@@ -38,2 +38,17 @@ // Load modules

describe('#isBoom', function () {
it('returns true for Boom object', function (done) {
expect(Boom.badRequest().isBoom).to.equal(true);
done();
});
it('returns false for Error object', function (done) {
expect(new Error().isBoom).to.not.exist;
done();
});
});
describe('#badRequest', function () {

@@ -40,0 +55,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc