@vue-macros/common
Advanced tools
Comparing version 0.11.1 to 0.11.2
import MagicStringBase, { OverwriteOptions } from 'magic-string'; | ||
import { Node, Program, CallExpression, Literal } from '@babel/types'; | ||
import { SFCScriptBlock, SFCDescriptor } from 'vue/compiler-sfc'; | ||
import { SFCScriptBlock, SFCDescriptor } from '@vue/compiler-sfc'; | ||
@@ -5,0 +5,0 @@ declare class MagicString extends MagicStringBase { |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/vue.ts | ||
var _compilersfc = require('vue/compiler-sfc'); | ||
var _compilersfc = require('@vue/compiler-sfc'); | ||
var parseSFC = (code, id) => { | ||
@@ -42,4 +42,4 @@ var _a; | ||
var _path = require('path'); var _path2 = _interopRequireDefault(_path); | ||
var _compilersfc3 = require('@vue/compiler-sfc'); | ||
// src/constants.ts | ||
@@ -67,3 +67,3 @@ var DEFINE_PROPS = "defineProps"; | ||
} | ||
const { program } = _compilersfc3.babelParse.call(void 0, code, { | ||
const { program } = _compilersfc.babelParse.call(void 0, code, { | ||
sourceType: "module", | ||
@@ -80,3 +80,3 @@ plugins | ||
return; | ||
_compilersfc3.walkIdentifiers.call(void 0, node, (id) => { | ||
_compilersfc.walkIdentifiers.call(void 0, node, (id) => { | ||
if (setupBindings.includes(id.name)) | ||
@@ -83,0 +83,0 @@ throw new SyntaxError( |
{ | ||
"name": "@vue-macros/common", | ||
"version": "0.11.1", | ||
"packageManager": "pnpm@7.9.5", | ||
"version": "0.11.2", | ||
"packageManager": "pnpm@7.10.0", | ||
"license": "MIT", | ||
@@ -28,5 +28,2 @@ "homepage": "https://github.com/sxzz/unplugin-vue-macros#readme", | ||
}, | ||
"peerDependencies": { | ||
"vue": "^2.7.0 || ^3.2.25" | ||
}, | ||
"dependencies": { | ||
@@ -39,4 +36,3 @@ "@babel/types": "^7.18.13", | ||
"@babel/parser": "^7.18.13", | ||
"tsup": "^6.2.3", | ||
"vue": "^3.2.38" | ||
"tsup": "^6.2.3" | ||
}, | ||
@@ -43,0 +39,0 @@ "engines": { |
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
3
2
14781
363