chore: upgrade mlly

This commit is contained in:
三咲智子 Kevin Deng 2023-01-15 22:47:58 +08:00
parent 0dc0a1baa6
commit 0cbbf914b9
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
3 changed files with 17 additions and 39 deletions

View file

@ -119,7 +119,6 @@
}, },
"pnpm": { "pnpm": {
"patchedDependencies": { "patchedDependencies": {
"mlly@1.0.0": "patches/mlly@1.0.0.patch",
"nitropack@1.0.0": "patches/nitropack@1.0.0.patch" "nitropack@1.0.0": "patches/nitropack@1.0.0.patch"
}, },
"overrides": { "overrides": {

View file

@ -1,17 +0,0 @@
diff --git a/dist/index.mjs b/dist/index.mjs
index 6b5fb1566bee73cefdf165519146604b59ebe7a5..8df0f81f3df4c13bf06b003c472c46db9772db91 100644
--- a/dist/index.mjs
+++ b/dist/index.mjs
@@ -972,10 +972,10 @@ function fileURLToPath(id) {
}
const INVALID_CHAR_RE = /[\u0000-\u001F"#$&*+,/:;<=>?@[\]^`{|}\u007F]+/g;
function sanitizeURIComponent(name = "", replacement = "_") {
- return name.replace(INVALID_CHAR_RE, replacement);
+ return name.replace(INVALID_CHAR_RE, replacement).replace(/%../g, replacement);
}
function sanitizeFilePath(filePath = "") {
- return filePath.split(/[/\\]/g).map((p) => sanitizeURIComponent(p)).join("/").replace(/^([A-Za-z])_\//, "$1:/");
+ return filePath.replace(/[?#].*$/, '').split(/[/\\]/g).map((p) => sanitizeURIComponent(p)).join("/").replace(/^([A-Za-z])_\//, "$1:/");
}
function normalizeid(id) {
if (typeof id !== "string") {

View file

@ -25,9 +25,6 @@ overrides:
vitest>vite: ^3.2.5 vitest>vite: ^3.2.5
patchedDependencies: patchedDependencies:
mlly@1.0.0:
hash: afe7v34zn4lohdq7767l3tlrje
path: patches/mlly@1.0.0.patch
nitropack@1.0.0: nitropack@1.0.0:
hash: k66pyfgyevhmomc3yledfrjhru hash: k66pyfgyevhmomc3yledfrjhru
path: patches/nitropack@1.0.0.patch path: patches/nitropack@1.0.0.patch
@ -1759,8 +1756,8 @@ packages:
vue-i18n: vue-i18n:
optional: true optional: true
dependencies: dependencies:
'@intlify/message-compiler': 9.3.0-beta.15 '@intlify/message-compiler': 9.3.0-beta.16
'@intlify/shared': 9.3.0-beta.15 '@intlify/shared': 9.3.0-beta.16
jsonc-eslint-parser: 1.4.1 jsonc-eslint-parser: 1.4.1
source-map: 0.6.1 source-map: 0.6.1
vue-i18n: 9.3.0-beta.13-972e836 vue-i18n: 9.3.0-beta.13-972e836
@ -1792,11 +1789,11 @@ packages:
source-map: 0.6.1 source-map: 0.6.1
dev: true dev: true
/@intlify/message-compiler/9.3.0-beta.15: /@intlify/message-compiler/9.3.0-beta.16:
resolution: {integrity: sha512-kxx+pXsyoWhyFLEaJgnMk4AFiW3fvaCqpiql1alOHtkvQwzDKlrcKJ784GO4v/8SLt6JUHWfPpQH65GoYahdLA==} resolution: {integrity: sha512-CGQI3xRcs1ET75eDQ0DUy3MRYOqTauRIIgaMoISKiF83gqRWg93FqN8lGMKcpBqaF4tI0JhsfosCaGiBL9+dnw==}
engines: {node: '>= 14'} engines: {node: '>= 14'}
dependencies: dependencies:
'@intlify/shared': 9.3.0-beta.15 '@intlify/shared': 9.3.0-beta.16
source-map: 0.6.1 source-map: 0.6.1
dev: true dev: true
@ -1810,8 +1807,8 @@ packages:
engines: {node: '>= 14'} engines: {node: '>= 14'}
dev: true dev: true
/@intlify/shared/9.3.0-beta.15: /@intlify/shared/9.3.0-beta.16:
resolution: {integrity: sha512-thDJ+TGK8GGmOrgh/Vul24pPvRtRGvCyuGXcw/uh2t3lyJsCPfhzY5ZihJFkGvKEl4/J4M0F/SAeWKoZNm7hlw==} resolution: {integrity: sha512-kXbm4svALe3lX+EjdJxfnabOphqS4yQ1Ge/iIlR8tvUiYRCoNz3hig1M4336iY++Dfx5ytEQJPNjIcknNIuvig==}
engines: {node: '>= 14'} engines: {node: '>= 14'}
dev: true dev: true
@ -1831,7 +1828,7 @@ packages:
optional: true optional: true
dependencies: dependencies:
'@intlify/bundle-utils': 3.4.0_qjugkpmxfnp3l7d6jb7y3o5rvi '@intlify/bundle-utils': 3.4.0_qjugkpmxfnp3l7d6jb7y3o5rvi
'@intlify/shared': 9.3.0-beta.15 '@intlify/shared': 9.3.0-beta.16
'@rollup/pluginutils': 4.2.1 '@rollup/pluginutils': 4.2.1
'@vue/compiler-sfc': 3.2.45 '@vue/compiler-sfc': 3.2.45
debug: 4.3.4 debug: 4.3.4
@ -2291,7 +2288,7 @@ packages:
h3: 1.0.1 h3: 1.0.1
knitwork: 1.0.0 knitwork: 1.0.0
magic-string: 0.26.7 magic-string: 0.26.7
mlly: 1.0.0_afe7v34zn4lohdq7767l3tlrje mlly: 1.0.0
ohash: 1.0.0 ohash: 1.0.0
pathe: 1.0.0 pathe: 1.0.0
perfect-debounce: 0.1.3 perfect-debounce: 0.1.3
@ -2345,7 +2342,7 @@ packages:
h3: 1.0.1 h3: 1.0.1
knitwork: 1.0.0 knitwork: 1.0.0
magic-string: 0.26.7 magic-string: 0.26.7
mlly: 1.0.0_afe7v34zn4lohdq7767l3tlrje mlly: 1.0.0
ohash: 1.0.0 ohash: 1.0.0
pathe: 1.0.0 pathe: 1.0.0
perfect-debounce: 0.1.3 perfect-debounce: 0.1.3
@ -8642,7 +8639,7 @@ packages:
typescript: 4.9.4 typescript: 4.9.4
dev: true dev: true
/mlly/1.0.0_afe7v34zn4lohdq7767l3tlrje: /mlly/1.0.0:
resolution: {integrity: sha512-QL108Hwt+u9bXdWgOI0dhzZfACovn5Aen4Xvc8Jasd9ouRH4NjnrXEiyP3nVvJo91zPlYjVRckta0Nt2zfoR6g==} resolution: {integrity: sha512-QL108Hwt+u9bXdWgOI0dhzZfACovn5Aen4Xvc8Jasd9ouRH4NjnrXEiyP3nVvJo91zPlYjVRckta0Nt2zfoR6g==}
dependencies: dependencies:
acorn: 8.8.1 acorn: 8.8.1
@ -8650,7 +8647,6 @@ packages:
pkg-types: 1.0.1 pkg-types: 1.0.1
ufo: 1.0.1 ufo: 1.0.1
dev: true dev: true
patched: true
/mlly/1.1.0: /mlly/1.1.0:
resolution: {integrity: sha512-cwzBrBfwGC1gYJyfcy8TcZU1f+dbH/T+TuOhtYP2wLv/Fb51/uV7HJQfBPtEupZ2ORLRU1EKFS/QfS3eo9+kBQ==} resolution: {integrity: sha512-cwzBrBfwGC1gYJyfcy8TcZU1f+dbH/T+TuOhtYP2wLv/Fb51/uV7HJQfBPtEupZ2ORLRU1EKFS/QfS3eo9+kBQ==}
@ -8989,7 +8985,7 @@ packages:
hookable: 5.4.2 hookable: 5.4.2
knitwork: 1.0.0 knitwork: 1.0.0
magic-string: 0.26.7 magic-string: 0.26.7
mlly: 1.0.0_afe7v34zn4lohdq7767l3tlrje mlly: 1.0.0
nitropack: 1.0.0_k66pyfgyevhmomc3yledfrjhru nitropack: 1.0.0_k66pyfgyevhmomc3yledfrjhru
nuxi: 3.0.0 nuxi: 3.0.0
ofetch: 1.0.0 ofetch: 1.0.0
@ -9057,7 +9053,7 @@ packages:
hookable: 5.4.2 hookable: 5.4.2
knitwork: 1.0.0 knitwork: 1.0.0
magic-string: 0.26.7 magic-string: 0.26.7
mlly: 1.0.0_afe7v34zn4lohdq7767l3tlrje mlly: 1.0.0
nitropack: 1.0.0_k66pyfgyevhmomc3yledfrjhru nitropack: 1.0.0_k66pyfgyevhmomc3yledfrjhru
nuxi: 3.0.0 nuxi: 3.0.0
ofetch: 1.0.0 ofetch: 1.0.0
@ -11396,7 +11392,7 @@ packages:
magic-string: 0.27.0 magic-string: 0.27.0
mkdirp: 1.0.4 mkdirp: 1.0.4
mkdist: 1.0.0_typescript@4.9.4 mkdist: 1.0.0_typescript@4.9.4
mlly: 1.0.0_afe7v34zn4lohdq7767l3tlrje mlly: 1.0.0
mri: 1.2.0 mri: 1.2.0
pathe: 1.0.0 pathe: 1.0.0
pkg-types: 1.0.1 pkg-types: 1.0.1
@ -11505,7 +11501,7 @@ packages:
fast-glob: 3.2.12 fast-glob: 3.2.12
local-pkg: 0.4.2 local-pkg: 0.4.2
magic-string: 0.27.0 magic-string: 0.27.0
mlly: 1.0.0_afe7v34zn4lohdq7767l3tlrje mlly: 1.0.0
pathe: 1.0.0 pathe: 1.0.0
pkg-types: 1.0.1 pkg-types: 1.0.1
scule: 1.0.0 scule: 1.0.0
@ -11886,7 +11882,7 @@ packages:
hasBin: true hasBin: true
dependencies: dependencies:
debug: 4.3.4 debug: 4.3.4
mlly: 1.0.0_afe7v34zn4lohdq7767l3tlrje mlly: 1.0.0
pathe: 0.2.0 pathe: 0.2.0
source-map: 0.6.1 source-map: 0.6.1
source-map-support: 0.5.21 source-map-support: 0.5.21
@ -12283,7 +12279,7 @@ packages:
vue-router: vue-router:
optional: true optional: true
dependencies: dependencies:
'@intlify/shared': 9.3.0-beta.15 '@intlify/shared': 9.3.0-beta.16
'@intlify/vue-i18n-bridge': 0.8.0_qjugkpmxfnp3l7d6jb7y3o5rvi '@intlify/vue-i18n-bridge': 0.8.0_qjugkpmxfnp3l7d6jb7y3o5rvi
'@intlify/vue-router-bridge': 0.8.0 '@intlify/vue-router-bridge': 0.8.0
ufo: 1.0.1 ufo: 1.0.1