@typescript-deploys/pr-build 5.6.0-pr-59059-2 → 5.6.0-pr-59048-24
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 +76 -46
- package/lib/typescript.js +76 -46
- package/package.json +1 -1
package/lib/tsc.js
CHANGED
|
@@ -18,7 +18,7 @@ and limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
// src/compiler/corePublic.ts
|
|
20
20
|
var versionMajorMinor = "5.6";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20240628`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -1078,10 +1078,10 @@ function matchedText(pattern, candidate) {
|
|
|
1078
1078
|
Debug.assert(isPatternMatch(pattern, candidate));
|
|
1079
1079
|
return candidate.substring(pattern.prefix.length, candidate.length - pattern.suffix.length);
|
|
1080
1080
|
}
|
|
1081
|
-
function findBestPatternMatch(values, getPattern, candidate) {
|
|
1081
|
+
function findBestPatternMatch(values, getPattern, candidate, endIndex = values.length) {
|
|
1082
1082
|
let matchedValue;
|
|
1083
1083
|
let longestMatchPrefixLength = -1;
|
|
1084
|
-
for (let i = 0; i <
|
|
1084
|
+
for (let i = 0; i < endIndex; i++) {
|
|
1085
1085
|
const v = values[i];
|
|
1086
1086
|
const pattern = getPattern(v);
|
|
1087
1087
|
if (isPatternMatch(pattern, candidate) && pattern.prefix.length > longestMatchPrefixLength) {
|
|
@@ -18279,8 +18279,37 @@ function tryParsePattern(pattern) {
|
|
|
18279
18279
|
suffix: pattern.substr(indexOfStar + 1)
|
|
18280
18280
|
};
|
|
18281
18281
|
}
|
|
18282
|
-
|
|
18283
|
-
|
|
18282
|
+
var parsedPatternsCache = /* @__PURE__ */ new WeakMap();
|
|
18283
|
+
function tryParsePatterns(paths, sortByAggregateLength = false) {
|
|
18284
|
+
let result = parsedPatternsCache.get(paths);
|
|
18285
|
+
if (result !== void 0) {
|
|
18286
|
+
return result;
|
|
18287
|
+
}
|
|
18288
|
+
let matchableStringSet;
|
|
18289
|
+
let sortedPatterns;
|
|
18290
|
+
const pathList = getOwnKeys(paths);
|
|
18291
|
+
for (const path of pathList) {
|
|
18292
|
+
const patternOrStr = tryParsePattern(path);
|
|
18293
|
+
if (patternOrStr === void 0) {
|
|
18294
|
+
continue;
|
|
18295
|
+
} else if (typeof patternOrStr === "string") {
|
|
18296
|
+
(matchableStringSet ?? (matchableStringSet = /* @__PURE__ */ new Set())).add(patternOrStr);
|
|
18297
|
+
} else {
|
|
18298
|
+
(sortedPatterns ?? (sortedPatterns = [])).push(patternOrStr);
|
|
18299
|
+
}
|
|
18300
|
+
}
|
|
18301
|
+
sortedPatterns == null ? void 0 : sortedPatterns.sort((a, b) => {
|
|
18302
|
+
const prefixComparison = compareStringsCaseSensitive(a.prefix, b.prefix);
|
|
18303
|
+
if (prefixComparison === 0 && sortByAggregateLength) {
|
|
18304
|
+
return a.suffix.length - b.suffix.length;
|
|
18305
|
+
}
|
|
18306
|
+
return prefixComparison;
|
|
18307
|
+
});
|
|
18308
|
+
parsedPatternsCache.set(paths, result = {
|
|
18309
|
+
matchableStringSet,
|
|
18310
|
+
sortedPatterns
|
|
18311
|
+
});
|
|
18312
|
+
return result;
|
|
18284
18313
|
}
|
|
18285
18314
|
function positionIsSynthesized(pos) {
|
|
18286
18315
|
return !(pos >= 0);
|
|
@@ -18306,16 +18335,43 @@ var emptyFileSystemEntries = {
|
|
|
18306
18335
|
directories: emptyArray
|
|
18307
18336
|
};
|
|
18308
18337
|
function matchPatternOrExact(patternOrStrings, candidate) {
|
|
18309
|
-
const
|
|
18310
|
-
|
|
18311
|
-
|
|
18312
|
-
|
|
18338
|
+
const { matchableStringSet, sortedPatterns } = patternOrStrings;
|
|
18339
|
+
if (matchableStringSet == null ? void 0 : matchableStringSet.has(candidate)) {
|
|
18340
|
+
return candidate;
|
|
18341
|
+
}
|
|
18342
|
+
if (sortedPatterns === void 0 || sortedPatterns.length === 0) {
|
|
18343
|
+
return void 0;
|
|
18344
|
+
}
|
|
18345
|
+
let index = binarySearchKey(sortedPatterns, candidate, getPatternPrefix, compareStringsCaseSensitive);
|
|
18346
|
+
if (index < 0) {
|
|
18347
|
+
index = ~index;
|
|
18348
|
+
}
|
|
18349
|
+
if (index >= sortedPatterns.length) {
|
|
18350
|
+
index--;
|
|
18351
|
+
}
|
|
18352
|
+
const groupPrefix = sortedPatterns[index].prefix;
|
|
18353
|
+
while (index > 0 && groupPrefix === sortedPatterns[index - 1].prefix) {
|
|
18354
|
+
index--;
|
|
18355
|
+
}
|
|
18356
|
+
for (let i = index; i < sortedPatterns.length; i++) {
|
|
18357
|
+
const currentPattern = sortedPatterns[i];
|
|
18358
|
+
if (currentPattern.prefix !== groupPrefix) {
|
|
18359
|
+
break;
|
|
18313
18360
|
}
|
|
18314
|
-
if (
|
|
18315
|
-
|
|
18361
|
+
if (isPatternMatch(currentPattern, candidate)) {
|
|
18362
|
+
return currentPattern;
|
|
18316
18363
|
}
|
|
18317
18364
|
}
|
|
18318
|
-
return findBestPatternMatch(
|
|
18365
|
+
return findBestPatternMatch(
|
|
18366
|
+
sortedPatterns,
|
|
18367
|
+
(_) => _,
|
|
18368
|
+
candidate,
|
|
18369
|
+
/*endIndex*/
|
|
18370
|
+
index
|
|
18371
|
+
);
|
|
18372
|
+
}
|
|
18373
|
+
function getPatternPrefix(pattern) {
|
|
18374
|
+
return pattern.prefix;
|
|
18319
18375
|
}
|
|
18320
18376
|
function sliceAfter(arr, value) {
|
|
18321
18377
|
const index = arr.indexOf(value);
|
|
@@ -37938,8 +37994,6 @@ function parseJsonConfigFileContentWorker(json, sourceFile, host, basePath, exis
|
|
|
37938
37994
|
validatedFilesSpecBeforeSubstitution,
|
|
37939
37995
|
validatedIncludeSpecsBeforeSubstitution,
|
|
37940
37996
|
validatedExcludeSpecsBeforeSubstitution,
|
|
37941
|
-
pathPatterns: void 0,
|
|
37942
|
-
// Initialized on first use
|
|
37943
37997
|
isDefaultIncludeSpec
|
|
37944
37998
|
};
|
|
37945
37999
|
}
|
|
@@ -39564,8 +39618,7 @@ function tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, co
|
|
|
39564
39618
|
}
|
|
39565
39619
|
}
|
|
39566
39620
|
function tryLoadModuleUsingPathsIfEligible(extensions, moduleName, loader, state) {
|
|
39567
|
-
|
|
39568
|
-
const { baseUrl, paths, configFile } = state.compilerOptions;
|
|
39621
|
+
const { baseUrl, paths } = state.compilerOptions;
|
|
39569
39622
|
if (paths && !pathIsRelative(moduleName)) {
|
|
39570
39623
|
if (state.traceEnabled) {
|
|
39571
39624
|
if (baseUrl) {
|
|
@@ -39574,7 +39627,7 @@ function tryLoadModuleUsingPathsIfEligible(extensions, moduleName, loader, state
|
|
|
39574
39627
|
trace(state.host, Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0, moduleName);
|
|
39575
39628
|
}
|
|
39576
39629
|
const baseDirectory = getPathsBasePath(state.compilerOptions, state.host);
|
|
39577
|
-
const pathPatterns =
|
|
39630
|
+
const pathPatterns = tryParsePatterns(paths);
|
|
39578
39631
|
return tryLoadModuleUsingPaths(
|
|
39579
39632
|
extensions,
|
|
39580
39633
|
moduleName,
|
|
@@ -40252,17 +40305,8 @@ function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFail
|
|
|
40252
40305
|
if (state.traceEnabled) {
|
|
40253
40306
|
trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, versionPaths.version, version, moduleName);
|
|
40254
40307
|
}
|
|
40255
|
-
const
|
|
40256
|
-
|
|
40257
|
-
moduleName,
|
|
40258
|
-
candidate,
|
|
40259
|
-
versionPaths.paths,
|
|
40260
|
-
/*pathPatterns*/
|
|
40261
|
-
void 0,
|
|
40262
|
-
loader,
|
|
40263
|
-
onlyRecordFailuresForPackageFile || onlyRecordFailuresForIndex,
|
|
40264
|
-
state
|
|
40265
|
-
);
|
|
40308
|
+
const pathPatterns = tryParsePatterns(versionPaths.paths);
|
|
40309
|
+
const result = tryLoadModuleUsingPaths(extensions, moduleName, candidate, versionPaths.paths, pathPatterns, loader, onlyRecordFailuresForPackageFile || onlyRecordFailuresForIndex, state);
|
|
40266
40310
|
if (result) {
|
|
40267
40311
|
return removeIgnoredPackageId(result.value);
|
|
40268
40312
|
}
|
|
@@ -40854,17 +40898,8 @@ function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, node
|
|
|
40854
40898
|
trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, versionPaths.version, version, rest);
|
|
40855
40899
|
}
|
|
40856
40900
|
const packageDirectoryExists = nodeModulesDirectoryExists && directoryProbablyExists(packageDirectory, state.host);
|
|
40857
|
-
const
|
|
40858
|
-
|
|
40859
|
-
rest,
|
|
40860
|
-
packageDirectory,
|
|
40861
|
-
versionPaths.paths,
|
|
40862
|
-
/*pathPatterns*/
|
|
40863
|
-
void 0,
|
|
40864
|
-
loader,
|
|
40865
|
-
!packageDirectoryExists,
|
|
40866
|
-
state
|
|
40867
|
-
);
|
|
40901
|
+
const pathPatterns = tryParsePatterns(versionPaths.paths);
|
|
40902
|
+
const fromPaths = tryLoadModuleUsingPaths(extensions, rest, packageDirectory, versionPaths.paths, pathPatterns, loader, !packageDirectoryExists, state);
|
|
40868
40903
|
if (fromPaths) {
|
|
40869
40904
|
return fromPaths.value;
|
|
40870
40905
|
}
|
|
@@ -40872,7 +40907,6 @@ function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, node
|
|
|
40872
40907
|
return loader(extensions, candidate, !nodeModulesDirectoryExists, state);
|
|
40873
40908
|
}
|
|
40874
40909
|
function tryLoadModuleUsingPaths(extensions, moduleName, baseDirectory, paths, pathPatterns, loader, onlyRecordFailures, state) {
|
|
40875
|
-
pathPatterns || (pathPatterns = tryParsePatterns(paths));
|
|
40876
40910
|
const matchedPattern = matchPatternOrExact(pathPatterns, moduleName);
|
|
40877
40911
|
if (matchedPattern) {
|
|
40878
40912
|
const matchedStar = isString(matchedPattern) ? void 0 : matchedText(matchedPattern, moduleName);
|
|
@@ -67597,11 +67631,7 @@ function createTypeChecker(host) {
|
|
|
67597
67631
|
}
|
|
67598
67632
|
function getTypeFactsWorker(type, callerOnlyNeeds) {
|
|
67599
67633
|
if (type.flags & (2097152 /* Intersection */ | 465829888 /* Instantiable */)) {
|
|
67600
|
-
|
|
67601
|
-
if (strictNullChecks && type.flags & 465829888 /* Instantiable */ && constraintType === unknownType) {
|
|
67602
|
-
return callerOnlyNeeds;
|
|
67603
|
-
}
|
|
67604
|
-
type = constraintType;
|
|
67634
|
+
type = getBaseConstraintOfType(type) || unknownType;
|
|
67605
67635
|
}
|
|
67606
67636
|
const flags = type.flags;
|
|
67607
67637
|
if (flags & (4 /* String */ | 268435456 /* StringMapping */)) {
|
|
@@ -67701,7 +67731,7 @@ function createTypeChecker(host) {
|
|
|
67701
67731
|
return type;
|
|
67702
67732
|
}
|
|
67703
67733
|
const emptyAndOtherUnion = getUnionType([emptyObjectType, otherType]);
|
|
67704
|
-
return mapType(type, (t) => hasTypeFacts(t, targetFacts) ? getIntersectionType([t,
|
|
67734
|
+
return mapType(type, (t) => hasTypeFacts(t, targetFacts) ? getIntersectionType([t, !(facts & otherIncludesFacts) && hasTypeFacts(t, otherFacts) ? emptyAndOtherUnion : emptyObjectType]) : t);
|
|
67705
67735
|
}
|
|
67706
67736
|
function recombineUnknownType(type) {
|
|
67707
67737
|
return type === unknownUnionType ? unknownType : type;
|
package/lib/typescript.js
CHANGED
|
@@ -2250,7 +2250,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2250
2250
|
|
|
2251
2251
|
// src/compiler/corePublic.ts
|
|
2252
2252
|
var versionMajorMinor = "5.6";
|
|
2253
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2253
|
+
var version = `${versionMajorMinor}.0-insiders.20240628`;
|
|
2254
2254
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2255
2255
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2256
2256
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -3602,10 +3602,10 @@ function matchedText(pattern, candidate) {
|
|
|
3602
3602
|
Debug.assert(isPatternMatch(pattern, candidate));
|
|
3603
3603
|
return candidate.substring(pattern.prefix.length, candidate.length - pattern.suffix.length);
|
|
3604
3604
|
}
|
|
3605
|
-
function findBestPatternMatch(values, getPattern, candidate) {
|
|
3605
|
+
function findBestPatternMatch(values, getPattern, candidate, endIndex = values.length) {
|
|
3606
3606
|
let matchedValue;
|
|
3607
3607
|
let longestMatchPrefixLength = -1;
|
|
3608
|
-
for (let i = 0; i <
|
|
3608
|
+
for (let i = 0; i < endIndex; i++) {
|
|
3609
3609
|
const v = values[i];
|
|
3610
3610
|
const pattern = getPattern(v);
|
|
3611
3611
|
if (isPatternMatch(pattern, candidate) && pattern.prefix.length > longestMatchPrefixLength) {
|
|
@@ -22244,8 +22244,37 @@ function tryParsePattern(pattern) {
|
|
|
22244
22244
|
suffix: pattern.substr(indexOfStar + 1)
|
|
22245
22245
|
};
|
|
22246
22246
|
}
|
|
22247
|
-
|
|
22248
|
-
|
|
22247
|
+
var parsedPatternsCache = /* @__PURE__ */ new WeakMap();
|
|
22248
|
+
function tryParsePatterns(paths, sortByAggregateLength = false) {
|
|
22249
|
+
let result = parsedPatternsCache.get(paths);
|
|
22250
|
+
if (result !== void 0) {
|
|
22251
|
+
return result;
|
|
22252
|
+
}
|
|
22253
|
+
let matchableStringSet;
|
|
22254
|
+
let sortedPatterns;
|
|
22255
|
+
const pathList = getOwnKeys(paths);
|
|
22256
|
+
for (const path of pathList) {
|
|
22257
|
+
const patternOrStr = tryParsePattern(path);
|
|
22258
|
+
if (patternOrStr === void 0) {
|
|
22259
|
+
continue;
|
|
22260
|
+
} else if (typeof patternOrStr === "string") {
|
|
22261
|
+
(matchableStringSet ?? (matchableStringSet = /* @__PURE__ */ new Set())).add(patternOrStr);
|
|
22262
|
+
} else {
|
|
22263
|
+
(sortedPatterns ?? (sortedPatterns = [])).push(patternOrStr);
|
|
22264
|
+
}
|
|
22265
|
+
}
|
|
22266
|
+
sortedPatterns == null ? void 0 : sortedPatterns.sort((a, b) => {
|
|
22267
|
+
const prefixComparison = compareStringsCaseSensitive(a.prefix, b.prefix);
|
|
22268
|
+
if (prefixComparison === 0 && sortByAggregateLength) {
|
|
22269
|
+
return a.suffix.length - b.suffix.length;
|
|
22270
|
+
}
|
|
22271
|
+
return prefixComparison;
|
|
22272
|
+
});
|
|
22273
|
+
parsedPatternsCache.set(paths, result = {
|
|
22274
|
+
matchableStringSet,
|
|
22275
|
+
sortedPatterns
|
|
22276
|
+
});
|
|
22277
|
+
return result;
|
|
22249
22278
|
}
|
|
22250
22279
|
function positionIsSynthesized(pos) {
|
|
22251
22280
|
return !(pos >= 0);
|
|
@@ -22274,16 +22303,43 @@ var emptyFileSystemEntries = {
|
|
|
22274
22303
|
directories: emptyArray
|
|
22275
22304
|
};
|
|
22276
22305
|
function matchPatternOrExact(patternOrStrings, candidate) {
|
|
22277
|
-
const
|
|
22278
|
-
|
|
22279
|
-
|
|
22280
|
-
|
|
22306
|
+
const { matchableStringSet, sortedPatterns } = patternOrStrings;
|
|
22307
|
+
if (matchableStringSet == null ? void 0 : matchableStringSet.has(candidate)) {
|
|
22308
|
+
return candidate;
|
|
22309
|
+
}
|
|
22310
|
+
if (sortedPatterns === void 0 || sortedPatterns.length === 0) {
|
|
22311
|
+
return void 0;
|
|
22312
|
+
}
|
|
22313
|
+
let index = binarySearchKey(sortedPatterns, candidate, getPatternPrefix, compareStringsCaseSensitive);
|
|
22314
|
+
if (index < 0) {
|
|
22315
|
+
index = ~index;
|
|
22316
|
+
}
|
|
22317
|
+
if (index >= sortedPatterns.length) {
|
|
22318
|
+
index--;
|
|
22319
|
+
}
|
|
22320
|
+
const groupPrefix = sortedPatterns[index].prefix;
|
|
22321
|
+
while (index > 0 && groupPrefix === sortedPatterns[index - 1].prefix) {
|
|
22322
|
+
index--;
|
|
22323
|
+
}
|
|
22324
|
+
for (let i = index; i < sortedPatterns.length; i++) {
|
|
22325
|
+
const currentPattern = sortedPatterns[i];
|
|
22326
|
+
if (currentPattern.prefix !== groupPrefix) {
|
|
22327
|
+
break;
|
|
22281
22328
|
}
|
|
22282
|
-
if (
|
|
22283
|
-
|
|
22329
|
+
if (isPatternMatch(currentPattern, candidate)) {
|
|
22330
|
+
return currentPattern;
|
|
22284
22331
|
}
|
|
22285
22332
|
}
|
|
22286
|
-
return findBestPatternMatch(
|
|
22333
|
+
return findBestPatternMatch(
|
|
22334
|
+
sortedPatterns,
|
|
22335
|
+
(_) => _,
|
|
22336
|
+
candidate,
|
|
22337
|
+
/*endIndex*/
|
|
22338
|
+
index
|
|
22339
|
+
);
|
|
22340
|
+
}
|
|
22341
|
+
function getPatternPrefix(pattern) {
|
|
22342
|
+
return pattern.prefix;
|
|
22287
22343
|
}
|
|
22288
22344
|
function sliceAfter(arr, value) {
|
|
22289
22345
|
const index = arr.indexOf(value);
|
|
@@ -42202,8 +42258,6 @@ function parseJsonConfigFileContentWorker(json, sourceFile, host, basePath, exis
|
|
|
42202
42258
|
validatedFilesSpecBeforeSubstitution,
|
|
42203
42259
|
validatedIncludeSpecsBeforeSubstitution,
|
|
42204
42260
|
validatedExcludeSpecsBeforeSubstitution,
|
|
42205
|
-
pathPatterns: void 0,
|
|
42206
|
-
// Initialized on first use
|
|
42207
42261
|
isDefaultIncludeSpec
|
|
42208
42262
|
};
|
|
42209
42263
|
}
|
|
@@ -43907,8 +43961,7 @@ function tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, co
|
|
|
43907
43961
|
}
|
|
43908
43962
|
}
|
|
43909
43963
|
function tryLoadModuleUsingPathsIfEligible(extensions, moduleName, loader, state) {
|
|
43910
|
-
|
|
43911
|
-
const { baseUrl, paths, configFile } = state.compilerOptions;
|
|
43964
|
+
const { baseUrl, paths } = state.compilerOptions;
|
|
43912
43965
|
if (paths && !pathIsRelative(moduleName)) {
|
|
43913
43966
|
if (state.traceEnabled) {
|
|
43914
43967
|
if (baseUrl) {
|
|
@@ -43917,7 +43970,7 @@ function tryLoadModuleUsingPathsIfEligible(extensions, moduleName, loader, state
|
|
|
43917
43970
|
trace(state.host, Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0, moduleName);
|
|
43918
43971
|
}
|
|
43919
43972
|
const baseDirectory = getPathsBasePath(state.compilerOptions, state.host);
|
|
43920
|
-
const pathPatterns =
|
|
43973
|
+
const pathPatterns = tryParsePatterns(paths);
|
|
43921
43974
|
return tryLoadModuleUsingPaths(
|
|
43922
43975
|
extensions,
|
|
43923
43976
|
moduleName,
|
|
@@ -44722,17 +44775,8 @@ function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFail
|
|
|
44722
44775
|
if (state.traceEnabled) {
|
|
44723
44776
|
trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, versionPaths.version, version, moduleName);
|
|
44724
44777
|
}
|
|
44725
|
-
const
|
|
44726
|
-
|
|
44727
|
-
moduleName,
|
|
44728
|
-
candidate,
|
|
44729
|
-
versionPaths.paths,
|
|
44730
|
-
/*pathPatterns*/
|
|
44731
|
-
void 0,
|
|
44732
|
-
loader,
|
|
44733
|
-
onlyRecordFailuresForPackageFile || onlyRecordFailuresForIndex,
|
|
44734
|
-
state
|
|
44735
|
-
);
|
|
44778
|
+
const pathPatterns = tryParsePatterns(versionPaths.paths);
|
|
44779
|
+
const result = tryLoadModuleUsingPaths(extensions, moduleName, candidate, versionPaths.paths, pathPatterns, loader, onlyRecordFailuresForPackageFile || onlyRecordFailuresForIndex, state);
|
|
44736
44780
|
if (result) {
|
|
44737
44781
|
return removeIgnoredPackageId(result.value);
|
|
44738
44782
|
}
|
|
@@ -45324,17 +45368,8 @@ function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, node
|
|
|
45324
45368
|
trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, versionPaths.version, version, rest);
|
|
45325
45369
|
}
|
|
45326
45370
|
const packageDirectoryExists = nodeModulesDirectoryExists && directoryProbablyExists(packageDirectory, state.host);
|
|
45327
|
-
const
|
|
45328
|
-
|
|
45329
|
-
rest,
|
|
45330
|
-
packageDirectory,
|
|
45331
|
-
versionPaths.paths,
|
|
45332
|
-
/*pathPatterns*/
|
|
45333
|
-
void 0,
|
|
45334
|
-
loader,
|
|
45335
|
-
!packageDirectoryExists,
|
|
45336
|
-
state
|
|
45337
|
-
);
|
|
45371
|
+
const pathPatterns = tryParsePatterns(versionPaths.paths);
|
|
45372
|
+
const fromPaths = tryLoadModuleUsingPaths(extensions, rest, packageDirectory, versionPaths.paths, pathPatterns, loader, !packageDirectoryExists, state);
|
|
45338
45373
|
if (fromPaths) {
|
|
45339
45374
|
return fromPaths.value;
|
|
45340
45375
|
}
|
|
@@ -45342,7 +45377,6 @@ function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, node
|
|
|
45342
45377
|
return loader(extensions, candidate, !nodeModulesDirectoryExists, state);
|
|
45343
45378
|
}
|
|
45344
45379
|
function tryLoadModuleUsingPaths(extensions, moduleName, baseDirectory, paths, pathPatterns, loader, onlyRecordFailures, state) {
|
|
45345
|
-
pathPatterns || (pathPatterns = tryParsePatterns(paths));
|
|
45346
45380
|
const matchedPattern = matchPatternOrExact(pathPatterns, moduleName);
|
|
45347
45381
|
if (matchedPattern) {
|
|
45348
45382
|
const matchedStar = isString(matchedPattern) ? void 0 : matchedText(matchedPattern, moduleName);
|
|
@@ -72185,11 +72219,7 @@ function createTypeChecker(host) {
|
|
|
72185
72219
|
}
|
|
72186
72220
|
function getTypeFactsWorker(type, callerOnlyNeeds) {
|
|
72187
72221
|
if (type.flags & (2097152 /* Intersection */ | 465829888 /* Instantiable */)) {
|
|
72188
|
-
|
|
72189
|
-
if (strictNullChecks && type.flags & 465829888 /* Instantiable */ && constraintType === unknownType) {
|
|
72190
|
-
return callerOnlyNeeds;
|
|
72191
|
-
}
|
|
72192
|
-
type = constraintType;
|
|
72222
|
+
type = getBaseConstraintOfType(type) || unknownType;
|
|
72193
72223
|
}
|
|
72194
72224
|
const flags = type.flags;
|
|
72195
72225
|
if (flags & (4 /* String */ | 268435456 /* StringMapping */)) {
|
|
@@ -72289,7 +72319,7 @@ function createTypeChecker(host) {
|
|
|
72289
72319
|
return type;
|
|
72290
72320
|
}
|
|
72291
72321
|
const emptyAndOtherUnion = getUnionType([emptyObjectType, otherType]);
|
|
72292
|
-
return mapType(type, (t) => hasTypeFacts(t, targetFacts) ? getIntersectionType([t,
|
|
72322
|
+
return mapType(type, (t) => hasTypeFacts(t, targetFacts) ? getIntersectionType([t, !(facts & otherIncludesFacts) && hasTypeFacts(t, otherFacts) ? emptyAndOtherUnion : emptyObjectType]) : t);
|
|
72293
72323
|
}
|
|
72294
72324
|
function recombineUnknownType(type) {
|
|
72295
72325
|
return type === unknownUnionType ? unknownType : type;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@typescript-deploys/pr-build",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.6.0-pr-
|
|
5
|
+
"version": "5.6.0-pr-59048-24",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|