little-state-machine
Advanced tools
Comparing version 2.5.0 to 2.5.1
@@ -42,3 +42,3 @@ import * as React from 'react'; | ||
window['STATE_MACHINE_SAVE_TO'] = (name) => { | ||
storageType.setItem(name, JSON.stringify(getStore())); | ||
window.localStorage.setItem(name, JSON.stringify(getStore())); | ||
}; | ||
@@ -48,3 +48,3 @@ window['STATE_MACHINE_LOAD'] = ({ storeName, data, }) => { | ||
return; | ||
storageType.setItem(getName(), data || storageType.getItem(storeName)); | ||
window.localStorage.setItem(getName(), data || window.localStorage.getItem(storeName)); | ||
}; | ||
@@ -51,0 +51,0 @@ } |
@@ -45,3 +45,3 @@ 'use strict'; | ||
window['STATE_MACHINE_SAVE_TO'] = (name) => { | ||
storageType.setItem(name, JSON.stringify(getStore())); | ||
window.localStorage.setItem(name, JSON.stringify(getStore())); | ||
}; | ||
@@ -51,3 +51,3 @@ window['STATE_MACHINE_LOAD'] = ({ storeName, data, }) => { | ||
return; | ||
storageType.setItem(getName(), data || storageType.getItem(storeName)); | ||
window.localStorage.setItem(getName(), data || window.localStorage.getItem(storeName)); | ||
}; | ||
@@ -54,0 +54,0 @@ } |
{ | ||
"name": "little-state-machine", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.es.js", |
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
20370