Skip to content

Commit b7de5e3

Browse files
Bump version to 3.9.10 and LKG
1 parent 022bdea commit b7de5e3

8 files changed

+153
-56
lines changed

lib/tsc.js

+20-9
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
6767
var ts;
6868
(function (ts) {
6969
ts.versionMajorMinor = "3.9";
70-
ts.version = "3.9.9";
70+
ts.version = "3.9.10";
7171
function tryGetNativeMap() {
7272
return typeof Map !== "undefined" && "entries" in Map.prototype ? Map : undefined;
7373
}
@@ -3279,8 +3279,8 @@ var ts;
32793279
},
32803280
getFileSize: function (path) {
32813281
try {
3282-
var stat = _fs.statSync(path);
3283-
if (stat.isFile()) {
3282+
var stat = statSync(path);
3283+
if (stat === null || stat === void 0 ? void 0 : stat.isFile()) {
32843284
return stat.size;
32853285
}
32863286
}
@@ -3325,6 +3325,9 @@ var ts;
33253325
}
33263326
};
33273327
return nodeSystem;
3328+
function statSync(path) {
3329+
return _fs.statSync(path, { throwIfNoEntry: false });
3330+
}
33283331
function enableCPUProfiler(path, cb) {
33293332
if (activeSession) {
33303333
cb();
@@ -3370,19 +3373,20 @@ var ts;
33703373
if (activeSession && activeSession !== "stopping") {
33713374
var s_1 = activeSession;
33723375
activeSession.post("Profiler.stop", function (err, _a) {
3376+
var _b;
33733377
var profile = _a.profile;
33743378
if (!err) {
33753379
try {
3376-
if (_fs.statSync(profilePath).isDirectory()) {
3380+
if ((_b = statSync(profilePath)) === null || _b === void 0 ? void 0 : _b.isDirectory()) {
33773381
profilePath = _path.join(profilePath, (new Date()).toISOString().replace(/:/g, "-") + "+P" + process.pid + ".cpuprofile");
33783382
}
33793383
}
3380-
catch (_b) {
3384+
catch (_c) {
33813385
}
33823386
try {
33833387
_fs.mkdirSync(_path.dirname(profilePath), { recursive: true });
33843388
}
3385-
catch (_c) {
3389+
catch (_d) {
33863390
}
33873391
_fs.writeFileSync(profilePath, JSON.stringify(cleanupPaths(profile)));
33883392
}
@@ -3571,7 +3575,10 @@ var ts;
35713575
if (typeof dirent === "string" || dirent.isSymbolicLink()) {
35723576
var name = ts.combinePaths(path, entry);
35733577
try {
3574-
stat = _fs.statSync(name);
3578+
stat = statSync(name);
3579+
if (!stat) {
3580+
continue;
3581+
}
35753582
}
35763583
catch (e) {
35773584
continue;
@@ -3600,7 +3607,10 @@ var ts;
36003607
}
36013608
function fileSystemEntryExists(path, entryKind) {
36023609
try {
3603-
var stat = _fs.statSync(path);
3610+
var stat = statSync(path);
3611+
if (!stat) {
3612+
return false;
3613+
}
36043614
switch (entryKind) {
36053615
case 0: return stat.isFile();
36063616
case 1: return stat.isDirectory();
@@ -3629,8 +3639,9 @@ var ts;
36293639
}
36303640
}
36313641
function getModifiedTime(path) {
3642+
var _a;
36323643
try {
3633-
return _fs.statSync(path).mtime;
3644+
return (_a = statSync(path)) === null || _a === void 0 ? void 0 : _a.mtime;
36343645
}
36353646
catch (e) {
36363647
return undefined;

lib/tsserver.js

+27-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/tsserverlibrary.js

+26-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/typescript.js

+26-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)