@manojadams/session-store
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "@manojadams/session-store", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Simple state management with session storage", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"module": "./dist/index.modern.js", | ||
@@ -7,0 +8,0 @@ "upkg": "./dist/index.umd.js", |
@@ -23,4 +23,3 @@ import { IStore } from "./constants"; | ||
init() { | ||
const storeName = this.constructor.name; | ||
const sessionData = sessionStorage.getItem(storeName); | ||
const sessionData = sessionStorage.getItem(this._name); | ||
if (sessionData) { | ||
@@ -27,0 +26,0 @@ this.__sessionData = JSON.parse(sessionData); |
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
3201
44