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

@volar/vue-code-gen

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@volar/vue-code-gen - npm Package Compare versions

Comparing version 0.37.9 to 0.38.0

5

out/generators/script.js

@@ -257,3 +257,3 @@ "use strict";

// fix https://github.com/johnsoncodehk/volar/issues/1187
codeGen.addText(`const __VLS_withDefaultsArg = (function <T>(t: T) { return t })(`);
codeGen.addText(`const __VLS_withDefaultsArg = (function <T>(t: T) { return t })(`);
addExtraReferenceVirtualCode('scriptSetup', scriptSetupRanges.withDefaultsArg.start, scriptSetupRanges.withDefaultsArg.end);

@@ -436,3 +436,4 @@ codeGen.addText(`);\n`);

else {
codeGen.addText(`return {} as typeof __VLS_Component & (new () => { ${getSlotsPropertyName(vueVersion)}: typeof import('./${path.basename(fileName)}.__VLS_template').default });\n`);
codeGen.addText(`const __VLS_slots = (await import('./${path.basename(fileName)}.__VLS_template')).default;\n`);
codeGen.addText(`return {} as typeof __VLS_Component & (new () => { ${getSlotsPropertyName(vueVersion)}: typeof __VLS_slots });\n`);
}

@@ -439,0 +440,0 @@ codeGen.addText(`})();`);

4

out/index.js

@@ -22,3 +22,5 @@ "use strict";

const template_1 = require("./generators/template");
Object.defineProperty(exports, "isIntrinsicElement", { enumerable: true, get: function () { return template_1.isIntrinsicElement; } });
Object.defineProperty(exports, "isIntrinsicElement", { enumerable: true, get: function () { return
// generate as generateTemplateScript,
template_1.isIntrinsicElement; } });
Object.defineProperty(exports, "walkElementNodes", { enumerable: true, get: function () { return template_1.walkElementNodes; } });

@@ -25,0 +27,0 @@ const scriptRanges_1 = require("./parsers/scriptRanges");

{
"name": "@volar/vue-code-gen",
"version": "0.37.9",
"version": "0.38.0",
"main": "out/index.js",

@@ -19,4 +19,4 @@ "license": "MIT",

"dependencies": {
"@volar/code-gen": "0.37.9",
"@volar/source-map": "0.37.9",
"@volar/code-gen": "0.38.0",
"@volar/source-map": "0.38.0",
"@vue/compiler-core": "^3.2.37",

@@ -26,3 +26,3 @@ "@vue/compiler-dom": "^3.2.37",

},
"gitHead": "56098c12f8af63604f4266bac7288a4d44f091ec"
"gitHead": "7d9350e5a6a70657bf1b92e4b420de1357906c0a"
}

Sorry, the diff of this file is too big to display

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