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.0.19 to 1.0.20

4

out/languageModule.d.ts
import type * as embedded from '@volar/language-core';
import { VueLanguagePlugin, VueCompilerOptions } from './types';
import { VueCompilerOptions } from './types';
import type * as ts from 'typescript/lib/tsserverlibrary';
export declare function createLanguageModules(ts: typeof import('typescript/lib/tsserverlibrary'), rootDir: string, compilerOptions: ts.CompilerOptions, _vueCompilerOptions: VueCompilerOptions, extraPlugins?: VueLanguagePlugin[]): embedded.LanguageModule[];
export declare function createLanguageModules(ts: typeof import('typescript/lib/tsserverlibrary'), compilerOptions: ts.CompilerOptions, _vueCompilerOptions: VueCompilerOptions): embedded.LanguageModule[];

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

const ts_1 = require("./utils/ts");
function createLanguageModules(ts, rootDir, compilerOptions, _vueCompilerOptions, extraPlugins = []) {
function createLanguageModules(ts, compilerOptions, _vueCompilerOptions) {
var _a, _b;
const vueCompilerOptions = (0, ts_1.resolveVueCompilerOptions)(_vueCompilerOptions);
const vueLanguagePlugin = (0, plugins_1.getDefaultVueLanguagePlugins)(ts, rootDir, compilerOptions, _vueCompilerOptions, extraPlugins);
const vueLanguagePlugin = (0, plugins_1.getDefaultVueLanguagePlugins)(ts, compilerOptions, _vueCompilerOptions);
// from https://github.com/johnsoncodehk/volar/pull/1543

@@ -14,0 +14,0 @@ if (!(ts.__VLS_pitched_resolveModuleNames)) {

import type * as ts from 'typescript/lib/tsserverlibrary';
import { VueLanguagePlugin } from './types';
import { VueCompilerOptions } from './types';
import * as CompilerDOM from '@vue/compiler-dom';
export declare function getDefaultVueLanguagePlugins(ts: typeof import('typescript/lib/tsserverlibrary'), rootDir: string, compilerOptions: ts.CompilerOptions, _vueCompilerOptions: VueCompilerOptions, extraPlugins?: VueLanguagePlugin[]): {
export declare function getDefaultVueLanguagePlugins(ts: typeof import('typescript/lib/tsserverlibrary'), compilerOptions: ts.CompilerOptions, _vueCompilerOptions: VueCompilerOptions): {
name?: string | undefined;

@@ -7,0 +6,0 @@ version: 1;

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

const CompilerVue2 = require("./utils/vue2TemplateCompiler");
function getDefaultVueLanguagePlugins(ts, rootDir, compilerOptions, _vueCompilerOptions, extraPlugins = []) {
function getDefaultVueLanguagePlugins(ts, compilerOptions, _vueCompilerOptions) {
const _plugins = [

@@ -27,3 +27,2 @@ useVueFilePlugin,

vue_tsx_1.default,
...extraPlugins,
];

@@ -35,3 +34,3 @@ const pluginPaths = new Map();

try {
const importPath = require.resolve(pluginPath, { paths: [rootDir] });
const importPath = require.resolve(pluginPath);
const plugin = require(importPath);

@@ -38,0 +37,0 @@ pluginPaths.set(_plugins.length, pluginPath);

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

export type { SFCParseResult } from '@vue/compiler-sfc';
export type LanguageServiceHost = embedded.LanguageServiceHost & {
export type VueLanguageServiceHost = embedded.LanguageServiceHost & {
getVueCompilationSettings(): VueCompilerOptions;

@@ -10,0 +10,0 @@ };

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

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

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

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

},
"gitHead": "02267fe83a5567b1cae7025e834cf084c8248546"
"gitHead": "e00f068e812677791c93efe9cf20995764350ec6"
}

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