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

@vue-macros/setup-block

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue-macros/setup-block - npm Package Compare versions

Comparing version 0.3.10 to 0.4.0

dist/api.cjs

12

dist/api.js

@@ -1,6 +0,6 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunk2HR5V3XQjs = require('./chunk-2HR5V3XQ.js');
exports.transformSetupBlock = _chunk2HR5V3XQjs.transformSetupBlock;
import {
transformSetupBlock
} from "./chunk-2HR5V3XQ.js";
export {
transformSetupBlock
};

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

"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/core/index.ts
var _common = require('@vue-macros/common');
var _compilerdom = require('@vue/compiler-dom');
// src/core/index.ts
import {
generateTransform,
MagicStringAST
} from "@vue-macros/common";
import { parse } from "@vue/compiler-dom";
function transformSetupBlock(code, id, lang) {
const s = new (0, _common.MagicStringAST)(code);
const node = _compilerdom.parse.call(void 0, code, {
const s = new MagicStringAST(code);
const node = parse(code, {
// @ts-ignore TODO remove ignore in 3.4

@@ -47,7 +47,7 @@ parseMode: "sfc",

}
return _common.generateTransform.call(void 0, s, id);
return generateTransform(s, id);
}
exports.transformSetupBlock = transformSetupBlock;
export {
transformSetupBlock
};

@@ -1,17 +0,17 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
import {
transformSetupBlock
} from "./chunk-2HR5V3XQ.js";
var _chunk2HR5V3XQjs = require('./chunk-2HR5V3XQ.js');
// src/index.ts
var _common = require('@vue-macros/common');
var _unplugin = require('unplugin');
import {
createFilter,
detectVueVersion,
REGEX_SETUP_SFC,
REGEX_VUE_SFC
} from "@vue-macros/common";
import { createUnplugin } from "unplugin";
function resolveOptions(options) {
const version = options.version || _common.detectVueVersion.call(void 0, );
const version = options.version || detectVueVersion();
return {
include: [_common.REGEX_VUE_SFC, _common.REGEX_SETUP_SFC],
include: [REGEX_VUE_SFC, REGEX_SETUP_SFC],
defaultLang: "ts",

@@ -23,6 +23,6 @@ ...options,

var name = "unplugin-vue-setup-block";
var plugin = _unplugin.createUnplugin.call(void 0,
var plugin = createUnplugin(
(userOptions = {}) => {
const options = resolveOptions(userOptions);
const filter = _common.createFilter.call(void 0, options);
const filter = createFilter(options);
return {

@@ -35,3 +35,3 @@ name,

transform(code, id) {
return _chunk2HR5V3XQjs.transformSetupBlock.call(void 0, code, id, options.defaultLang);
return transformSetupBlock(code, id, options.defaultLang);
}

@@ -43,4 +43,4 @@ };

exports.src_default = src_default;
export {
src_default
};

@@ -7,2 +7,2 @@ import plugin from './index.js';

export = _default;
export { _default as default };

@@ -1,12 +0,10 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
import {
src_default
} from "./chunk-KZGENURF.js";
import "./chunk-2HR5V3XQ.js";
var _chunkKZGENURFjs = require('./chunk-KZGENURF.js');
require('./chunk-2HR5V3XQ.js');
// src/esbuild.ts
var esbuild_default = _chunkKZGENURFjs.src_default.esbuild;
exports.default = esbuild_default;
module.exports = exports.default;
var esbuild_default = src_default.esbuild;
export {
esbuild_default as default
};

@@ -1,9 +0,7 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkKZGENURFjs = require('./chunk-KZGENURF.js');
require('./chunk-2HR5V3XQ.js');
exports.default = _chunkKZGENURFjs.src_default;
module.exports = exports.default;
import {
src_default
} from "./chunk-KZGENURF.js";
import "./chunk-2HR5V3XQ.js";
export {
src_default as default
};

@@ -7,2 +7,2 @@ import plugin from './index.js';

export = _default;
export { _default as default };

@@ -1,12 +0,10 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
import {
src_default
} from "./chunk-KZGENURF.js";
import "./chunk-2HR5V3XQ.js";
var _chunkKZGENURFjs = require('./chunk-KZGENURF.js');
require('./chunk-2HR5V3XQ.js');
// src/rolldown.ts
var rolldown_default = _chunkKZGENURFjs.src_default.rolldown;
exports.default = rolldown_default;
module.exports = exports.default;
var rolldown_default = src_default.rolldown;
export {
rolldown_default as default
};

@@ -7,2 +7,2 @@ import plugin from './index.js';

export = _default;
export { _default as default };

@@ -1,12 +0,10 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
import {
src_default
} from "./chunk-KZGENURF.js";
import "./chunk-2HR5V3XQ.js";
var _chunkKZGENURFjs = require('./chunk-KZGENURF.js');
require('./chunk-2HR5V3XQ.js');
// src/rollup.ts
var rollup_default = _chunkKZGENURFjs.src_default.rollup;
exports.default = rollup_default;
module.exports = exports.default;
var rollup_default = src_default.rollup;
export {
rollup_default as default
};

@@ -7,2 +7,2 @@ import plugin from './index.js';

export = _default;
export { _default as default };

@@ -1,12 +0,10 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
import {
src_default
} from "./chunk-KZGENURF.js";
import "./chunk-2HR5V3XQ.js";
var _chunkKZGENURFjs = require('./chunk-KZGENURF.js');
require('./chunk-2HR5V3XQ.js');
// src/rspack.ts
var rspack_default = _chunkKZGENURFjs.src_default.rspack;
exports.default = rspack_default;
module.exports = exports.default;
var rspack_default = src_default.rspack;
export {
rspack_default as default
};

@@ -7,2 +7,2 @@ import plugin from './index.js';

export = _default;
export { _default as default };

@@ -1,12 +0,10 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
import {
src_default
} from "./chunk-KZGENURF.js";
import "./chunk-2HR5V3XQ.js";
var _chunkKZGENURFjs = require('./chunk-KZGENURF.js');
require('./chunk-2HR5V3XQ.js');
// src/vite.ts
var vite_default = _chunkKZGENURFjs.src_default.vite;
exports.default = vite_default;
module.exports = exports.default;
var vite_default = src_default.vite;
export {
vite_default as default
};

@@ -7,2 +7,2 @@ import plugin from './index.js';

export = _default;
export { _default as default };

@@ -1,12 +0,10 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
import {
src_default
} from "./chunk-KZGENURF.js";
import "./chunk-2HR5V3XQ.js";
var _chunkKZGENURFjs = require('./chunk-KZGENURF.js');
require('./chunk-2HR5V3XQ.js');
// src/webpack.ts
var webpack_default = _chunkKZGENURFjs.src_default.webpack;
exports.default = webpack_default;
module.exports = exports.default;
var webpack_default = src_default.webpack;
export {
webpack_default as default
};
{
"name": "@vue-macros/setup-block",
"version": "0.3.10",
"version": "0.4.0",
"description": "setup-block feature from Vue Macros.",
"type": "commonjs",
"type": "module",
"keywords": [

@@ -30,37 +30,37 @@ "vue-macros",

],
"main": "dist/index.js",
"module": "dist/index.mjs",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs"
"require": "./dist/index.cjs",
"import": "./dist/index.js"
},
"./api": {
"require": "./dist/api.js",
"import": "./dist/api.mjs"
"require": "./dist/api.cjs",
"import": "./dist/api.js"
},
"./esbuild": {
"require": "./dist/esbuild.js",
"import": "./dist/esbuild.mjs"
"require": "./dist/esbuild.cjs",
"import": "./dist/esbuild.js"
},
"./rolldown": {
"require": "./dist/rolldown.js",
"import": "./dist/rolldown.mjs"
"require": "./dist/rolldown.cjs",
"import": "./dist/rolldown.js"
},
"./rollup": {
"require": "./dist/rollup.js",
"import": "./dist/rollup.mjs"
"require": "./dist/rollup.cjs",
"import": "./dist/rollup.js"
},
"./rspack": {
"require": "./dist/rspack.js",
"import": "./dist/rspack.mjs"
"require": "./dist/rspack.cjs",
"import": "./dist/rspack.js"
},
"./vite": {
"require": "./dist/vite.js",
"import": "./dist/vite.mjs"
"require": "./dist/vite.cjs",
"import": "./dist/vite.js"
},
"./webpack": {
"require": "./dist/webpack.js",
"import": "./dist/webpack.mjs"
"require": "./dist/webpack.cjs",
"import": "./dist/webpack.js"
},

@@ -81,5 +81,5 @@ "./*": "./*"

"dependencies": {
"@vue/compiler-dom": "^3.5.3",
"unplugin": "^1.13.1",
"@vue-macros/common": "1.12.3"
"@vue/compiler-dom": "^3.5.4",
"unplugin": "^1.14.1",
"@vue-macros/common": "1.13.0"
},

@@ -86,0 +86,0 @@ "engines": {

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