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

backbone-publication

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backbone-publication - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

11

dist/browser/index.js

@@ -178,5 +178,10 @@ import _ from 'underscore';

if (!_.isEmpty(newAttributes)) {
this.trigger('change', this, newAttributes, options);
}
// If the new attributes were all nested objects, trigger a general `change` event too.
var allObjects = _.every(newAttributes, function (v) {
return _.isObject(v);
});
// NOTE: Do not rely on this event passing the changed attributes. This does not conform to
// Backbone's `change` event where the new attributes are not passed.
if (allObjects) this.trigger('change', this, newAttributes, options);
}

@@ -183,0 +188,0 @@

{
"name": "backbone-publication",
"version": "1.0.3",
"version": "1.0.4",
"description": "Supports backbone classes backed by `publication-client` reactive queries.",

@@ -5,0 +5,0 @@ "main": "dist/browser/index.js",

@@ -38,2 +38,3 @@ # backbone-publication

### Changelog
* 1.0.4 - Reverted change on `PublicationModel.set` and added warning instead.
* 1.0.3 - Fixed issue with `PublicationModel.set` not firing `change` event.

@@ -40,0 +41,0 @@ * 1.0.2 - Util function name typo (`isObject` -> `isPlainObject`).

@@ -88,5 +88,10 @@ import _ from 'underscore';

if (!_.isEmpty(newAttributes)) {
this.trigger('change', this, newAttributes, options);
}
// If the new attributes were all nested objects, trigger a general `change` event too.
var allObjects = _.every(newAttributes, function(v) {
return _.isObject(v);
});
// NOTE: Do not rely on this event passing the changed attributes. This does not conform to
// Backbone's `change` event where the new attributes are not passed.
if (allObjects) this.trigger('change', this, newAttributes, options);
}

@@ -93,0 +98,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