@substrate/local-storage
Advanced tools
Comparing version 2.2.8 to 2.2.9
@@ -5,6 +5,6 @@ "use strict"; | ||
const react_1 = require("react"); | ||
if (typeof window === "undefined") { | ||
const LocalStorage = require('node-localstorage').LocalStorage; | ||
localStorage = new LocalStorage('./scratch'); | ||
} | ||
const LocalStorage = require('node-localstorage').LocalStorage; | ||
let localStorage = typeof window === "undefined" | ||
? new LocalStorage('./scratch') | ||
: window.localStorage; | ||
function tryParse(value) { | ||
@@ -11,0 +11,0 @@ try { |
{ | ||
"name": "@substrate/local-storage", | ||
"version": "2.2.8", | ||
"version": "2.2.9", | ||
"description": "Fork: React hook for local-storage", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
27742