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 0.13.1 to 0.13.2

dist/chunk-CHMA2I2F.mjs

8

dist/ast.d.ts
import { Program, Node, CallExpression, Literal, TemplateLiteral, ObjectExpression, ObjectMethod, ObjectProperty } from '@babel/types';
import { ParserOptions } from '@babel/parser';
declare function getLang(filename: string): string;
declare function isTs(lang?: string): boolean | "" | undefined;
declare function babelParse(code: string, lang?: string, options?: ParserOptions): Program;
declare function isCallOf(node: Node | null | undefined, test: string | string[] | ((id: string) => boolean)): node is CallExpression;
declare function checkInvalidScopeReference(node: Node | undefined, method: string, setupBindings: string[]): void;
declare function isStaticExpression(node: Node, options?: Partial<Record<'object' | 'objectMethod' | 'array' | 'unary' | 'magicComment', boolean>>): boolean;
declare function isStaticExpression(node: Node, options?: Partial<Record<'object' | 'objectMethod' | 'array' | 'unary', boolean> & {
magicComment?: string;
}>): boolean;
declare function isLiteralType(node: Node): node is Literal;

@@ -32,2 +32,2 @@ declare function resolveTemplateLiteral(node: TemplateLiteral): string;

export { babelParse, checkInvalidScopeReference, getLang, isCallOf, isLiteralType, isStaticExpression, isTs, resolveLiteral, resolveObjectExpression, resolveObjectKey, resolveTemplateLiteral, walkAST };
export { babelParse, checkInvalidScopeReference, isCallOf, isLiteralType, isStaticExpression, resolveLiteral, resolveObjectExpression, resolveObjectKey, resolveTemplateLiteral, walkAST };

@@ -12,6 +12,7 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkL4FW2OHBjs = require('./chunk-L4FW2OHB.js');
require('./chunk-CXUDAWE7.js');
require('./chunk-TZVSWUNQ.js');
var _chunkQNSPRVRBjs = require('./chunk-QNSPRVRB.js');
require('./chunk-GEXA3BLA.js');

@@ -26,7 +27,3 @@

exports.babelParse = _chunkQNSPRVRBjs.babelParse; exports.checkInvalidScopeReference = _chunkQNSPRVRBjs.checkInvalidScopeReference; exports.getLang = _chunkQNSPRVRBjs.getLang; exports.isCallOf = _chunkQNSPRVRBjs.isCallOf; exports.isLiteralType = _chunkQNSPRVRBjs.isLiteralType; exports.isStaticExpression = _chunkQNSPRVRBjs.isStaticExpression; exports.isTs = _chunkQNSPRVRBjs.isTs; exports.resolveLiteral = _chunkQNSPRVRBjs.resolveLiteral; exports.resolveObjectExpression = _chunkQNSPRVRBjs.resolveObjectExpression; exports.resolveObjectKey = _chunkQNSPRVRBjs.resolveObjectKey; exports.resolveTemplateLiteral = _chunkQNSPRVRBjs.resolveTemplateLiteral; exports.walkAST = _chunkQNSPRVRBjs.walkAST;
exports.babelParse = _chunkL4FW2OHBjs.babelParse; exports.checkInvalidScopeReference = _chunkL4FW2OHBjs.checkInvalidScopeReference; exports.isCallOf = _chunkL4FW2OHBjs.isCallOf; exports.isLiteralType = _chunkL4FW2OHBjs.isLiteralType; exports.isStaticExpression = _chunkL4FW2OHBjs.isStaticExpression; exports.resolveLiteral = _chunkL4FW2OHBjs.resolveLiteral; exports.resolveObjectExpression = _chunkL4FW2OHBjs.resolveObjectExpression; exports.resolveObjectKey = _chunkL4FW2OHBjs.resolveObjectKey; exports.resolveTemplateLiteral = _chunkL4FW2OHBjs.resolveTemplateLiteral; exports.walkAST = _chunkL4FW2OHBjs.walkAST;
exports.default = module.exports;

@@ -11,3 +11,2 @@ declare const DEFINE_PROPS = "defineProps";

declare const REPO_ISSUE_URL = "https://github.com/sxzz/unplugin-vue-macros/issues";
declare const MAGIC_COMMENT_STATIC = "hoist-static";
declare const REGEX_SRC_FILE: RegExp;

@@ -18,3 +17,4 @@ declare const REGEX_TS_FILE: RegExp;

