chore: fix pwa type

zio/stable
三咲智子 Kevin Deng 2023-07-04 13:32:22 +08:00
parent 2d8ec4ab89
commit 5c1411b3de
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
3 changed files with 37 additions and 3 deletions

View File

@ -129,6 +129,11 @@
"vitest": "^0.32.4", "vitest": "^0.32.4",
"vue-tsc": "^1.8.3" "vue-tsc": "^1.8.3"
}, },
"pnpm": {
"patchedDependencies": {
"nuxt-security@0.13.1": "patches/nuxt-security@0.13.1.patch"
}
},
"simple-git-hooks": { "simple-git-hooks": {
"pre-commit": "pnpm lint-staged" "pre-commit": "pnpm lint-staged"
}, },

View File

@ -0,0 +1,23 @@
diff --git a/dist/module.d.ts b/dist/module.d.ts
index db3d86728b99c2f8dadd7782483cd0ec40688703..972a0da26f04f58de9301e757a34d318f8d95ece 100644
--- a/dist/module.d.ts
+++ b/dist/module.d.ts
@@ -222,15 +222,15 @@ interface NuxtSecurityRouteRules {
declare module "@nuxt/schema" {
interface NuxtOptions {
- security: ModuleOptions;
+ security?: ModuleOptions;
}
}
declare module "nitropack" {
interface NitroRouteRules {
- security: NuxtSecurityRouteRules;
+ security?: NuxtSecurityRouteRules;
}
interface NitroRouteConfig {
- security: NuxtSecurityRouteRules;
+ security?: NuxtSecurityRouteRules;
}
}
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;

View File

@ -4,6 +4,11 @@ settings:
autoInstallPeers: true autoInstallPeers: true
excludeLinksFromLockfile: false excludeLinksFromLockfile: false
patchedDependencies:
nuxt-security@0.13.1:
hash: bd6cmp7ukwwiwrxafbbotwkihe
path: patches/nuxt-security@0.13.1.patch
importers: importers:
.: .:
@ -142,7 +147,7 @@ importers:
version: 5.11.3 version: 5.11.3
nuxt-security: nuxt-security:
specifier: ^0.13.1 specifier: ^0.13.1
version: 0.13.1(rollup@2.79.1) version: 0.13.1(patch_hash=bd6cmp7ukwwiwrxafbbotwkihe)(rollup@2.79.1)
nuxt-vitest: nuxt-vitest:
specifier: ^0.8.7 specifier: ^0.8.7
version: 0.8.7(@vitejs/plugin-vue-jsx@3.0.1)(@vitejs/plugin-vue@4.2.3)(rollup@2.79.1)(vite@4.3.9)(vitest@0.32.4)(vue-router@4.2.2)(vue@3.3.4) version: 0.8.7(@vitejs/plugin-vue-jsx@3.0.1)(@vitejs/plugin-vue@4.2.3)(rollup@2.79.1)(vite@4.3.9)(vitest@0.32.4)(vue-router@4.2.2)(vue@3.3.4)
@ -7079,7 +7084,7 @@ packages:
dependencies: dependencies:
debug: 3.2.7 debug: 3.2.7
is-core-module: 2.12.1 is-core-module: 2.12.1
resolve: 1.22.3 resolve: 1.22.2
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: true dev: true
@ -10417,7 +10422,7 @@ packages:
- vue - vue
dev: true dev: true
/nuxt-security@0.13.1(rollup@2.79.1): /nuxt-security@0.13.1(patch_hash=bd6cmp7ukwwiwrxafbbotwkihe)(rollup@2.79.1):
resolution: {integrity: sha512-ZqO9Eu2LmB43U/NK+kAQtTcEO+7swu6WhgZBjvHwSCvg5cDvruhfEjLOffF4nuhvyVpKnt5HRfeRao8ABIe3ug==} resolution: {integrity: sha512-ZqO9Eu2LmB43U/NK+kAQtTcEO+7swu6WhgZBjvHwSCvg5cDvruhfEjLOffF4nuhvyVpKnt5HRfeRao8ABIe3ug==}
dependencies: dependencies:
'@nuxt/kit': 3.6.1(rollup@2.79.1) '@nuxt/kit': 3.6.1(rollup@2.79.1)
@ -10432,6 +10437,7 @@ packages:
- rollup - rollup
- supports-color - supports-color
dev: false dev: false
patched: true
/nuxt-vitest@0.8.7(@vitejs/plugin-vue-jsx@3.0.1)(@vitejs/plugin-vue@4.2.3)(rollup@2.79.1)(vite@4.3.9)(vitest@0.32.4)(vue-router@4.2.2)(vue@3.3.4): /nuxt-vitest@0.8.7(@vitejs/plugin-vue-jsx@3.0.1)(@vitejs/plugin-vue@4.2.3)(rollup@2.79.1)(vite@4.3.9)(vitest@0.32.4)(vue-router@4.2.2)(vue@3.3.4):
resolution: {integrity: sha512-OaQqF8QxfLKzYzSrwcfkhv5BeyLQGGvrSvOedjV3OHuDjOaTJa6OPU2VTCZBVNvPMjnbm2h71/CsXbH6smvEJw==} resolution: {integrity: sha512-OaQqF8QxfLKzYzSrwcfkhv5BeyLQGGvrSvOedjV3OHuDjOaTJa6OPU2VTCZBVNvPMjnbm2h71/CsXbH6smvEJw==}