browser-redux-sync
Advanced tools
Comparing version 0.1.1 to 0.2.0
var constants = require('redux-persist/constants') | ||
var matches = require('lodash/utility/matches') | ||
var keyPrefix = constants.keyPrefix | ||
@@ -13,3 +14,3 @@ | ||
var key = Object.keys(e)[0]; | ||
if(key.indexOf(keyPrefix) === 0 && e[key].newValue !== chrome.storage.local._lastData){ | ||
if(key.indexOf(keyPrefix) === 0 && (!chrome.storage.local._lastData || !matches(e[key].newValue)(chrome.storage.local._lastData))){ | ||
var keyspace = key.substr(keyPrefix.length); | ||
@@ -16,0 +17,0 @@ if(whitelist && whitelist.indexOf(keyspace) === -1){ return } |
{ | ||
"name": "browser-redux-sync", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "Keep redux state in sync for browser extensions and apps.", | ||
@@ -25,3 +25,6 @@ "main": "index.js", | ||
"author": "zalmoxisus <zalmoxisus@gmail.com>, rt2zz <zack@root-two.com>", | ||
"license": "MIT" | ||
"license": "MIT", | ||
"dependencies": { | ||
"lodash": "^3.10.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25425
11
20
2
+ Addedlodash@^3.10.1
+ Addedlodash@3.10.1(transitive)