declare const REGEX_VUE_SFC: RegExp;
declare const REGEX_VUE_SUB: RegExp;
export { DEFINE_EMITS, DEFINE_MODEL, DEFINE_MODEL_DOLLAR, DEFINE_OPTIONS, DEFINE_PROPS, DEFINE_RENDER, DEFINE_SETUP_COMPONENT, DEFINE_SLOTS, MAGIC_COMMENT_STATIC, REGEX_JSX_FILE, REGEX_SETUP_SFC, REGEX_SRC_FILE, REGEX_TS_FILE, REGEX_VUE_SFC, REPO_ISSUE_URL, WITH_DEFAULTS };
export { DEFINE_EMITS, DEFINE_MODEL, DEFINE_MODEL_DOLLAR, DEFINE_OPTIONS, DEFINE_PROPS, DEFINE_RENDER, DEFINE_SETUP_COMPONENT, DEFINE_SLOTS, REGEX_JSX_FILE, REGEX_SETUP_SFC, REGEX_SRC_FILE, REGEX_TS_FILE, REGEX_VUE_SFC, REGEX_VUE_SUB, REPO_ISSUE_URL, WITH_DEFAULTS };

@@ -18,3 +18,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkGEXA3BLAjs = require('./chunk-GEXA3BLA.js');
var _chunkTZVSWUNQjs = require('./chunk-TZVSWUNQ.js');

@@ -37,3 +37,3 @@

exports.DEFINE_EMITS = _chunkGEXA3BLAjs.DEFINE_EMITS; exports.DEFINE_MODEL = _chunkGEXA3BLAjs.DEFINE_MODEL; exports.DEFINE_MODEL_DOLLAR = _chunkGEXA3BLAjs.DEFINE_MODEL_DOLLAR; exports.DEFINE_OPTIONS = _chunkGEXA3BLAjs.DEFINE_OPTIONS; exports.DEFINE_PROPS = _chunkGEXA3BLAjs.DEFINE_PROPS; exports.DEFINE_RENDER = _chunkGEXA3BLAjs.DEFINE_RENDER; exports.DEFINE_SETUP_COMPONENT = _chunkGEXA3BLAjs.DEFINE_SETUP_COMPONENT; exports.DEFINE_SLOTS = _chunkGEXA3BLAjs.DEFINE_SLOTS; exports.MAGIC_COMMENT_STATIC = _chunkGEXA3BLAjs.MAGIC_COMMENT_STATIC; exports.REGEX_JSX_FILE = _chunkGEXA3BLAjs.REGEX_JSX_FILE; exports.REGEX_SETUP_SFC = _chunkGEXA3BLAjs.REGEX_SETUP_SFC; exports.REGEX_SRC_FILE = _chunkGEXA3BLAjs.REGEX_SRC_FILE; exports.REGEX_TS_FILE = _chunkGEXA3BLAjs.REGEX_TS_FILE; exports.REGEX_VUE_SFC = _chunkGEXA3BLAjs.REGEX_VUE_SFC; exports.REPO_ISSUE_URL = _chunkGEXA3BLAjs.REPO_ISSUE_URL; exports.WITH_DEFAULTS = _chunkGEXA3BLAjs.WITH_DEFAULTS;
exports.DEFINE_EMITS = _chunkTZVSWUNQjs.DEFINE_EMITS; exports.DEFINE_MODEL = _chunkTZVSWUNQjs.DEFINE_MODEL; exports.DEFINE_MODEL_DOLLAR = _chunkTZVSWUNQjs.DEFINE_MODEL_DOLLAR; exports.DEFINE_OPTIONS = _chunkTZVSWUNQjs.DEFINE_OPTIONS; exports.DEFINE_PROPS = _chunkTZVSWUNQjs.DEFINE_PROPS; exports.DEFINE_RENDER = _chunkTZVSWUNQjs.DEFINE_RENDER; exports.DEFINE_SETUP_COMPONENT = _chunkTZVSWUNQjs.DEFINE_SETUP_COMPONENT; exports.DEFINE_SLOTS = _chunkTZVSWUNQjs.DEFINE_SLOTS; exports.REGEX_JSX_FILE = _chunkTZVSWUNQjs.REGEX_JSX_FILE; exports.REGEX_SETUP_SFC = _chunkTZVSWUNQjs.REGEX_SETUP_SFC; exports.REGEX_SRC_FILE = _chunkTZVSWUNQjs.REGEX_SRC_FILE; exports.REGEX_TS_FILE = _chunkTZVSWUNQjs.REGEX_TS_FILE; exports.REGEX_VUE_SFC = _chunkTZVSWUNQjs.REGEX_VUE_SFC; exports.REGEX_VUE_SUB = _chunkTZVSWUNQjs.REGEX_VUE_SUB; exports.REPO_ISSUE_URL = _chunkTZVSWUNQjs.REPO_ISSUE_URL; exports.WITH_DEFAULTS = _chunkTZVSWUNQjs.WITH_DEFAULTS;
exports.default = module.exports;

@@ -1,9 +0,10 @@

