New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vuedx/transforms

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vuedx/transforms - npm Package Compare versions

Comparing version 0.7.5-next-1649663515.0 to 0.7.5-next-1650753481.0

24

lib/index.js

@@ -15,17 +15,15 @@ 'use strict';

if (e && e.__esModule) return e;
var n = Object.create(null);
const n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
for (const k in e) {
if (k !== 'default') {
var d = Object.getOwnPropertyDescriptor(e, k);
const d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(n, k, d.get ? d : {
enumerable: true,
get: function () {
return e[k];
}
get: function () { return e[k]; }
});
}
});
}
}
n['default'] = e;
n["default"] = e;
return Object.freeze(n);

@@ -75,3 +73,3 @@ }

.filter((node) => node !== false && T__namespace.isStatement(node)));
const result = generator__default['default'](statement, {
const result = generator__default["default"](statement, {
comments: true,

@@ -86,3 +84,3 @@ ...options,

const code = result.code;
const magic = new MagicString__default['default'](code, {
const magic = new MagicString__default["default"](code, {
filename: options.sourceFileName,

@@ -164,3 +162,3 @@ });

function createDeclarationForScriptSetup() {
const createExpr = template__default['default'](`const ${config.exportName} = ${config.defineComponent}(
const createExpr = template__default["default"](`const ${config.exportName} = ${config.defineComponent}(
%%props%%,

@@ -181,3 +179,3 @@ %%emits%%,

function createDeclarationForScript() {
const createExpr = template__default['default'](`const ${config.exportName} = ${config.defineComponent}(%%options%%)`);
const createExpr = template__default["default"](`const ${config.exportName} = ${config.defineComponent}(%%options%%)`);
const options = findComponentOptions(ast);

@@ -370,3 +368,3 @@ return createExpr({

};
const createExpr = template__default['default'](`const ${config.exportName} = %%value%%;`);
const createExpr = template__default["default"](`const ${config.exportName} = %%value%%;`);
const declaration = createExpr({

@@ -373,0 +371,0 @@ value: getExpressionOrReference(findTargetExpression(), config),

{
"name": "@vuedx/transforms",
"version": "0.7.5-next-1649663515.0",
"version": "0.7.5-next-1650753481.0",
"description": "AST Transforms",

@@ -37,4 +37,4 @@ "main": "lib/index.js",

"devDependencies": {
"typescript": "^4.0.3"
"typescript": "^4.6.3"
}
}

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