mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-21 08:55:24 +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/suggestion": "2.2.4",
|
||||
"@tiptap/vue-3": "2.2.4",
|
||||
"@unocss/nuxt": "^0.62.0",
|
||||
"@unocss/nuxt": "^0.62.3",
|
||||
"@upstash/redis": "^1.27.1",
|
||||
"@vercel/kv": "^2.0.0",
|
||||
"@vue-macros/nuxt": "^1.6.0",
|
||||
|
@ -147,13 +147,12 @@
|
|||
"@vueuse/motion": "patches/@vueuse__motion.patch",
|
||||
"pinceau": "patches/pinceau.patch",
|
||||
"vue-i18n": "patches/vue-i18n.patch",
|
||||
"nuxt": "patches/nuxt.patch",
|
||||
"nuxt-security": "patches/nuxt-security.patch"
|
||||
}
|
||||
},
|
||||
"resolutions": {
|
||||
"nuxt-component-meta": "0.7.0",
|
||||
"unstorage": "^1.10.2",
|
||||
"unstorage": "^1.12.0",
|
||||
"vitest": "2.0.5",
|
||||
"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 {
|
||||
...driver,
|
||||
async hasItem(key: string) {
|
||||
if (await memoryDriver.hasItem(key))
|
||||
if (await memoryDriver.hasItem(key, {}))
|
||||
return true
|
||||
|
||||
return driver.hasItem(key, {})
|
||||
},
|
||||
async setItem(key: string, value: any) {
|
||||
await Promise.all([
|
||||
memoryDriver.setItem(key, value),
|
||||
memoryDriver.setItem?.(key, value, {}),
|
||||
driver.setItem?.(key, value, {}),
|
||||
])
|
||||
},
|
||||
|
@ -29,7 +29,7 @@ export default defineDriver((driver: Driver = memory()) => {
|
|||
return value
|
||||
|
||||
value = await driver.getItem(key)
|
||||
memoryDriver.setItem(key, value)
|
||||
memoryDriver.setItem?.(key, value as string, {})
|
||||
|
||||
return value
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue