@vue-macros/common
Advanced tools
Comparing version 1.10.1 to 1.10.2
@@ -90,4 +90,4 @@ import { MagicStringBase, generateTransform, MagicString } from 'magic-string-ast'; | ||
lang: string | undefined; | ||
getScriptAst(): Program | undefined; | ||
getSetupAst(): Program | undefined; | ||
getScriptAst: () => Program | undefined; | ||
getSetupAst: () => Program | undefined; | ||
offset: number; | ||
@@ -94,0 +94,0 @@ } & Pick<SFCParseResult, 'errors'>; |
@@ -211,6 +211,7 @@ "use strict"; | ||
// src/dep.ts | ||
var import_node_process = __toESM(require("process")); | ||
var import_node_path = __toESM(require("path")); | ||
var import_node_fs = require("fs"); | ||
var import_local_pkg = require("local-pkg"); | ||
function detectVueVersion(root = process.cwd()) { | ||
function detectVueVersion(root = import_node_process.default.cwd()) { | ||
let isFile = false; | ||
@@ -271,7 +272,8 @@ try { | ||
const filter = []; | ||
const isWebpackLike = framework === "webpack" || framework === "rspack"; | ||
if (types.includes(0 /* VUE_SFC */)) { | ||
filter.push(framework === "webpack" ? REGEX_VUE_SUB : REGEX_VUE_SFC); | ||
filter.push(isWebpackLike ? REGEX_VUE_SUB : REGEX_VUE_SFC); | ||
} | ||
if (types.includes(1 /* VUE_SFC_WITH_SETUP */)) { | ||
filter.push(framework === "webpack" ? REGEX_VUE_SUB_SETUP : REGEX_VUE_SFC); | ||
filter.push(isWebpackLike ? REGEX_VUE_SUB_SETUP : REGEX_VUE_SFC); | ||
} | ||
@@ -303,5 +305,4 @@ if (types.includes(2 /* SETUP_SFC */)) { | ||
const lang = scriptLang || scriptSetupLang; | ||
return { | ||
return Object.assign({}, descriptor, { | ||
sfc, | ||
...descriptor, | ||
lang, | ||
@@ -324,3 +325,3 @@ errors, | ||
} | ||
}; | ||
}); | ||
} | ||
@@ -327,0 +328,0 @@ function getFileCodeAndLang(code, id) { |
{ | ||
"name": "@vue-macros/common", | ||
"version": "1.10.1", | ||
"packageManager": "pnpm@8.14.1", | ||
"version": "1.10.2", | ||
"packageManager": "pnpm@8.15.5", | ||
"description": "common feature from Vue Macros.", | ||
@@ -52,6 +52,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@babel/types": "^7.23.6", | ||
"@babel/types": "^7.24.0", | ||
"@rollup/pluginutils": "^5.1.0", | ||
"@vue/compiler-sfc": "^3.4.13", | ||
"ast-kit": "^0.11.3", | ||
"@vue/compiler-sfc": "^3.4.21", | ||
"ast-kit": "^0.12.1", | ||
"local-pkg": "^0.5.0", | ||
@@ -61,4 +61,4 @@ "magic-string-ast": "^0.3.0" | ||
"devDependencies": { | ||
"@babel/parser": "^7.23.6", | ||
"@vitejs/plugin-vue": "^5.0.3" | ||
"@babel/parser": "^7.24.1", | ||
"@vitejs/plugin-vue": "^5.0.4" | ||
}, | ||
@@ -65,0 +65,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38360
838
+ Addedast-kit@0.12.2(transitive)
- Removedast-kit@0.11.3(transitive)
Updated@babel/types@^7.24.0
Updated@vue/compiler-sfc@^3.4.21
Updatedast-kit@^0.12.1