@jill64/svelte-storage
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -6,3 +6,3 @@ import { typedStorage } from '@jill64/typed-storage'; | ||
const isSerdeArg = arg && 'serialize' in arg && 'deserialize' in arg; | ||
const { get, set, subscribe } = typedStorage(key, (isSerdeArg ? arg : string), opts); | ||
const { get, set, subscribe } = typedStorage(key, (isSerdeArg ? arg : string), opts ?? (isSerdeArg ? undefined : arg)); | ||
const store = readable(get(), subscribe); | ||
@@ -9,0 +9,0 @@ return { |
{ | ||
"name": "@jill64/svelte-storage", | ||
"description": "🗃️ Type-Safe Web Storage API Wrapper for Svelte", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "dist/index.js", | ||
"type": "module", | ||
"license": "MIT", | ||
"author": "jill64 <intents.turrets0h@icloud.com> (https://github.com/jill64)", | ||
"author": { | ||
"name": "jill64", | ||
"email": "143883742+jill64@users.noreply.github.com", | ||
"url": "https://github.com/jill64", | ||
"image": "https://avatars.githubusercontent.com/u/143883742?v=4" | ||
}, | ||
"bugs": "https://github.com/jill64/svelte-storage/issues", | ||
@@ -26,3 +31,4 @@ "homepage": "https://github.com/jill64/svelte-storage#readme", | ||
"type": "git", | ||
"url": "https://github.com/jill64/svelte-storage.git" | ||
"url": "https://github.com/jill64/svelte-storage.git", | ||
"image": "https://opengraph.githubassets.com/6c4f5dd205ebcaa03ff7a719362419abb18172e45e18f1be6337f6f5029d452a/jill64/svelte-storage" | ||
}, | ||
@@ -55,9 +61,11 @@ "publishConfig": { | ||
"devDependencies": { | ||
"@jill64/eslint-config-svelte": "1.0.2", | ||
"@jill64/npm-demo-layout": "0.1.9", | ||
"@jill64/playwright-config": "2.2.0", | ||
"@jill64/prettier-config": "1.0.0", | ||
"@jill64/sentry-sveltekit-cloudflare": "1.5.0", | ||
"@jill64/svelte-dark-theme": "2.2.14", | ||
"@playwright/test": "1.40.1", | ||
"@jill64/sentry-sveltekit-cloudflare": "1.5.0", | ||
"@sveltejs/adapter-cloudflare": "2.3.4", | ||
"@jill64/eslint-config-svelte": "1.0.1", | ||
"@jill64/prettier-config": "1.0.0", | ||
"@jill64/playwright-config": "2.2.0", | ||
"@sveltejs/kit": "1.27.7", | ||
"@sveltejs/kit": "1.29.0", | ||
"svelte": "4.2.8", | ||
@@ -64,0 +72,0 @@ "typescript": "5.3.3", |
@@ -5,3 +5,3 @@ <!----- BEGIN GHOST DOCS HEADER -----> | ||
[![npm-version](https://img.shields.io/npm/v/@jill64/svelte-storage)](https://npmjs.com/package/@jill64/svelte-storage) [![npm-license](https://img.shields.io/npm/l/@jill64/svelte-storage)](https://npmjs.com/package/@jill64/svelte-storage) [![npm-download-month](https://img.shields.io/npm/dm/@jill64/svelte-storage)](https://npmjs.com/package/@jill64/svelte-storage) [![npm-min-size](https://img.shields.io/bundlephobia/min/@jill64/svelte-storage)](https://npmjs.com/package/@jill64/svelte-storage) [![ci.yml](https://github.com/jill64/svelte-storage/actions/workflows/ci.yml/badge.svg)](https://github.com/jill64/svelte-storage/actions/workflows/ci.yml) | ||
<!----- BEGIN GHOST DOCS BADGES -----><a href="https://npmjs.com/package/@jill64/svelte-storage"><img src="https://img.shields.io/npm/v/@jill64/svelte-storage" alt="npm-version" /></a> <a href="https://npmjs.com/package/@jill64/svelte-storage"><img src="https://img.shields.io/npm/l/@jill64/svelte-storage" alt="npm-license" /></a> <a href="https://npmjs.com/package/@jill64/svelte-storage"><img src="https://img.shields.io/npm/dm/@jill64/svelte-storage" alt="npm-download-month" /></a> <a href="https://npmjs.com/package/@jill64/svelte-storage"><img src="https://img.shields.io/bundlephobia/min/@jill64/svelte-storage" alt="npm-min-size" /></a> <a href="https://github.com/jill64/svelte-storage/actions/workflows/ci.yml"><img src="https://github.com/jill64/svelte-storage/actions/workflows/ci.yml/badge.svg" alt="ci.yml" /></a><!----- END GHOST DOCS BADGES -----> | ||
@@ -8,0 +8,0 @@ 🗃️ Type-Safe Web Storage API Wrapper for Svelte |
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
6748
12