1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-15 05:19:58 +00:00

fix: bump unstorage and address type issues (#2951)

This commit is contained in:
Daniel Roe 2024-09-11 12:20:26 +01:00 committed by GitHub
parent 201ab3b13a
commit 672e8a9a24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 294 additions and 813 deletions

View file

@ -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"
},

View file

@ -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 { }
}

File diff suppressed because it is too large Load diff

View file

@ -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
},