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

@volar/shared

Package Overview
Dependencies
Maintainers
1
Versions
231
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@volar/shared - npm Package Compare versions

Comparing version

to
0.26.12

out/http.d.ts

1

out/index.d.ts

@@ -7,2 +7,3 @@ /// <reference types="node" />

export * from './ts';
export * from './http';
import type * as vscode from 'vscode-languageserver';

@@ -9,0 +10,0 @@ import type { TextDocument } from 'vscode-languageserver-textdocument';

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

__exportStar(require("./ts"), exports);
__exportStar(require("./http"), exports);
const util_1 = require("util");

@@ -21,0 +22,0 @@ const validScriptSyntaxs = new Set(['js', 'jsx', 'ts', 'tsx']);

@@ -13,1 +13,2 @@ import type * as ts from 'typescript';

export declare function getTypeScriptVersion(serverPath: string): string | undefined;
export declare function createParsedCommandLine(ts: typeof import('typescript/lib/tsserverlibrary'), parseConfigHost: ts.ParseConfigHost, tsConfig: string): import("typescript/lib/tsserverlibrary").ParsedCommandLine;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTypeScriptVersion = exports.loadTypescriptLocalized = exports.loadTypescript = exports.getVscodeTypescriptLocalizedPath = exports.getVscodeTypescriptPath = exports.findTypescriptLocalizedPathInLib = exports.findTypescriptModulePathInLib = exports.getWorkspaceTypescriptLocalizedPath = exports.getWorkspaceTypescriptPath = exports.createTsLanguageService = void 0;
exports.createParsedCommandLine = exports.getTypeScriptVersion = exports.loadTypescriptLocalized = exports.loadTypescript = exports.getVscodeTypescriptLocalizedPath = exports.getVscodeTypescriptPath = exports.findTypescriptLocalizedPathInLib = exports.findTypescriptModulePathInLib = exports.getWorkspaceTypescriptLocalizedPath = exports.getWorkspaceTypescriptPath = exports.createTsLanguageService = void 0;
const fs = require("fs");
const path = require("upath");
const path_1 = require("./path");
function createTsLanguageService(ts, ShPlugin, _host) {

@@ -133,2 +134,11 @@ var _a, _b;

exports.getTypeScriptVersion = getTypeScriptVersion;
function createParsedCommandLine(ts, parseConfigHost, tsConfig) {
const realTsConfig = ts.sys.realpath(tsConfig);
const config = ts.readJsonConfigFile(realTsConfig, ts.sys.readFile);
const content = ts.parseJsonSourceFileConfigFileContent(config, parseConfigHost, path.dirname(realTsConfig), {}, path.basename(realTsConfig));
content.options.outDir = undefined; // TODO: patching ts server broke with outDir + rootDir + composite/incremental
content.fileNames = content.fileNames.map(path_1.normalizeFileName);
return content;
}
exports.createParsedCommandLine = createParsedCommandLine;
//# sourceMappingURL=ts.js.map

4

package.json
{
"name": "@volar/shared",
"version": "0.26.11",
"version": "0.26.12",
"main": "out/index.js",

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

},
"gitHead": "85f19387725d4a8951626a09e6361ac9d5b67c23"
"gitHead": "2808b53817071af5df2321c5262e823e76e4e3b4"
}