ngrx-store-localstorage
Advanced tools
Comparing version 0.1.0 to 0.1.1
"use strict"; | ||
var _this = this; | ||
var INIT_ACTION = "@ngrx/store/init"; | ||
@@ -8,3 +7,3 @@ var detectDate = /(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/; | ||
return JSON.parse(jsonData, function (key, value) { | ||
if (typeof value === 'string' && (_this.detectDate.test(value))) { | ||
if (typeof value === 'string' && (detectDate.test(value))) { | ||
return new Date(value); | ||
@@ -11,0 +10,0 @@ } |
{ | ||
"name": "ngrx-store-localstorage", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "State and local storage syncing for @ngrx/store", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -7,3 +7,3 @@ const INIT_ACTION = "@ngrx/store/init"; | ||
return JSON.parse(jsonData, (key: any, value: any) => { | ||
if (typeof value === 'string' && (this.detectDate.test(value))) { | ||
if (typeof value === 'string' && (detectDate.test(value))) { | ||
return new Date(value); | ||
@@ -10,0 +10,0 @@ } |
10193
149