@typescript-deploys/pr-build 5.0.0-pr-51157-8 → 5.0.0-pr-51474-2
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 +321 -361
- package/lib/tsserver.js +499 -532
- package/lib/tsserverlibrary.d.ts +10 -71
- package/lib/tsserverlibrary.js +3020 -543
- package/lib/typescript.d.ts +6 -65
- package/lib/typescript.js +2944 -467
- package/lib/typingsInstaller.js +57 -82
- package/package.json +6 -5
package/lib/typingsInstaller.js
CHANGED
|
@@ -50,36 +50,11 @@ var path = __toESM(require("path"));
|
|
|
50
50
|
|
|
51
51
|
// src/compiler/corePublic.ts
|
|
52
52
|
var versionMajorMinor = "5.0";
|
|
53
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
54
|
-
var NativeCollections;
|
|
55
|
-
((NativeCollections2) => {
|
|
56
|
-
const globals = typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : void 0;
|
|
57
|
-
function tryGetNativeMap() {
|
|
58
|
-
const gMap = globals == null ? void 0 : globals.Map;
|
|
59
|
-
const constructor = typeof gMap !== "undefined" && "entries" in gMap.prototype && new gMap([[0, 0]]).size === 1 ? gMap : void 0;
|
|
60
|
-
if (!constructor) {
|
|
61
|
-
throw new Error("No compatible Map implementation found.");
|
|
62
|
-
}
|
|
63
|
-
return constructor;
|
|
64
|
-
}
|
|
65
|
-
NativeCollections2.tryGetNativeMap = tryGetNativeMap;
|
|
66
|
-
function tryGetNativeSet() {
|
|
67
|
-
const gSet = globals == null ? void 0 : globals.Set;
|
|
68
|
-
const constructor = typeof gSet !== "undefined" && "entries" in gSet.prototype && new gSet([0]).size === 1 ? gSet : void 0;
|
|
69
|
-
if (!constructor) {
|
|
70
|
-
throw new Error("No compatible Set implementation found.");
|
|
71
|
-
}
|
|
72
|
-
return constructor;
|
|
73
|
-
}
|
|
74
|
-
NativeCollections2.tryGetNativeSet = tryGetNativeSet;
|
|
75
|
-
})(NativeCollections || (NativeCollections = {}));
|
|
76
|
-
var Map = NativeCollections.tryGetNativeMap();
|
|
77
|
-
var Set = NativeCollections.tryGetNativeSet();
|
|
53
|
+
var version = `${versionMajorMinor}.0-insiders.20221110`;
|
|
78
54
|
|
|
79
55
|
// src/compiler/core.ts
|
|
80
56
|
var emptyArray = [];
|
|
81
|
-
var emptyMap = new Map();
|
|
82
|
-
var emptySet = new Set();
|
|
57
|
+
var emptyMap = /* @__PURE__ */ new Map();
|
|
83
58
|
function length(array) {
|
|
84
59
|
return array ? array.length : 0;
|
|
85
60
|
}
|
|
@@ -499,7 +474,7 @@ function arrayFrom(iterator, map2) {
|
|
|
499
474
|
return result;
|
|
500
475
|
}
|
|
501
476
|
function arrayToMap(array, makeKey, makeValue = identity) {
|
|
502
|
-
const result = new Map();
|
|
477
|
+
const result = /* @__PURE__ */ new Map();
|
|
503
478
|
for (const value of array) {
|
|
504
479
|
const key = makeKey(value);
|
|
505
480
|
if (key !== void 0)
|
|
@@ -508,7 +483,7 @@ function arrayToMap(array, makeKey, makeValue = identity) {
|
|
|
508
483
|
return result;
|
|
509
484
|
}
|
|
510
485
|
function createMultiMap() {
|
|
511
|
-
const map2 = new Map();
|
|
486
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
512
487
|
map2.add = multiMapAdd;
|
|
513
488
|
map2.remove = multiMapRemove;
|
|
514
489
|
return map2;
|
|
@@ -607,7 +582,7 @@ function memoize(callback) {
|
|
|
607
582
|
};
|
|
608
583
|
}
|
|
609
584
|
function memoizeOne(callback) {
|
|
610
|
-
const map2 = new Map();
|
|
585
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
611
586
|
return (arg) => {
|
|
612
587
|
const key = `${typeof arg}:${arg}`;
|
|
613
588
|
let value = map2.get(key);
|
|
@@ -1199,7 +1174,7 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
|
|
|
1199
1174
|
return value.toString();
|
|
1200
1175
|
}
|
|
1201
1176
|
Debug2.formatEnum = formatEnum;
|
|
1202
|
-
const enumMemberCache = new Map();
|
|
1177
|
+
const enumMemberCache = /* @__PURE__ */ new Map();
|
|
1203
1178
|
function getEnumMembers(enumObject) {
|
|
1204
1179
|
const existing = enumMemberCache.get(enumObject);
|
|
1205
1180
|
if (existing) {
|
|
@@ -1605,7 +1580,7 @@ m2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`;
|
|
|
1605
1580
|
const links = /* @__PURE__ */ Object.create(null);
|
|
1606
1581
|
const nodes = [];
|
|
1607
1582
|
const edges = [];
|
|
1608
|
-
const root = buildGraphNode(flowNode, new Set());
|
|
1583
|
+
const root = buildGraphNode(flowNode, /* @__PURE__ */ new Set());
|
|
1609
1584
|
for (const node of nodes) {
|
|
1610
1585
|
node.text = renderFlowNode(node.flowNode, node.circular);
|
|
1611
1586
|
computeLevel(node);
|
|
@@ -2301,9 +2276,9 @@ var perfLogger = (etwModule == null ? void 0 : etwModule.logEvent) ? etwModule :
|
|
|
2301
2276
|
var performanceImpl;
|
|
2302
2277
|
var enabled = false;
|
|
2303
2278
|
var timeorigin = timestamp();
|
|
2304
|
-
var marks = new Map();
|
|
2305
|
-
var counts = new Map();
|
|
2306
|
-
var durations = new Map();
|
|
2279
|
+
var marks = /* @__PURE__ */ new Map();
|
|
2280
|
+
var counts = /* @__PURE__ */ new Map();
|
|
2281
|
+
var durations = /* @__PURE__ */ new Map();
|
|
2307
2282
|
function mark(markName) {
|
|
2308
2283
|
var _a2;
|
|
2309
2284
|
if (enabled) {
|
|
@@ -2474,7 +2449,7 @@ var tracingEnabled;
|
|
|
2474
2449
|
mark("beginDumpTypes");
|
|
2475
2450
|
const typesPath = legend[legend.length - 1].typesPath;
|
|
2476
2451
|
const typesFd = fs2.openSync(typesPath, "w");
|
|
2477
|
-
const recursionIdentityMap = new Map();
|
|
2452
|
+
const recursionIdentityMap = /* @__PURE__ */ new Map();
|
|
2478
2453
|
fs2.writeSync(typesFd, "[");
|
|
2479
2454
|
const numTypes = types.length;
|
|
2480
2455
|
for (let i = 0; i < numTypes; i++) {
|
|
@@ -3654,7 +3629,7 @@ function createDynamicPriorityPollingWatchFile(host) {
|
|
|
3654
3629
|
}
|
|
3655
3630
|
function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames) {
|
|
3656
3631
|
const fileWatcherCallbacks = createMultiMap();
|
|
3657
|
-
const dirWatchers = new Map();
|
|
3632
|
+
const dirWatchers = /* @__PURE__ */ new Map();
|
|
3658
3633
|
const toCanonicalName = createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
3659
3634
|
return nonPollingWatchFile;
|
|
3660
3635
|
function nonPollingWatchFile(fileName, callback, _pollingInterval, fallbackOptions) {
|
|
@@ -3788,9 +3763,9 @@ function createDirectoryWatcherSupportingRecursive({
|
|
|
3788
3763
|
setTimeout: setTimeout2,
|
|
3789
3764
|
clearTimeout: clearTimeout2
|
|
3790
3765
|
}) {
|
|
3791
|
-
const cache = new Map();
|
|
3766
|
+
const cache = /* @__PURE__ */ new Map();
|
|
3792
3767
|
const callbackCache = createMultiMap();
|
|
3793
|
-
const cacheToUpdateChildWatches = new Map();
|
|
3768
|
+
const cacheToUpdateChildWatches = /* @__PURE__ */ new Map();
|
|
3794
3769
|
let timerToUpdateChildWatches;
|
|
3795
3770
|
const filePathComparer = getStringComparer(!useCaseSensitiveFileNames);
|
|
3796
3771
|
const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
@@ -3892,7 +3867,7 @@ function createDirectoryWatcherSupportingRecursive({
|
|
|
3892
3867
|
timerToUpdateChildWatches = void 0;
|
|
3893
3868
|
sysLog(`sysLog:: onTimerToUpdateChildWatches:: ${cacheToUpdateChildWatches.size}`);
|
|
3894
3869
|
const start = timestamp();
|
|
3895
|
-
const invokeMap = new Map();
|
|
3870
|
+
const invokeMap = /* @__PURE__ */ new Map();
|
|
3896
3871
|
while (!timerToUpdateChildWatches && cacheToUpdateChildWatches.size) {
|
|
3897
3872
|
const result = cacheToUpdateChildWatches.entries().next();
|
|
3898
3873
|
Debug.assert(!result.done);
|
|
@@ -4013,9 +3988,9 @@ function createSystemWatchFunctions({
|
|
|
4013
3988
|
inodeWatching,
|
|
4014
3989
|
sysLog: sysLog2
|
|
4015
3990
|
}) {
|
|
4016
|
-
const pollingWatches = new Map();
|
|
4017
|
-
const fsWatches = new Map();
|
|
4018
|
-
const fsWatchesRecursive = new Map();
|
|
3991
|
+
const pollingWatches = /* @__PURE__ */ new Map();
|
|
3992
|
+
const fsWatches = /* @__PURE__ */ new Map();
|
|
3993
|
+
const fsWatchesRecursive = /* @__PURE__ */ new Map();
|
|
4019
3994
|
let dynamicPollingWatchFile;
|
|
4020
3995
|
let fixedChunkSizePollingWatchFile;
|
|
4021
3996
|
let nonPollingWatchFile;
|
|
@@ -4469,7 +4444,7 @@ var sys = (() => {
|
|
|
4469
4444
|
}
|
|
4470
4445
|
function cleanupPaths(profile) {
|
|
4471
4446
|
let externalFileCounter = 0;
|
|
4472
|
-
const remappedPaths = new Map();
|
|
4447
|
+
const remappedPaths = /* @__PURE__ */ new Map();
|
|
4473
4448
|
const normalizedDir = normalizeSlashes(_path.dirname(executingFilePath));
|
|
4474
4449
|
const fileUrlRoot = `file://${getRootLength(normalizedDir) === 1 ? "" : "/"}${normalizedDir}`;
|
|
4475
4450
|
for (const node of profile.nodes) {
|
|
@@ -9667,7 +9642,7 @@ function isStringLiteralLike(node) {
|
|
|
9667
9642
|
|
|
9668
9643
|
// src/compiler/utilities.ts
|
|
9669
9644
|
function createSymbolTable(symbols) {
|
|
9670
|
-
const result = new Map();
|
|
9645
|
+
const result = /* @__PURE__ */ new Map();
|
|
9671
9646
|
if (symbols) {
|
|
9672
9647
|
for (const symbol of symbols) {
|
|
9673
9648
|
result.set(symbol.escapedName, symbol);
|
|
@@ -11381,7 +11356,7 @@ function matchFiles(path2, extensions, excludes, includes, useCaseSensitiveFileN
|
|
|
11381
11356
|
const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames);
|
|
11382
11357
|
const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames);
|
|
11383
11358
|
const results = includeFileRegexes ? includeFileRegexes.map(() => []) : [[]];
|
|
11384
|
-
const visited = new Map();
|
|
11359
|
+
const visited = /* @__PURE__ */ new Map();
|
|
11385
11360
|
const toCanonical = createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
11386
11361
|
for (const basePath of patterns.basePaths) {
|
|
11387
11362
|
visitDirectory(basePath, combinePaths(currentDirectory, basePath), depth);
|
|
@@ -11725,7 +11700,7 @@ function createParenthesizerRules(factory2) {
|
|
|
11725
11700
|
parenthesizeLeadingTypeArgument
|
|
11726
11701
|
};
|
|
11727
11702
|
function getParenthesizeLeftSideOfBinaryForOperator(operatorKind) {
|
|
11728
|
-
binaryLeftOperandParenthesizerCache || (binaryLeftOperandParenthesizerCache = new Map());
|
|
11703
|
+
binaryLeftOperandParenthesizerCache || (binaryLeftOperandParenthesizerCache = /* @__PURE__ */ new Map());
|
|
11729
11704
|
let parenthesizerRule = binaryLeftOperandParenthesizerCache.get(operatorKind);
|
|
11730
11705
|
if (!parenthesizerRule) {
|
|
11731
11706
|
parenthesizerRule = (node) => parenthesizeLeftSideOfBinary(operatorKind, node);
|
|
@@ -11734,7 +11709,7 @@ function createParenthesizerRules(factory2) {
|
|
|
11734
11709
|
return parenthesizerRule;
|
|
11735
11710
|
}
|
|
11736
11711
|
function getParenthesizeRightSideOfBinaryForOperator(operatorKind) {
|
|
11737
|
-
binaryRightOperandParenthesizerCache || (binaryRightOperandParenthesizerCache = new Map());
|
|
11712
|
+
binaryRightOperandParenthesizerCache || (binaryRightOperandParenthesizerCache = /* @__PURE__ */ new Map());
|
|
11738
11713
|
let parenthesizerRule = binaryRightOperandParenthesizerCache.get(operatorKind);
|
|
11739
11714
|
if (!parenthesizerRule) {
|
|
11740
11715
|
parenthesizerRule = (node) => parenthesizeRightSideOfBinary(operatorKind, void 0, node);
|
|
@@ -16018,7 +15993,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
16018
15993
|
if (leftStandardPrologueEnd === 0) {
|
|
16019
15994
|
left.splice(0, 0, ...declarations.slice(0, rightStandardPrologueEnd));
|
|
16020
15995
|
} else {
|
|
16021
|
-
const leftPrologues = new Map();
|
|
15996
|
+
const leftPrologues = /* @__PURE__ */ new Map();
|
|
16022
15997
|
for (let i = 0; i < leftStandardPrologueEnd; i++) {
|
|
16023
15998
|
const leftPrologue = statements[i];
|
|
16024
15999
|
leftPrologues.set(leftPrologue.expression.text, true);
|
|
@@ -17868,8 +17843,8 @@ var Parser;
|
|
|
17868
17843
|
languageVariant = getLanguageVariant(_scriptKind);
|
|
17869
17844
|
parseDiagnostics = [];
|
|
17870
17845
|
parsingContext = 0;
|
|
17871
|
-
identifiers = new Map();
|
|
17872
|
-
privateIdentifiers = new Map();
|
|
17846
|
+
identifiers = /* @__PURE__ */ new Map();
|
|
17847
|
+
privateIdentifiers = /* @__PURE__ */ new Map();
|
|
17873
17848
|
identifierCount = 0;
|
|
17874
17849
|
nodeCount = 0;
|
|
17875
17850
|
sourceFlags = 0;
|
|
@@ -20354,7 +20329,7 @@ var Parser;
|
|
|
20354
20329
|
}
|
|
20355
20330
|
const result = parseParenthesizedArrowFunctionExpression(false, allowReturnTypeInArrowFunction);
|
|
20356
20331
|
if (!result) {
|
|
20357
|
-
(notParenthesizedArrow || (notParenthesizedArrow = new Set())).add(tokenPos);
|
|
20332
|
+
(notParenthesizedArrow || (notParenthesizedArrow = /* @__PURE__ */ new Set())).add(tokenPos);
|
|
20358
20333
|
}
|
|
20359
20334
|
return result;
|
|
20360
20335
|
}
|
|
@@ -23812,7 +23787,7 @@ function processCommentPragmas(context, sourceText) {
|
|
|
23812
23787
|
const comment = sourceText.substring(range.pos, range.end);
|
|
23813
23788
|
extractPragmas(pragmas, range, comment);
|
|
23814
23789
|
}
|
|
23815
|
-
context.pragmas = new Map();
|
|
23790
|
+
context.pragmas = /* @__PURE__ */ new Map();
|
|
23816
23791
|
for (const pragma of pragmas) {
|
|
23817
23792
|
if (context.pragmas.has(pragma.name)) {
|
|
23818
23793
|
const currentValue = context.pragmas.get(pragma.name);
|
|
@@ -23899,7 +23874,7 @@ function processPragmasIntoFields(context, reportDiagnostic) {
|
|
|
23899
23874
|
}
|
|
23900
23875
|
});
|
|
23901
23876
|
}
|
|
23902
|
-
var namedArgRegExCache = new Map();
|
|
23877
|
+
var namedArgRegExCache = /* @__PURE__ */ new Map();
|
|
23903
23878
|
function getNamedArgRegEx(name) {
|
|
23904
23879
|
if (namedArgRegExCache.has(name)) {
|
|
23905
23880
|
return namedArgRegExCache.get(name);
|
|
@@ -25362,8 +25337,8 @@ var typeAcquisitionDeclarations = [
|
|
|
25362
25337
|
}
|
|
25363
25338
|
];
|
|
25364
25339
|
function createOptionNameMap(optionDeclarations2) {
|
|
25365
|
-
const optionsNameMap = new Map();
|
|
25366
|
-
const shortOptionNames = new Map();
|
|
25340
|
+
const optionsNameMap = /* @__PURE__ */ new Map();
|
|
25341
|
+
const shortOptionNames = /* @__PURE__ */ new Map();
|
|
25367
25342
|
forEach(optionDeclarations2, (option) => {
|
|
25368
25343
|
optionsNameMap.set(option.name.toLowerCase(), option);
|
|
25369
25344
|
if (option.shortName) {
|
|
@@ -27142,7 +27117,7 @@ function getModuleInstanceState(node, visited) {
|
|
|
27142
27117
|
}
|
|
27143
27118
|
return node.body ? getModuleInstanceStateCached(node.body, visited) : 1 /* Instantiated */;
|
|
27144
27119
|
}
|
|
27145
|
-
function getModuleInstanceStateCached(node, visited = new Map()) {
|
|
27120
|
+
function getModuleInstanceStateCached(node, visited = /* @__PURE__ */ new Map()) {
|
|
27146
27121
|
const nodeId = getNodeId(node);
|
|
27147
27122
|
if (visited.has(nodeId)) {
|
|
27148
27123
|
return visited.get(nodeId) || 0 /* NonInstantiated */;
|
|
@@ -27286,7 +27261,7 @@ function createBinder() {
|
|
|
27286
27261
|
options = opts;
|
|
27287
27262
|
languageVersion = getEmitScriptTarget(options);
|
|
27288
27263
|
inStrictMode = bindInStrictMode(file, opts);
|
|
27289
|
-
classifiableNames = new Set();
|
|
27264
|
+
classifiableNames = /* @__PURE__ */ new Set();
|
|
27290
27265
|
symbolCount = 0;
|
|
27291
27266
|
Symbol12 = objectAllocator.getSymbolConstructor();
|
|
27292
27267
|
Debug.attachFlowNodeDebugInfo(unreachableFlow);
|
|
@@ -29412,7 +29387,7 @@ function createBinder() {
|
|
|
29412
29387
|
}
|
|
29413
29388
|
function addLateBoundAssignmentDeclarationToSymbol(node, symbol) {
|
|
29414
29389
|
if (symbol) {
|
|
29415
|
-
(symbol.assignmentDeclarationMembers || (symbol.assignmentDeclarationMembers = new Map())).set(getNodeId(node), node);
|
|
29390
|
+
(symbol.assignmentDeclarationMembers || (symbol.assignmentDeclarationMembers = /* @__PURE__ */ new Map())).set(getNodeId(node), node);
|
|
29416
29391
|
}
|
|
29417
29392
|
}
|
|
29418
29393
|
function bindSpecialPropertyDeclaration(node) {
|
|
@@ -31592,7 +31567,7 @@ function computeCommonSourceDirectoryOfFilenames(fileNames, currentDirectory, ge
|
|
|
31592
31567
|
}
|
|
31593
31568
|
return getPathFromPathComponents(commonPathComponents);
|
|
31594
31569
|
}
|
|
31595
|
-
var plainJSErrors = new Set([
|
|
31570
|
+
var plainJSErrors = /* @__PURE__ */ new Set([
|
|
31596
31571
|
Diagnostics.Cannot_redeclare_block_scoped_variable_0.code,
|
|
31597
31572
|
Diagnostics.A_module_cannot_have_multiple_default_exports.code,
|
|
31598
31573
|
Diagnostics.Another_export_default_is_here.code,
|
|
@@ -31696,7 +31671,7 @@ var BuilderState;
|
|
|
31696
31671
|
getValues: (k) => forward.get(k),
|
|
31697
31672
|
keys: () => forward.keys(),
|
|
31698
31673
|
deleteKey: (k) => {
|
|
31699
|
-
(deleted || (deleted = new Set())).add(k);
|
|
31674
|
+
(deleted || (deleted = /* @__PURE__ */ new Set())).add(k);
|
|
31700
31675
|
const set = forward.get(k);
|
|
31701
31676
|
if (!set) {
|
|
31702
31677
|
return false;
|
|
@@ -31724,13 +31699,13 @@ var BuilderState;
|
|
|
31724
31699
|
};
|
|
31725
31700
|
return map2;
|
|
31726
31701
|
}
|
|
31727
|
-
return create2(new Map(), new Map(), void 0);
|
|
31702
|
+
return create2(/* @__PURE__ */ new Map(), /* @__PURE__ */ new Map(), void 0);
|
|
31728
31703
|
}
|
|
31729
31704
|
BuilderState2.createManyToManyPathMap = createManyToManyPathMap;
|
|
31730
31705
|
function addToMultimap(map2, k, v) {
|
|
31731
31706
|
let set = map2.get(k);
|
|
31732
31707
|
if (!set) {
|
|
31733
|
-
set = new Set();
|
|
31708
|
+
set = /* @__PURE__ */ new Set();
|
|
31734
31709
|
map2.set(k, set);
|
|
31735
31710
|
}
|
|
31736
31711
|
set.add(v);
|
|
@@ -31813,7 +31788,7 @@ var BuilderState;
|
|
|
31813
31788
|
}
|
|
31814
31789
|
}
|
|
31815
31790
|
function addReferencedFile(referencedPath) {
|
|
31816
|
-
(referencedFiles || (referencedFiles = new Set())).add(referencedPath);
|
|
31791
|
+
(referencedFiles || (referencedFiles = /* @__PURE__ */ new Set())).add(referencedPath);
|
|
31817
31792
|
}
|
|
31818
31793
|
}
|
|
31819
31794
|
function canReuseOldState(newReferencedMap, oldState) {
|
|
@@ -31822,7 +31797,7 @@ var BuilderState;
|
|
|
31822
31797
|
BuilderState2.canReuseOldState = canReuseOldState;
|
|
31823
31798
|
function create(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature) {
|
|
31824
31799
|
var _a2, _b, _c;
|
|
31825
|
-
const fileInfos = new Map();
|
|
31800
|
+
const fileInfos = /* @__PURE__ */ new Map();
|
|
31826
31801
|
const options = newProgram.getCompilerOptions();
|
|
31827
31802
|
const isOutFile = outFile(options);
|
|
31828
31803
|
const referencedMap = options.module !== 0 /* None */ && !isOutFile ? createManyToManyPathMap() : void 0;
|
|
@@ -31894,7 +31869,7 @@ var BuilderState;
|
|
|
31894
31869
|
BuilderState2.getFilesAffectedByWithOldState = getFilesAffectedByWithOldState;
|
|
31895
31870
|
function updateSignatureOfFile(state, signature, path2) {
|
|
31896
31871
|
state.fileInfos.get(path2).signature = signature;
|
|
31897
|
-
(state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = new Set())).add(path2);
|
|
31872
|
+
(state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(path2);
|
|
31898
31873
|
}
|
|
31899
31874
|
BuilderState2.updateSignatureOfFile = updateSignatureOfFile;
|
|
31900
31875
|
function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName, useFileVersionAsSignature = state.useFileVersionAsSignature) {
|
|
@@ -31929,7 +31904,7 @@ var BuilderState;
|
|
|
31929
31904
|
if (latestSignature === void 0) {
|
|
31930
31905
|
latestSignature = sourceFile.version;
|
|
31931
31906
|
if (state.exportedModulesMap && latestSignature !== prevSignature) {
|
|
31932
|
-
(state.oldExportedModulesMap || (state.oldExportedModulesMap = new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
|
|
31907
|
+
(state.oldExportedModulesMap || (state.oldExportedModulesMap = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
|
|
31933
31908
|
const references = state.referencedMap ? state.referencedMap.getValues(sourceFile.resolvedPath) : void 0;
|
|
31934
31909
|
if (references) {
|
|
31935
31910
|
state.exportedModulesMap.set(sourceFile.resolvedPath, references);
|
|
@@ -31938,8 +31913,8 @@ var BuilderState;
|
|
|
31938
31913
|
}
|
|
31939
31914
|
}
|
|
31940
31915
|
}
|
|
31941
|
-
(state.oldSignatures || (state.oldSignatures = new Map())).set(sourceFile.resolvedPath, prevSignature || false);
|
|
31942
|
-
(state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = new Set())).add(sourceFile.resolvedPath);
|
|
31916
|
+
(state.oldSignatures || (state.oldSignatures = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, prevSignature || false);
|
|
31917
|
+
(state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(sourceFile.resolvedPath);
|
|
31943
31918
|
info.signature = latestSignature;
|
|
31944
31919
|
return latestSignature !== prevSignature;
|
|
31945
31920
|
}
|
|
@@ -31947,7 +31922,7 @@ var BuilderState;
|
|
|
31947
31922
|
function updateExportedModules(state, sourceFile, exportedModulesFromDeclarationEmit) {
|
|
31948
31923
|
if (!state.exportedModulesMap)
|
|
31949
31924
|
return;
|
|
31950
|
-
(state.oldExportedModulesMap || (state.oldExportedModulesMap = new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
|
|
31925
|
+
(state.oldExportedModulesMap || (state.oldExportedModulesMap = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
|
|
31951
31926
|
if (!exportedModulesFromDeclarationEmit) {
|
|
31952
31927
|
state.exportedModulesMap.deleteKey(sourceFile.resolvedPath);
|
|
31953
31928
|
return;
|
|
@@ -31962,7 +31937,7 @@ var BuilderState;
|
|
|
31962
31937
|
function addExportedModule(exportedModulePaths) {
|
|
31963
31938
|
if (exportedModulePaths == null ? void 0 : exportedModulePaths.length) {
|
|
31964
31939
|
if (!exportedModules) {
|
|
31965
|
-
exportedModules = new Set();
|
|
31940
|
+
exportedModules = /* @__PURE__ */ new Set();
|
|
31966
31941
|
}
|
|
31967
31942
|
exportedModulePaths.forEach((path2) => exportedModules.add(path2));
|
|
31968
31943
|
}
|
|
@@ -31977,7 +31952,7 @@ var BuilderState;
|
|
|
31977
31952
|
if (!state.referencedMap || isFileAffectingGlobalScope(sourceFile)) {
|
|
31978
31953
|
return getAllFileNames(state, programOfThisState);
|
|
31979
31954
|
}
|
|
31980
|
-
const seenMap = new Set();
|
|
31955
|
+
const seenMap = /* @__PURE__ */ new Set();
|
|
31981
31956
|
const queue = [sourceFile.resolvedPath];
|
|
31982
31957
|
while (queue.length) {
|
|
31983
31958
|
const path2 = queue.pop();
|
|
@@ -32060,7 +32035,7 @@ var BuilderState;
|
|
|
32060
32035
|
if (compilerOptions && (compilerOptions.isolatedModules || outFile(compilerOptions))) {
|
|
32061
32036
|
return [sourceFileWithUpdatedShape];
|
|
32062
32037
|
}
|
|
32063
|
-
const seenFileNamesMap = new Map();
|
|
32038
|
+
const seenFileNamesMap = /* @__PURE__ */ new Map();
|
|
32064
32039
|
seenFileNamesMap.set(sourceFileWithUpdatedShape.resolvedPath, sourceFileWithUpdatedShape);
|
|
32065
32040
|
const queue = getReferencedByPaths(state, sourceFileWithUpdatedShape.resolvedPath);
|
|
32066
32041
|
while (queue.length > 0) {
|
|
@@ -32211,7 +32186,7 @@ function discoverTypings(host, log2, fileNames, projectRootPath, safeList, packa
|
|
|
32211
32186
|
if (!typeAcquisition || !typeAcquisition.enable) {
|
|
32212
32187
|
return { cachedTypingPaths: [], newTypingNames: [], filesToWatch: [] };
|
|
32213
32188
|
}
|
|
32214
|
-
const inferredTypings = new Map();
|
|
32189
|
+
const inferredTypings = /* @__PURE__ */ new Map();
|
|
32215
32190
|
fileNames = mapDefined(fileNames, (fileName) => {
|
|
32216
32191
|
const path2 = normalizePath(fileName);
|
|
32217
32192
|
if (hasJSFileExtension(path2)) {
|
|
@@ -32499,10 +32474,10 @@ var TypingsInstaller = class {
|
|
|
32499
32474
|
this.typesMapLocation = typesMapLocation2;
|
|
32500
32475
|
this.throttleLimit = throttleLimit;
|
|
32501
32476
|
this.log = log2;
|
|
32502
|
-
this.packageNameToTypingLocation = new Map();
|
|
32503
|
-
this.missingTypingsSet = new Set();
|
|
32504
|
-
this.knownCachesSet = new Set();
|
|
32505
|
-
this.projectWatchers = new Map();
|
|
32477
|
+
this.packageNameToTypingLocation = /* @__PURE__ */ new Map();
|
|
32478
|
+
this.missingTypingsSet = /* @__PURE__ */ new Set();
|
|
32479
|
+
this.knownCachesSet = /* @__PURE__ */ new Set();
|
|
32480
|
+
this.projectWatchers = /* @__PURE__ */ new Map();
|
|
32506
32481
|
this.pendingRunRequests = [];
|
|
32507
32482
|
this.installRunCount = 1;
|
|
32508
32483
|
this.inFlightRequestCount = 0;
|
|
@@ -32771,9 +32746,9 @@ var TypingsInstaller = class {
|
|
|
32771
32746
|
return;
|
|
32772
32747
|
}
|
|
32773
32748
|
let watchers = this.projectWatchers.get(projectName);
|
|
32774
|
-
const toRemove = new Map();
|
|
32749
|
+
const toRemove = /* @__PURE__ */ new Map();
|
|
32775
32750
|
if (!watchers) {
|
|
32776
|
-
watchers = new Map();
|
|
32751
|
+
watchers = /* @__PURE__ */ new Map();
|
|
32777
32752
|
this.projectWatchers.set(projectName, watchers);
|
|
32778
32753
|
} else {
|
|
32779
32754
|
copyEntries(watchers, toRemove);
|
|
@@ -32900,7 +32875,7 @@ function loadTypesRegistryFile(typesRegistryFilePath, host, log2) {
|
|
|
32900
32875
|
if (log2.isEnabled()) {
|
|
32901
32876
|
log2.writeLine(`Types registry file '${typesRegistryFilePath}' does not exist`);
|
|
32902
32877
|
}
|
|
32903
|
-
return new Map();
|
|
32878
|
+
return /* @__PURE__ */ new Map();
|
|
32904
32879
|
}
|
|
32905
32880
|
try {
|
|
32906
32881
|
const content = JSON.parse(host.readFile(typesRegistryFilePath));
|
|
@@ -32909,7 +32884,7 @@ function loadTypesRegistryFile(typesRegistryFilePath, host, log2) {
|
|
|
32909
32884
|
if (log2.isEnabled()) {
|
|
32910
32885
|
log2.writeLine(`Error when loading types registry file '${typesRegistryFilePath}': ${e.message}, ${e.stack}`);
|
|
32911
32886
|
}
|
|
32912
|
-
return new Map();
|
|
32887
|
+
return /* @__PURE__ */ new Map();
|
|
32913
32888
|
}
|
|
32914
32889
|
}
|
|
32915
32890
|
var typesRegistryPackageName = "types-registry";
|
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.0.0-pr-
|
|
5
|
+
"version": "5.0.0-pr-51474-2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"!**/.gitattributes"
|
|
40
40
|
],
|
|
41
41
|
"devDependencies": {
|
|
42
|
+
"@esfx/canceltoken": "^1.0.0",
|
|
42
43
|
"@octokit/rest": "latest",
|
|
43
44
|
"@types/chai": "latest",
|
|
44
45
|
"@types/fs-extra": "^9.0.13",
|
|
@@ -56,13 +57,13 @@
|
|
|
56
57
|
"azure-devops-node-api": "^11.2.0",
|
|
57
58
|
"chai": "latest",
|
|
58
59
|
"chalk": "^4.1.2",
|
|
60
|
+
"chokidar": "^3.5.3",
|
|
59
61
|
"del": "^6.1.1",
|
|
60
62
|
"diff": "^5.1.0",
|
|
61
63
|
"esbuild": "^0.15.13",
|
|
62
64
|
"eslint": "^8.22.0",
|
|
63
65
|
"eslint-formatter-autolinkable-stylish": "^1.2.0",
|
|
64
66
|
"eslint-plugin-import": "^2.26.0",
|
|
65
|
-
"eslint-plugin-jsdoc": "^39.3.6",
|
|
66
67
|
"eslint-plugin-local": "^1.0.0",
|
|
67
68
|
"eslint-plugin-no-null": "^1.0.2",
|
|
68
69
|
"fast-xml-parser": "^4.0.11",
|
|
@@ -102,9 +103,9 @@
|
|
|
102
103
|
"source-map-support": false,
|
|
103
104
|
"inspector": false
|
|
104
105
|
},
|
|
105
|
-
"packageManager": "npm@8.
|
|
106
|
+
"packageManager": "npm@8.19.3",
|
|
106
107
|
"volta": {
|
|
107
|
-
"node": "14.
|
|
108
|
-
"npm": "8.
|
|
108
|
+
"node": "14.21.1",
|
|
109
|
+
"npm": "8.19.3"
|
|
109
110
|
}
|
|
110
111
|
}
|