@solid-primitives/storage
Advanced tools
Comparing version 3.7.1 to 3.8.0
@@ -532,2 +532,3 @@ import { createHydratableSignal } from '@solid-primitives/utils'; | ||
const storage = options.storage || globalThis.localStorage; | ||
const name = options.name || `storage-${createUniqueId()}`; | ||
if (!storage) { | ||
@@ -537,3 +538,2 @@ return signal; | ||
const storageOptions = options.storageOptions; | ||
const name = options.name || `storage-${createUniqueId()}`; | ||
const serialize = options.serialize || JSON.stringify.bind(JSON); | ||
@@ -540,0 +540,0 @@ const deserialize = options.deserialize || JSON.parse.bind(JSON); |
{ | ||
"name": "@solid-primitives/storage", | ||
"version": "3.7.1", | ||
"version": "3.8.0", | ||
"description": "Primitive that provides reactive wrappers for storage access", | ||
@@ -5,0 +5,0 @@ "author": "Alex Lohr <alex.lohr@logmein.com>", |
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