typescript 4.9.0-dev.20221006 → 4.9.0-dev.20221007
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/tsc.js +1 -1
- package/lib/tsserver.js +15 -10
- package/lib/tsserverlibrary.d.ts +0 -1
- package/lib/tsserverlibrary.js +15 -10
- package/lib/typescript.js +1 -1
- package/lib/typescriptServices.js +1 -1
- package/lib/typingsInstaller.js +1 -1
- package/package.json +1 -1
package/lib/tsc.js
CHANGED
|
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
69
69
|
var ts;
|
|
70
70
|
(function (ts) {
|
|
71
71
|
ts.versionMajorMinor = "4.9";
|
|
72
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
72
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221007");
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
package/lib/tsserver.js
CHANGED
|
@@ -109,7 +109,7 @@ var ts;
|
|
|
109
109
|
// The following is baselined as a literal template type without intervention
|
|
110
110
|
/** The version of the TypeScript compiler release */
|
|
111
111
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
112
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
112
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221007");
|
|
113
113
|
/* @internal */
|
|
114
114
|
var Comparison;
|
|
115
115
|
(function (Comparison) {
|
|
@@ -173044,6 +173044,7 @@ var ts;
|
|
|
173044
173044
|
this.watchOptions = watchOptions;
|
|
173045
173045
|
this.rootFiles = [];
|
|
173046
173046
|
this.rootFilesMap = new ts.Map();
|
|
173047
|
+
/*@internal*/
|
|
173047
173048
|
this.plugins = [];
|
|
173048
173049
|
/*@internal*/
|
|
173049
173050
|
/**
|
|
@@ -173572,6 +173573,7 @@ var ts;
|
|
|
173572
173573
|
this.directoryStructureHost = undefined;
|
|
173573
173574
|
this.exportMapCache = undefined;
|
|
173574
173575
|
this.projectErrors = undefined;
|
|
173576
|
+
this.plugins.length = 0;
|
|
173575
173577
|
// Clean up file watchers waiting for missing files
|
|
173576
173578
|
if (this.missingFilesMap) {
|
|
173577
173579
|
ts.clearMap(this.missingFilesMap, ts.closeFileWatcher);
|
|
@@ -174245,6 +174247,14 @@ var ts;
|
|
|
174245
174247
|
Project.prototype.isSourceOfProjectReferenceRedirect = function (fileName) {
|
|
174246
174248
|
return !!this.program && this.program.isSourceOfProjectReferenceRedirect(fileName);
|
|
174247
174249
|
};
|
|
174250
|
+
/*@internal*/
|
|
174251
|
+
Project.prototype.getGlobalPluginSearchPaths = function () {
|
|
174252
|
+
// Search any globally-specified probe paths, then our peer node_modules
|
|
174253
|
+
return __spreadArray(__spreadArray([], this.projectService.pluginProbeLocations, true), [
|
|
174254
|
+
// ../../.. to walk from X/node_modules/typescript/lib/tsserver.js to X/node_modules/
|
|
174255
|
+
ts.combinePaths(this.projectService.getExecutingFilePath(), "../../.."),
|
|
174256
|
+
], false);
|
|
174257
|
+
};
|
|
174248
174258
|
Project.prototype.enableGlobalPlugins = function (options, pluginConfigOverrides) {
|
|
174249
174259
|
if (!this.projectService.globalPlugins.length)
|
|
174250
174260
|
return;
|
|
@@ -174253,11 +174263,8 @@ var ts;
|
|
|
174253
174263
|
this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");
|
|
174254
174264
|
return;
|
|
174255
174265
|
}
|
|
174256
|
-
//
|
|
174257
|
-
var searchPaths =
|
|
174258
|
-
// ../../.. to walk from X/node_modules/typescript/lib/tsserver.js to X/node_modules/
|
|
174259
|
-
ts.combinePaths(this.projectService.getExecutingFilePath(), "../../.."),
|
|
174260
|
-
], false);
|
|
174266
|
+
// Enable global plugins with synthetic configuration entries
|
|
174267
|
+
var searchPaths = this.getGlobalPluginSearchPaths();
|
|
174261
174268
|
var _loop_1 = function (globalPluginName) {
|
|
174262
174269
|
// Skip empty names from odd commandline parses
|
|
174263
174270
|
if (!globalPluginName)
|
|
@@ -174270,7 +174277,6 @@ var ts;
|
|
|
174270
174277
|
this_1.enablePlugin({ name: globalPluginName, global: true }, searchPaths, pluginConfigOverrides);
|
|
174271
174278
|
};
|
|
174272
174279
|
var this_1 = this;
|
|
174273
|
-
// Enable global plugins with synthetic configuration entries
|
|
174274
174280
|
for (var _i = 0, _a = this.projectService.globalPlugins; _i < _a.length; _i++) {
|
|
174275
174281
|
var globalPluginName = _a[_i];
|
|
174276
174282
|
_loop_1(globalPluginName);
|
|
@@ -175005,6 +175011,7 @@ var ts;
|
|
|
175005
175011
|
/*@internal*/
|
|
175006
175012
|
ConfiguredProject.prototype.enablePluginsWithOptions = function (options, pluginConfigOverrides) {
|
|
175007
175013
|
var _a;
|
|
175014
|
+
this.plugins.length = 0;
|
|
175008
175015
|
if (!((_a = options.plugins) === null || _a === void 0 ? void 0 : _a.length) && !this.projectService.globalPlugins.length)
|
|
175009
175016
|
return;
|
|
175010
175017
|
var host = this.projectService.host;
|
|
@@ -175012,9 +175019,7 @@ var ts;
|
|
|
175012
175019
|
this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");
|
|
175013
175020
|
return;
|
|
175014
175021
|
}
|
|
175015
|
-
|
|
175016
|
-
// ../../.. to walk from X/node_modules/typescript/lib/tsserver.js to X/node_modules/
|
|
175017
|
-
var searchPaths = __spreadArray([ts.combinePaths(this.projectService.getExecutingFilePath(), "../../..")], this.projectService.pluginProbeLocations, true);
|
|
175022
|
+
var searchPaths = this.getGlobalPluginSearchPaths();
|
|
175018
175023
|
if (this.projectService.allowLocalPluginLoads) {
|
|
175019
175024
|
var local = ts.getDirectoryPath(this.canonicalConfigFilePath);
|
|
175020
175025
|
this.projectService.logger.info("Local plugin loading enabled; adding ".concat(local, " to search paths"));
|
package/lib/tsserverlibrary.d.ts
CHANGED
|
@@ -10084,7 +10084,6 @@ declare namespace ts.server {
|
|
|
10084
10084
|
private externalFiles;
|
|
10085
10085
|
private missingFilesMap;
|
|
10086
10086
|
private generatedFilesMap;
|
|
10087
|
-
private plugins;
|
|
10088
10087
|
protected languageService: LanguageService;
|
|
10089
10088
|
languageServiceEnabled: boolean;
|
|
10090
10089
|
readonly trace?: (s: string) => void;
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -108,7 +108,7 @@ var ts;
|
|
|
108
108
|
// The following is baselined as a literal template type without intervention
|
|
109
109
|
/** The version of the TypeScript compiler release */
|
|
110
110
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
111
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
111
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221007");
|
|
112
112
|
/* @internal */
|
|
113
113
|
var Comparison;
|
|
114
114
|
(function (Comparison) {
|
|
@@ -173043,6 +173043,7 @@ var ts;
|
|
|
173043
173043
|
this.watchOptions = watchOptions;
|
|
173044
173044
|
this.rootFiles = [];
|
|
173045
173045
|
this.rootFilesMap = new ts.Map();
|
|
173046
|
+
/*@internal*/
|
|
173046
173047
|
this.plugins = [];
|
|
173047
173048
|
/*@internal*/
|
|
173048
173049
|
/**
|
|
@@ -173571,6 +173572,7 @@ var ts;
|
|
|
173571
173572
|
this.directoryStructureHost = undefined;
|
|
173572
173573
|
this.exportMapCache = undefined;
|
|
173573
173574
|
this.projectErrors = undefined;
|
|
173575
|
+
this.plugins.length = 0;
|
|
173574
173576
|
// Clean up file watchers waiting for missing files
|
|
173575
173577
|
if (this.missingFilesMap) {
|
|
173576
173578
|
ts.clearMap(this.missingFilesMap, ts.closeFileWatcher);
|
|
@@ -174244,6 +174246,14 @@ var ts;
|
|
|
174244
174246
|
Project.prototype.isSourceOfProjectReferenceRedirect = function (fileName) {
|
|
174245
174247
|
return !!this.program && this.program.isSourceOfProjectReferenceRedirect(fileName);
|
|
174246
174248
|
};
|
|
174249
|
+
/*@internal*/
|
|
174250
|
+
Project.prototype.getGlobalPluginSearchPaths = function () {
|
|
174251
|
+
// Search any globally-specified probe paths, then our peer node_modules
|
|
174252
|
+
return __spreadArray(__spreadArray([], this.projectService.pluginProbeLocations, true), [
|
|
174253
|
+
// ../../.. to walk from X/node_modules/typescript/lib/tsserver.js to X/node_modules/
|
|
174254
|
+
ts.combinePaths(this.projectService.getExecutingFilePath(), "../../.."),
|
|
174255
|
+
], false);
|
|
174256
|
+
};
|
|
174247
174257
|
Project.prototype.enableGlobalPlugins = function (options, pluginConfigOverrides) {
|
|
174248
174258
|
if (!this.projectService.globalPlugins.length)
|
|
174249
174259
|
return;
|
|
@@ -174252,11 +174262,8 @@ var ts;
|
|
|
174252
174262
|
this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");
|
|
174253
174263
|
return;
|
|
174254
174264
|
}
|
|
174255
|
-
//
|
|
174256
|
-
var searchPaths =
|
|
174257
|
-
// ../../.. to walk from X/node_modules/typescript/lib/tsserver.js to X/node_modules/
|
|
174258
|
-
ts.combinePaths(this.projectService.getExecutingFilePath(), "../../.."),
|
|
174259
|
-
], false);
|
|
174265
|
+
// Enable global plugins with synthetic configuration entries
|
|
174266
|
+
var searchPaths = this.getGlobalPluginSearchPaths();
|
|
174260
174267
|
var _loop_1 = function (globalPluginName) {
|
|
174261
174268
|
// Skip empty names from odd commandline parses
|
|
174262
174269
|
if (!globalPluginName)
|
|
@@ -174269,7 +174276,6 @@ var ts;
|
|
|
174269
174276
|
this_1.enablePlugin({ name: globalPluginName, global: true }, searchPaths, pluginConfigOverrides);
|
|
174270
174277
|
};
|
|
174271
174278
|
var this_1 = this;
|
|
174272
|
-
// Enable global plugins with synthetic configuration entries
|
|
174273
174279
|
for (var _i = 0, _a = this.projectService.globalPlugins; _i < _a.length; _i++) {
|
|
174274
174280
|
var globalPluginName = _a[_i];
|
|
174275
174281
|
_loop_1(globalPluginName);
|
|
@@ -175004,6 +175010,7 @@ var ts;
|
|
|
175004
175010
|
/*@internal*/
|
|
175005
175011
|
ConfiguredProject.prototype.enablePluginsWithOptions = function (options, pluginConfigOverrides) {
|
|
175006
175012
|
var _a;
|
|
175013
|
+
this.plugins.length = 0;
|
|
175007
175014
|
if (!((_a = options.plugins) === null || _a === void 0 ? void 0 : _a.length) && !this.projectService.globalPlugins.length)
|
|
175008
175015
|
return;
|
|
175009
175016
|
var host = this.projectService.host;
|
|
@@ -175011,9 +175018,7 @@ var ts;
|
|
|
175011
175018
|
this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");
|
|
175012
175019
|
return;
|
|
175013
175020
|
}
|
|
175014
|
-
|
|
175015
|
-
// ../../.. to walk from X/node_modules/typescript/lib/tsserver.js to X/node_modules/
|
|
175016
|
-
var searchPaths = __spreadArray([ts.combinePaths(this.projectService.getExecutingFilePath(), "../../..")], this.projectService.pluginProbeLocations, true);
|
|
175021
|
+
var searchPaths = this.getGlobalPluginSearchPaths();
|
|
175017
175022
|
if (this.projectService.allowLocalPluginLoads) {
|
|
175018
175023
|
var local = ts.getDirectoryPath(this.canonicalConfigFilePath);
|
|
175019
175024
|
this.projectService.logger.info("Local plugin loading enabled; adding ".concat(local, " to search paths"));
|
package/lib/typescript.js
CHANGED
|
@@ -99,7 +99,7 @@ var ts;
|
|
|
99
99
|
// The following is baselined as a literal template type without intervention
|
|
100
100
|
/** The version of the TypeScript compiler release */
|
|
101
101
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
102
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
102
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221007");
|
|
103
103
|
/* @internal */
|
|
104
104
|
var Comparison;
|
|
105
105
|
(function (Comparison) {
|
|
@@ -99,7 +99,7 @@ var ts;
|
|
|
99
99
|
// The following is baselined as a literal template type without intervention
|
|
100
100
|
/** The version of the TypeScript compiler release */
|
|
101
101
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
102
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
102
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221007");
|
|
103
103
|
/* @internal */
|
|
104
104
|
var Comparison;
|
|
105
105
|
(function (Comparison) {
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -89,7 +89,7 @@ var ts;
|
|
|
89
89
|
// The following is baselined as a literal template type without intervention
|
|
90
90
|
/** The version of the TypeScript compiler release */
|
|
91
91
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
92
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
92
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221007");
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "typescript",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "4.9.0-dev.
|
|
5
|
+
"version": "4.9.0-dev.20221007",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|