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.0.1 to 0.0.2

12

lib/index.js

@@ -133,2 +133,14 @@ // Load modules

internals.Error.clientTimeout = function (message) {
return new internals.Error(408, message);
};
internals.Error.serverTimeout = function (message) {
return new internals.Error(503, message);
};
internals.Error.forbidden = function (message) {

@@ -135,0 +147,0 @@

2

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

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

boom
====
HTTP-friendly error objects
HTTP-friendly error objects
[![Build Status](https://secure.travis-ci.org/hueniverse/boom.png)](http://travis-ci.org/hueniverse/boom)

@@ -89,2 +89,32 @@ // Load modules

describe('#clientTimeout', function () {
it('returns a 408 error code', function (done) {
expect(Boom.clientTimeout().code).to.equal(408);
done();
});
it('sets the message with the passed in message', function (done) {
expect(Boom.clientTimeout('my message').message).to.equal('my message');
done();
});
});
describe('#serverTimeout', function () {
it('returns a 503 error code', function (done) {
expect(Boom.serverTimeout().code).to.equal(503);
done();
});
it('sets the message with the passed in message', function (done) {
expect(Boom.serverTimeout('my message').message).to.equal('my message');
done();
});
});
describe('#forbidden', function () {

@@ -91,0 +121,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