@@ -7340,13 +7340,17 @@ exports.knownLibFilesForCompilerOptions = knownLibFilesForCompilerOptions;
7340
7340
7341
7341
"use strict";
7342
7342
7343
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7344
+ return (mod && mod.__esModule) ? mod : { "default": mod };
7345
+ };
7343
7346
Object.defineProperty(exports, "__esModule", { value: true });
7344
7347
exports.getBreakageInfo = exports.binarySearch = exports.extractDateAndVersionMetadata = void 0;
7345
7348
const downloadTSVersions_1 = __webpack_require__(580);
7346
7349
const runTwoslashRuns_1 = __webpack_require__(303);
7350
+ const node_fetch_1 = __importDefault(__webpack_require__(454));
7347
7351
// Grab every version of TypeScript
7348
7352
const downloadAllTSVersions = async () => {
7349
- const response = await fetch ('http://registry.npmjs.org/typescript');
7353
+ const response = await (0, node_fetch_1.default) ('http://registry.npmjs.org/typescript');
7350
7354
const json = await response.json();
7351
7355
return (0, exports.extractDateAndVersionMetadata)(json);
7352
7356
};
@@ -7396,8 +7400,8 @@ const getBreakageInfo = async (run, results) => {
7396
7400
const comparer = compareResults(run, latestResults);
7397
7401
const version = await binarySearch(allVersions, comparer);
7398
7402
const info = {
7399
- estimatedVersion: version[0],
7400
- estimatedDate: version[1]
7403
+ estimatedVersion: version ? version [0] : "N/A" ,
7404
+ estimatedDate: version ? version [1] : "N/A"
7401
7405
};
7402
7406
return info;
7403
7407
};
0 commit comments