mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Merge pull request #13945 from Microsoft/upateLKGrelease-2.1
Update LKG
This commit is contained in:
+5
-2
@@ -132,7 +132,7 @@ var ts;
|
||||
})(ts || (ts = {}));
|
||||
var ts;
|
||||
(function (ts) {
|
||||
ts.version = "2.1.5";
|
||||
ts.version = "2.1.6";
|
||||
})(ts || (ts = {}));
|
||||
(function (ts) {
|
||||
var createObject = Object.create;
|
||||
@@ -2256,7 +2256,7 @@ var ts;
|
||||
},
|
||||
watchDirectory: function (directoryName, callback, recursive) {
|
||||
var options;
|
||||
if (!directoryExists(directoryName)) {
|
||||
if (!directoryExists(directoryName) || (isUNCPath(directoryName) && process.platform === "win32")) {
|
||||
return noOpFileWatcher;
|
||||
}
|
||||
if (isNode4OrLater() && (process.platform === "win32" || process.platform === "darwin")) {
|
||||
@@ -2271,6 +2271,9 @@ var ts;
|
||||
}
|
||||
;
|
||||
});
|
||||
function isUNCPath(s) {
|
||||
return s.length > 2 && s.charCodeAt(0) === 47 && s.charCodeAt(1) === 47;
|
||||
}
|
||||
},
|
||||
resolvePath: function (path) {
|
||||
return _path.resolve(path);
|
||||
|
||||
+5
-2
@@ -137,7 +137,7 @@ var ts;
|
||||
})(ts || (ts = {}));
|
||||
var ts;
|
||||
(function (ts) {
|
||||
ts.version = "2.1.5";
|
||||
ts.version = "2.1.6";
|
||||
})(ts || (ts = {}));
|
||||
(function (ts) {
|
||||
var createObject = Object.create;
|
||||
@@ -2261,7 +2261,7 @@ var ts;
|
||||
},
|
||||
watchDirectory: function (directoryName, callback, recursive) {
|
||||
var options;
|
||||
if (!directoryExists(directoryName)) {
|
||||
if (!directoryExists(directoryName) || (isUNCPath(directoryName) && process.platform === "win32")) {
|
||||
return noOpFileWatcher;
|
||||
}
|
||||
if (isNode4OrLater() && (process.platform === "win32" || process.platform === "darwin")) {
|
||||
@@ -2276,6 +2276,9 @@ var ts;
|
||||
}
|
||||
;
|
||||
});
|
||||
function isUNCPath(s) {
|
||||
return s.length > 2 && s.charCodeAt(0) === 47 && s.charCodeAt(1) === 47;
|
||||
}
|
||||
},
|
||||
resolvePath: function (path) {
|
||||
return _path.resolve(path);
|
||||
|
||||
Vendored
+1
-1
@@ -3584,7 +3584,7 @@ declare namespace ts.performance {
|
||||
function disable(): void;
|
||||
}
|
||||
declare namespace ts {
|
||||
const version = "2.1.5";
|
||||
const version = "2.1.6";
|
||||
}
|
||||
declare namespace ts {
|
||||
const enum Ternary {
|
||||
|
||||
@@ -137,7 +137,7 @@ var ts;
|
||||
})(ts || (ts = {}));
|
||||
var ts;
|
||||
(function (ts) {
|
||||
ts.version = "2.1.5";
|
||||
ts.version = "2.1.6";
|
||||
})(ts || (ts = {}));
|
||||
(function (ts) {
|
||||
var createObject = Object.create;
|
||||
@@ -2261,7 +2261,7 @@ var ts;
|
||||
},
|
||||
watchDirectory: function (directoryName, callback, recursive) {
|
||||
var options;
|
||||
if (!directoryExists(directoryName)) {
|
||||
if (!directoryExists(directoryName) || (isUNCPath(directoryName) && process.platform === "win32")) {
|
||||
return noOpFileWatcher;
|
||||
}
|
||||
if (isNode4OrLater() && (process.platform === "win32" || process.platform === "darwin")) {
|
||||
@@ -2276,6 +2276,9 @@ var ts;
|
||||
}
|
||||
;
|
||||
});
|
||||
function isUNCPath(s) {
|
||||
return s.length > 2 && s.charCodeAt(0) === 47 && s.charCodeAt(1) === 47;
|
||||
}
|
||||
},
|
||||
resolvePath: function (path) {
|
||||
return _path.resolve(path);
|
||||
|
||||
Vendored
+1
-1
@@ -2148,7 +2148,7 @@ declare namespace ts {
|
||||
}
|
||||
declare namespace ts {
|
||||
/** The version of the TypeScript compiler release */
|
||||
const version = "2.1.5";
|
||||
const version = "2.1.6";
|
||||
}
|
||||
declare namespace ts {
|
||||
type FileWatcherCallback = (fileName: string, removed?: boolean) => void;
|
||||
|
||||
+8
-2
@@ -1186,7 +1186,7 @@ var ts;
|
||||
var ts;
|
||||
(function (ts) {
|
||||
/** The version of the TypeScript compiler release */
|
||||
ts.version = "2.1.5";
|
||||
ts.version = "2.1.6";
|
||||
})(ts || (ts = {}));
|
||||
/* @internal */
|
||||
(function (ts) {
|
||||
@@ -3688,7 +3688,10 @@ var ts;
|
||||
// Node 4.0 `fs.watch` function supports the "recursive" option on both OSX and Windows
|
||||
// (ref: https://github.com/nodejs/node/pull/2649 and https://github.com/Microsoft/TypeScript/issues/4643)
|
||||
var options;
|
||||
if (!directoryExists(directoryName)) {
|
||||
if (!directoryExists(directoryName) || (isUNCPath(directoryName) && process.platform === "win32")) {
|
||||
// do nothing if either
|
||||
// - target folder does not exist
|
||||
// - this is UNC path on Windows (https://github.com/Microsoft/TypeScript/issues/13874)
|
||||
return noOpFileWatcher;
|
||||
}
|
||||
if (isNode4OrLater() && (process.platform === "win32" || process.platform === "darwin")) {
|
||||
@@ -3707,6 +3710,9 @@ var ts;
|
||||
}
|
||||
;
|
||||
});
|
||||
function isUNCPath(s) {
|
||||
return s.length > 2 && s.charCodeAt(0) === 47 /* slash */ && s.charCodeAt(1) === 47 /* slash */;
|
||||
}
|
||||
},
|
||||
resolvePath: function (path) {
|
||||
return _path.resolve(path);
|
||||
|
||||
Vendored
+1
-1
@@ -2148,7 +2148,7 @@ declare namespace ts {
|
||||
}
|
||||
declare namespace ts {
|
||||
/** The version of the TypeScript compiler release */
|
||||
const version = "2.1.5";
|
||||
const version = "2.1.6";
|
||||
}
|
||||
declare namespace ts {
|
||||
type FileWatcherCallback = (fileName: string, removed?: boolean) => void;
|
||||
|
||||
@@ -1186,7 +1186,7 @@ var ts;
|
||||
var ts;
|
||||
(function (ts) {
|
||||
/** The version of the TypeScript compiler release */
|
||||
ts.version = "2.1.5";
|
||||
ts.version = "2.1.6";
|
||||
})(ts || (ts = {}));
|
||||
/* @internal */
|
||||
(function (ts) {
|
||||
@@ -3688,7 +3688,10 @@ var ts;
|
||||
// Node 4.0 `fs.watch` function supports the "recursive" option on both OSX and Windows
|
||||
// (ref: https://github.com/nodejs/node/pull/2649 and https://github.com/Microsoft/TypeScript/issues/4643)
|
||||
var options;
|
||||
if (!directoryExists(directoryName)) {
|
||||
if (!directoryExists(directoryName) || (isUNCPath(directoryName) && process.platform === "win32")) {
|
||||
// do nothing if either
|
||||
// - target folder does not exist
|
||||
// - this is UNC path on Windows (https://github.com/Microsoft/TypeScript/issues/13874)
|
||||
return noOpFileWatcher;
|
||||
}
|
||||
if (isNode4OrLater() && (process.platform === "win32" || process.platform === "darwin")) {
|
||||
@@ -3707,6 +3710,9 @@ var ts;
|
||||
}
|
||||
;
|
||||
});
|
||||
function isUNCPath(s) {
|
||||
return s.length > 2 && s.charCodeAt(0) === 47 /* slash */ && s.charCodeAt(1) === 47 /* slash */;
|
||||
}
|
||||
},
|
||||
resolvePath: function (path) {
|
||||
return _path.resolve(path);
|
||||
|
||||
@@ -137,7 +137,7 @@ var ts;
|
||||
})(ts || (ts = {}));
|
||||
var ts;
|
||||
(function (ts) {
|
||||
ts.version = "2.1.5";
|
||||
ts.version = "2.1.6";
|
||||
})(ts || (ts = {}));
|
||||
(function (ts) {
|
||||
var createObject = Object.create;
|
||||
@@ -2261,7 +2261,7 @@ var ts;
|
||||
},
|
||||
watchDirectory: function (directoryName, callback, recursive) {
|
||||
var options;
|
||||
if (!directoryExists(directoryName)) {
|
||||
if (!directoryExists(directoryName) || (isUNCPath(directoryName) && process.platform === "win32")) {
|
||||
return noOpFileWatcher;
|
||||
}
|
||||
if (isNode4OrLater() && (process.platform === "win32" || process.platform === "darwin")) {
|
||||
@@ -2276,6 +2276,9 @@ var ts;
|
||||
}
|
||||
;
|
||||
});
|
||||
function isUNCPath(s) {
|
||||
return s.length > 2 && s.charCodeAt(0) === 47 && s.charCodeAt(1) === 47;
|
||||
}
|
||||
},
|
||||
resolvePath: function (path) {
|
||||
return _path.resolve(path);
|
||||
|
||||
Reference in New Issue
Block a user