New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

backbone-db-redis

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backbone-db-redis - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

3

index.js

@@ -121,2 +121,5 @@ var _ = require('underscore')

destroy: function(model, options, callback) {
// force wait option, since otherwise Backbone removes Model's reference to collection
// which is required for clearing indexes
options.wait = true;
var self = this;

@@ -123,0 +126,0 @@ var key = this._getKey(model, options);

3

lib/indexing.js

@@ -50,2 +50,4 @@ var debug = require('debug')('backbone-db-redis:indexing');

indexes.forEach(function (index) {
// does the data meet dependency for the index,
// i.e. should this model attribute be indexed
var meetsDependencies = function() {

@@ -76,3 +78,2 @@ var dependencies = index.dependencies;

}
// value was changed or deleting object

@@ -79,0 +80,0 @@ if((operation === 'add' && prevData && prevData[key] && prevData[key] !== data[key]) ||

{
"name": "backbone-db-redis",
"version": "0.0.6",
"version": "0.0.7",
"description": "Redis driver for Backbone.Db",

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

@@ -106,2 +106,3 @@ var assert = require('assert');

assert(model);
assert(model.collection);
model

@@ -108,0 +109,0 @@ .destroy()

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