Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vue-macros/common

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue-macros/common - npm Package Compare versions

Comparing version 1.10.1 to 1.10.2

4

dist/index.d.ts

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc