mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-21 17:05:22 +03:00
fix: bump unstorage
and address type issues (#2951)
This commit is contained in:
parent
201ab3b13a
commit
672e8a9a24
4 changed files with 294 additions and 813 deletions
|
@ -56,7 +56,7 @@
|
||||||
"@tiptap/starter-kit": "2.2.4",
|
"@tiptap/starter-kit": "2.2.4",
|
||||||
"@tiptap/suggestion": "2.2.4",
|
"@tiptap/suggestion": "2.2.4",
|
||||||
"@tiptap/vue-3": "2.2.4",
|
"@tiptap/vue-3": "2.2.4",
|
||||||
"@unocss/nuxt": "^0.62.0",
|
"@unocss/nuxt": "^0.62.3",
|
||||||
"@upstash/redis": "^1.27.1",
|
"@upstash/redis": "^1.27.1",
|
||||||
"@vercel/kv": "^2.0.0",
|
"@vercel/kv": "^2.0.0",
|
||||||
"@vue-macros/nuxt": "^1.6.0",
|
"@vue-macros/nuxt": "^1.6.0",
|
||||||
|
@ -147,13 +147,12 @@
|
||||||
"@vueuse/motion": "patches/@vueuse__motion.patch",
|
"@vueuse/motion": "patches/@vueuse__motion.patch",
|
||||||
"pinceau": "patches/pinceau.patch",
|
"pinceau": "patches/pinceau.patch",
|
||||||
"vue-i18n": "patches/vue-i18n.patch",
|
"vue-i18n": "patches/vue-i18n.patch",
|
||||||
"nuxt": "patches/nuxt.patch",
|
|
||||||
"nuxt-security": "patches/nuxt-security.patch"
|
"nuxt-security": "patches/nuxt-security.patch"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"nuxt-component-meta": "0.7.0",
|
"nuxt-component-meta": "0.7.0",
|
||||||
"unstorage": "^1.10.2",
|
"unstorage": "^1.12.0",
|
||||||
"vitest": "2.0.5",
|
"vitest": "2.0.5",
|
||||||
"vue": "^3.4.21"
|
"vue": "^3.4.21"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
diff --git a/dist/index.mjs b/dist/index.mjs
|
|
||||||
index 04537d45037445e8dc497d90ad631e48af69a18d..7802ccd80a5e507b57512438d5137038655a465d 100644
|
|
||||||
--- a/dist/index.mjs
|
|
||||||
+++ b/dist/index.mjs
|
|
||||||
@@ -1401,14 +1401,6 @@ interface _GlobalComponents {
|
|
||||||
${componentTypes.map(([pascalName, type]) => ` 'Lazy${pascalName}': ${type}`).join("\n")}
|
|
||||||
}
|
|
||||||
|
|
||||||
-declare module '@vue/runtime-core' {
|
|
||||||
- export interface GlobalComponents extends _GlobalComponents { }
|
|
||||||
-}
|
|
||||||
-
|
|
||||||
-declare module '@vue/runtime-dom' {
|
|
||||||
- export interface GlobalComponents extends _GlobalComponents { }
|
|
||||||
-}
|
|
||||||
-
|
|
||||||
declare module 'vue' {
|
|
||||||
export interface GlobalComponents extends _GlobalComponents { }
|
|
||||||
}
|
|
1077
pnpm-lock.yaml
1077
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
|
@ -11,14 +11,14 @@ export default defineDriver((driver: Driver = memory()) => {
|
||||||
return {
|
return {
|
||||||
...driver,
|
...driver,
|
||||||
async hasItem(key: string) {
|
async hasItem(key: string) {
|
||||||
if (await memoryDriver.hasItem(key))
|
if (await memoryDriver.hasItem(key, {}))
|
||||||
return true
|
return true
|
||||||
|
|
||||||
return driver.hasItem(key, {})
|
return driver.hasItem(key, {})
|
||||||
},
|
},
|
||||||
async setItem(key: string, value: any) {
|
async setItem(key: string, value: any) {
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
memoryDriver.setItem(key, value),
|
memoryDriver.setItem?.(key, value, {}),
|
||||||
driver.setItem?.(key, value, {}),
|
driver.setItem?.(key, value, {}),
|
||||||
])
|
])
|
||||||
},
|
},
|
||||||
|
@ -29,7 +29,7 @@ export default defineDriver((driver: Driver = memory()) => {
|
||||||
return value
|
return value
|
||||||
|
|
||||||
value = await driver.getItem(key)
|
value = await driver.getItem(key)
|
||||||
memoryDriver.setItem(key, value)
|
memoryDriver.setItem?.(key, value as string, {})
|
||||||
|
|
||||||
return value
|
return value
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue