mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-12 21:37:41 -06:00
Bump version to 4.0.8 and LKG
This commit is contained in:
parent
72eaadcbab
commit
6d54ce8a37
29
lib/tsc.js
29
lib/tsc.js
@ -67,7 +67,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||
var ts;
|
||||
(function (ts) {
|
||||
ts.versionMajorMinor = "4.0";
|
||||
ts.version = "4.0.7";
|
||||
ts.version = "4.0.8";
|
||||
var NativeCollections;
|
||||
(function (NativeCollections) {
|
||||
function tryGetNativeMap() {
|
||||
@ -3516,8 +3516,8 @@ var ts;
|
||||
},
|
||||
getFileSize: function (path) {
|
||||
try {
|
||||
var stat = _fs.statSync(path);
|
||||
if (stat.isFile()) {
|
||||
var stat = statSync(path);
|
||||
if (stat === null || stat === void 0 ? void 0 : stat.isFile()) {
|
||||
return stat.size;
|
||||
}
|
||||
}
|
||||
@ -3562,6 +3562,9 @@ var ts;
|
||||
}
|
||||
};
|
||||
return nodeSystem;
|
||||
function statSync(path) {
|
||||
return _fs.statSync(path, { throwIfNoEntry: false });
|
||||
}
|
||||
function enableCPUProfiler(path, cb) {
|
||||
if (activeSession) {
|
||||
cb();
|
||||
@ -3607,19 +3610,20 @@ var ts;
|
||||
if (activeSession && activeSession !== "stopping") {
|
||||
var s_1 = activeSession;
|
||||
activeSession.post("Profiler.stop", function (err, _a) {
|
||||
var _b;
|
||||
var profile = _a.profile;
|
||||
if (!err) {
|
||||
try {
|
||||
if (_fs.statSync(profilePath).isDirectory()) {
|
||||
if ((_b = statSync(profilePath)) === null || _b === void 0 ? void 0 : _b.isDirectory()) {
|
||||
profilePath = _path.join(profilePath, (new Date()).toISOString().replace(/:/g, "-") + "+P" + process.pid + ".cpuprofile");
|
||||
}
|
||||
}
|
||||
catch (_b) {
|
||||
catch (_c) {
|
||||
}
|
||||
try {
|
||||
_fs.mkdirSync(_path.dirname(profilePath), { recursive: true });
|
||||
}
|
||||
catch (_c) {
|
||||
catch (_d) {
|
||||
}
|
||||
_fs.writeFileSync(profilePath, JSON.stringify(cleanupPaths(profile)));
|
||||
}
|
||||
@ -3808,7 +3812,10 @@ var ts;
|
||||
if (typeof dirent === "string" || dirent.isSymbolicLink()) {
|
||||
var name = ts.combinePaths(path, entry);
|
||||
try {
|
||||
stat = _fs.statSync(name);
|
||||
stat = statSync(name);
|
||||
if (!stat) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
continue;
|
||||
@ -3839,7 +3846,10 @@ var ts;
|
||||
var originalStackTraceLimit = Error.stackTraceLimit;
|
||||
Error.stackTraceLimit = 0;
|
||||
try {
|
||||
var stat = _fs.statSync(path);
|
||||
var stat = statSync(path);
|
||||
if (!stat) {
|
||||
return false;
|
||||
}
|
||||
switch (entryKind) {
|
||||
case 0: return stat.isFile();
|
||||
case 1: return stat.isDirectory();
|
||||
@ -3871,8 +3881,9 @@ var ts;
|
||||
}
|
||||
}
|
||||
function getModifiedTime(path) {
|
||||
var _a;
|
||||
try {
|
||||
return _fs.statSync(path).mtime;
|
||||
return (_a = statSync(path)) === null || _a === void 0 ? void 0 : _a.mtime;
|
||||
}
|
||||
catch (e) {
|
||||
return undefined;
|
||||
|
||||
@ -94,7 +94,7 @@ var ts;
|
||||
// If changing the text in this section, be sure to test `configurePrerelease` too.
|
||||
ts.versionMajorMinor = "4.0";
|
||||
/** The version of the TypeScript compiler release */
|
||||
ts.version = "4.0.7";
|
||||
ts.version = "4.0.8";
|
||||
/* @internal */
|
||||
var Comparison;
|
||||
(function (Comparison) {
|
||||
@ -5793,8 +5793,8 @@ var ts;
|
||||
},
|
||||
getFileSize: function (path) {
|
||||
try {
|
||||
var stat = _fs.statSync(path);
|
||||
if (stat.isFile()) {
|
||||
var stat = statSync(path);
|
||||
if (stat === null || stat === void 0 ? void 0 : stat.isFile()) {
|
||||
return stat.size;
|
||||
}
|
||||
}
|
||||
@ -5840,6 +5840,15 @@ var ts;
|
||||
}
|
||||
};
|
||||
return nodeSystem;
|
||||
/**
|
||||
* `throwIfNoEntry` was added so recently that it's not in the node types.
|
||||
* This helper encapsulates the mitigating usage of `any`.
|
||||
* See https://github.com/nodejs/node/pull/33716
|
||||
*/
|
||||
function statSync(path) {
|
||||
// throwIfNoEntry will be ignored by older versions of node
|
||||
return _fs.statSync(path, { throwIfNoEntry: false });
|
||||
}
|
||||
/**
|
||||
* Uses the builtin inspector APIs to capture a CPU profile
|
||||
* See https://nodejs.org/api/inspector.html#inspector_example_usage for details
|
||||
@ -5894,20 +5903,21 @@ var ts;
|
||||
if (activeSession && activeSession !== "stopping") {
|
||||
var s_1 = activeSession;
|
||||
activeSession.post("Profiler.stop", function (err, _a) {
|
||||
var _b;
|
||||
var profile = _a.profile;
|
||||
if (!err) {
|
||||
try {
|
||||
if (_fs.statSync(profilePath).isDirectory()) {
|
||||
if ((_b = statSync(profilePath)) === null || _b === void 0 ? void 0 : _b.isDirectory()) {
|
||||
profilePath = _path.join(profilePath, (new Date()).toISOString().replace(/:/g, "-") + "+P" + process.pid + ".cpuprofile");
|
||||
}
|
||||
}
|
||||
catch (_b) {
|
||||
catch (_c) {
|
||||
// do nothing and ignore fallible fs operation
|
||||
}
|
||||
try {
|
||||
_fs.mkdirSync(_path.dirname(profilePath), { recursive: true });
|
||||
}
|
||||
catch (_c) {
|
||||
catch (_d) {
|
||||
// do nothing and ignore fallible fs operation
|
||||
}
|
||||
_fs.writeFileSync(profilePath, JSON.stringify(cleanupPaths(profile)));
|
||||
@ -6146,7 +6156,10 @@ var ts;
|
||||
if (typeof dirent === "string" || dirent.isSymbolicLink()) {
|
||||
var name = ts.combinePaths(path, entry);
|
||||
try {
|
||||
stat = _fs.statSync(name);
|
||||
stat = statSync(name);
|
||||
if (!stat) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
continue;
|
||||
@ -6179,7 +6192,10 @@ var ts;
|
||||
var originalStackTraceLimit = Error.stackTraceLimit;
|
||||
Error.stackTraceLimit = 0;
|
||||
try {
|
||||
var stat = _fs.statSync(path);
|
||||
var stat = statSync(path);
|
||||
if (!stat) {
|
||||
return false;
|
||||
}
|
||||
switch (entryKind) {
|
||||
case 0 /* File */: return stat.isFile();
|
||||
case 1 /* Directory */: return stat.isDirectory();
|
||||
@ -6211,8 +6227,9 @@ var ts;
|
||||
}
|
||||
}
|
||||
function getModifiedTime(path) {
|
||||
var _a;
|
||||
try {
|
||||
return _fs.statSync(path).mtime;
|
||||
return (_a = statSync(path)) === null || _a === void 0 ? void 0 : _a.mtime;
|
||||
}
|
||||
catch (e) {
|
||||
return undefined;
|
||||
@ -157350,6 +157367,7 @@ var ts;
|
||||
var nextFileToCheck = 0;
|
||||
return { getModifiedTime: getModifiedTime, poll: poll, startWatchTimer: startWatchTimer, addFile: addFile, removeFile: removeFile };
|
||||
function getModifiedTime(fileName) {
|
||||
// Caller guarantees that `fileName` exists, so there'd be no benefit from throwIfNoEntry
|
||||
return fs.statSync(fileName).mtime;
|
||||
}
|
||||
function poll(checkedIndex) {
|
||||
|
||||
@ -288,7 +288,7 @@ var ts;
|
||||
// If changing the text in this section, be sure to test `configurePrerelease` too.
|
||||
ts.versionMajorMinor = "4.0";
|
||||
/** The version of the TypeScript compiler release */
|
||||
ts.version = "4.0.7";
|
||||
ts.version = "4.0.8";
|
||||
/* @internal */
|
||||
var Comparison;
|
||||
(function (Comparison) {
|
||||
@ -5987,8 +5987,8 @@ var ts;
|
||||
},
|
||||
getFileSize: function (path) {
|
||||
try {
|
||||
var stat = _fs.statSync(path);
|
||||
if (stat.isFile()) {
|
||||
var stat = statSync(path);
|
||||
if (stat === null || stat === void 0 ? void 0 : stat.isFile()) {
|
||||
return stat.size;
|
||||
}
|
||||
}
|
||||
@ -6034,6 +6034,15 @@ var ts;
|
||||
}
|
||||
};
|
||||
return nodeSystem;
|
||||
/**
|
||||
* `throwIfNoEntry` was added so recently that it's not in the node types.
|
||||
* This helper encapsulates the mitigating usage of `any`.
|
||||
* See https://github.com/nodejs/node/pull/33716
|
||||
*/
|
||||
function statSync(path) {
|
||||
// throwIfNoEntry will be ignored by older versions of node
|
||||
return _fs.statSync(path, { throwIfNoEntry: false });
|
||||
}
|
||||
/**
|
||||
* Uses the builtin inspector APIs to capture a CPU profile
|
||||
* See https://nodejs.org/api/inspector.html#inspector_example_usage for details
|
||||
@ -6088,20 +6097,21 @@ var ts;
|
||||
if (activeSession && activeSession !== "stopping") {
|
||||
var s_1 = activeSession;
|
||||
activeSession.post("Profiler.stop", function (err, _a) {
|
||||
var _b;
|
||||
var profile = _a.profile;
|
||||
if (!err) {
|
||||
try {
|
||||
if (_fs.statSync(profilePath).isDirectory()) {
|
||||
if ((_b = statSync(profilePath)) === null || _b === void 0 ? void 0 : _b.isDirectory()) {
|
||||
profilePath = _path.join(profilePath, (new Date()).toISOString().replace(/:/g, "-") + "+P" + process.pid + ".cpuprofile");
|
||||
}
|
||||
}
|
||||
catch (_b) {
|
||||
catch (_c) {
|
||||
// do nothing and ignore fallible fs operation
|
||||
}
|
||||
try {
|
||||
_fs.mkdirSync(_path.dirname(profilePath), { recursive: true });
|
||||
}
|
||||
catch (_c) {
|
||||
catch (_d) {
|
||||
// do nothing and ignore fallible fs operation
|
||||
}
|
||||
_fs.writeFileSync(profilePath, JSON.stringify(cleanupPaths(profile)));
|
||||
@ -6340,7 +6350,10 @@ var ts;
|
||||
if (typeof dirent === "string" || dirent.isSymbolicLink()) {
|
||||
var name = ts.combinePaths(path, entry);
|
||||
try {
|
||||
stat = _fs.statSync(name);
|
||||
stat = statSync(name);
|
||||
if (!stat) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
continue;
|
||||
@ -6373,7 +6386,10 @@ var ts;
|
||||
var originalStackTraceLimit = Error.stackTraceLimit;
|
||||
Error.stackTraceLimit = 0;
|
||||
try {
|
||||
var stat = _fs.statSync(path);
|
||||
var stat = statSync(path);
|
||||
if (!stat) {
|
||||
return false;
|
||||
}
|
||||
switch (entryKind) {
|
||||
case 0 /* File */: return stat.isFile();
|
||||
case 1 /* Directory */: return stat.isDirectory();
|
||||
@ -6405,8 +6421,9 @@ var ts;
|
||||
}
|
||||
}
|
||||
function getModifiedTime(path) {
|
||||
var _a;
|
||||
try {
|
||||
return _fs.statSync(path).mtime;
|
||||
return (_a = statSync(path)) === null || _a === void 0 ? void 0 : _a.mtime;
|
||||
}
|
||||
catch (e) {
|
||||
return undefined;
|
||||
|
||||
@ -288,7 +288,7 @@ var ts;
|
||||
// If changing the text in this section, be sure to test `configurePrerelease` too.
|
||||
ts.versionMajorMinor = "4.0";
|
||||
/** The version of the TypeScript compiler release */
|
||||
ts.version = "4.0.7";
|
||||
ts.version = "4.0.8";
|
||||
/* @internal */
|
||||
var Comparison;
|
||||
(function (Comparison) {
|
||||
@ -5987,8 +5987,8 @@ var ts;
|
||||
},
|
||||
getFileSize: function (path) {
|
||||
try {
|
||||
var stat = _fs.statSync(path);
|
||||
if (stat.isFile()) {
|
||||
var stat = statSync(path);
|
||||
if (stat === null || stat === void 0 ? void 0 : stat.isFile()) {
|
||||
return stat.size;
|
||||
}
|
||||
}
|
||||
@ -6034,6 +6034,15 @@ var ts;
|
||||
}
|
||||
};
|
||||
return nodeSystem;
|
||||
/**
|
||||
* `throwIfNoEntry` was added so recently that it's not in the node types.
|
||||
* This helper encapsulates the mitigating usage of `any`.
|
||||
* See https://github.com/nodejs/node/pull/33716
|
||||
*/
|
||||
function statSync(path) {
|
||||
// throwIfNoEntry will be ignored by older versions of node
|
||||
return _fs.statSync(path, { throwIfNoEntry: false });
|
||||
}
|
||||
/**
|
||||
* Uses the builtin inspector APIs to capture a CPU profile
|
||||
* See https://nodejs.org/api/inspector.html#inspector_example_usage for details
|
||||
@ -6088,20 +6097,21 @@ var ts;
|
||||
if (activeSession && activeSession !== "stopping") {
|
||||
var s_1 = activeSession;
|
||||
activeSession.post("Profiler.stop", function (err, _a) {
|
||||
var _b;
|
||||
var profile = _a.profile;
|
||||
if (!err) {
|
||||
try {
|
||||
if (_fs.statSync(profilePath).isDirectory()) {
|
||||
if ((_b = statSync(profilePath)) === null || _b === void 0 ? void 0 : _b.isDirectory()) {
|
||||
profilePath = _path.join(profilePath, (new Date()).toISOString().replace(/:/g, "-") + "+P" + process.pid + ".cpuprofile");
|
||||
}
|
||||
}
|
||||
catch (_b) {
|
||||
catch (_c) {
|
||||
// do nothing and ignore fallible fs operation
|
||||
}
|
||||
try {
|
||||
_fs.mkdirSync(_path.dirname(profilePath), { recursive: true });
|
||||
}
|
||||
catch (_c) {
|
||||
catch (_d) {
|
||||
// do nothing and ignore fallible fs operation
|
||||
}
|
||||
_fs.writeFileSync(profilePath, JSON.stringify(cleanupPaths(profile)));
|
||||
@ -6340,7 +6350,10 @@ var ts;
|
||||
if (typeof dirent === "string" || dirent.isSymbolicLink()) {
|
||||
var name = ts.combinePaths(path, entry);
|
||||
try {
|
||||
stat = _fs.statSync(name);
|
||||
stat = statSync(name);
|
||||
if (!stat) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
continue;
|
||||
@ -6373,7 +6386,10 @@ var ts;
|
||||
var originalStackTraceLimit = Error.stackTraceLimit;
|
||||
Error.stackTraceLimit = 0;
|
||||
try {
|
||||
var stat = _fs.statSync(path);
|
||||
var stat = statSync(path);
|
||||
if (!stat) {
|
||||
return false;
|
||||
}
|
||||
switch (entryKind) {
|
||||
case 0 /* File */: return stat.isFile();
|
||||
case 1 /* Directory */: return stat.isDirectory();
|
||||
@ -6405,8 +6421,9 @@ var ts;
|
||||
}
|
||||
}
|
||||
function getModifiedTime(path) {
|
||||
var _a;
|
||||
try {
|
||||
return _fs.statSync(path).mtime;
|
||||
return (_a = statSync(path)) === null || _a === void 0 ? void 0 : _a.mtime;
|
||||
}
|
||||
catch (e) {
|
||||
return undefined;
|
||||
|
||||
@ -288,7 +288,7 @@ var ts;
|
||||
// If changing the text in this section, be sure to test `configurePrerelease` too.
|
||||
ts.versionMajorMinor = "4.0";
|
||||
/** The version of the TypeScript compiler release */
|
||||
ts.version = "4.0.7";
|
||||
ts.version = "4.0.8";
|
||||
/* @internal */
|
||||
var Comparison;
|
||||
(function (Comparison) {
|
||||
@ -5987,8 +5987,8 @@ var ts;
|
||||
},
|
||||
getFileSize: function (path) {
|
||||
try {
|
||||
var stat = _fs.statSync(path);
|
||||
if (stat.isFile()) {
|
||||
var stat = statSync(path);
|
||||
if (stat === null || stat === void 0 ? void 0 : stat.isFile()) {
|
||||
return stat.size;
|
||||
}
|
||||
}
|
||||
@ -6034,6 +6034,15 @@ var ts;
|
||||
}
|
||||
};
|
||||
return nodeSystem;
|
||||
/**
|
||||
* `throwIfNoEntry` was added so recently that it's not in the node types.
|
||||
* This helper encapsulates the mitigating usage of `any`.
|
||||
* See https://github.com/nodejs/node/pull/33716
|
||||
*/
|
||||
function statSync(path) {
|
||||
// throwIfNoEntry will be ignored by older versions of node
|
||||
return _fs.statSync(path, { throwIfNoEntry: false });
|
||||
}
|
||||
/**
|
||||
* Uses the builtin inspector APIs to capture a CPU profile
|
||||
* See https://nodejs.org/api/inspector.html#inspector_example_usage for details
|
||||
@ -6088,20 +6097,21 @@ var ts;
|
||||
if (activeSession && activeSession !== "stopping") {
|
||||
var s_1 = activeSession;
|
||||
activeSession.post("Profiler.stop", function (err, _a) {
|
||||
var _b;
|
||||
var profile = _a.profile;
|
||||
if (!err) {
|
||||
try {
|
||||
if (_fs.statSync(profilePath).isDirectory()) {
|
||||
if ((_b = statSync(profilePath)) === null || _b === void 0 ? void 0 : _b.isDirectory()) {
|
||||
profilePath = _path.join(profilePath, (new Date()).toISOString().replace(/:/g, "-") + "+P" + process.pid + ".cpuprofile");
|
||||
}
|
||||
}
|
||||
catch (_b) {
|
||||
catch (_c) {
|
||||
// do nothing and ignore fallible fs operation
|
||||
}
|
||||
try {
|
||||
_fs.mkdirSync(_path.dirname(profilePath), { recursive: true });
|
||||
}
|
||||
catch (_c) {
|
||||
catch (_d) {
|
||||
// do nothing and ignore fallible fs operation
|
||||
}
|
||||
_fs.writeFileSync(profilePath, JSON.stringify(cleanupPaths(profile)));
|
||||
@ -6340,7 +6350,10 @@ var ts;
|
||||
if (typeof dirent === "string" || dirent.isSymbolicLink()) {
|
||||
var name = ts.combinePaths(path, entry);
|
||||
try {
|
||||
stat = _fs.statSync(name);
|
||||
stat = statSync(name);
|
||||
if (!stat) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
continue;
|
||||
@ -6373,7 +6386,10 @@ var ts;
|
||||
var originalStackTraceLimit = Error.stackTraceLimit;
|
||||
Error.stackTraceLimit = 0;
|
||||
try {
|
||||
var stat = _fs.statSync(path);
|
||||
var stat = statSync(path);
|
||||
if (!stat) {
|
||||
return false;
|
||||
}
|
||||
switch (entryKind) {
|
||||
case 0 /* File */: return stat.isFile();
|
||||
case 1 /* Directory */: return stat.isDirectory();
|
||||
@ -6405,8 +6421,9 @@ var ts;
|
||||
}
|
||||
}
|
||||
function getModifiedTime(path) {
|
||||
var _a;
|
||||
try {
|
||||
return _fs.statSync(path).mtime;
|
||||
return (_a = statSync(path)) === null || _a === void 0 ? void 0 : _a.mtime;
|
||||
}
|
||||
catch (e) {
|
||||
return undefined;
|
||||
|
||||
@ -83,7 +83,7 @@ var ts;
|
||||
// If changing the text in this section, be sure to test `configurePrerelease` too.
|
||||
ts.versionMajorMinor = "4.0";
|
||||
/** The version of the TypeScript compiler release */
|
||||
ts.version = "4.0.7";
|
||||
ts.version = "4.0.8";
|
||||
/* @internal */
|
||||
var Comparison;
|
||||
(function (Comparison) {
|
||||
@ -5782,8 +5782,8 @@ var ts;
|
||||
},
|
||||
getFileSize: function (path) {
|
||||
try {
|
||||
var stat = _fs.statSync(path);
|
||||
if (stat.isFile()) {
|
||||
var stat = statSync(path);
|
||||
if (stat === null || stat === void 0 ? void 0 : stat.isFile()) {
|
||||
return stat.size;
|
||||
}
|
||||
}
|
||||
@ -5829,6 +5829,15 @@ var ts;
|
||||
}
|
||||
};
|
||||
return nodeSystem;
|
||||
/**
|
||||
* `throwIfNoEntry` was added so recently that it's not in the node types.
|
||||
* This helper encapsulates the mitigating usage of `any`.
|
||||
* See https://github.com/nodejs/node/pull/33716
|
||||
*/
|
||||
function statSync(path) {
|
||||
// throwIfNoEntry will be ignored by older versions of node
|
||||
return _fs.statSync(path, { throwIfNoEntry: false });
|
||||
}
|
||||
/**
|
||||
* Uses the builtin inspector APIs to capture a CPU profile
|
||||
* See https://nodejs.org/api/inspector.html#inspector_example_usage for details
|
||||
@ -5883,20 +5892,21 @@ var ts;
|
||||
if (activeSession && activeSession !== "stopping") {
|
||||
var s_1 = activeSession;
|
||||
activeSession.post("Profiler.stop", function (err, _a) {
|
||||
var _b;
|
||||
var profile = _a.profile;
|
||||
if (!err) {
|
||||
try {
|
||||
if (_fs.statSync(profilePath).isDirectory()) {
|
||||
if ((_b = statSync(profilePath)) === null || _b === void 0 ? void 0 : _b.isDirectory()) {
|
||||
profilePath = _path.join(profilePath, (new Date()).toISOString().replace(/:/g, "-") + "+P" + process.pid + ".cpuprofile");
|
||||
}
|
||||
}
|
||||
catch (_b) {
|
||||
catch (_c) {
|
||||
// do nothing and ignore fallible fs operation
|
||||
}
|
||||
try {
|
||||
_fs.mkdirSync(_path.dirname(profilePath), { recursive: true });
|
||||
}
|
||||
catch (_c) {
|
||||
catch (_d) {
|
||||
// do nothing and ignore fallible fs operation
|
||||
}
|
||||
_fs.writeFileSync(profilePath, JSON.stringify(cleanupPaths(profile)));
|
||||
@ -6135,7 +6145,10 @@ var ts;
|
||||
if (typeof dirent === "string" || dirent.isSymbolicLink()) {
|
||||
var name = ts.combinePaths(path, entry);
|
||||
try {
|
||||
stat = _fs.statSync(name);
|
||||
stat = statSync(name);
|
||||
if (!stat) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
continue;
|
||||
@ -6168,7 +6181,10 @@ var ts;
|
||||
var originalStackTraceLimit = Error.stackTraceLimit;
|
||||
Error.stackTraceLimit = 0;
|
||||
try {
|
||||
var stat = _fs.statSync(path);
|
||||
var stat = statSync(path);
|
||||
if (!stat) {
|
||||
return false;
|
||||
}
|
||||
switch (entryKind) {
|
||||
case 0 /* File */: return stat.isFile();
|
||||
case 1 /* Directory */: return stat.isDirectory();
|
||||
@ -6200,8 +6216,9 @@ var ts;
|
||||
}
|
||||
}
|
||||
function getModifiedTime(path) {
|
||||
var _a;
|
||||
try {
|
||||
return _fs.statSync(path).mtime;
|
||||
return (_a = statSync(path)) === null || _a === void 0 ? void 0 : _a.mtime;
|
||||
}
|
||||
catch (e) {
|
||||
return undefined;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name": "typescript",
|
||||
"author": "Microsoft Corp.",
|
||||
"homepage": "https://www.typescriptlang.org/",
|
||||
"version": "4.0.7",
|
||||
"version": "4.0.8",
|
||||
"license": "Apache-2.0",
|
||||
"description": "TypeScript is a language for application scale JavaScript development",
|
||||
"keywords": [
|
||||
|
||||
@ -3,7 +3,7 @@ namespace ts {
|
||||
// If changing the text in this section, be sure to test `configurePrerelease` too.
|
||||
export const versionMajorMinor = "4.0";
|
||||
/** The version of the TypeScript compiler release */
|
||||
export const version = "4.0.7" as string;
|
||||
export const version = "4.0.8" as string;
|
||||
|
||||
/**
|
||||
* Type of objects whose values are all of the same type.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user