Socket
Socket
Sign inDemoInstall

bones

Package Overview
Dependencies
127
Maintainers
8
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.0alpha0 to 2.2.0

.npmignore

1

bones.js

@@ -32,3 +32,4 @@ if (global.__BonesPlugin__) {

var Plugin = require('./server/plugin');
global.__BonesPath__ = require.resolve('bones');
exports.plugin = global.__BonesPlugin__ = new Plugin();
exports.plugin.load(__dirname);

@@ -0,2 +1,14 @@

## 2.2.0
- Upgraded dependencies: express, optimist
- Declared compatibility with node 0.4 and 0.6
- Fixed: `showError` middleware no longer writes a body for error responses to
HEAD requests.
- Changed: `Server.initialize()` and `Server.conclude()` are now passed all
arguments for the `Server()` constructor instead of just the plugin.
- Changed: Default model routes now allow `Error()` objects passed back from
`Backbone.sync()` to be sent to the client.
- Changed: Default value for `host` command option is `false`, which disables
host checking by default.
## Bones 2.x.x

@@ -3,0 +15,0 @@

11

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

@@ -16,5 +16,5 @@ "author": {

"underscore": "1.1.x",
"express": "2.5.4",
"backbone": "0.5.1",
"jquery": "1.6.x",
"express": "~2.5.4",
"backbone": "0.5.3",
"jquery": "~1.6.3",
"optimist": "0.3.x",

@@ -27,3 +27,6 @@ "mirror": "0.3.x"

"coverage": "./test/coverage.sh"
},
"engines": {
"node": "0.4 || 0.6"
}
}

@@ -38,4 +38,4 @@ var Backbone = require('./backbone');

'description': 'Hostnames allowed for requests. Wildcards are allowed.',
'default': [ '127.0.0.1', 'localhost', require('os').hostname() ]
'default': false
}
};

@@ -1,2 +0,2 @@

var Bones = require('bones');
var Bones = require(global.__BonesPath__ || 'bones');

@@ -3,0 +3,0 @@ var $ = Bones.$, jQuery = $;

@@ -82,5 +82,5 @@ var env = process.env.NODE_ENV || 'development';

if (env === 'development') {
res.end(JSON.stringify(err));
res.end('HEAD' == req.method ? null : JSON.stringify(err));
} else {
res.end(JSON.stringify({ message: err.message }));
res.end('HEAD' == req.method ? null : JSON.stringify({ message: err.message }));
}

@@ -90,5 +90,5 @@ } else {

if (env === 'development') {
res.end(err.stack);
res.end('HEAD' == req.method ? null : err.stack);
} else {
res.end(err.message);
res.end('HEAD' == req.method ? null : err.message);
}

@@ -95,0 +95,0 @@ }

@@ -1,2 +0,2 @@

var Bones = require('bones');
var Bones = require(global.__BonesPath__ || 'bones');

@@ -3,0 +3,0 @@ var $ = Bones.$, jQuery = $;

@@ -1,2 +0,2 @@

var Bones = require('bones');
var Bones = require(global.__BonesPath__ || 'bones');

@@ -3,0 +3,0 @@ var $ = Bones.$, jQuery = $;

@@ -10,4 +10,4 @@ var Backbone = require('./backbone');

this.plugin = plugin;
this.initialize(plugin);
this.conclude(plugin);
this.initialize.apply(this, arguments);
this.conclude.apply(this, arguments);
};

@@ -14,0 +14,0 @@

@@ -1,2 +0,2 @@

var Bones = require('bones');
var Bones = require(global.__BonesPath__ || 'bones');

@@ -3,0 +3,0 @@ var $ = Bones.$, jQuery = $;

@@ -1,2 +0,2 @@

var Bones = require('bones');
var Bones = require(global.__BonesPath__ || 'bones');

@@ -3,0 +3,0 @@ var $ = Bones.$, jQuery = $;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc