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.1.3 to 1.1.4

30

out/generators/script.js

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

src = src + '.js';
codeGen.push(`export * from '${src}';\n`);
codeGen.push(`export * from `);
codeGen.push([
`'${src}'`,
'script',
[sfc.script.srcOffset - 1, sfc.script.srcOffset + sfc.script.src.length + 1],
Object.assign(Object.assign({}, language_core_1.FileRangeCapabilities.full), { rename: src === sfc.script.src ? true : {
normalize: undefined,
apply(newName) {
var _a, _b, _c, _d, _e, _f;
if (newName.endsWith('.jsx')
|| newName.endsWith('.js')) {
newName = newName.split('.').slice(0, -1).join('.');
}
if ((_b = (_a = sfc.script) === null || _a === void 0 ? void 0 : _a.src) === null || _b === void 0 ? void 0 : _b.endsWith('.d.ts')) {
newName = newName + '.d.ts';
}
else if ((_d = (_c = sfc.script) === null || _c === void 0 ? void 0 : _c.src) === null || _d === void 0 ? void 0 : _d.endsWith('.ts')) {
newName = newName + '.ts';
}
else if ((_f = (_e = sfc.script) === null || _e === void 0 ? void 0 : _e.src) === null || _f === void 0 ? void 0 : _f.endsWith('.tsx')) {
newName = newName + '.tsx';
}
return newName;
},
} }),
]);
codeGen.push(`;\n`);
codeGen.push(`export { default } from '${src}';\n`);

@@ -673,3 +699,3 @@ }

if (tag.indexOf('.') >= 0) {
usageVars.add(tag);
usageVars.add(tag.split('.')[0]);
}

@@ -676,0 +702,0 @@ }

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

src: block.src,
srcOffset: block.src ? this.snapshot.getText(0, block.loc.start.offset).lastIndexOf(block.src) - block.loc.start.offset : -1,
} : null;

@@ -374,0 +375,0 @@ if (this.sfc.script && newData) {

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

src: string | undefined;
srcOffset: number;
}) | null;

@@ -77,0 +78,0 @@ scriptSetup: SfcBlock & {

10

out/utils/localTypes.js

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

export type SelfComponent<N, C> = string extends N ? {} : N extends string ? { [P in N]: C } : {};
export type GetComponents<Components, N1, N2 = unknown, N3 = unknown> =
N1 extends keyof Components ? Components[N1] :
N2 extends keyof Components ? Components[N2] :
N3 extends keyof Components ? Components[N3] :
${vueCompilerOptions.strictTemplates ? 'unknown' : 'any'};
export type WithComponent<N0, Components, N1, N2 = unknown, N3 = unknown> =
N1 extends keyof Components ? { [K in N0]: Components[N1] } :
N2 extends keyof Components ? { [K in N0]: Components[N2] } :
N3 extends keyof Components ? { [K in N0]: Components[N3] } :
${vueCompilerOptions.strictTemplates ? '{}' : '{ [K in N0]: any }'};
export type ComponentProps<T> =

@@ -108,0 +108,0 @@ ${vueCompilerOptions.strictTemplates ? '' : 'Record<string, unknown> &'}

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

},
checked: {
input: [
{ type: 'checkbox' },
{ type: 'radio' }
]
},
value: {

@@ -117,0 +111,0 @@ input: { type: 'text' },

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

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

"dependencies": {
"@volar/language-core": "1.2.0-alpha.14",
"@volar/source-map": "1.2.0-alpha.14",
"@volar/language-core": "1.2.0-alpha.16",
"@volar/source-map": "1.2.0-alpha.16",
"@vue/compiler-dom": "^3.2.47",

@@ -30,3 +30,3 @@ "@vue/compiler-sfc": "^3.2.47",

},
"gitHead": "48e1d519aa164890c5882f0cf9e2c5dc033f1d89"
"gitHead": "778bd95f360551d30fb2be76ca8ed6a4a40e26fb"
}

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