typescript 4.9.0-dev.20221004 → 4.9.0-dev.20221006
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 +3 -4
- package/lib/tsserver.js +27 -25
- package/lib/tsserverlibrary.d.ts +2 -2
- package/lib/tsserverlibrary.js +27 -25
- package/lib/typescript.d.ts +2 -2
- package/lib/typescript.js +4 -5
- package/lib/typescriptServices.d.ts +2 -2
- package/lib/typescriptServices.js +4 -5
- package/lib/typingsInstaller.js +4 -5
- 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.20221006");
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -4222,7 +4222,7 @@ var ts;
|
|
|
4222
4222
|
};
|
|
4223
4223
|
}
|
|
4224
4224
|
function createSystemWatchFunctions(_a) {
|
|
4225
|
-
var pollingWatchFileWorker = _a.pollingWatchFileWorker, getModifiedTime = _a.getModifiedTime, setTimeout = _a.setTimeout, clearTimeout = _a.clearTimeout, fsWatchWorker = _a.fsWatchWorker, fileSystemEntryExists = _a.fileSystemEntryExists, useCaseSensitiveFileNames = _a.useCaseSensitiveFileNames, getCurrentDirectory = _a.getCurrentDirectory, fsSupportsRecursiveFsWatch = _a.fsSupportsRecursiveFsWatch, getAccessibleSortedChildDirectories = _a.getAccessibleSortedChildDirectories, realpath = _a.realpath, tscWatchFile = _a.tscWatchFile, useNonPollingWatchers = _a.useNonPollingWatchers, tscWatchDirectory = _a.tscWatchDirectory,
|
|
4225
|
+
var pollingWatchFileWorker = _a.pollingWatchFileWorker, getModifiedTime = _a.getModifiedTime, setTimeout = _a.setTimeout, clearTimeout = _a.clearTimeout, fsWatchWorker = _a.fsWatchWorker, fileSystemEntryExists = _a.fileSystemEntryExists, useCaseSensitiveFileNames = _a.useCaseSensitiveFileNames, getCurrentDirectory = _a.getCurrentDirectory, fsSupportsRecursiveFsWatch = _a.fsSupportsRecursiveFsWatch, getAccessibleSortedChildDirectories = _a.getAccessibleSortedChildDirectories, realpath = _a.realpath, tscWatchFile = _a.tscWatchFile, useNonPollingWatchers = _a.useNonPollingWatchers, tscWatchDirectory = _a.tscWatchDirectory, inodeWatching = _a.inodeWatching, sysLog = _a.sysLog;
|
|
4226
4226
|
var pollingWatches = new ts.Map();
|
|
4227
4227
|
var fsWatches = new ts.Map();
|
|
4228
4228
|
var fsWatchesRecursive = new ts.Map();
|
|
@@ -4281,7 +4281,7 @@ var ts;
|
|
|
4281
4281
|
default:
|
|
4282
4282
|
return useNonPollingWatchers ?
|
|
4283
4283
|
generateWatchFileOptions(ts.WatchFileKind.UseFsEventsOnParentDirectory, ts.PollingWatchKind.PriorityInterval, options) :
|
|
4284
|
-
{ watchFile:
|
|
4284
|
+
{ watchFile: ts.WatchFileKind.UseFsEvents };
|
|
4285
4285
|
}
|
|
4286
4286
|
}
|
|
4287
4287
|
function generateWatchFileOptions(watchFile, fallbackPolling, options) {
|
|
@@ -4504,7 +4504,6 @@ var ts;
|
|
|
4504
4504
|
tscWatchFile: process.env.TSC_WATCHFILE,
|
|
4505
4505
|
useNonPollingWatchers: process.env.TSC_NONPOLLING_WATCHER,
|
|
4506
4506
|
tscWatchDirectory: process.env.TSC_WATCHDIRECTORY,
|
|
4507
|
-
defaultWatchFileKind: function () { var _a, _b; return (_b = (_a = sys).defaultWatchFileKind) === null || _b === void 0 ? void 0 : _b.call(_a); },
|
|
4508
4507
|
inodeWatching: isLinuxOrMacOs,
|
|
4509
4508
|
sysLog: sysLog,
|
|
4510
4509
|
}), watchFile = _b.watchFile, watchDirectory = _b.watchDirectory;
|
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.20221006");
|
|
113
113
|
/* @internal */
|
|
114
114
|
var Comparison;
|
|
115
115
|
(function (Comparison) {
|
|
@@ -6755,7 +6755,7 @@ var ts;
|
|
|
6755
6755
|
}
|
|
6756
6756
|
/*@internal*/
|
|
6757
6757
|
function createSystemWatchFunctions(_a) {
|
|
6758
|
-
var pollingWatchFileWorker = _a.pollingWatchFileWorker, getModifiedTime = _a.getModifiedTime, setTimeout = _a.setTimeout, clearTimeout = _a.clearTimeout, fsWatchWorker = _a.fsWatchWorker, fileSystemEntryExists = _a.fileSystemEntryExists, useCaseSensitiveFileNames = _a.useCaseSensitiveFileNames, getCurrentDirectory = _a.getCurrentDirectory, fsSupportsRecursiveFsWatch = _a.fsSupportsRecursiveFsWatch, getAccessibleSortedChildDirectories = _a.getAccessibleSortedChildDirectories, realpath = _a.realpath, tscWatchFile = _a.tscWatchFile, useNonPollingWatchers = _a.useNonPollingWatchers, tscWatchDirectory = _a.tscWatchDirectory,
|
|
6758
|
+
var pollingWatchFileWorker = _a.pollingWatchFileWorker, getModifiedTime = _a.getModifiedTime, setTimeout = _a.setTimeout, clearTimeout = _a.clearTimeout, fsWatchWorker = _a.fsWatchWorker, fileSystemEntryExists = _a.fileSystemEntryExists, useCaseSensitiveFileNames = _a.useCaseSensitiveFileNames, getCurrentDirectory = _a.getCurrentDirectory, fsSupportsRecursiveFsWatch = _a.fsSupportsRecursiveFsWatch, getAccessibleSortedChildDirectories = _a.getAccessibleSortedChildDirectories, realpath = _a.realpath, tscWatchFile = _a.tscWatchFile, useNonPollingWatchers = _a.useNonPollingWatchers, tscWatchDirectory = _a.tscWatchDirectory, inodeWatching = _a.inodeWatching, sysLog = _a.sysLog;
|
|
6759
6759
|
var pollingWatches = new ts.Map();
|
|
6760
6760
|
var fsWatches = new ts.Map();
|
|
6761
6761
|
var fsWatchesRecursive = new ts.Map();
|
|
@@ -6821,8 +6821,8 @@ var ts;
|
|
|
6821
6821
|
return useNonPollingWatchers ?
|
|
6822
6822
|
// Use notifications from FS to watch with falling back to fs.watchFile
|
|
6823
6823
|
generateWatchFileOptions(ts.WatchFileKind.UseFsEventsOnParentDirectory, ts.PollingWatchKind.PriorityInterval, options) :
|
|
6824
|
-
// Default to
|
|
6825
|
-
{ watchFile:
|
|
6824
|
+
// Default to using fs events
|
|
6825
|
+
{ watchFile: ts.WatchFileKind.UseFsEvents };
|
|
6826
6826
|
}
|
|
6827
6827
|
}
|
|
6828
6828
|
function generateWatchFileOptions(watchFile, fallbackPolling, options) {
|
|
@@ -7094,7 +7094,6 @@ var ts;
|
|
|
7094
7094
|
tscWatchFile: process.env.TSC_WATCHFILE,
|
|
7095
7095
|
useNonPollingWatchers: process.env.TSC_NONPOLLING_WATCHER,
|
|
7096
7096
|
tscWatchDirectory: process.env.TSC_WATCHDIRECTORY,
|
|
7097
|
-
defaultWatchFileKind: function () { var _a, _b; return (_b = (_a = sys).defaultWatchFileKind) === null || _b === void 0 ? void 0 : _b.call(_a); },
|
|
7098
7097
|
inodeWatching: isLinuxOrMacOs,
|
|
7099
7098
|
sysLog: sysLog,
|
|
7100
7099
|
}), watchFile = _b.watchFile, watchDirectory = _b.watchDirectory;
|
|
@@ -174247,6 +174246,8 @@ var ts;
|
|
|
174247
174246
|
return !!this.program && this.program.isSourceOfProjectReferenceRedirect(fileName);
|
|
174248
174247
|
};
|
|
174249
174248
|
Project.prototype.enableGlobalPlugins = function (options, pluginConfigOverrides) {
|
|
174249
|
+
if (!this.projectService.globalPlugins.length)
|
|
174250
|
+
return;
|
|
174250
174251
|
var host = this.projectService.host;
|
|
174251
174252
|
if (!host.require && !host.importPlugin) {
|
|
174252
174253
|
this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");
|
|
@@ -174257,24 +174258,22 @@ var ts;
|
|
|
174257
174258
|
// ../../.. to walk from X/node_modules/typescript/lib/tsserver.js to X/node_modules/
|
|
174258
174259
|
ts.combinePaths(this.projectService.getExecutingFilePath(), "../../.."),
|
|
174259
174260
|
], false);
|
|
174260
|
-
|
|
174261
|
-
|
|
174262
|
-
|
|
174263
|
-
|
|
174264
|
-
|
|
174265
|
-
|
|
174266
|
-
|
|
174267
|
-
|
|
174268
|
-
|
|
174269
|
-
|
|
174270
|
-
|
|
174271
|
-
|
|
174272
|
-
|
|
174273
|
-
|
|
174274
|
-
|
|
174275
|
-
|
|
174276
|
-
_loop_1(globalPluginName);
|
|
174277
|
-
}
|
|
174261
|
+
var _loop_1 = function (globalPluginName) {
|
|
174262
|
+
// Skip empty names from odd commandline parses
|
|
174263
|
+
if (!globalPluginName)
|
|
174264
|
+
return "continue";
|
|
174265
|
+
// Skip already-locally-loaded plugins
|
|
174266
|
+
if (options.plugins && options.plugins.some(function (p) { return p.name === globalPluginName; }))
|
|
174267
|
+
return "continue";
|
|
174268
|
+
// Provide global: true so plugins can detect why they can't find their config
|
|
174269
|
+
this_1.projectService.logger.info("Loading global plugin ".concat(globalPluginName));
|
|
174270
|
+
this_1.enablePlugin({ name: globalPluginName, global: true }, searchPaths, pluginConfigOverrides);
|
|
174271
|
+
};
|
|
174272
|
+
var this_1 = this;
|
|
174273
|
+
// Enable global plugins with synthetic configuration entries
|
|
174274
|
+
for (var _i = 0, _a = this.projectService.globalPlugins; _i < _a.length; _i++) {
|
|
174275
|
+
var globalPluginName = _a[_i];
|
|
174276
|
+
_loop_1(globalPluginName);
|
|
174278
174277
|
}
|
|
174279
174278
|
};
|
|
174280
174279
|
/**
|
|
@@ -175005,6 +175004,9 @@ var ts;
|
|
|
175005
175004
|
};
|
|
175006
175005
|
/*@internal*/
|
|
175007
175006
|
ConfiguredProject.prototype.enablePluginsWithOptions = function (options, pluginConfigOverrides) {
|
|
175007
|
+
var _a;
|
|
175008
|
+
if (!((_a = options.plugins) === null || _a === void 0 ? void 0 : _a.length) && !this.projectService.globalPlugins.length)
|
|
175009
|
+
return;
|
|
175008
175010
|
var host = this.projectService.host;
|
|
175009
175011
|
if (!host.require && !host.importPlugin) {
|
|
175010
175012
|
this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");
|
|
@@ -175020,8 +175022,8 @@ var ts;
|
|
|
175020
175022
|
}
|
|
175021
175023
|
// Enable tsconfig-specified plugins
|
|
175022
175024
|
if (options.plugins) {
|
|
175023
|
-
for (var _i = 0,
|
|
175024
|
-
var pluginConfigEntry =
|
|
175025
|
+
for (var _i = 0, _b = options.plugins; _i < _b.length; _i++) {
|
|
175026
|
+
var pluginConfigEntry = _b[_i];
|
|
175025
175027
|
this.enablePlugin(pluginConfigEntry, searchPaths, pluginConfigOverrides);
|
|
175026
175028
|
}
|
|
175027
175029
|
}
|
package/lib/tsserverlibrary.d.ts
CHANGED
|
@@ -5399,9 +5399,9 @@ declare namespace ts {
|
|
|
5399
5399
|
/** If provided, called with Diagnostic message that informs about change in watch status */
|
|
5400
5400
|
onWatchStatusChange?(diagnostic: Diagnostic, newLine: string, options: CompilerOptions, errorCount?: number): void;
|
|
5401
5401
|
/** Used to watch changes in source files, missing files needed to update the program or config file */
|
|
5402
|
-
watchFile(path: string, callback: FileWatcherCallback, pollingInterval?: number, options?:
|
|
5402
|
+
watchFile(path: string, callback: FileWatcherCallback, pollingInterval?: number, options?: WatchOptions): FileWatcher;
|
|
5403
5403
|
/** Used to watch resolved module's failed lookup locations, config file specs, type roots where auto type reference directives are added */
|
|
5404
|
-
watchDirectory(path: string, callback: DirectoryWatcherCallback, recursive?: boolean, options?:
|
|
5404
|
+
watchDirectory(path: string, callback: DirectoryWatcherCallback, recursive?: boolean, options?: WatchOptions): FileWatcher;
|
|
5405
5405
|
/** If provided, will be used to set delayed compilation, so that multiple changes in short span are compiled together */
|
|
5406
5406
|
setTimeout?(callback: (...args: any[]) => void, ms: number, ...args: any[]): any;
|
|
5407
5407
|
/** If provided, will be used to reset existing delayed compilation */
|
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.20221006");
|
|
112
112
|
/* @internal */
|
|
113
113
|
var Comparison;
|
|
114
114
|
(function (Comparison) {
|
|
@@ -6754,7 +6754,7 @@ var ts;
|
|
|
6754
6754
|
}
|
|
6755
6755
|
/*@internal*/
|
|
6756
6756
|
function createSystemWatchFunctions(_a) {
|
|
6757
|
-
var pollingWatchFileWorker = _a.pollingWatchFileWorker, getModifiedTime = _a.getModifiedTime, setTimeout = _a.setTimeout, clearTimeout = _a.clearTimeout, fsWatchWorker = _a.fsWatchWorker, fileSystemEntryExists = _a.fileSystemEntryExists, useCaseSensitiveFileNames = _a.useCaseSensitiveFileNames, getCurrentDirectory = _a.getCurrentDirectory, fsSupportsRecursiveFsWatch = _a.fsSupportsRecursiveFsWatch, getAccessibleSortedChildDirectories = _a.getAccessibleSortedChildDirectories, realpath = _a.realpath, tscWatchFile = _a.tscWatchFile, useNonPollingWatchers = _a.useNonPollingWatchers, tscWatchDirectory = _a.tscWatchDirectory,
|
|
6757
|
+
var pollingWatchFileWorker = _a.pollingWatchFileWorker, getModifiedTime = _a.getModifiedTime, setTimeout = _a.setTimeout, clearTimeout = _a.clearTimeout, fsWatchWorker = _a.fsWatchWorker, fileSystemEntryExists = _a.fileSystemEntryExists, useCaseSensitiveFileNames = _a.useCaseSensitiveFileNames, getCurrentDirectory = _a.getCurrentDirectory, fsSupportsRecursiveFsWatch = _a.fsSupportsRecursiveFsWatch, getAccessibleSortedChildDirectories = _a.getAccessibleSortedChildDirectories, realpath = _a.realpath, tscWatchFile = _a.tscWatchFile, useNonPollingWatchers = _a.useNonPollingWatchers, tscWatchDirectory = _a.tscWatchDirectory, inodeWatching = _a.inodeWatching, sysLog = _a.sysLog;
|
|
6758
6758
|
var pollingWatches = new ts.Map();
|
|
6759
6759
|
var fsWatches = new ts.Map();
|
|
6760
6760
|
var fsWatchesRecursive = new ts.Map();
|
|
@@ -6820,8 +6820,8 @@ var ts;
|
|
|
6820
6820
|
return useNonPollingWatchers ?
|
|
6821
6821
|
// Use notifications from FS to watch with falling back to fs.watchFile
|
|
6822
6822
|
generateWatchFileOptions(ts.WatchFileKind.UseFsEventsOnParentDirectory, ts.PollingWatchKind.PriorityInterval, options) :
|
|
6823
|
-
// Default to
|
|
6824
|
-
{ watchFile:
|
|
6823
|
+
// Default to using fs events
|
|
6824
|
+
{ watchFile: ts.WatchFileKind.UseFsEvents };
|
|
6825
6825
|
}
|
|
6826
6826
|
}
|
|
6827
6827
|
function generateWatchFileOptions(watchFile, fallbackPolling, options) {
|
|
@@ -7093,7 +7093,6 @@ var ts;
|
|
|
7093
7093
|
tscWatchFile: process.env.TSC_WATCHFILE,
|
|
7094
7094
|
useNonPollingWatchers: process.env.TSC_NONPOLLING_WATCHER,
|
|
7095
7095
|
tscWatchDirectory: process.env.TSC_WATCHDIRECTORY,
|
|
7096
|
-
defaultWatchFileKind: function () { var _a, _b; return (_b = (_a = sys).defaultWatchFileKind) === null || _b === void 0 ? void 0 : _b.call(_a); },
|
|
7097
7096
|
inodeWatching: isLinuxOrMacOs,
|
|
7098
7097
|
sysLog: sysLog,
|
|
7099
7098
|
}), watchFile = _b.watchFile, watchDirectory = _b.watchDirectory;
|
|
@@ -174246,6 +174245,8 @@ var ts;
|
|
|
174246
174245
|
return !!this.program && this.program.isSourceOfProjectReferenceRedirect(fileName);
|
|
174247
174246
|
};
|
|
174248
174247
|
Project.prototype.enableGlobalPlugins = function (options, pluginConfigOverrides) {
|
|
174248
|
+
if (!this.projectService.globalPlugins.length)
|
|
174249
|
+
return;
|
|
174249
174250
|
var host = this.projectService.host;
|
|
174250
174251
|
if (!host.require && !host.importPlugin) {
|
|
174251
174252
|
this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");
|
|
@@ -174256,24 +174257,22 @@ var ts;
|
|
|
174256
174257
|
// ../../.. to walk from X/node_modules/typescript/lib/tsserver.js to X/node_modules/
|
|
174257
174258
|
ts.combinePaths(this.projectService.getExecutingFilePath(), "../../.."),
|
|
174258
174259
|
], false);
|
|
174259
|
-
|
|
174260
|
-
|
|
174261
|
-
|
|
174262
|
-
|
|
174263
|
-
|
|
174264
|
-
|
|
174265
|
-
|
|
174266
|
-
|
|
174267
|
-
|
|
174268
|
-
|
|
174269
|
-
|
|
174270
|
-
|
|
174271
|
-
|
|
174272
|
-
|
|
174273
|
-
|
|
174274
|
-
|
|
174275
|
-
_loop_1(globalPluginName);
|
|
174276
|
-
}
|
|
174260
|
+
var _loop_1 = function (globalPluginName) {
|
|
174261
|
+
// Skip empty names from odd commandline parses
|
|
174262
|
+
if (!globalPluginName)
|
|
174263
|
+
return "continue";
|
|
174264
|
+
// Skip already-locally-loaded plugins
|
|
174265
|
+
if (options.plugins && options.plugins.some(function (p) { return p.name === globalPluginName; }))
|
|
174266
|
+
return "continue";
|
|
174267
|
+
// Provide global: true so plugins can detect why they can't find their config
|
|
174268
|
+
this_1.projectService.logger.info("Loading global plugin ".concat(globalPluginName));
|
|
174269
|
+
this_1.enablePlugin({ name: globalPluginName, global: true }, searchPaths, pluginConfigOverrides);
|
|
174270
|
+
};
|
|
174271
|
+
var this_1 = this;
|
|
174272
|
+
// Enable global plugins with synthetic configuration entries
|
|
174273
|
+
for (var _i = 0, _a = this.projectService.globalPlugins; _i < _a.length; _i++) {
|
|
174274
|
+
var globalPluginName = _a[_i];
|
|
174275
|
+
_loop_1(globalPluginName);
|
|
174277
174276
|
}
|
|
174278
174277
|
};
|
|
174279
174278
|
/**
|
|
@@ -175004,6 +175003,9 @@ var ts;
|
|
|
175004
175003
|
};
|
|
175005
175004
|
/*@internal*/
|
|
175006
175005
|
ConfiguredProject.prototype.enablePluginsWithOptions = function (options, pluginConfigOverrides) {
|
|
175006
|
+
var _a;
|
|
175007
|
+
if (!((_a = options.plugins) === null || _a === void 0 ? void 0 : _a.length) && !this.projectService.globalPlugins.length)
|
|
175008
|
+
return;
|
|
175007
175009
|
var host = this.projectService.host;
|
|
175008
175010
|
if (!host.require && !host.importPlugin) {
|
|
175009
175011
|
this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");
|
|
@@ -175019,8 +175021,8 @@ var ts;
|
|
|
175019
175021
|
}
|
|
175020
175022
|
// Enable tsconfig-specified plugins
|
|
175021
175023
|
if (options.plugins) {
|
|
175022
|
-
for (var _i = 0,
|
|
175023
|
-
var pluginConfigEntry =
|
|
175024
|
+
for (var _i = 0, _b = options.plugins; _i < _b.length; _i++) {
|
|
175025
|
+
var pluginConfigEntry = _b[_i];
|
|
175024
175026
|
this.enablePlugin(pluginConfigEntry, searchPaths, pluginConfigOverrides);
|
|
175025
175027
|
}
|
|
175026
175028
|
}
|
package/lib/typescript.d.ts
CHANGED
|
@@ -5399,9 +5399,9 @@ declare namespace ts {
|
|
|
5399
5399
|
/** If provided, called with Diagnostic message that informs about change in watch status */
|
|
5400
5400
|
onWatchStatusChange?(diagnostic: Diagnostic, newLine: string, options: CompilerOptions, errorCount?: number): void;
|
|
5401
5401
|
/** Used to watch changes in source files, missing files needed to update the program or config file */
|
|
5402
|
-
watchFile(path: string, callback: FileWatcherCallback, pollingInterval?: number, options?:
|
|
5402
|
+
watchFile(path: string, callback: FileWatcherCallback, pollingInterval?: number, options?: WatchOptions): FileWatcher;
|
|
5403
5403
|
/** Used to watch resolved module's failed lookup locations, config file specs, type roots where auto type reference directives are added */
|
|
5404
|
-
watchDirectory(path: string, callback: DirectoryWatcherCallback, recursive?: boolean, options?:
|
|
5404
|
+
watchDirectory(path: string, callback: DirectoryWatcherCallback, recursive?: boolean, options?: WatchOptions): FileWatcher;
|
|
5405
5405
|
/** If provided, will be used to set delayed compilation, so that multiple changes in short span are compiled together */
|
|
5406
5406
|
setTimeout?(callback: (...args: any[]) => void, ms: number, ...args: any[]): any;
|
|
5407
5407
|
/** If provided, will be used to reset existing delayed compilation */
|
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.20221006");
|
|
103
103
|
/* @internal */
|
|
104
104
|
var Comparison;
|
|
105
105
|
(function (Comparison) {
|
|
@@ -6745,7 +6745,7 @@ var ts;
|
|
|
6745
6745
|
}
|
|
6746
6746
|
/*@internal*/
|
|
6747
6747
|
function createSystemWatchFunctions(_a) {
|
|
6748
|
-
var pollingWatchFileWorker = _a.pollingWatchFileWorker, getModifiedTime = _a.getModifiedTime, setTimeout = _a.setTimeout, clearTimeout = _a.clearTimeout, fsWatchWorker = _a.fsWatchWorker, fileSystemEntryExists = _a.fileSystemEntryExists, useCaseSensitiveFileNames = _a.useCaseSensitiveFileNames, getCurrentDirectory = _a.getCurrentDirectory, fsSupportsRecursiveFsWatch = _a.fsSupportsRecursiveFsWatch, getAccessibleSortedChildDirectories = _a.getAccessibleSortedChildDirectories, realpath = _a.realpath, tscWatchFile = _a.tscWatchFile, useNonPollingWatchers = _a.useNonPollingWatchers, tscWatchDirectory = _a.tscWatchDirectory,
|
|
6748
|
+
var pollingWatchFileWorker = _a.pollingWatchFileWorker, getModifiedTime = _a.getModifiedTime, setTimeout = _a.setTimeout, clearTimeout = _a.clearTimeout, fsWatchWorker = _a.fsWatchWorker, fileSystemEntryExists = _a.fileSystemEntryExists, useCaseSensitiveFileNames = _a.useCaseSensitiveFileNames, getCurrentDirectory = _a.getCurrentDirectory, fsSupportsRecursiveFsWatch = _a.fsSupportsRecursiveFsWatch, getAccessibleSortedChildDirectories = _a.getAccessibleSortedChildDirectories, realpath = _a.realpath, tscWatchFile = _a.tscWatchFile, useNonPollingWatchers = _a.useNonPollingWatchers, tscWatchDirectory = _a.tscWatchDirectory, inodeWatching = _a.inodeWatching, sysLog = _a.sysLog;
|
|
6749
6749
|
var pollingWatches = new ts.Map();
|
|
6750
6750
|
var fsWatches = new ts.Map();
|
|
6751
6751
|
var fsWatchesRecursive = new ts.Map();
|
|
@@ -6811,8 +6811,8 @@ var ts;
|
|
|
6811
6811
|
return useNonPollingWatchers ?
|
|
6812
6812
|
// Use notifications from FS to watch with falling back to fs.watchFile
|
|
6813
6813
|
generateWatchFileOptions(ts.WatchFileKind.UseFsEventsOnParentDirectory, ts.PollingWatchKind.PriorityInterval, options) :
|
|
6814
|
-
// Default to
|
|
6815
|
-
{ watchFile:
|
|
6814
|
+
// Default to using fs events
|
|
6815
|
+
{ watchFile: ts.WatchFileKind.UseFsEvents };
|
|
6816
6816
|
}
|
|
6817
6817
|
}
|
|
6818
6818
|
function generateWatchFileOptions(watchFile, fallbackPolling, options) {
|
|
@@ -7084,7 +7084,6 @@ var ts;
|
|
|
7084
7084
|
tscWatchFile: process.env.TSC_WATCHFILE,
|
|
7085
7085
|
useNonPollingWatchers: process.env.TSC_NONPOLLING_WATCHER,
|
|
7086
7086
|
tscWatchDirectory: process.env.TSC_WATCHDIRECTORY,
|
|
7087
|
-
defaultWatchFileKind: function () { var _a, _b; return (_b = (_a = sys).defaultWatchFileKind) === null || _b === void 0 ? void 0 : _b.call(_a); },
|
|
7088
7087
|
inodeWatching: isLinuxOrMacOs,
|
|
7089
7088
|
sysLog: sysLog,
|
|
7090
7089
|
}), watchFile = _b.watchFile, watchDirectory = _b.watchDirectory;
|
|
@@ -5399,9 +5399,9 @@ declare namespace ts {
|
|
|
5399
5399
|
/** If provided, called with Diagnostic message that informs about change in watch status */
|
|
5400
5400
|
onWatchStatusChange?(diagnostic: Diagnostic, newLine: string, options: CompilerOptions, errorCount?: number): void;
|
|
5401
5401
|
/** Used to watch changes in source files, missing files needed to update the program or config file */
|
|
5402
|
-
watchFile(path: string, callback: FileWatcherCallback, pollingInterval?: number, options?:
|
|
5402
|
+
watchFile(path: string, callback: FileWatcherCallback, pollingInterval?: number, options?: WatchOptions): FileWatcher;
|
|
5403
5403
|
/** Used to watch resolved module's failed lookup locations, config file specs, type roots where auto type reference directives are added */
|
|
5404
|
-
watchDirectory(path: string, callback: DirectoryWatcherCallback, recursive?: boolean, options?:
|
|
5404
|
+
watchDirectory(path: string, callback: DirectoryWatcherCallback, recursive?: boolean, options?: WatchOptions): FileWatcher;
|
|
5405
5405
|
/** If provided, will be used to set delayed compilation, so that multiple changes in short span are compiled together */
|
|
5406
5406
|
setTimeout?(callback: (...args: any[]) => void, ms: number, ...args: any[]): any;
|
|
5407
5407
|
/** If provided, will be used to reset existing delayed compilation */
|
|
@@ -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.20221006");
|
|
103
103
|
/* @internal */
|
|
104
104
|
var Comparison;
|
|
105
105
|
(function (Comparison) {
|
|
@@ -6745,7 +6745,7 @@ var ts;
|
|
|
6745
6745
|
}
|
|
6746
6746
|
/*@internal*/
|
|
6747
6747
|
function createSystemWatchFunctions(_a) {
|
|
6748
|
-
var pollingWatchFileWorker = _a.pollingWatchFileWorker, getModifiedTime = _a.getModifiedTime, setTimeout = _a.setTimeout, clearTimeout = _a.clearTimeout, fsWatchWorker = _a.fsWatchWorker, fileSystemEntryExists = _a.fileSystemEntryExists, useCaseSensitiveFileNames = _a.useCaseSensitiveFileNames, getCurrentDirectory = _a.getCurrentDirectory, fsSupportsRecursiveFsWatch = _a.fsSupportsRecursiveFsWatch, getAccessibleSortedChildDirectories = _a.getAccessibleSortedChildDirectories, realpath = _a.realpath, tscWatchFile = _a.tscWatchFile, useNonPollingWatchers = _a.useNonPollingWatchers, tscWatchDirectory = _a.tscWatchDirectory,
|
|
6748
|
+
var pollingWatchFileWorker = _a.pollingWatchFileWorker, getModifiedTime = _a.getModifiedTime, setTimeout = _a.setTimeout, clearTimeout = _a.clearTimeout, fsWatchWorker = _a.fsWatchWorker, fileSystemEntryExists = _a.fileSystemEntryExists, useCaseSensitiveFileNames = _a.useCaseSensitiveFileNames, getCurrentDirectory = _a.getCurrentDirectory, fsSupportsRecursiveFsWatch = _a.fsSupportsRecursiveFsWatch, getAccessibleSortedChildDirectories = _a.getAccessibleSortedChildDirectories, realpath = _a.realpath, tscWatchFile = _a.tscWatchFile, useNonPollingWatchers = _a.useNonPollingWatchers, tscWatchDirectory = _a.tscWatchDirectory, inodeWatching = _a.inodeWatching, sysLog = _a.sysLog;
|
|
6749
6749
|
var pollingWatches = new ts.Map();
|
|
6750
6750
|
var fsWatches = new ts.Map();
|
|
6751
6751
|
var fsWatchesRecursive = new ts.Map();
|
|
@@ -6811,8 +6811,8 @@ var ts;
|
|
|
6811
6811
|
return useNonPollingWatchers ?
|
|
6812
6812
|
// Use notifications from FS to watch with falling back to fs.watchFile
|
|
6813
6813
|
generateWatchFileOptions(ts.WatchFileKind.UseFsEventsOnParentDirectory, ts.PollingWatchKind.PriorityInterval, options) :
|
|
6814
|
-
// Default to
|
|
6815
|
-
{ watchFile:
|
|
6814
|
+
// Default to using fs events
|
|
6815
|
+
{ watchFile: ts.WatchFileKind.UseFsEvents };
|
|
6816
6816
|
}
|
|
6817
6817
|
}
|
|
6818
6818
|
function generateWatchFileOptions(watchFile, fallbackPolling, options) {
|
|
@@ -7084,7 +7084,6 @@ var ts;
|
|
|
7084
7084
|
tscWatchFile: process.env.TSC_WATCHFILE,
|
|
7085
7085
|
useNonPollingWatchers: process.env.TSC_NONPOLLING_WATCHER,
|
|
7086
7086
|
tscWatchDirectory: process.env.TSC_WATCHDIRECTORY,
|
|
7087
|
-
defaultWatchFileKind: function () { var _a, _b; return (_b = (_a = sys).defaultWatchFileKind) === null || _b === void 0 ? void 0 : _b.call(_a); },
|
|
7088
7087
|
inodeWatching: isLinuxOrMacOs,
|
|
7089
7088
|
sysLog: sysLog,
|
|
7090
7089
|
}), watchFile = _b.watchFile, watchDirectory = _b.watchDirectory;
|
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.20221006");
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -6735,7 +6735,7 @@ var ts;
|
|
|
6735
6735
|
}
|
|
6736
6736
|
/*@internal*/
|
|
6737
6737
|
function createSystemWatchFunctions(_a) {
|
|
6738
|
-
var pollingWatchFileWorker = _a.pollingWatchFileWorker, getModifiedTime = _a.getModifiedTime, setTimeout = _a.setTimeout, clearTimeout = _a.clearTimeout, fsWatchWorker = _a.fsWatchWorker, fileSystemEntryExists = _a.fileSystemEntryExists, useCaseSensitiveFileNames = _a.useCaseSensitiveFileNames, getCurrentDirectory = _a.getCurrentDirectory, fsSupportsRecursiveFsWatch = _a.fsSupportsRecursiveFsWatch, getAccessibleSortedChildDirectories = _a.getAccessibleSortedChildDirectories, realpath = _a.realpath, tscWatchFile = _a.tscWatchFile, useNonPollingWatchers = _a.useNonPollingWatchers, tscWatchDirectory = _a.tscWatchDirectory,
|
|
6738
|
+
var pollingWatchFileWorker = _a.pollingWatchFileWorker, getModifiedTime = _a.getModifiedTime, setTimeout = _a.setTimeout, clearTimeout = _a.clearTimeout, fsWatchWorker = _a.fsWatchWorker, fileSystemEntryExists = _a.fileSystemEntryExists, useCaseSensitiveFileNames = _a.useCaseSensitiveFileNames, getCurrentDirectory = _a.getCurrentDirectory, fsSupportsRecursiveFsWatch = _a.fsSupportsRecursiveFsWatch, getAccessibleSortedChildDirectories = _a.getAccessibleSortedChildDirectories, realpath = _a.realpath, tscWatchFile = _a.tscWatchFile, useNonPollingWatchers = _a.useNonPollingWatchers, tscWatchDirectory = _a.tscWatchDirectory, inodeWatching = _a.inodeWatching, sysLog = _a.sysLog;
|
|
6739
6739
|
var pollingWatches = new ts.Map();
|
|
6740
6740
|
var fsWatches = new ts.Map();
|
|
6741
6741
|
var fsWatchesRecursive = new ts.Map();
|
|
@@ -6801,8 +6801,8 @@ var ts;
|
|
|
6801
6801
|
return useNonPollingWatchers ?
|
|
6802
6802
|
// Use notifications from FS to watch with falling back to fs.watchFile
|
|
6803
6803
|
generateWatchFileOptions(ts.WatchFileKind.UseFsEventsOnParentDirectory, ts.PollingWatchKind.PriorityInterval, options) :
|
|
6804
|
-
// Default to
|
|
6805
|
-
{ watchFile:
|
|
6804
|
+
// Default to using fs events
|
|
6805
|
+
{ watchFile: ts.WatchFileKind.UseFsEvents };
|
|
6806
6806
|
}
|
|
6807
6807
|
}
|
|
6808
6808
|
function generateWatchFileOptions(watchFile, fallbackPolling, options) {
|
|
@@ -7074,7 +7074,6 @@ var ts;
|
|
|
7074
7074
|
tscWatchFile: process.env.TSC_WATCHFILE,
|
|
7075
7075
|
useNonPollingWatchers: process.env.TSC_NONPOLLING_WATCHER,
|
|
7076
7076
|
tscWatchDirectory: process.env.TSC_WATCHDIRECTORY,
|
|
7077
|
-
defaultWatchFileKind: function () { var _a, _b; return (_b = (_a = sys).defaultWatchFileKind) === null || _b === void 0 ? void 0 : _b.call(_a); },
|
|
7078
7077
|
inodeWatching: isLinuxOrMacOs,
|
|
7079
7078
|
sysLog: sysLog,
|
|
7080
7079
|
}), watchFile = _b.watchFile, watchDirectory = _b.watchDirectory;
|
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.20221006",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|