typescript 4.6.0-dev.20211111 → 4.6.0-dev.20211115
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/lib.es2020.intl.d.ts +2 -2
- package/lib/tsc.js +18 -19
- package/lib/tsserver.js +18 -20
- package/lib/tsserverlibrary.js +18 -20
- package/lib/typescript.js +18 -20
- package/lib/typescriptServices.js +18 -20
- package/lib/typingsInstaller.js +18 -20
- package/package.json +1 -1
package/lib/lib.es2020.intl.d.ts
CHANGED
|
@@ -220,7 +220,7 @@ declare namespace Intl {
|
|
|
220
220
|
interface NumberFormatOptions {
|
|
221
221
|
compactDisplay?: "short" | "long" | undefined;
|
|
222
222
|
notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
|
|
223
|
-
signDisplay?: "auto" | "never" | "always" | undefined;
|
|
223
|
+
signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
|
|
224
224
|
unit?: string | undefined;
|
|
225
225
|
unitDisplay?: "short" | "long" | "narrow" | undefined;
|
|
226
226
|
}
|
|
@@ -228,7 +228,7 @@ declare namespace Intl {
|
|
|
228
228
|
interface ResolvedNumberFormatOptions {
|
|
229
229
|
compactDisplay?: "short" | "long";
|
|
230
230
|
notation?: "standard" | "scientific" | "engineering" | "compact";
|
|
231
|
-
signDisplay?: "auto" | "never" | "always";
|
|
231
|
+
signDisplay?: "auto" | "never" | "always" | "exceptZero";
|
|
232
232
|
unit?: string;
|
|
233
233
|
unitDisplay?: "short" | "long" | "narrow";
|
|
234
234
|
}
|
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.6";
|
|
72
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
72
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211115";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
function tryGetNativeMap() {
|
|
@@ -4976,7 +4976,7 @@ var ts;
|
|
|
4976
4976
|
}
|
|
4977
4977
|
}
|
|
4978
4978
|
function readDirectory(path, extensions, excludes, includes, depth) {
|
|
4979
|
-
return ts.matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath
|
|
4979
|
+
return ts.matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath);
|
|
4980
4980
|
}
|
|
4981
4981
|
function fileSystemEntryExists(path, entryKind) {
|
|
4982
4982
|
var originalStackTraceLimit = Error.stackTraceLimit;
|
|
@@ -15876,7 +15876,7 @@ var ts;
|
|
|
15876
15876
|
includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"),
|
|
15877
15877
|
includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"),
|
|
15878
15878
|
excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"),
|
|
15879
|
-
basePaths: getBasePaths(
|
|
15879
|
+
basePaths: getBasePaths(path, includes, useCaseSensitiveFileNames)
|
|
15880
15880
|
};
|
|
15881
15881
|
}
|
|
15882
15882
|
ts.getFileMatcherPatterns = getFileMatcherPatterns;
|
|
@@ -15884,7 +15884,7 @@ var ts;
|
|
|
15884
15884
|
return new RegExp(pattern, useCaseSensitiveFileNames ? "" : "i");
|
|
15885
15885
|
}
|
|
15886
15886
|
ts.getRegexFromPattern = getRegexFromPattern;
|
|
15887
|
-
function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath
|
|
15887
|
+
function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath) {
|
|
15888
15888
|
path = ts.normalizePath(path);
|
|
15889
15889
|
currentDirectory = ts.normalizePath(currentDirectory);
|
|
15890
15890
|
var patterns = getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames, currentDirectory);
|
|
@@ -15895,20 +15895,18 @@ var ts;
|
|
|
15895
15895
|
var visited = new ts.Map();
|
|
15896
15896
|
var toCanonical = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
15897
15897
|
for (var _i = 0, _a = patterns.basePaths; _i < _a.length; _i++) {
|
|
15898
|
-
var
|
|
15899
|
-
|
|
15900
|
-
visitDirectory(absoluteBasePath, depth);
|
|
15901
|
-
}
|
|
15898
|
+
var basePath = _a[_i];
|
|
15899
|
+
visitDirectory(basePath, ts.combinePaths(currentDirectory, basePath), depth);
|
|
15902
15900
|
}
|
|
15903
15901
|
return ts.flatten(results);
|
|
15904
|
-
function visitDirectory(absolutePath, depth) {
|
|
15902
|
+
function visitDirectory(path, absolutePath, depth) {
|
|
15905
15903
|
var canonicalPath = toCanonical(realpath(absolutePath));
|
|
15906
15904
|
if (visited.has(canonicalPath))
|
|
15907
15905
|
return;
|
|
15908
15906
|
visited.set(canonicalPath, true);
|
|
15909
|
-
var _a = getFileSystemEntries(
|
|
15907
|
+
var _a = getFileSystemEntries(path), files = _a.files, directories = _a.directories;
|
|
15910
15908
|
var _loop_1 = function (current) {
|
|
15911
|
-
var name = ts.combinePaths(
|
|
15909
|
+
var name = ts.combinePaths(path, current);
|
|
15912
15910
|
var absoluteName = ts.combinePaths(absolutePath, current);
|
|
15913
15911
|
if (extensions && !ts.fileExtensionIsOneOf(name, extensions))
|
|
15914
15912
|
return "continue";
|
|
@@ -15936,27 +15934,28 @@ var ts;
|
|
|
15936
15934
|
}
|
|
15937
15935
|
for (var _c = 0, _d = ts.sort(directories, ts.compareStringsCaseSensitive); _c < _d.length; _c++) {
|
|
15938
15936
|
var current = _d[_c];
|
|
15937
|
+
var name = ts.combinePaths(path, current);
|
|
15939
15938
|
var absoluteName = ts.combinePaths(absolutePath, current);
|
|
15940
15939
|
if ((!includeDirectoryRegex || includeDirectoryRegex.test(absoluteName)) &&
|
|
15941
15940
|
(!excludeRegex || !excludeRegex.test(absoluteName))) {
|
|
15942
|
-
visitDirectory(absoluteName, depth);
|
|
15941
|
+
visitDirectory(name, absoluteName, depth);
|
|
15943
15942
|
}
|
|
15944
15943
|
}
|
|
15945
15944
|
}
|
|
15946
15945
|
}
|
|
15947
15946
|
ts.matchFiles = matchFiles;
|
|
15948
|
-
function getBasePaths(
|
|
15949
|
-
var basePaths = [
|
|
15947
|
+
function getBasePaths(path, includes, useCaseSensitiveFileNames) {
|
|
15948
|
+
var basePaths = [path];
|
|
15950
15949
|
if (includes) {
|
|
15951
15950
|
var includeBasePaths = [];
|
|
15952
15951
|
for (var _i = 0, includes_1 = includes; _i < includes_1.length; _i++) {
|
|
15953
15952
|
var include = includes_1[_i];
|
|
15954
|
-
var
|
|
15955
|
-
includeBasePaths.push(getIncludeBasePath(
|
|
15953
|
+
var absolute = ts.isRootedDiskPath(include) ? include : ts.normalizePath(ts.combinePaths(path, include));
|
|
15954
|
+
includeBasePaths.push(getIncludeBasePath(absolute));
|
|
15956
15955
|
}
|
|
15957
15956
|
includeBasePaths.sort(ts.getStringComparer(!useCaseSensitiveFileNames));
|
|
15958
15957
|
var _loop_2 = function (includeBasePath) {
|
|
15959
|
-
if (ts.every(basePaths, function (basePath) { return !ts.containsPath(basePath, includeBasePath,
|
|
15958
|
+
if (ts.every(basePaths, function (basePath) { return !ts.containsPath(basePath, includeBasePath, path, !useCaseSensitiveFileNames); })) {
|
|
15960
15959
|
basePaths.push(includeBasePath);
|
|
15961
15960
|
}
|
|
15962
15961
|
};
|
|
@@ -70888,7 +70887,7 @@ var ts;
|
|
|
70888
70887
|
if (!symbol) {
|
|
70889
70888
|
return false;
|
|
70890
70889
|
}
|
|
70891
|
-
var target = resolveAlias(symbol);
|
|
70890
|
+
var target = getExportSymbolOfValueSymbolIfExported(resolveAlias(symbol));
|
|
70892
70891
|
if (target === unknownSymbol) {
|
|
70893
70892
|
return true;
|
|
70894
70893
|
}
|
|
@@ -92714,7 +92713,7 @@ var ts;
|
|
|
92714
92713
|
var rootResult = tryReadDirectory(rootDir, rootDirPath);
|
|
92715
92714
|
var rootSymLinkResult;
|
|
92716
92715
|
if (rootResult !== undefined) {
|
|
92717
|
-
return ts.matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath
|
|
92716
|
+
return ts.matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath);
|
|
92718
92717
|
}
|
|
92719
92718
|
return host.readDirectory(rootDir, extensions, excludes, includes, depth);
|
|
92720
92719
|
function getFileSystemEntries(dir) {
|
package/lib/tsserver.js
CHANGED
|
@@ -100,7 +100,7 @@ var ts;
|
|
|
100
100
|
// The following is baselined as a literal template type without intervention
|
|
101
101
|
/** The version of the TypeScript compiler release */
|
|
102
102
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
103
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
103
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211115";
|
|
104
104
|
/* @internal */
|
|
105
105
|
var Comparison;
|
|
106
106
|
(function (Comparison) {
|
|
@@ -7767,7 +7767,7 @@ var ts;
|
|
|
7767
7767
|
}
|
|
7768
7768
|
}
|
|
7769
7769
|
function readDirectory(path, extensions, excludes, includes, depth) {
|
|
7770
|
-
return ts.matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath
|
|
7770
|
+
return ts.matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath);
|
|
7771
7771
|
}
|
|
7772
7772
|
function fileSystemEntryExists(path, entryKind) {
|
|
7773
7773
|
// Since the error thrown by fs.statSync isn't used, we can avoid collecting a stack trace to improve
|
|
@@ -20045,7 +20045,7 @@ var ts;
|
|
|
20045
20045
|
includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"),
|
|
20046
20046
|
includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"),
|
|
20047
20047
|
excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"),
|
|
20048
|
-
basePaths: getBasePaths(
|
|
20048
|
+
basePaths: getBasePaths(path, includes, useCaseSensitiveFileNames)
|
|
20049
20049
|
};
|
|
20050
20050
|
}
|
|
20051
20051
|
ts.getFileMatcherPatterns = getFileMatcherPatterns;
|
|
@@ -20054,7 +20054,7 @@ var ts;
|
|
|
20054
20054
|
}
|
|
20055
20055
|
ts.getRegexFromPattern = getRegexFromPattern;
|
|
20056
20056
|
/** @param path directory of the tsconfig.json */
|
|
20057
|
-
function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath
|
|
20057
|
+
function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath) {
|
|
20058
20058
|
path = ts.normalizePath(path);
|
|
20059
20059
|
currentDirectory = ts.normalizePath(currentDirectory);
|
|
20060
20060
|
var patterns = getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames, currentDirectory);
|
|
@@ -20067,20 +20067,18 @@ var ts;
|
|
|
20067
20067
|
var visited = new ts.Map();
|
|
20068
20068
|
var toCanonical = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
20069
20069
|
for (var _i = 0, _a = patterns.basePaths; _i < _a.length; _i++) {
|
|
20070
|
-
var
|
|
20071
|
-
|
|
20072
|
-
visitDirectory(absoluteBasePath, depth);
|
|
20073
|
-
}
|
|
20070
|
+
var basePath = _a[_i];
|
|
20071
|
+
visitDirectory(basePath, ts.combinePaths(currentDirectory, basePath), depth);
|
|
20074
20072
|
}
|
|
20075
20073
|
return ts.flatten(results);
|
|
20076
|
-
function visitDirectory(absolutePath, depth) {
|
|
20074
|
+
function visitDirectory(path, absolutePath, depth) {
|
|
20077
20075
|
var canonicalPath = toCanonical(realpath(absolutePath));
|
|
20078
20076
|
if (visited.has(canonicalPath))
|
|
20079
20077
|
return;
|
|
20080
20078
|
visited.set(canonicalPath, true);
|
|
20081
|
-
var _a = getFileSystemEntries(
|
|
20079
|
+
var _a = getFileSystemEntries(path), files = _a.files, directories = _a.directories;
|
|
20082
20080
|
var _loop_1 = function (current) {
|
|
20083
|
-
var name = ts.combinePaths(
|
|
20081
|
+
var name = ts.combinePaths(path, current);
|
|
20084
20082
|
var absoluteName = ts.combinePaths(absolutePath, current);
|
|
20085
20083
|
if (extensions && !ts.fileExtensionIsOneOf(name, extensions))
|
|
20086
20084
|
return "continue";
|
|
@@ -20108,10 +20106,11 @@ var ts;
|
|
|
20108
20106
|
}
|
|
20109
20107
|
for (var _c = 0, _d = ts.sort(directories, ts.compareStringsCaseSensitive); _c < _d.length; _c++) {
|
|
20110
20108
|
var current = _d[_c];
|
|
20109
|
+
var name = ts.combinePaths(path, current);
|
|
20111
20110
|
var absoluteName = ts.combinePaths(absolutePath, current);
|
|
20112
20111
|
if ((!includeDirectoryRegex || includeDirectoryRegex.test(absoluteName)) &&
|
|
20113
20112
|
(!excludeRegex || !excludeRegex.test(absoluteName))) {
|
|
20114
|
-
visitDirectory(absoluteName, depth);
|
|
20113
|
+
visitDirectory(name, absoluteName, depth);
|
|
20115
20114
|
}
|
|
20116
20115
|
}
|
|
20117
20116
|
}
|
|
@@ -20119,11 +20118,10 @@ var ts;
|
|
|
20119
20118
|
ts.matchFiles = matchFiles;
|
|
20120
20119
|
/**
|
|
20121
20120
|
* Computes the unique non-wildcard base paths amongst the provided include patterns.
|
|
20122
|
-
* @returns Absolute directory paths
|
|
20123
20121
|
*/
|
|
20124
|
-
function getBasePaths(
|
|
20122
|
+
function getBasePaths(path, includes, useCaseSensitiveFileNames) {
|
|
20125
20123
|
// Storage for our results in the form of literal paths (e.g. the paths as written by the user).
|
|
20126
|
-
var basePaths = [
|
|
20124
|
+
var basePaths = [path];
|
|
20127
20125
|
if (includes) {
|
|
20128
20126
|
// Storage for literal base paths amongst the include patterns.
|
|
20129
20127
|
var includeBasePaths = [];
|
|
@@ -20131,14 +20129,14 @@ var ts;
|
|
|
20131
20129
|
var include = includes_1[_i];
|
|
20132
20130
|
// We also need to check the relative paths by converting them to absolute and normalizing
|
|
20133
20131
|
// in case they escape the base path (e.g "..\somedirectory")
|
|
20134
|
-
var
|
|
20132
|
+
var absolute = ts.isRootedDiskPath(include) ? include : ts.normalizePath(ts.combinePaths(path, include));
|
|
20135
20133
|
// Append the literal and canonical candidate base paths.
|
|
20136
|
-
includeBasePaths.push(getIncludeBasePath(
|
|
20134
|
+
includeBasePaths.push(getIncludeBasePath(absolute));
|
|
20137
20135
|
}
|
|
20138
20136
|
// Sort the offsets array using either the literal or canonical path representations.
|
|
20139
20137
|
includeBasePaths.sort(ts.getStringComparer(!useCaseSensitiveFileNames));
|
|
20140
20138
|
var _loop_2 = function (includeBasePath) {
|
|
20141
|
-
if (ts.every(basePaths, function (basePath) { return !ts.containsPath(basePath, includeBasePath,
|
|
20139
|
+
if (ts.every(basePaths, function (basePath) { return !ts.containsPath(basePath, includeBasePath, path, !useCaseSensitiveFileNames); })) {
|
|
20142
20140
|
basePaths.push(includeBasePath);
|
|
20143
20141
|
}
|
|
20144
20142
|
};
|
|
@@ -84537,7 +84535,7 @@ var ts;
|
|
|
84537
84535
|
if (!symbol) {
|
|
84538
84536
|
return false;
|
|
84539
84537
|
}
|
|
84540
|
-
var target = resolveAlias(symbol);
|
|
84538
|
+
var target = getExportSymbolOfValueSymbolIfExported(resolveAlias(symbol));
|
|
84541
84539
|
if (target === unknownSymbol) {
|
|
84542
84540
|
return true;
|
|
84543
84541
|
}
|
|
@@ -112525,7 +112523,7 @@ var ts;
|
|
|
112525
112523
|
var rootResult = tryReadDirectory(rootDir, rootDirPath);
|
|
112526
112524
|
var rootSymLinkResult;
|
|
112527
112525
|
if (rootResult !== undefined) {
|
|
112528
|
-
return ts.matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath
|
|
112526
|
+
return ts.matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath);
|
|
112529
112527
|
}
|
|
112530
112528
|
return host.readDirectory(rootDir, extensions, excludes, includes, depth);
|
|
112531
112529
|
function getFileSystemEntries(dir) {
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211115";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -7961,7 +7961,7 @@ var ts;
|
|
|
7961
7961
|
}
|
|
7962
7962
|
}
|
|
7963
7963
|
function readDirectory(path, extensions, excludes, includes, depth) {
|
|
7964
|
-
return ts.matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath
|
|
7964
|
+
return ts.matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath);
|
|
7965
7965
|
}
|
|
7966
7966
|
function fileSystemEntryExists(path, entryKind) {
|
|
7967
7967
|
// Since the error thrown by fs.statSync isn't used, we can avoid collecting a stack trace to improve
|
|
@@ -20239,7 +20239,7 @@ var ts;
|
|
|
20239
20239
|
includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"),
|
|
20240
20240
|
includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"),
|
|
20241
20241
|
excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"),
|
|
20242
|
-
basePaths: getBasePaths(
|
|
20242
|
+
basePaths: getBasePaths(path, includes, useCaseSensitiveFileNames)
|
|
20243
20243
|
};
|
|
20244
20244
|
}
|
|
20245
20245
|
ts.getFileMatcherPatterns = getFileMatcherPatterns;
|
|
@@ -20248,7 +20248,7 @@ var ts;
|
|
|
20248
20248
|
}
|
|
20249
20249
|
ts.getRegexFromPattern = getRegexFromPattern;
|
|
20250
20250
|
/** @param path directory of the tsconfig.json */
|
|
20251
|
-
function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath
|
|
20251
|
+
function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath) {
|
|
20252
20252
|
path = ts.normalizePath(path);
|
|
20253
20253
|
currentDirectory = ts.normalizePath(currentDirectory);
|
|
20254
20254
|
var patterns = getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames, currentDirectory);
|
|
@@ -20261,20 +20261,18 @@ var ts;
|
|
|
20261
20261
|
var visited = new ts.Map();
|
|
20262
20262
|
var toCanonical = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
20263
20263
|
for (var _i = 0, _a = patterns.basePaths; _i < _a.length; _i++) {
|
|
20264
|
-
var
|
|
20265
|
-
|
|
20266
|
-
visitDirectory(absoluteBasePath, depth);
|
|
20267
|
-
}
|
|
20264
|
+
var basePath = _a[_i];
|
|
20265
|
+
visitDirectory(basePath, ts.combinePaths(currentDirectory, basePath), depth);
|
|
20268
20266
|
}
|
|
20269
20267
|
return ts.flatten(results);
|
|
20270
|
-
function visitDirectory(absolutePath, depth) {
|
|
20268
|
+
function visitDirectory(path, absolutePath, depth) {
|
|
20271
20269
|
var canonicalPath = toCanonical(realpath(absolutePath));
|
|
20272
20270
|
if (visited.has(canonicalPath))
|
|
20273
20271
|
return;
|
|
20274
20272
|
visited.set(canonicalPath, true);
|
|
20275
|
-
var _a = getFileSystemEntries(
|
|
20273
|
+
var _a = getFileSystemEntries(path), files = _a.files, directories = _a.directories;
|
|
20276
20274
|
var _loop_1 = function (current) {
|
|
20277
|
-
var name = ts.combinePaths(
|
|
20275
|
+
var name = ts.combinePaths(path, current);
|
|
20278
20276
|
var absoluteName = ts.combinePaths(absolutePath, current);
|
|
20279
20277
|
if (extensions && !ts.fileExtensionIsOneOf(name, extensions))
|
|
20280
20278
|
return "continue";
|
|
@@ -20302,10 +20300,11 @@ var ts;
|
|
|
20302
20300
|
}
|
|
20303
20301
|
for (var _c = 0, _d = ts.sort(directories, ts.compareStringsCaseSensitive); _c < _d.length; _c++) {
|
|
20304
20302
|
var current = _d[_c];
|
|
20303
|
+
var name = ts.combinePaths(path, current);
|
|
20305
20304
|
var absoluteName = ts.combinePaths(absolutePath, current);
|
|
20306
20305
|
if ((!includeDirectoryRegex || includeDirectoryRegex.test(absoluteName)) &&
|
|
20307
20306
|
(!excludeRegex || !excludeRegex.test(absoluteName))) {
|
|
20308
|
-
visitDirectory(absoluteName, depth);
|
|
20307
|
+
visitDirectory(name, absoluteName, depth);
|
|
20309
20308
|
}
|
|
20310
20309
|
}
|
|
20311
20310
|
}
|
|
@@ -20313,11 +20312,10 @@ var ts;
|
|
|
20313
20312
|
ts.matchFiles = matchFiles;
|
|
20314
20313
|
/**
|
|
20315
20314
|
* Computes the unique non-wildcard base paths amongst the provided include patterns.
|
|
20316
|
-
* @returns Absolute directory paths
|
|
20317
20315
|
*/
|
|
20318
|
-
function getBasePaths(
|
|
20316
|
+
function getBasePaths(path, includes, useCaseSensitiveFileNames) {
|
|
20319
20317
|
// Storage for our results in the form of literal paths (e.g. the paths as written by the user).
|
|
20320
|
-
var basePaths = [
|
|
20318
|
+
var basePaths = [path];
|
|
20321
20319
|
if (includes) {
|
|
20322
20320
|
// Storage for literal base paths amongst the include patterns.
|
|
20323
20321
|
var includeBasePaths = [];
|
|
@@ -20325,14 +20323,14 @@ var ts;
|
|
|
20325
20323
|
var include = includes_1[_i];
|
|
20326
20324
|
// We also need to check the relative paths by converting them to absolute and normalizing
|
|
20327
20325
|
// in case they escape the base path (e.g "..\somedirectory")
|
|
20328
|
-
var
|
|
20326
|
+
var absolute = ts.isRootedDiskPath(include) ? include : ts.normalizePath(ts.combinePaths(path, include));
|
|
20329
20327
|
// Append the literal and canonical candidate base paths.
|
|
20330
|
-
includeBasePaths.push(getIncludeBasePath(
|
|
20328
|
+
includeBasePaths.push(getIncludeBasePath(absolute));
|
|
20331
20329
|
}
|
|
20332
20330
|
// Sort the offsets array using either the literal or canonical path representations.
|
|
20333
20331
|
includeBasePaths.sort(ts.getStringComparer(!useCaseSensitiveFileNames));
|
|
20334
20332
|
var _loop_2 = function (includeBasePath) {
|
|
20335
|
-
if (ts.every(basePaths, function (basePath) { return !ts.containsPath(basePath, includeBasePath,
|
|
20333
|
+
if (ts.every(basePaths, function (basePath) { return !ts.containsPath(basePath, includeBasePath, path, !useCaseSensitiveFileNames); })) {
|
|
20336
20334
|
basePaths.push(includeBasePath);
|
|
20337
20335
|
}
|
|
20338
20336
|
};
|
|
@@ -84731,7 +84729,7 @@ var ts;
|
|
|
84731
84729
|
if (!symbol) {
|
|
84732
84730
|
return false;
|
|
84733
84731
|
}
|
|
84734
|
-
var target = resolveAlias(symbol);
|
|
84732
|
+
var target = getExportSymbolOfValueSymbolIfExported(resolveAlias(symbol));
|
|
84735
84733
|
if (target === unknownSymbol) {
|
|
84736
84734
|
return true;
|
|
84737
84735
|
}
|
|
@@ -112719,7 +112717,7 @@ var ts;
|
|
|
112719
112717
|
var rootResult = tryReadDirectory(rootDir, rootDirPath);
|
|
112720
112718
|
var rootSymLinkResult;
|
|
112721
112719
|
if (rootResult !== undefined) {
|
|
112722
|
-
return ts.matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath
|
|
112720
|
+
return ts.matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath);
|
|
112723
112721
|
}
|
|
112724
112722
|
return host.readDirectory(rootDir, extensions, excludes, includes, depth);
|
|
112725
112723
|
function getFileSystemEntries(dir) {
|
package/lib/typescript.js
CHANGED
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211115";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -7961,7 +7961,7 @@ var ts;
|
|
|
7961
7961
|
}
|
|
7962
7962
|
}
|
|
7963
7963
|
function readDirectory(path, extensions, excludes, includes, depth) {
|
|
7964
|
-
return ts.matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath
|
|
7964
|
+
return ts.matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath);
|
|
7965
7965
|
}
|
|
7966
7966
|
function fileSystemEntryExists(path, entryKind) {
|
|
7967
7967
|
// Since the error thrown by fs.statSync isn't used, we can avoid collecting a stack trace to improve
|
|
@@ -20239,7 +20239,7 @@ var ts;
|
|
|
20239
20239
|
includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"),
|
|
20240
20240
|
includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"),
|
|
20241
20241
|
excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"),
|
|
20242
|
-
basePaths: getBasePaths(
|
|
20242
|
+
basePaths: getBasePaths(path, includes, useCaseSensitiveFileNames)
|
|
20243
20243
|
};
|
|
20244
20244
|
}
|
|
20245
20245
|
ts.getFileMatcherPatterns = getFileMatcherPatterns;
|
|
@@ -20248,7 +20248,7 @@ var ts;
|
|
|
20248
20248
|
}
|
|
20249
20249
|
ts.getRegexFromPattern = getRegexFromPattern;
|
|
20250
20250
|
/** @param path directory of the tsconfig.json */
|
|
20251
|
-
function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath
|
|
20251
|
+
function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath) {
|
|
20252
20252
|
path = ts.normalizePath(path);
|
|
20253
20253
|
currentDirectory = ts.normalizePath(currentDirectory);
|
|
20254
20254
|
var patterns = getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames, currentDirectory);
|
|
@@ -20261,20 +20261,18 @@ var ts;
|
|
|
20261
20261
|
var visited = new ts.Map();
|
|
20262
20262
|
var toCanonical = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
20263
20263
|
for (var _i = 0, _a = patterns.basePaths; _i < _a.length; _i++) {
|
|
20264
|
-
var
|
|
20265
|
-
|
|
20266
|
-
visitDirectory(absoluteBasePath, depth);
|
|
20267
|
-
}
|
|
20264
|
+
var basePath = _a[_i];
|
|
20265
|
+
visitDirectory(basePath, ts.combinePaths(currentDirectory, basePath), depth);
|
|
20268
20266
|
}
|
|
20269
20267
|
return ts.flatten(results);
|
|
20270
|
-
function visitDirectory(absolutePath, depth) {
|
|
20268
|
+
function visitDirectory(path, absolutePath, depth) {
|
|
20271
20269
|
var canonicalPath = toCanonical(realpath(absolutePath));
|
|
20272
20270
|
if (visited.has(canonicalPath))
|
|
20273
20271
|
return;
|
|
20274
20272
|
visited.set(canonicalPath, true);
|
|
20275
|
-
var _a = getFileSystemEntries(
|
|
20273
|
+
var _a = getFileSystemEntries(path), files = _a.files, directories = _a.directories;
|
|
20276
20274
|
var _loop_1 = function (current) {
|
|
20277
|
-
var name = ts.combinePaths(
|
|
20275
|
+
var name = ts.combinePaths(path, current);
|
|
20278
20276
|
var absoluteName = ts.combinePaths(absolutePath, current);
|
|
20279
20277
|
if (extensions && !ts.fileExtensionIsOneOf(name, extensions))
|
|
20280
20278
|
return "continue";
|
|
@@ -20302,10 +20300,11 @@ var ts;
|
|
|
20302
20300
|
}
|
|
20303
20301
|
for (var _c = 0, _d = ts.sort(directories, ts.compareStringsCaseSensitive); _c < _d.length; _c++) {
|
|
20304
20302
|
var current = _d[_c];
|
|
20303
|
+
var name = ts.combinePaths(path, current);
|
|
20305
20304
|
var absoluteName = ts.combinePaths(absolutePath, current);
|
|
20306
20305
|
if ((!includeDirectoryRegex || includeDirectoryRegex.test(absoluteName)) &&
|
|
20307
20306
|
(!excludeRegex || !excludeRegex.test(absoluteName))) {
|
|
20308
|
-
visitDirectory(absoluteName, depth);
|
|
20307
|
+
visitDirectory(name, absoluteName, depth);
|
|
20309
20308
|
}
|
|
20310
20309
|
}
|
|
20311
20310
|
}
|
|
@@ -20313,11 +20312,10 @@ var ts;
|
|
|
20313
20312
|
ts.matchFiles = matchFiles;
|
|
20314
20313
|
/**
|
|
20315
20314
|
* Computes the unique non-wildcard base paths amongst the provided include patterns.
|
|
20316
|
-
* @returns Absolute directory paths
|
|
20317
20315
|
*/
|
|
20318
|
-
function getBasePaths(
|
|
20316
|
+
function getBasePaths(path, includes, useCaseSensitiveFileNames) {
|
|
20319
20317
|
// Storage for our results in the form of literal paths (e.g. the paths as written by the user).
|
|
20320
|
-
var basePaths = [
|
|
20318
|
+
var basePaths = [path];
|
|
20321
20319
|
if (includes) {
|
|
20322
20320
|
// Storage for literal base paths amongst the include patterns.
|
|
20323
20321
|
var includeBasePaths = [];
|
|
@@ -20325,14 +20323,14 @@ var ts;
|
|
|
20325
20323
|
var include = includes_1[_i];
|
|
20326
20324
|
// We also need to check the relative paths by converting them to absolute and normalizing
|
|
20327
20325
|
// in case they escape the base path (e.g "..\somedirectory")
|
|
20328
|
-
var
|
|
20326
|
+
var absolute = ts.isRootedDiskPath(include) ? include : ts.normalizePath(ts.combinePaths(path, include));
|
|
20329
20327
|
// Append the literal and canonical candidate base paths.
|
|
20330
|
-
includeBasePaths.push(getIncludeBasePath(
|
|
20328
|
+
includeBasePaths.push(getIncludeBasePath(absolute));
|
|
20331
20329
|
}
|
|
20332
20330
|
// Sort the offsets array using either the literal or canonical path representations.
|
|
20333
20331
|
includeBasePaths.sort(ts.getStringComparer(!useCaseSensitiveFileNames));
|
|
20334
20332
|
var _loop_2 = function (includeBasePath) {
|
|
20335
|
-
if (ts.every(basePaths, function (basePath) { return !ts.containsPath(basePath, includeBasePath,
|
|
20333
|
+
if (ts.every(basePaths, function (basePath) { return !ts.containsPath(basePath, includeBasePath, path, !useCaseSensitiveFileNames); })) {
|
|
20336
20334
|
basePaths.push(includeBasePath);
|
|
20337
20335
|
}
|
|
20338
20336
|
};
|
|
@@ -84731,7 +84729,7 @@ var ts;
|
|
|
84731
84729
|
if (!symbol) {
|
|
84732
84730
|
return false;
|
|
84733
84731
|
}
|
|
84734
|
-
var target = resolveAlias(symbol);
|
|
84732
|
+
var target = getExportSymbolOfValueSymbolIfExported(resolveAlias(symbol));
|
|
84735
84733
|
if (target === unknownSymbol) {
|
|
84736
84734
|
return true;
|
|
84737
84735
|
}
|
|
@@ -112719,7 +112717,7 @@ var ts;
|
|
|
112719
112717
|
var rootResult = tryReadDirectory(rootDir, rootDirPath);
|
|
112720
112718
|
var rootSymLinkResult;
|
|
112721
112719
|
if (rootResult !== undefined) {
|
|
112722
|
-
return ts.matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath
|
|
112720
|
+
return ts.matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath);
|
|
112723
112721
|
}
|
|
112724
112722
|
return host.readDirectory(rootDir, extensions, excludes, includes, depth);
|
|
112725
112723
|
function getFileSystemEntries(dir) {
|
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211115";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -7961,7 +7961,7 @@ var ts;
|
|
|
7961
7961
|
}
|
|
7962
7962
|
}
|
|
7963
7963
|
function readDirectory(path, extensions, excludes, includes, depth) {
|
|
7964
|
-
return ts.matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath
|
|
7964
|
+
return ts.matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath);
|
|
7965
7965
|
}
|
|
7966
7966
|
function fileSystemEntryExists(path, entryKind) {
|
|
7967
7967
|
// Since the error thrown by fs.statSync isn't used, we can avoid collecting a stack trace to improve
|
|
@@ -20239,7 +20239,7 @@ var ts;
|
|
|
20239
20239
|
includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"),
|
|
20240
20240
|
includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"),
|
|
20241
20241
|
excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"),
|
|
20242
|
-
basePaths: getBasePaths(
|
|
20242
|
+
basePaths: getBasePaths(path, includes, useCaseSensitiveFileNames)
|
|
20243
20243
|
};
|
|
20244
20244
|
}
|
|
20245
20245
|
ts.getFileMatcherPatterns = getFileMatcherPatterns;
|
|
@@ -20248,7 +20248,7 @@ var ts;
|
|
|
20248
20248
|
}
|
|
20249
20249
|
ts.getRegexFromPattern = getRegexFromPattern;
|
|
20250
20250
|
/** @param path directory of the tsconfig.json */
|
|
20251
|
-
function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath
|
|
20251
|
+
function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath) {
|
|
20252
20252
|
path = ts.normalizePath(path);
|
|
20253
20253
|
currentDirectory = ts.normalizePath(currentDirectory);
|
|
20254
20254
|
var patterns = getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames, currentDirectory);
|
|
@@ -20261,20 +20261,18 @@ var ts;
|
|
|
20261
20261
|
var visited = new ts.Map();
|
|
20262
20262
|
var toCanonical = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
20263
20263
|
for (var _i = 0, _a = patterns.basePaths; _i < _a.length; _i++) {
|
|
20264
|
-
var
|
|
20265
|
-
|
|
20266
|
-
visitDirectory(absoluteBasePath, depth);
|
|
20267
|
-
}
|
|
20264
|
+
var basePath = _a[_i];
|
|
20265
|
+
visitDirectory(basePath, ts.combinePaths(currentDirectory, basePath), depth);
|
|
20268
20266
|
}
|
|
20269
20267
|
return ts.flatten(results);
|
|
20270
|
-
function visitDirectory(absolutePath, depth) {
|
|
20268
|
+
function visitDirectory(path, absolutePath, depth) {
|
|
20271
20269
|
var canonicalPath = toCanonical(realpath(absolutePath));
|
|
20272
20270
|
if (visited.has(canonicalPath))
|
|
20273
20271
|
return;
|
|
20274
20272
|
visited.set(canonicalPath, true);
|
|
20275
|
-
var _a = getFileSystemEntries(
|
|
20273
|
+
var _a = getFileSystemEntries(path), files = _a.files, directories = _a.directories;
|
|
20276
20274
|
var _loop_1 = function (current) {
|
|
20277
|
-
var name = ts.combinePaths(
|
|
20275
|
+
var name = ts.combinePaths(path, current);
|
|
20278
20276
|
var absoluteName = ts.combinePaths(absolutePath, current);
|
|
20279
20277
|
if (extensions && !ts.fileExtensionIsOneOf(name, extensions))
|
|
20280
20278
|
return "continue";
|
|
@@ -20302,10 +20300,11 @@ var ts;
|
|
|
20302
20300
|
}
|
|
20303
20301
|
for (var _c = 0, _d = ts.sort(directories, ts.compareStringsCaseSensitive); _c < _d.length; _c++) {
|
|
20304
20302
|
var current = _d[_c];
|
|
20303
|
+
var name = ts.combinePaths(path, current);
|
|
20305
20304
|
var absoluteName = ts.combinePaths(absolutePath, current);
|
|
20306
20305
|
if ((!includeDirectoryRegex || includeDirectoryRegex.test(absoluteName)) &&
|
|
20307
20306
|
(!excludeRegex || !excludeRegex.test(absoluteName))) {
|
|
20308
|
-
visitDirectory(absoluteName, depth);
|
|
20307
|
+
visitDirectory(name, absoluteName, depth);
|
|
20309
20308
|
}
|
|
20310
20309
|
}
|
|
20311
20310
|
}
|
|
@@ -20313,11 +20312,10 @@ var ts;
|
|
|
20313
20312
|
ts.matchFiles = matchFiles;
|
|
20314
20313
|
/**
|
|
20315
20314
|
* Computes the unique non-wildcard base paths amongst the provided include patterns.
|
|
20316
|
-
* @returns Absolute directory paths
|
|
20317
20315
|
*/
|
|
20318
|
-
function getBasePaths(
|
|
20316
|
+
function getBasePaths(path, includes, useCaseSensitiveFileNames) {
|
|
20319
20317
|
// Storage for our results in the form of literal paths (e.g. the paths as written by the user).
|
|
20320
|
-
var basePaths = [
|
|
20318
|
+
var basePaths = [path];
|
|
20321
20319
|
if (includes) {
|
|
20322
20320
|
// Storage for literal base paths amongst the include patterns.
|
|
20323
20321
|
var includeBasePaths = [];
|
|
@@ -20325,14 +20323,14 @@ var ts;
|
|
|
20325
20323
|
var include = includes_1[_i];
|
|
20326
20324
|
// We also need to check the relative paths by converting them to absolute and normalizing
|
|
20327
20325
|
// in case they escape the base path (e.g "..\somedirectory")
|
|
20328
|
-
var
|
|
20326
|
+
var absolute = ts.isRootedDiskPath(include) ? include : ts.normalizePath(ts.combinePaths(path, include));
|
|
20329
20327
|
// Append the literal and canonical candidate base paths.
|
|
20330
|
-
includeBasePaths.push(getIncludeBasePath(
|
|
20328
|
+
includeBasePaths.push(getIncludeBasePath(absolute));
|
|
20331
20329
|
}
|
|
20332
20330
|
// Sort the offsets array using either the literal or canonical path representations.
|
|
20333
20331
|
includeBasePaths.sort(ts.getStringComparer(!useCaseSensitiveFileNames));
|
|
20334
20332
|
var _loop_2 = function (includeBasePath) {
|
|
20335
|
-
if (ts.every(basePaths, function (basePath) { return !ts.containsPath(basePath, includeBasePath,
|
|
20333
|
+
if (ts.every(basePaths, function (basePath) { return !ts.containsPath(basePath, includeBasePath, path, !useCaseSensitiveFileNames); })) {
|
|
20336
20334
|
basePaths.push(includeBasePath);
|
|
20337
20335
|
}
|
|
20338
20336
|
};
|
|
@@ -84731,7 +84729,7 @@ var ts;
|
|
|
84731
84729
|
if (!symbol) {
|
|
84732
84730
|
return false;
|
|
84733
84731
|
}
|
|
84734
|
-
var target = resolveAlias(symbol);
|
|
84732
|
+
var target = getExportSymbolOfValueSymbolIfExported(resolveAlias(symbol));
|
|
84735
84733
|
if (target === unknownSymbol) {
|
|
84736
84734
|
return true;
|
|
84737
84735
|
}
|
|
@@ -112719,7 +112717,7 @@ var ts;
|
|
|
112719
112717
|
var rootResult = tryReadDirectory(rootDir, rootDirPath);
|
|
112720
112718
|
var rootSymLinkResult;
|
|
112721
112719
|
if (rootResult !== undefined) {
|
|
112722
|
-
return ts.matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath
|
|
112720
|
+
return ts.matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath);
|
|
112723
112721
|
}
|
|
112724
112722
|
return host.readDirectory(rootDir, extensions, excludes, includes, depth);
|
|
112725
112723
|
function getFileSystemEntries(dir) {
|
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 = ts.versionMajorMinor + ".0-dev.
|
|
92
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211115";
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -7756,7 +7756,7 @@ var ts;
|
|
|
7756
7756
|
}
|
|
7757
7757
|
}
|
|
7758
7758
|
function readDirectory(path, extensions, excludes, includes, depth) {
|
|
7759
|
-
return ts.matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath
|
|
7759
|
+
return ts.matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath);
|
|
7760
7760
|
}
|
|
7761
7761
|
function fileSystemEntryExists(path, entryKind) {
|
|
7762
7762
|
// Since the error thrown by fs.statSync isn't used, we can avoid collecting a stack trace to improve
|
|
@@ -20034,7 +20034,7 @@ var ts;
|
|
|
20034
20034
|
includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"),
|
|
20035
20035
|
includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"),
|
|
20036
20036
|
excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"),
|
|
20037
|
-
basePaths: getBasePaths(
|
|
20037
|
+
basePaths: getBasePaths(path, includes, useCaseSensitiveFileNames)
|
|
20038
20038
|
};
|
|
20039
20039
|
}
|
|
20040
20040
|
ts.getFileMatcherPatterns = getFileMatcherPatterns;
|
|
@@ -20043,7 +20043,7 @@ var ts;
|
|
|
20043
20043
|
}
|
|
20044
20044
|
ts.getRegexFromPattern = getRegexFromPattern;
|
|
20045
20045
|
/** @param path directory of the tsconfig.json */
|
|
20046
|
-
function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath
|
|
20046
|
+
function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath) {
|
|
20047
20047
|
path = ts.normalizePath(path);
|
|
20048
20048
|
currentDirectory = ts.normalizePath(currentDirectory);
|
|
20049
20049
|
var patterns = getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames, currentDirectory);
|
|
@@ -20056,20 +20056,18 @@ var ts;
|
|
|
20056
20056
|
var visited = new ts.Map();
|
|
20057
20057
|
var toCanonical = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
20058
20058
|
for (var _i = 0, _a = patterns.basePaths; _i < _a.length; _i++) {
|
|
20059
|
-
var
|
|
20060
|
-
|
|
20061
|
-
visitDirectory(absoluteBasePath, depth);
|
|
20062
|
-
}
|
|
20059
|
+
var basePath = _a[_i];
|
|
20060
|
+
visitDirectory(basePath, ts.combinePaths(currentDirectory, basePath), depth);
|
|
20063
20061
|
}
|
|
20064
20062
|
return ts.flatten(results);
|
|
20065
|
-
function visitDirectory(absolutePath, depth) {
|
|
20063
|
+
function visitDirectory(path, absolutePath, depth) {
|
|
20066
20064
|
var canonicalPath = toCanonical(realpath(absolutePath));
|
|
20067
20065
|
if (visited.has(canonicalPath))
|
|
20068
20066
|
return;
|
|
20069
20067
|
visited.set(canonicalPath, true);
|
|
20070
|
-
var _a = getFileSystemEntries(
|
|
20068
|
+
var _a = getFileSystemEntries(path), files = _a.files, directories = _a.directories;
|
|
20071
20069
|
var _loop_1 = function (current) {
|
|
20072
|
-
var name = ts.combinePaths(
|
|
20070
|
+
var name = ts.combinePaths(path, current);
|
|
20073
20071
|
var absoluteName = ts.combinePaths(absolutePath, current);
|
|
20074
20072
|
if (extensions && !ts.fileExtensionIsOneOf(name, extensions))
|
|
20075
20073
|
return "continue";
|
|
@@ -20097,10 +20095,11 @@ var ts;
|
|
|
20097
20095
|
}
|
|
20098
20096
|
for (var _c = 0, _d = ts.sort(directories, ts.compareStringsCaseSensitive); _c < _d.length; _c++) {
|
|
20099
20097
|
var current = _d[_c];
|
|
20098
|
+
var name = ts.combinePaths(path, current);
|
|
20100
20099
|
var absoluteName = ts.combinePaths(absolutePath, current);
|
|
20101
20100
|
if ((!includeDirectoryRegex || includeDirectoryRegex.test(absoluteName)) &&
|
|
20102
20101
|
(!excludeRegex || !excludeRegex.test(absoluteName))) {
|
|
20103
|
-
visitDirectory(absoluteName, depth);
|
|
20102
|
+
visitDirectory(name, absoluteName, depth);
|
|
20104
20103
|
}
|
|
20105
20104
|
}
|
|
20106
20105
|
}
|
|
@@ -20108,11 +20107,10 @@ var ts;
|
|
|
20108
20107
|
ts.matchFiles = matchFiles;
|
|
20109
20108
|
/**
|
|
20110
20109
|
* Computes the unique non-wildcard base paths amongst the provided include patterns.
|
|
20111
|
-
* @returns Absolute directory paths
|
|
20112
20110
|
*/
|
|
20113
|
-
function getBasePaths(
|
|
20111
|
+
function getBasePaths(path, includes, useCaseSensitiveFileNames) {
|
|
20114
20112
|
// Storage for our results in the form of literal paths (e.g. the paths as written by the user).
|
|
20115
|
-
var basePaths = [
|
|
20113
|
+
var basePaths = [path];
|
|
20116
20114
|
if (includes) {
|
|
20117
20115
|
// Storage for literal base paths amongst the include patterns.
|
|
20118
20116
|
var includeBasePaths = [];
|
|
@@ -20120,14 +20118,14 @@ var ts;
|
|
|
20120
20118
|
var include = includes_1[_i];
|
|
20121
20119
|
// We also need to check the relative paths by converting them to absolute and normalizing
|
|
20122
20120
|
// in case they escape the base path (e.g "..\somedirectory")
|
|
20123
|
-
var
|
|
20121
|
+
var absolute = ts.isRootedDiskPath(include) ? include : ts.normalizePath(ts.combinePaths(path, include));
|
|
20124
20122
|
// Append the literal and canonical candidate base paths.
|
|
20125
|
-
includeBasePaths.push(getIncludeBasePath(
|
|
20123
|
+
includeBasePaths.push(getIncludeBasePath(absolute));
|
|
20126
20124
|
}
|
|
20127
20125
|
// Sort the offsets array using either the literal or canonical path representations.
|
|
20128
20126
|
includeBasePaths.sort(ts.getStringComparer(!useCaseSensitiveFileNames));
|
|
20129
20127
|
var _loop_2 = function (includeBasePath) {
|
|
20130
|
-
if (ts.every(basePaths, function (basePath) { return !ts.containsPath(basePath, includeBasePath,
|
|
20128
|
+
if (ts.every(basePaths, function (basePath) { return !ts.containsPath(basePath, includeBasePath, path, !useCaseSensitiveFileNames); })) {
|
|
20131
20129
|
basePaths.push(includeBasePath);
|
|
20132
20130
|
}
|
|
20133
20131
|
};
|
|
@@ -84526,7 +84524,7 @@ var ts;
|
|
|
84526
84524
|
if (!symbol) {
|
|
84527
84525
|
return false;
|
|
84528
84526
|
}
|
|
84529
|
-
var target = resolveAlias(symbol);
|
|
84527
|
+
var target = getExportSymbolOfValueSymbolIfExported(resolveAlias(symbol));
|
|
84530
84528
|
if (target === unknownSymbol) {
|
|
84531
84529
|
return true;
|
|
84532
84530
|
}
|
|
@@ -112514,7 +112512,7 @@ var ts;
|
|
|
112514
112512
|
var rootResult = tryReadDirectory(rootDir, rootDirPath);
|
|
112515
112513
|
var rootSymLinkResult;
|
|
112516
112514
|
if (rootResult !== undefined) {
|
|
112517
|
-
return ts.matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath
|
|
112515
|
+
return ts.matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath);
|
|
112518
112516
|
}
|
|
112519
112517
|
return host.readDirectory(rootDir, extensions, excludes, includes, depth);
|
|
112520
112518
|
function getFileSystemEntries(dir) {
|
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.6.0-dev.
|
|
5
|
+
"version": "4.6.0-dev.20211115",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|