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.38.4 to 0.38.5

6

out/generators/script.js

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

const shared_1 = require("@vue/shared");
const path_1 = require("path");
const path = require("path");
function getSlotsPropertyName(vueVersion) {

@@ -436,3 +436,3 @@ return vueVersion < 3 ? '$scopedSlots' : '$slots';

else {
codeGen.addText(`const __VLS_slots = (await import('./${path_1.posix.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`);

@@ -539,3 +539,3 @@ }

else if (scriptSetup) {
codeGen.addText(`export declare const __VLS_name: '${path_1.posix.basename(fileName.substring(0, fileName.lastIndexOf('.')))}';\n`);
codeGen.addText(`export declare const __VLS_name: '${path.basename(fileName.substring(0, fileName.lastIndexOf('.')))}';\n`);
}

@@ -542,0 +542,0 @@ else {

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

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

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

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

},
"gitHead": "370eb02798030e3abd96427dd3f2b5d621fde4d7"
"gitHead": "537550bae4ac9bcbe021f23dd6a3f7880031a32b"
}
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