Merge pull request #13945 from Microsoft/upateLKGrelease-2.1

Update LKG
This commit is contained in:
Mohamed Hegazy
2017-02-07 18:27:06 -08:00
committed by GitHub
9 changed files with 39 additions and 15 deletions
+5 -2
View File
@@ -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
View File
@@ -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);
+1 -1
View File
@@ -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 {
+5 -2
View File
@@ -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);
+1 -1
View File
@@ -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
View File
@@ -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);
+1 -1
View File
@@ -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
View File
@@ -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);
+5 -2
View File
@@ -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);