export { SFC, _SFCScriptBlock, addNormalScript, parseSFC } from './vue.js';
export { babelParse, checkInvalidScopeReference, getLang, isCallOf, isLiteralType, isStaticExpression, isTs, resolveLiteral, resolveObjectExpression, resolveObjectKey, resolveTemplateLiteral, walkAST } from './ast.js';
export { DEFINE_EMITS, DEFINE_MODEL, DEFINE_MODEL_DOLLAR, DEFINE_OPTIONS, DEFINE_PROPS, DEFINE_RENDER, DEFINE_SETUP_COMPONENT, DEFINE_SLOTS, MAGIC_COMMENT_STATIC, REGEX_JSX_FILE, REGEX_SETUP_SFC, REGEX_SRC_FILE, REGEX_TS_FILE, REGEX_VUE_SFC, REPO_ISSUE_URL, WITH_DEFAULTS } from './constants.js';
export { babelParse, checkInvalidScopeReference, isCallOf, isLiteralType, isStaticExpression, resolveLiteral, resolveObjectExpression, resolveObjectKey, resolveTemplateLiteral, walkAST } from './ast.js';
export { DEFINE_EMITS, DEFINE_MODEL, DEFINE_MODEL_DOLLAR, DEFINE_OPTIONS, DEFINE_PROPS, DEFINE_RENDER, DEFINE_SETUP_COMPONENT, DEFINE_SLOTS, REGEX_JSX_FILE, REGEX_SETUP_SFC, REGEX_SRC_FILE, REGEX_TS_FILE, REGEX_VUE_SFC, REGEX_VUE_SUB, REPO_ISSUE_URL, WITH_DEFAULTS } from './constants.js';
export { getLang, isTs } from './lang.js';
export { MagicString } from './magic-string.js';
export { getTransformResult } from './unplugin.js';
export { SFC, _SFCScriptBlock, addNormalScript, parseSFC } from './vue.js';
import '@babel/types';
import '@vue/compiler-sfc';
import '@babel/parser';
import 'magic-string';
import '@vue/compiler-sfc';

@@ -12,6 +12,7 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkL4FW2OHBjs = require('./chunk-L4FW2OHB.js');
var _chunkQNSPRVRBjs = require('./chunk-QNSPRVRB.js');
var _chunkCXUDAWE7js = require('./chunk-CXUDAWE7.js');

@@ -33,5 +34,6 @@

var _chunkGEXA3BLAjs = require('./chunk-GEXA3BLA.js');
var _chunkTZVSWUNQjs = require('./chunk-TZVSWUNQ.js');
var _chunkVAIMEA7Yjs = require('./chunk-VAIMEA7Y.js');

@@ -78,2 +80,2 @@

