vuex-persistedstate
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("lodash.merge")):"function"==typeof define&&define.amd?define(["lodash.merge"],t):e.vuex-persistedstate=t(e.merge)}(this,function(e){function t(t){void 0===t&&(t={});var r=t.key;void 0===r&&(r="vuex");var n=t.paths;void 0===n&&(n=[]);var u=t.getState;void 0===u&&(u=function(e,t){var r=t.getItem(e);try{return r&&"undefined"!==r?JSON.parse(r):void 0}catch(e){return}});var a=t.setState;void 0===a&&(a=function(e,t,r){return r.setItem(e,JSON.stringify(t))});var d=t.reducer;void 0===d&&(d=i);var f=t.storage;void 0===f&&(f=window&&window.localStorage);var c=t.filter;void 0===c&&(c=function(){return!0});var v=t.subscriber;if(void 0===v&&(v=function(e){return function(t){return e.subscribe(t)}}),!o(f))throw new Error("Invalid storage instance given");return function(t){var i=u(r,f);"object"==typeof i&&t.replaceState(e({},t.state,i)),v(t)(function(e,t){c(e)&&a(r,d(t,n),f)})}}e="default"in e?e.default:e;var r=function(e,t,r){for(r=0,t=t.split?t.split("."):t;e&&r<t.length;)e=e[t[r++]];return e},n=function(e,t,n,i,o){return t=t.split("."),i=t.pop(),(o=r(e,t))&&i?o[i]=n:void 0},i=function(e,t){return 0===t.length?e:t.reduce(function(t,i){return n(t,i,r(e,i))&&t},{})},o=function(e){try{return e.setItem("@@",1),e.removeItem("@@"),!0}catch(e){return!1}};return t}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("lodash.merge")):"function"==typeof define&&define.amd?define(["lodash.merge"],t):e.createPersistedState=t(e.merge)}(this,function(e){function t(t){void 0===t&&(t={});var r=t.key;void 0===r&&(r="vuex");var n=t.paths;void 0===n&&(n=[]);var u=t.getState;void 0===u&&(u=function(e,t){var r=t.getItem(e);try{return r&&"undefined"!==r?JSON.parse(r):void 0}catch(e){return}});var a=t.setState;void 0===a&&(a=function(e,t,r){return r.setItem(e,JSON.stringify(t))});var d=t.reducer;void 0===d&&(d=i);var f=t.storage;void 0===f&&(f=window&&window.localStorage);var c=t.filter;void 0===c&&(c=function(){return!0});var v=t.subscriber;if(void 0===v&&(v=function(e){return function(t){return e.subscribe(t)}}),!o(f))throw new Error("Invalid storage instance given");return function(t){var i=u(r,f);"object"==typeof i&&t.replaceState(e({},t.state,i)),v(t)(function(e,t){c(e)&&a(r,d(t,n),f)})}}e="default"in e?e.default:e;var r=function(e,t,r){for(r=0,t=t.split?t.split("."):t;e&&r<t.length;)e=e[t[r++]];return e},n=function(e,t,n,i,o){return t=t.split("."),i=t.pop(),(o=r(e,t))&&i?o[i]=n:void 0},i=function(e,t){return 0===t.length?e:t.reduce(function(t,i){return n(t,i,r(e,i))&&t},{})},o=function(e){try{return e.setItem("@@",1),e.removeItem("@@"),!0}catch(e){return!1}};return t}); |
{ | ||
"name": "vuex-persistedstate", | ||
"description": "Persist Vuex state with localStorage.", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"license": "MIT", | ||
@@ -32,3 +32,3 @@ "author": "Robin van der Vleuten <robin@webstronauts.co>", | ||
"build:cjs": "rollup -c -f cjs | uglifyjs -cm -o $npm_package_main", | ||
"build:umd": "rollup -c -n $npm_package_name -f umd | uglifyjs -cm -o $npm_package_browser", | ||
"build:umd": "rollup -c -f umd | uglifyjs -cm -o $npm_package_browser", | ||
"precommit": "npm run build && lint-staged", | ||
@@ -35,0 +35,0 @@ "prepublish": "npm run build", |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
15479
2