From cd9f8238fe7b78229a4f4f09c72e389c254611a3 Mon Sep 17 00:00:00 2001 From: Dunqing Date: Wed, 13 Sep 2023 18:40:25 +0800 Subject: [PATCH] fix: missing --- patches/detype@0.6.3.patch | 7 +++---- pnpm-lock.yaml | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/patches/detype@0.6.3.patch b/patches/detype@0.6.3.patch index 2d857826..f96a97c3 100644 --- a/patches/detype@0.6.3.patch +++ b/patches/detype@0.6.3.patch @@ -1,14 +1,13 @@ diff --git a/dist/index.js b/dist/index.js -index 8b8e0d078e27474da1cf58ce3fef1d7acefb1cd4..0753137ff48b7d34338db98c3568c82e9798b3b7 100644 +index 8b8e0d078e27474da1cf58ce3fef1d7acefb1cd4..314b23766204dcc6d2873e8ea654dcc3040ba0a5 100644 --- a/dist/index.js +++ b/dist/index.js -@@ -146,9 +146,10 @@ async function removeTypesFromVueSfcScript(code, fileName, script, templateAst, +@@ -146,9 +146,9 @@ async function removeTypesFromVueSfcScript(code, fileName, script, templateAst, (0, import_template_ast_types.traverse)(templateAst, { enter(node) { if ((0, import_template_ast_types.isSimpleExpressionNode)(node) && !node.isStatic) { - expressions.add(node.content); -+ const content = node.content.trim(); -+ expressions.add(`[${content}]`); ++ expressions.add(`[${node.content}]`); } else if ((0, import_template_ast_types.isComponentNode)(node)) { - expressions.add(node.tag); + expressions.add(`[${node.tag}]`); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bca110c4..22f05f73 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,7 +6,7 @@ settings: patchedDependencies: detype@0.6.3: - hash: 6ktqwatz2smalcxwhreeceligi + hash: tlxqopreogk7nma7uu7ixdzk3u path: patches/detype@0.6.3.patch importers: @@ -245,7 +245,7 @@ importers: version: 0.34.3(vitest@0.34.3) detype: specifier: ^0.6.3 - version: 0.6.3(patch_hash=6ktqwatz2smalcxwhreeceligi) + version: 0.6.3(patch_hash=tlxqopreogk7nma7uu7ixdzk3u) tsup: specifier: ^7.2.0 version: 7.2.0(ts-node@10.9.1)(typescript@5.2.2) @@ -3978,7 +3978,7 @@ packages: resolution: {integrity: sha512-M1Ob1zPSIvlARiJUkKqvAZ3VAqQY6Jcuth/pBKQ2b1dX/Qx0OnJ8Vux6J2H5PTMQeRzWrrbTu70VxBfv/OPDJA==} dev: false - /detype@0.6.3(patch_hash=6ktqwatz2smalcxwhreeceligi): + /detype@0.6.3(patch_hash=tlxqopreogk7nma7uu7ixdzk3u): resolution: {integrity: sha512-b42ytoZGAOo2U9V4zAMqtiWHgeG8F6kRQsg1E6n0uARMxOItxlWWS+pSsNbvmejInhfui0Q0mn9Bd4lwqhLaSA==} engines: {node: '>=14.19.3'} hasBin: true