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

boom

Package Overview
Dependencies
Maintainers
2
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 2.1.0 to 2.2.0

2

lib/index.js

@@ -55,3 +55,3 @@ // Load modules

if (this.message) {
this.output.payload.message = Hoek.escapeHtml(this.message); // Prevent XSS from error message
this.output.payload.message = this.message;
}

@@ -58,0 +58,0 @@ };

{
"name": "boom",
"description": "HTTP-friendly error objects",
"version": "2.1.0",
"version": "2.2.0",
"repository": "git://github.com/spumko/boom",

@@ -6,0 +6,0 @@ "main": "index",

@@ -481,14 +481,4 @@ // Load modules

});
describe('#reformat', function () {
it('enstatusCodes any HTML markup in the response payload', function (done) {
var boom = Boom.wrap(new Error('<script>alert(1)</script>'));
expect(boom.output.payload.message).to.not.contain('<script>');
done();
});
});
});
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