@volar/vue-code-gen
Advanced tools
Comparing version 0.38.4 to 0.38.5
@@ -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" | ||
} |
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
156119
+ Added@volar/code-gen@0.38.5(transitive)
+ Added@volar/source-map@0.38.5(transitive)
- Removed@volar/code-gen@0.38.4(transitive)
- Removed@volar/source-map@0.38.4(transitive)
Updated@volar/code-gen@0.38.5
Updated@volar/source-map@0.38.5