Huge News!Announcing our $40M Series B led by Abstract Ventures.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.5.4 to 1.6.0

25

out/generators/script.js

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

};
codes.push('/** __vue_virtual_code_placeholder */\n');
codes.push('/* __vue_virtual_code_placeholder__ */\n');
let generatedTemplate = false;

@@ -186,6 +186,25 @@ generateSrc();

}
if (isExportRawObject && vueCompilerOptions.optionsWrapper.length && scriptRanges?.exportDefault) {
if (isExportRawObject && vueCompilerOptions.optionsWrapper.length === 2 && scriptRanges?.exportDefault) {
addVirtualCode('script', 0, scriptRanges.exportDefault.expression.start);
codes.push(vueCompilerOptions.optionsWrapper[0]);
addVirtualCode('script', scriptRanges.exportDefault.expression.start, scriptRanges.exportDefault.expression.end);
{
codes.push(['', 'script', scriptRanges.exportDefault.expression.start, {
__hint: {
setting: 'vue.inlayHints.optionsWrapper',
label: vueCompilerOptions.optionsWrapper[0],
tooltip: [
'This is virtual code that is automatically wrapped for type support, it does not affect your runtime behavior, you can customize it via `vueCompilerOptions.optionsWrapper` option in tsconfig / jsconfig.',
'To hide it, you can set `"vue.inlayHints.optionsWrapper": false` in IDE settings.',
].join('\n\n'),
}
}]);
addVirtualCode('script', scriptRanges.exportDefault.expression.start, scriptRanges.exportDefault.expression.end);
codes.push(['', 'script', scriptRanges.exportDefault.expression.end, {
__hint: {
setting: 'vue.inlayHints.optionsWrapper',
label: vueCompilerOptions.optionsWrapper[1],
tooltip: '',
}
}]);
}
codes.push(vueCompilerOptions.optionsWrapper[1]);

@@ -192,0 +211,0 @@ addVirtualCode('script', scriptRanges.exportDefault.expression.end, sfc.script.content.length);

@@ -12,3 +12,14 @@ "use strict";

all: language_core_1.FileRangeCapabilities.full,
allWithHiddenParam: { ...language_core_1.FileRangeCapabilities.full, __hiddenParam: true /* TODO */ },
allWithHiddenParam: {
...language_core_1.FileRangeCapabilities.full, __hint: {
setting: 'vue.inlayHints.inlineHandlerLeading',
label: '$event =>',
tooltip: [
'`$event` is a hidden parameter, you can use it in this callback.',
'To hide this hint, set `vue.inlayHints.inlineHandlerLeading` to `false` in IDE settings.',
'[More info](https://github.com/vuejs/language-tools/issues/2445#issuecomment-1444771420)',
].join('\n\n'),
paddingRight: true,
} /* TODO */
},
noDiagnostic: { ...language_core_1.FileRangeCapabilities.full, diagnostic: false },

@@ -491,3 +502,3 @@ diagnosticOnly: { diagnostic: true },

? createPropertyAccessCode([
slotDir.arg.loc.source.split('.')[0],
slotDir.arg.loc.source,
'template',

@@ -494,0 +505,0 @@ slotDir.arg.loc.start.offset,

3

out/utils/localTypes.js

@@ -14,2 +14,3 @@ "use strict";

FunctionDirective,
VNode,
} from '${libName}';

@@ -97,3 +98,3 @@

: T extends (...args: any) => any ? T
: (_: T & Record<string, unknown>, ctx?: any) => { __ctx?: { attrs?: unknown, expose?: unknown, slots?: unknown, emit?: unknown, props?: T & Record<string, unknown> } }; // IntrinsicElement
: (_: T extends import('vue').VNode ? {}: T & Record<string, unknown>, ctx?: any) => { __ctx?: { attrs?: unknown, expose?: unknown, slots?: unknown, emit?: unknown, props?: T & Record<string, unknown> } }; // IntrinsicElement
declare function functionalComponentArgsRest<T extends (...args: any) => any>(t: T): Parameters<T>['length'] extends 2 ? [any] : [];

@@ -100,0 +101,0 @@ export declare function pickEvent<Emit, K, E>(emit: Emit, emitKey: K, event: E): FillingEventArg<

{
"name": "@volar/vue-language-core",
"version": "1.5.4",
"version": "1.6.0",
"main": "out/index.js",

@@ -29,3 +29,3 @@ "license": "MIT",

},
"gitHead": "efa9b71f8bed110f8a7723942f86df2b7bcb1764"
"gitHead": "34b578e2c0fc23645b2f60e9206d91c1bd3833d0"
}
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