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

backbone-publication

Package Overview
Dependencies
Maintainers
15
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.8 to 1.0.9

8

dist/browser/index.js

@@ -225,3 +225,3 @@ import _ from 'underscore';

_.each(clone, function (v, k) {
if (_.isObject(v)) {
if (lodash_isplainobject(v)) {
clone[k] = ObjectUtils.deepClone(v);

@@ -340,5 +340,3 @@ }

* stored on the model). */
var allChangesAreObjects = _.every(changedAttributes, function (v) {
return _.isObject(v);
});
var allChangesAreObjects = _.every(changedAttributes, ObjectUtils.isPlainObject);
var standardOpts = _.extend({}, options, { silent: allChangesAreObjects });

@@ -354,3 +352,3 @@ if (options.unset) {

_.each(changedAttributes, function (value, key, attributes) {
if (_.isObject(value)) _this.trigger('change:' + key, _this, attributes[key], options);
if (ObjectUtils.isPlainObject(value)) _this.trigger('change:' + key, _this, attributes[key], options);
});

@@ -357,0 +355,0 @@

{
"name": "backbone-publication",
"version": "1.0.8",
"version": "1.0.9",
"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.9 - Fixed another instance of object instances were considered plain objects. Replaced all `_.isObject` usages for `isPlainObject`
* 1.0.8 - Fixed issue where object instances were considered plain objects.

@@ -40,0 +41,0 @@ * 1.0.7 - Fixed incorrect function call in `PublicationModel.setReactiveQuery`.

@@ -86,3 +86,3 @@ import _ from 'underscore';

* stored on the model). */
var allChangesAreObjects = _.every(changedAttributes, v => _.isObject(v));
var allChangesAreObjects = _.every(changedAttributes, ObjectUtils.isPlainObject);
var standardOpts = _.extend({}, options, { silent: allChangesAreObjects });

@@ -98,3 +98,3 @@ if (options.unset) {

_.each(changedAttributes, (value, key, attributes) => {
if (_.isObject(value)) this.trigger('change:' + key, this, attributes[key], options);
if (ObjectUtils.isPlainObject(value)) this.trigger('change:' + key, this, attributes[key], options);
});

@@ -101,0 +101,0 @@

@@ -86,3 +86,3 @@ import _ from 'underscore';

_.each(clone, (v,k) => {
if (_.isObject(v)) {
if (isPlainObject(v)) {
clone[k] = ObjectUtils.deepClone(v);

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