Socket
Socket
Sign inDemoInstall

@vue/language-core

Package Overview
Dependencies
9
Maintainers
0
Versions
73
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.23-alpha.1 to 2.0.24

8

index.d.ts

@@ -1,2 +0,1 @@

import type { VueCompilerOptions } from './lib/types';
export * from './lib/codegen/template';

@@ -15,8 +14,1 @@ export * from './lib/languageModule';

export type * as CompilerDOM from '@vue/compiler-dom';
declare module '@volar/language-core' {
interface Language {
vue?: {
compilerOptions: VueCompilerOptions;
};
}
}

6

lib/plugins/vue-sfc-customblocks.js

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

return sfc.customBlocks.map((customBlock, i) => ({
id: 'customBlock_' + i,
id: 'custom_block_' + i,
lang: customBlock.lang,

@@ -15,4 +15,4 @@ }));

resolveEmbeddedCode(_fileName, sfc, embeddedFile) {
if (embeddedFile.id.startsWith('customBlock_')) {
const index = parseInt(embeddedFile.id.slice('customBlock_'.length));
if (embeddedFile.id.startsWith('custom_block_')) {
const index = parseInt(embeddedFile.id.slice('custom_block_'.length));
const customBlock = sfc.customBlocks[index];

@@ -19,0 +19,0 @@ embeddedFile.content.push([

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

return ast;
;
}

@@ -59,3 +58,2 @@ }

return ast;
;
}

@@ -106,3 +104,3 @@ }

const customBlocks = (0, computeds_1.computedArray)((0, computeds_1.computed)(() => parsed()?.descriptor.customBlocks ?? []), (block, i) => {
const base = computedSfcBlock('customBlock_' + i, 'txt', block);
const base = computedSfcBlock('custom_block_' + i, 'txt', block);
const type = (0, computeds_1.computed)(() => block().type);

@@ -109,0 +107,0 @@ return (0, computeds_1.computed)(() => mergeObject(base, {

{
"name": "@vue/language-core",
"version": "2.0.23-alpha.1",
"version": "2.0.24",
"license": "MIT",

@@ -15,3 +15,3 @@ "files": [

"dependencies": {
"@volar/language-core": "~2.4.0-alpha.0",
"@volar/language-core": "~2.4.0-alpha.2",
"@vue/compiler-dom": "^3.4.0",

@@ -29,3 +29,3 @@ "@vue/shared": "^3.4.0",

"@types/path-browserify": "^1.0.1",
"@volar/typescript": "~2.4.0-alpha.0",
"@volar/typescript": "~2.4.0-alpha.2",
"@vue/compiler-sfc": "^3.4.0"

@@ -41,3 +41,3 @@ },

},
"gitHead": "70cb34e9d58afd603d50cb5b870116b189f4662b"
"gitHead": "bca79db09e413ef29c17b910271c123a7a68806f"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc