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

@volar/vue-language-core

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@volar/vue-language-core - npm Package Compare versions

Comparing version 1.0.13 to 1.0.14

5

out/plugins/vue-template-html.js

@@ -59,2 +59,5 @@ const plugin = ({ modules }) => {

else if (node.type === 7 /* CompilerDOM.NodeTypes.DIRECTIVE */) {
if (node.arg && withinChangeRange(node.arg.loc) && node.name === 'slot') {
return false;
}
if (node.arg && !tryUpdateNode(node.arg)) {

@@ -116,3 +119,3 @@ return false;

else if (node.type === 4 /* CompilerDOM.NodeTypes.SIMPLE_EXPRESSION */) {
if (withinChangeRange(node.loc) && node.isStatic) { // slot name
if (withinChangeRange(node.loc) && node.isStatic) { // TODO: review this (slot name?)
return false;

@@ -119,0 +122,0 @@ }

@@ -100,2 +100,15 @@ Object.defineProperty(exports, "__esModule", { value: true });

}
for (const cssVar of cssVars.value) {
embeddedFile.content.push('\n\n');
for (const range of cssVar.ranges) {
embeddedFile.content.push('(');
embeddedFile.content.push([
cssVar.style.content.substring(range.start, range.end),
cssVar.style.name,
range.start,
{},
]);
embeddedFile.content.push(');\n');
}
}
}

@@ -102,0 +115,0 @@ else if (suffix.match(/^\.__VLS_template_style\.css$/)) {

3

out/sourceFile.d.ts

@@ -56,2 +56,5 @@ import { DocumentCapabilities, EmbeddedFile, EmbeddedFileKind, PositionCapabilities, SourceFile, TeleportMappingData } from '@volar/language-core';

sfcBlocks: ComputedRef<Record<string, SfcBlock>>;
get kind(): EmbeddedFileKind;
get capabilities(): DocumentCapabilities;
get mappings(): Mapping<PositionCapabilities>[];
get text(): string;

@@ -58,0 +61,0 @@ get compiledSFCTemplate(): {

@@ -138,2 +138,30 @@ Object.defineProperty(exports, "__esModule", { value: true });

}
get kind() {
return language_core_1.EmbeddedFileKind.TextFile;
}
get capabilities() {
return {
diagnostic: true,
foldingRange: true,
documentFormatting: true,
documentSymbol: true,
codeAction: true,
inlayHint: true,
};
}
get mappings() {
return [{
sourceRange: [0, this._snapshot.value.getLength()],
generatedRange: [0, this._snapshot.value.getLength()],
data: {
hover: true,
references: true,
definition: true,
rename: true,
completion: true,
diagnostic: true,
semanticTokens: true,
},
}];
}
get text() {

@@ -140,0 +168,0 @@ return this._snapshot.value.getText(0, this._snapshot.value.getLength());

@@ -22,2 +22,3 @@ import * as embedded from '@volar/language-core';

plugins: string[];
hooks: string[];
narrowingTypesInInlineHandlers: boolean;

@@ -24,0 +25,0 @@ experimentalResolveStyleCssClasses: 'scoped' | 'always' | 'never';

@@ -56,3 +56,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

else {
cb('__VLS_ctx.', undefined);
cb('(__VLS_ctx).', undefined);
if (ctxVars[i + 1].isShorthand) {

@@ -81,3 +81,3 @@ cb(code.substring(ctxVars[i].offset, ctxVars[i + 1].offset + ctxVars[i + 1].text.length), ctxVars[i].offset);

cb('', ctxVars[ctxVars.length - 1].offset, true);
cb('__VLS_ctx.', undefined);
cb('(__VLS_ctx).', undefined);
cb(code.substring(ctxVars[ctxVars.length - 1].offset), ctxVars[ctxVars.length - 1].offset);

@@ -84,0 +84,0 @@ }

@@ -70,3 +70,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

function resolveVueCompilerOptions(vueOptions) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
const target = (_a = vueOptions.target) !== null && _a !== void 0 ? _a : 3;

@@ -82,8 +82,8 @@ return Object.assign(Object.assign({}, vueOptions), { target, extensions: (_b = vueOptions.extensions) !== null && _b !== void 0 ? _b : ['.vue'], jsxTemplates: (_c = vueOptions.jsxTemplates) !== null && _c !== void 0 ? _c : false, strictTemplates: (_d = vueOptions.strictTemplates) !== null && _d !== void 0 ? _d : false, skipTemplateCodegen: (_e = vueOptions.skipTemplateCodegen) !== null && _e !== void 0 ? _e : false, nativeTags: (_f = vueOptions.nativeTags) !== null && _f !== void 0 ? _f : [...new Set([

? [`(await import('vue')).defineComponent(`, `)`]
: [`(await import('vue')).default.extend(`, `)`]), narrowingTypesInInlineHandlers: (_k = vueOptions.narrowingTypesInInlineHandlers) !== null && _k !== void 0 ? _k : false, plugins: (_l = vueOptions.plugins) !== null && _l !== void 0 ? _l : [],
: [`(await import('vue')).default.extend(`, `)`]), narrowingTypesInInlineHandlers: (_k = vueOptions.narrowingTypesInInlineHandlers) !== null && _k !== void 0 ? _k : false, plugins: (_l = vueOptions.plugins) !== null && _l !== void 0 ? _l : [], hooks: (_m = vueOptions.hooks) !== null && _m !== void 0 ? _m : [],
// experimental
experimentalResolveStyleCssClasses: (_m = vueOptions.experimentalResolveStyleCssClasses) !== null && _m !== void 0 ? _m : 'scoped', experimentalRfc436: (_o = vueOptions.experimentalRfc436) !== null && _o !== void 0 ? _o : false,
experimentalResolveStyleCssClasses: (_o = vueOptions.experimentalResolveStyleCssClasses) !== null && _o !== void 0 ? _o : 'scoped', experimentalRfc436: (_p = vueOptions.experimentalRfc436) !== null && _p !== void 0 ? _p : false,
// https://github.com/vuejs/vue-next/blob/master/packages/compiler-dom/src/transforms/vModel.ts#L49-L51
// https://v3.vuejs.org/guide/forms.html#basic-usage
experimentalModelPropName: (_p = vueOptions.experimentalModelPropName) !== null && _p !== void 0 ? _p : {
experimentalModelPropName: (_q = vueOptions.experimentalModelPropName) !== null && _q !== void 0 ? _q : {
'': {

@@ -100,5 +100,5 @@ 'input': { type: 'radio' },

},
}, experimentalUseElementAccessInTemplate: (_q = vueOptions.experimentalUseElementAccessInTemplate) !== null && _q !== void 0 ? _q : false });
}, experimentalUseElementAccessInTemplate: (_r = vueOptions.experimentalUseElementAccessInTemplate) !== null && _r !== void 0 ? _r : false });
}
exports.resolveVueCompilerOptions = resolveVueCompilerOptions;
//# sourceMappingURL=ts.js.map
{
"name": "@volar/vue-language-core",
"version": "1.0.13",
"version": "1.0.14",
"main": "out/index.js",

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

"dependencies": {
"@volar/language-core": "1.0.13",
"@volar/source-map": "1.0.13",
"@volar/language-core": "1.0.14",
"@volar/source-map": "1.0.14",
"@vue/compiler-dom": "^3.2.45",

@@ -29,3 +29,3 @@ "@vue/compiler-sfc": "^3.2.45",

},
"gitHead": "cba2eba187b2d82e1d45dd86b3edeab0ca7caad6"
"gitHead": "ce4d48b37db784400e15fe08282edc836e24d4cd"
}

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