Socket
Socket
Sign inDemoInstall

bones

Package Overview
Dependencies
Maintainers
0
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bones - npm Package Compare versions

Comparing version 1.3.11 to 1.3.12

2

package.json
{
"name": "bones",
"description": "Framework for using backbone.js on the client and server.",
"version": "1.3.11",
"version": "1.3.12",

@@ -6,0 +6,0 @@ "author": {

@@ -11,6 +11,7 @@ # Bones

To run the test suite, type `npm test`.
To run the test suite, type `npm test`. **Note**: bones has to be in a folder named `node_modules` for tests to work correctly.
## License
Bones is [BSD licensed](https://github.com/developmentseed/bones/raw/master/LICENSE).
Bones is [BSD licensed](https://github.com/developmentseed/bones/raw/master/LICENSE).

@@ -25,4 +25,7 @@ var env = process.env.NODE_ENV || 'development';

} else if (!hosts.length) {
req.headers.host = host;
return next();
// Check that the supplied hostname is harmless. If not, we'll
// substitute it with the hostname reported by the machine.
if (/^\w([\w-]*\w)?(\.\w([\w-]*\w)?)*(:\d+)?$/.test(req.headers.host)) {
return next();
}
} else {

@@ -29,0 +32,0 @@ for (var i = 0; i < hosts.length; i++) {

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