Socket
Socket
Sign inDemoInstall

ngrx-store-localstorage

Package Overview
Dependencies
9
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.4 to 0.0.5

2

dist/index.js

@@ -15,3 +15,3 @@ var core_1 = require('angular2/core');

var stateSlice = localStorage.getItem(curr);
if (typeof (stateSlice) !== 'undefined') {
if (stateSlice) {
return Object.assign({}, acc, (_a = {}, _a[curr] = JSON.parse(stateSlice), _a));

@@ -18,0 +18,0 @@ }

{
"name": "ngrx-store-localstorage",
"version": "0.0.4",
"version": "0.0.5",
"description": "State and local storage syncing for @ngrx/store",

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

@@ -7,10 +7,10 @@ import {provide, Provider} from 'angular2/core';

return keys.map(key => {
if(typeof(key) !== 'string'){
throw new TypeError(
`localStorageMiddleware Unknown Parameter Type: `
+ `Expected type of string, got ${typeof key}`
);
}
return key;
});
if(typeof(key) !== 'string'){
throw new TypeError(
`localStorageMiddleware Unknown Parameter Type: `
+ `Expected type of string, got ${typeof key}`
);
}
return key;
});
};

@@ -21,3 +21,3 @@

let stateSlice = localStorage.getItem(curr);
if(typeof(stateSlice) !== 'undefined'){
if(stateSlice){
return Object.assign({}, acc, { [curr]: JSON.parse(stateSlice) })

@@ -24,0 +24,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc