@layerstack/svelte-stores
Advanced tools
Comparing version
import { writable } from 'svelte/store'; | ||
import { isFunction } from 'lodash-es'; | ||
import { parse, stringify } from '@layerstack/utils'; | ||
@@ -35,3 +34,3 @@ import { browser } from '@layerstack/utils/env'; | ||
: previousExpiry; | ||
const expiry = isFunction(options?.expiry) | ||
const expiry = typeof options?.expiry === 'function' | ||
? // @ts-expect-error | ||
@@ -38,0 +37,0 @@ options?.expiry(prunedPreviousExpiry) // Update expiry on write |
@@ -7,3 +7,3 @@ { | ||
"repository": "techniq/layerstack", | ||
"version": "1.0.2-next.11", | ||
"version": "1.0.2-next.12", | ||
"devDependencies": { | ||
@@ -13,5 +13,3 @@ "@sveltejs/kit": "^2.21.0", | ||
"@sveltejs/vite-plugin-svelte": "^5.0.3", | ||
"@types/d3-array": "^3.2.1", | ||
"@types/lodash-es": "^4.17.12", | ||
"@vitest/coverage-v8": "^3.1.2", | ||
"prettier": "^3.5.3", | ||
@@ -30,7 +28,6 @@ "prettier-plugin-svelte": "^3.3.3", | ||
"dependencies": { | ||
"d3-array": "^3.2.4", | ||
"immer": "^10.1.1", | ||
"lodash-es": "^4.17.21", | ||
"zod": "^3.24.3", | ||
"@layerstack/utils": "2.0.0-next.11" | ||
"@layerstack/utils": "2.0.0-next.12" | ||
}, | ||
@@ -37,0 +34,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
4
-20%14
-12.5%73097
-0.17%1562
-0.06%+ Added
- Removed
- Removed