exports.DEFINE_EMITS = _chunkGEXA3BLAjs.DEFINE_EMITS; exports.DEFINE_MODEL = _chunkGEXA3BLAjs.DEFINE_MODEL; exports.DEFINE_MODEL_DOLLAR = _chunkGEXA3BLAjs.DEFINE_MODEL_DOLLAR; exports.DEFINE_OPTIONS = _chunkGEXA3BLAjs.DEFINE_OPTIONS; exports.DEFINE_PROPS = _chunkGEXA3BLAjs.DEFINE_PROPS; exports.DEFINE_RENDER = _chunkGEXA3BLAjs.DEFINE_RENDER; exports.DEFINE_SETUP_COMPONENT = _chunkGEXA3BLAjs.DEFINE_SETUP_COMPONENT; exports.DEFINE_SLOTS = _chunkGEXA3BLAjs.DEFINE_SLOTS; exports.MAGIC_COMMENT_STATIC = _chunkGEXA3BLAjs.MAGIC_COMMENT_STATIC; exports.MagicString = _chunkVAIMEA7Yjs.MagicString; exports.REGEX_JSX_FILE = _chunkGEXA3BLAjs.REGEX_JSX_FILE; exports.REGEX_SETUP_SFC = _chunkGEXA3BLAjs.REGEX_SETUP_SFC; exports.REGEX_SRC_FILE = _chunkGEXA3BLAjs.REGEX_SRC_FILE; exports.REGEX_TS_FILE = _chunkGEXA3BLAjs.REGEX_TS_FILE; exports.REGEX_VUE_SFC = _chunkGEXA3BLAjs.REGEX_VUE_SFC; exports.REPO_ISSUE_URL = _chunkGEXA3BLAjs.REPO_ISSUE_URL; exports.WITH_DEFAULTS = _chunkGEXA3BLAjs.WITH_DEFAULTS; exports.addNormalScript = _chunkPE6EQR6Kjs.addNormalScript; exports.babelParse = _chunkQNSPRVRBjs.babelParse; exports.checkInvalidScopeReference = _chunkQNSPRVRBjs.checkInvalidScopeReference; exports.getLang = _chunkQNSPRVRBjs.getLang; exports.getTransformResult = _chunk7LA3R3RZjs.getTransformResult; exports.isCallOf = _chunkQNSPRVRBjs.isCallOf; exports.isLiteralType = _chunkQNSPRVRBjs.isLiteralType; exports.isStaticExpression = _chunkQNSPRVRBjs.isStaticExpression; exports.isTs = _chunkQNSPRVRBjs.isTs; exports.parseSFC = _chunkPE6EQR6Kjs.parseSFC; exports.resolveLiteral = _chunkQNSPRVRBjs.resolveLiteral; exports.resolveObjectExpression = _chunkQNSPRVRBjs.resolveObjectExpression; exports.resolveObjectKey = _chunkQNSPRVRBjs.resolveObjectKey; exports.resolveTemplateLiteral = _chunkQNSPRVRBjs.resolveTemplateLiteral; exports.walkAST = _chunkQNSPRVRBjs.walkAST;
exports.DEFINE_EMITS = _chunkTZVSWUNQjs.DEFINE_EMITS; exports.DEFINE_MODEL = _chunkTZVSWUNQjs.DEFINE_MODEL; exports.DEFINE_MODEL_DOLLAR = _chunkTZVSWUNQjs.DEFINE_MODEL_DOLLAR; exports.DEFINE_OPTIONS = _chunkTZVSWUNQjs.DEFINE_OPTIONS; exports.DEFINE_PROPS = _chunkTZVSWUNQjs.DEFINE_PROPS; exports.DEFINE_RENDER = _chunkTZVSWUNQjs.DEFINE_RENDER; exports.DEFINE_SETUP_COMPONENT = _chunkTZVSWUNQjs.DEFINE_SETUP_COMPONENT; exports.DEFINE_SLOTS = _chunkTZVSWUNQjs.DEFINE_SLOTS; exports.MagicString = _chunkVAIMEA7Yjs.MagicString; exports.REGEX_JSX_FILE = _chunkTZVSWUNQjs.REGEX_JSX_FILE; exports.REGEX_SETUP_SFC = _chunkTZVSWUNQjs.REGEX_SETUP_SFC; exports.REGEX_SRC_FILE = _chunkTZVSWUNQjs.REGEX_SRC_FILE; exports.REGEX_TS_FILE = _chunkTZVSWUNQjs.REGEX_TS_FILE; exports.REGEX_VUE_SFC = _chunkTZVSWUNQjs.REGEX_VUE_SFC; exports.REGEX_VUE_SUB = _chunkTZVSWUNQjs.REGEX_VUE_SUB; exports.REPO_ISSUE_URL = _chunkTZVSWUNQjs.REPO_ISSUE_URL; exports.WITH_DEFAULTS = _chunkTZVSWUNQjs.WITH_DEFAULTS; exports.addNormalScript = _chunkPE6EQR6Kjs.addNormalScript; exports.babelParse = _chunkL4FW2OHBjs.babelParse; exports.checkInvalidScopeReference = _chunkL4FW2OHBjs.checkInvalidScopeReference; exports.getLang = _chunkCXUDAWE7js.getLang; exports.getTransformResult = _chunk7LA3R3RZjs.getTransformResult; exports.isCallOf = _chunkL4FW2OHBjs.isCallOf; exports.isLiteralType = _chunkL4FW2OHBjs.isLiteralType; exports.isStaticExpression = _chunkL4FW2OHBjs.isStaticExpression; exports.isTs = _chunkCXUDAWE7js.isTs; exports.parseSFC = _chunkPE6EQR6Kjs.parseSFC; exports.resolveLiteral = _chunkL4FW2OHBjs.resolveLiteral; exports.resolveObjectExpression = _chunkL4FW2OHBjs.resolveObjectExpression; exports.resolveObjectKey = _chunkL4FW2OHBjs.resolveObjectKey; exports.resolveTemplateLiteral = _chunkL4FW2OHBjs.resolveTemplateLiteral; exports.walkAST = _chunkL4FW2OHBjs.walkAST;
{
"name": "@vue-macros/common",
"version": "0.13.1",
"packageManager": "pnpm@7.14.0",
"version": "0.13.2",
"packageManager": "pnpm@7.14.1",
"license": "MIT",

@@ -29,3 +29,3 @@ "homepage": "https://github.com/sxzz/unplugin-vue-macros#readme",

"dependencies": {
"@babel/types": "^7.19.4",
"@babel/types": "^7.20.0",
"@vue/compiler-sfc": "^3.2.41",

@@ -35,3 +35,3 @@ "magic-string": "^0.26.7"

"devDependencies": {
"@babel/parser": "^7.19.6",
"@babel/parser": "^7.20.0",
"estree-walker": "^3.0.1",

@@ -38,0 +38,0 @@ "tsup": "^6.3.0"

Sorry, the diff of this file is not supported yet

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