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

boom

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

boom - npm Package Compare versions

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc