@typescript-deploys/pr-build 5.2.0-pr-55224-9 → 5.2.0-pr-55224-27

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 CHANGED
@@ -1303,32 +1303,27 @@ function isNodeLikeSystem() {
1303
1303
  return typeof process !== "undefined" && !!process.nextTick && !process.browser && typeof module === "object";
1304
1304
  }
1305
1305
  function createStackSet() {
1306
- const refs = /* @__PURE__ */ new Map();
1307
- const stack = [];
1308
- let end = 0;
1306
+ var set = /* @__PURE__ */ new Set();
1307
+ var stack = [];
1308
+ var end = 0;
1309
1309
  return {
1310
1310
  has(value) {
1311
- return refs.has(value);
1311
+ return set.has(value);
1312
1312
  },
1313
1313
  push(value) {
1314
- refs.set(value, (refs.get(value) ?? 0) + 1);
1314
+ set.add(value);
1315
1315
  stack[end] = value;
1316
1316
  end++;
1317
1317
  },
1318
- pop() {
1319
- end--;
1320
- Debug.assertGreaterThanOrEqual(end, 0);
1321
- const value = stack[end];
1322
- const refCount = refs.get(value) - 1;
1323
- if (refCount === 0) {
1324
- refs.delete(value);
1325
- } else {
1326
- refs.set(value, refCount);
1318
+ popAll(callback) {
1319
+ while (end > 0) {
1320
+ end--;
1321
+ const value = stack[end];
1322
+ set.delete(value);
1323
+ if (callback(value)) {
1324
+ break;
1325
+ }
1327
1326
  }
1328
- return value;
1329
- },
1330
- get size() {
1331
- return end;
1332
1327
  }
1333
1328
  };
1334
1329
  }
@@ -60723,7 +60718,6 @@ function createTypeChecker(host) {
60723
60718
  return 0 /* False */;
60724
60719
  }
60725
60720
  }
60726
- const maybeStart = maybeKeys.size;
60727
60721
  maybeKeys.push(id);
60728
60722
  const saveExpandingFlags = expandingFlags;
60729
60723
  if (recursionFlags & 1 /* Source */) {
@@ -60776,21 +60770,17 @@ function createTypeChecker(host) {
60776
60770
  if (result2) {
60777
60771
  if (result2 === -1 /* True */ || sourceDepth === 0 && targetDepth === 0) {
60778
60772
  if (result2 === -1 /* True */ || result2 === 3 /* Maybe */) {
60779
- while (maybeKeys.size > maybeStart) {
60780
- const id2 = maybeKeys.pop();
60781
- relation.set(id2, 1 /* Succeeded */ | propagatingVarianceFlags);
60782
- }
60773
+ maybeKeys.popAll((v) => {
60774
+ relation.set(v, 1 /* Succeeded */ | propagatingVarianceFlags);
60775
+ return v === id;
60776
+ });
60783
60777
  } else {
60784
- while (maybeKeys.size > maybeStart) {
60785
- maybeKeys.pop();
60786
- }
60778
+ maybeKeys.popAll((v) => v === id);
60787
60779
  }
60788
60780
  }
60789
60781
  } else {
60790
60782
  relation.set(id, (reportErrors2 ? 4 /* Reported */ : 0) | 2 /* Failed */ | propagatingVarianceFlags);
60791
- while (maybeKeys.size > maybeStart) {
60792
- maybeKeys.pop();
60793
- }
60783
+ maybeKeys.popAll((v) => v === id);
60794
60784
  }
60795
60785
  return result2;
60796
60786
  }
package/lib/tsserver.js CHANGED
@@ -4005,32 +4005,27 @@ function isNodeLikeSystem() {
4005
4005
  return typeof process !== "undefined" && !!process.nextTick && !process.browser && typeof module === "object";
4006
4006
  }
4007
4007
  function createStackSet() {
4008
- const refs = /* @__PURE__ */ new Map();
4009
- const stack = [];
4010
- let end = 0;
4008
+ var set = /* @__PURE__ */ new Set();
4009
+ var stack = [];
4010
+ var end = 0;
4011
4011
  return {
4012
4012
  has(value) {
4013
- return refs.has(value);
4013
+ return set.has(value);
4014
4014
  },
4015
4015
  push(value) {
4016
- refs.set(value, (refs.get(value) ?? 0) + 1);
4016
+ set.add(value);
4017
4017
  stack[end] = value;
4018
4018
  end++;
4019
4019
  },
4020
- pop() {
4021
- end--;
4022
- Debug.assertGreaterThanOrEqual(end, 0);
4023
- const value = stack[end];
4024
- const refCount = refs.get(value) - 1;
4025
- if (refCount === 0) {
4026
- refs.delete(value);
4027
- } else {
4028
- refs.set(value, refCount);
4020
+ popAll(callback) {
4021
+ while (end > 0) {
4022
+ end--;
4023
+ const value = stack[end];
4024
+ set.delete(value);
4025
+ if (callback(value)) {
4026
+ break;
4027
+ }
4029
4028
  }
4030
- return value;
4031
- },
4032
- get size() {
4033
- return end;
4034
4029
  }
4035
4030
  };
4036
4031
  }
@@ -65435,7 +65430,6 @@ function createTypeChecker(host) {
65435
65430
  return 0 /* False */;
65436
65431
  }
65437
65432
  }
65438
- const maybeStart = maybeKeys.size;
65439
65433
  maybeKeys.push(id);
65440
65434
  const saveExpandingFlags = expandingFlags;
65441
65435
  if (recursionFlags & 1 /* Source */) {
@@ -65488,21 +65482,17 @@ function createTypeChecker(host) {
65488
65482
  if (result2) {
65489
65483
  if (result2 === -1 /* True */ || sourceDepth === 0 && targetDepth === 0) {
65490
65484
  if (result2 === -1 /* True */ || result2 === 3 /* Maybe */) {
65491
- while (maybeKeys.size > maybeStart) {
65492
- const id2 = maybeKeys.pop();
65493
- relation.set(id2, 1 /* Succeeded */ | propagatingVarianceFlags);
65494
- }
65485
+ maybeKeys.popAll((v) => {
65486
+ relation.set(v, 1 /* Succeeded */ | propagatingVarianceFlags);
65487
+ return v === id;
65488
+ });
65495
65489
  } else {
65496
- while (maybeKeys.size > maybeStart) {
65497
- maybeKeys.pop();
65498
- }
65490
+ maybeKeys.popAll((v) => v === id);
65499
65491
  }
65500
65492
  }
65501
65493
  } else {
65502
65494
  relation.set(id, (reportErrors2 ? 4 /* Reported */ : 0) | 2 /* Failed */ | propagatingVarianceFlags);
65503
- while (maybeKeys.size > maybeStart) {
65504
- maybeKeys.pop();
65505
- }
65495
+ maybeKeys.popAll((v) => v === id);
65506
65496
  }
65507
65497
  return result2;
65508
65498
  }
@@ -1622,32 +1622,27 @@ var ts = (() => {
1622
1622
  return typeof process !== "undefined" && !!process.nextTick && !process.browser && typeof module === "object";
1623
1623
  }
1624
1624
  function createStackSet() {
1625
- const refs = /* @__PURE__ */ new Map();
1626
- const stack = [];
1627
- let end = 0;
1625
+ var set = /* @__PURE__ */ new Set();
1626
+ var stack = [];
1627
+ var end = 0;
1628
1628
  return {
1629
1629
  has(value) {
1630
- return refs.has(value);
1630
+ return set.has(value);
1631
1631
  },
1632
1632
  push(value) {
1633
- refs.set(value, (refs.get(value) ?? 0) + 1);
1633
+ set.add(value);
1634
1634
  stack[end] = value;
1635
1635
  end++;
1636
1636
  },
1637
- pop() {
1638
- end--;
1639
- Debug.assertGreaterThanOrEqual(end, 0);
1640
- const value = stack[end];
1641
- const refCount = refs.get(value) - 1;
1642
- if (refCount === 0) {
1643
- refs.delete(value);
1644
- } else {
1645
- refs.set(value, refCount);
1637
+ popAll(callback) {
1638
+ while (end > 0) {
1639
+ end--;
1640
+ const value = stack[end];
1641
+ set.delete(value);
1642
+ if (callback(value)) {
1643
+ break;
1644
+ }
1646
1645
  }
1647
- return value;
1648
- },
1649
- get size() {
1650
- return end;
1651
1646
  }
1652
1647
  };
1653
1648
  }
@@ -63197,7 +63192,6 @@ ${lanes.join("\n")}
63197
63192
  return 0 /* False */;
63198
63193
  }
63199
63194
  }
63200
- const maybeStart = maybeKeys.size;
63201
63195
  maybeKeys.push(id);
63202
63196
  const saveExpandingFlags = expandingFlags;
63203
63197
  if (recursionFlags & 1 /* Source */) {
@@ -63250,21 +63244,17 @@ ${lanes.join("\n")}
63250
63244
  if (result2) {
63251
63245
  if (result2 === -1 /* True */ || sourceDepth === 0 && targetDepth === 0) {
63252
63246
  if (result2 === -1 /* True */ || result2 === 3 /* Maybe */) {
63253
- while (maybeKeys.size > maybeStart) {
63254
- const id2 = maybeKeys.pop();
63255
- relation.set(id2, 1 /* Succeeded */ | propagatingVarianceFlags);
63256
- }
63247
+ maybeKeys.popAll((v) => {
63248
+ relation.set(v, 1 /* Succeeded */ | propagatingVarianceFlags);
63249
+ return v === id;
63250
+ });
63257
63251
  } else {
63258
- while (maybeKeys.size > maybeStart) {
63259
- maybeKeys.pop();
63260
- }
63252
+ maybeKeys.popAll((v) => v === id);
63261
63253
  }
63262
63254
  }
63263
63255
  } else {
63264
63256
  relation.set(id, (reportErrors2 ? 4 /* Reported */ : 0) | 2 /* Failed */ | propagatingVarianceFlags);
63265
- while (maybeKeys.size > maybeStart) {
63266
- maybeKeys.pop();
63267
- }
63257
+ maybeKeys.popAll((v) => v === id);
63268
63258
  }
63269
63259
  return result2;
63270
63260
  }
package/lib/typescript.js CHANGED
@@ -1622,32 +1622,27 @@ var ts = (() => {
1622
1622
  return typeof process !== "undefined" && !!process.nextTick && !process.browser && typeof module === "object";
1623
1623
  }
1624
1624
  function createStackSet() {
1625
- const refs = /* @__PURE__ */ new Map();
1626
- const stack = [];
1627
- let end = 0;
1625
+ var set = /* @__PURE__ */ new Set();
1626
+ var stack = [];
1627
+ var end = 0;
1628
1628
  return {
1629
1629
  has(value) {
1630
- return refs.has(value);
1630
+ return set.has(value);
1631
1631
  },
1632
1632
  push(value) {
1633
- refs.set(value, (refs.get(value) ?? 0) + 1);
1633
+ set.add(value);
1634
1634
  stack[end] = value;
1635
1635
  end++;
1636
1636
  },
1637
- pop() {
1638
- end--;
1639
- Debug.assertGreaterThanOrEqual(end, 0);
1640
- const value = stack[end];
1641
- const refCount = refs.get(value) - 1;
1642
- if (refCount === 0) {
1643
- refs.delete(value);
1644
- } else {
1645
- refs.set(value, refCount);
1637
+ popAll(callback) {
1638
+ while (end > 0) {
1639
+ end--;
1640
+ const value = stack[end];
1641
+ set.delete(value);
1642
+ if (callback(value)) {
1643
+ break;
1644
+ }
1646
1645
  }
1647
- return value;
1648
- },
1649
- get size() {
1650
- return end;
1651
1646
  }
1652
1647
  };
1653
1648
  }
@@ -63197,7 +63192,6 @@ ${lanes.join("\n")}
63197
63192
  return 0 /* False */;
63198
63193
  }
63199
63194
  }
63200
- const maybeStart = maybeKeys.size;
63201
63195
  maybeKeys.push(id);
63202
63196
  const saveExpandingFlags = expandingFlags;
63203
63197
  if (recursionFlags & 1 /* Source */) {
@@ -63250,21 +63244,17 @@ ${lanes.join("\n")}
63250
63244
  if (result2) {
63251
63245
  if (result2 === -1 /* True */ || sourceDepth === 0 && targetDepth === 0) {
63252
63246
  if (result2 === -1 /* True */ || result2 === 3 /* Maybe */) {
63253
- while (maybeKeys.size > maybeStart) {
63254
- const id2 = maybeKeys.pop();
63255
- relation.set(id2, 1 /* Succeeded */ | propagatingVarianceFlags);
63256
- }
63247
+ maybeKeys.popAll((v) => {
63248
+ relation.set(v, 1 /* Succeeded */ | propagatingVarianceFlags);
63249
+ return v === id;
63250
+ });
63257
63251
  } else {
63258
- while (maybeKeys.size > maybeStart) {
63259
- maybeKeys.pop();
63260
- }
63252
+ maybeKeys.popAll((v) => v === id);
63261
63253
  }
63262
63254
  }
63263
63255
  } else {
63264
63256
  relation.set(id, (reportErrors2 ? 4 /* Reported */ : 0) | 2 /* Failed */ | propagatingVarianceFlags);
63265
- while (maybeKeys.size > maybeStart) {
63266
- maybeKeys.pop();
63267
- }
63257
+ maybeKeys.popAll((v) => v === id);
63268
63258
  }
63269
63259
  return result2;
63270
63260
  }
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.2.0-pr-55224-9",
5
+ "version": "5.2.0-pr-55224-27",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -114,5 +114,5 @@
114
114
  "node": "20.1.0",
115
115
  "npm": "8.19.4"
116
116
  },
117
- "gitHead": "555315567c5e1c558a465e4b028863ac2d90a7e5"
117
+ "gitHead": "2bce9b69a6292db56b1749abfefef52ea0e8fcbb"
118
118
  }