typescript 4.2.3 → 4.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/tsc.js CHANGED
@@ -65,7 +65,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
65
65
  var ts;
66
66
  (function (ts) {
67
67
  ts.versionMajorMinor = "4.2";
68
- ts.version = "4.2.3";
68
+ ts.version = "4.2.4";
69
69
  var NativeCollections;
70
70
  (function (NativeCollections) {
71
71
  function tryGetNativeMap() {
@@ -4399,13 +4399,13 @@ var ts;
4399
4399
  }
4400
4400
  var activeSession;
4401
4401
  var profilePath = "./profile.cpuprofile";
4402
- var realpathSync = (_a = _fs.realpathSync.native) !== null && _a !== void 0 ? _a : _fs.realpathSync;
4403
4402
  var Buffer = require("buffer").Buffer;
4404
4403
  var nodeVersion = getNodeMajorVersion();
4405
4404
  var isNode4OrLater = nodeVersion >= 4;
4406
4405
  var isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
4407
4406
  var platform = _os.platform();
4408
4407
  var useCaseSensitiveFileNames = isFileSystemCaseSensitive();
4408
+ var realpathSync = useCaseSensitiveFileNames ? ((_a = _fs.realpathSync.native) !== null && _a !== void 0 ? _a : _fs.realpathSync) : _fs.realpathSync;
4409
4409
  var fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin");
4410
4410
  var getCurrentDirectory = ts.memoize(function () { return process.cwd(); });
4411
4411
  var _c = createSystemWatchFunctions({
@@ -38474,7 +38474,9 @@ var ts;
38474
38474
  var result = new Type(checker, flags);
38475
38475
  typeCount++;
38476
38476
  result.id = typeCount;
38477
- typeCatalog.push(result);
38477
+ if (ts.tracing) {
38478
+ typeCatalog.push(result);
38479
+ }
38478
38480
  return result;
38479
38481
  }
38480
38482
  function createOriginType(flags) {
package/lib/tsserver.js CHANGED
@@ -96,7 +96,7 @@ var ts;
96
96
  // The following is baselined as a literal template type without intervention
97
97
  /** The version of the TypeScript compiler release */
98
98
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
99
- ts.version = "4.2.3";
99
+ ts.version = "4.2.4";
100
100
  /* @internal */
101
101
  var Comparison;
102
102
  (function (Comparison) {
@@ -7005,13 +7005,13 @@ var ts;
7005
7005
  }
7006
7006
  var activeSession;
7007
7007
  var profilePath = "./profile.cpuprofile";
7008
- var realpathSync = (_a = _fs.realpathSync.native) !== null && _a !== void 0 ? _a : _fs.realpathSync;
7009
7008
  var Buffer = require("buffer").Buffer;
7010
7009
  var nodeVersion = getNodeMajorVersion();
7011
7010
  var isNode4OrLater = nodeVersion >= 4;
7012
7011
  var isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
7013
7012
  var platform = _os.platform();
7014
7013
  var useCaseSensitiveFileNames = isFileSystemCaseSensitive();
7014
+ var realpathSync = useCaseSensitiveFileNames ? ((_a = _fs.realpathSync.native) !== null && _a !== void 0 ? _a : _fs.realpathSync) : _fs.realpathSync;
7015
7015
  var fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin");
7016
7016
  var getCurrentDirectory = ts.memoize(function () { return process.cwd(); });
7017
7017
  var _c = createSystemWatchFunctions({
@@ -46983,7 +46983,9 @@ var ts;
46983
46983
  var result = new Type(checker, flags);
46984
46984
  typeCount++;
46985
46985
  result.id = typeCount;
46986
- typeCatalog.push(result);
46986
+ if (ts.tracing) {
46987
+ typeCatalog.push(result);
46988
+ }
46987
46989
  return result;
46988
46990
  }
46989
46991
  function createOriginType(flags) {
@@ -148419,7 +148421,7 @@ var ts;
148419
148421
  };
148420
148422
  SignatureObject.prototype.getJsDocTags = function () {
148421
148423
  if (this.jsDocTags === undefined) {
148422
- this.jsDocTags = this.declaration ? getJsDocTags([this.declaration], this.checker) : [];
148424
+ this.jsDocTags = this.declaration ? getJsDocTagsOfSignature(this.declaration, this.checker) : [];
148423
148425
  }
148424
148426
  return this.jsDocTags;
148425
148427
  };
@@ -148433,15 +148435,13 @@ var ts;
148433
148435
  function hasJSDocInheritDocTag(node) {
148434
148436
  return ts.getJSDocTags(node).some(function (tag) { return tag.tagName.text === "inheritDoc"; });
148435
148437
  }
148436
- function getJsDocTags(declarations, checker) {
148437
- var tags = ts.JsDoc.getJsDocTagsFromDeclarations(declarations);
148438
- if (tags.length === 0 || declarations.some(hasJSDocInheritDocTag)) {
148439
- ts.forEachUnique(declarations, function (declaration) {
148440
- var inheritedTags = findBaseOfDeclaration(checker, declaration, function (symbol) { return symbol.getJsDocTags(); });
148441
- if (inheritedTags) {
148442
- tags = __spreadArray(__spreadArray([], inheritedTags), tags);
148443
- }
148444
- });
148438
+ function getJsDocTagsOfSignature(declaration, checker) {
148439
+ var tags = ts.JsDoc.getJsDocTagsFromDeclarations([declaration]);
148440
+ if (tags.length === 0 || hasJSDocInheritDocTag(declaration)) {
148441
+ var inheritedTags = findBaseOfDeclaration(checker, declaration, function (symbol) { var _a; return ((_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a.length) === 1 ? symbol.getJsDocTags() : undefined; });
148442
+ if (inheritedTags) {
148443
+ tags = __spreadArray(__spreadArray([], inheritedTags), tags);
148444
+ }
148445
148445
  }
148446
148446
  return tags;
148447
148447
  }
@@ -290,7 +290,7 @@ var ts;
290
290
  // The following is baselined as a literal template type without intervention
291
291
  /** The version of the TypeScript compiler release */
292
292
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
293
- ts.version = "4.2.3";
293
+ ts.version = "4.2.4";
294
294
  /* @internal */
295
295
  var Comparison;
296
296
  (function (Comparison) {
@@ -7199,13 +7199,13 @@ var ts;
7199
7199
  }
7200
7200
  var activeSession;
7201
7201
  var profilePath = "./profile.cpuprofile";
7202
- var realpathSync = (_a = _fs.realpathSync.native) !== null && _a !== void 0 ? _a : _fs.realpathSync;
7203
7202
  var Buffer = require("buffer").Buffer;
7204
7203
  var nodeVersion = getNodeMajorVersion();
7205
7204
  var isNode4OrLater = nodeVersion >= 4;
7206
7205
  var isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
7207
7206
  var platform = _os.platform();
7208
7207
  var useCaseSensitiveFileNames = isFileSystemCaseSensitive();
7208
+ var realpathSync = useCaseSensitiveFileNames ? ((_a = _fs.realpathSync.native) !== null && _a !== void 0 ? _a : _fs.realpathSync) : _fs.realpathSync;
7209
7209
  var fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin");
7210
7210
  var getCurrentDirectory = ts.memoize(function () { return process.cwd(); });
7211
7211
  var _c = createSystemWatchFunctions({
@@ -47177,7 +47177,9 @@ var ts;
47177
47177
  var result = new Type(checker, flags);
47178
47178
  typeCount++;
47179
47179
  result.id = typeCount;
47180
- typeCatalog.push(result);
47180
+ if (ts.tracing) {
47181
+ typeCatalog.push(result);
47182
+ }
47181
47183
  return result;
47182
47184
  }
47183
47185
  function createOriginType(flags) {
@@ -148988,7 +148990,7 @@ var ts;
148988
148990
  };
148989
148991
  SignatureObject.prototype.getJsDocTags = function () {
148990
148992
  if (this.jsDocTags === undefined) {
148991
- this.jsDocTags = this.declaration ? getJsDocTags([this.declaration], this.checker) : [];
148993
+ this.jsDocTags = this.declaration ? getJsDocTagsOfSignature(this.declaration, this.checker) : [];
148992
148994
  }
148993
148995
  return this.jsDocTags;
148994
148996
  };
@@ -149002,15 +149004,13 @@ var ts;
149002
149004
  function hasJSDocInheritDocTag(node) {
149003
149005
  return ts.getJSDocTags(node).some(function (tag) { return tag.tagName.text === "inheritDoc"; });
149004
149006
  }
149005
- function getJsDocTags(declarations, checker) {
149006
- var tags = ts.JsDoc.getJsDocTagsFromDeclarations(declarations);
149007
- if (tags.length === 0 || declarations.some(hasJSDocInheritDocTag)) {
149008
- ts.forEachUnique(declarations, function (declaration) {
149009
- var inheritedTags = findBaseOfDeclaration(checker, declaration, function (symbol) { return symbol.getJsDocTags(); });
149010
- if (inheritedTags) {
149011
- tags = __spreadArray(__spreadArray([], inheritedTags), tags);
149012
- }
149013
- });
149007
+ function getJsDocTagsOfSignature(declaration, checker) {
149008
+ var tags = ts.JsDoc.getJsDocTagsFromDeclarations([declaration]);
149009
+ if (tags.length === 0 || hasJSDocInheritDocTag(declaration)) {
149010
+ var inheritedTags = findBaseOfDeclaration(checker, declaration, function (symbol) { var _a; return ((_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a.length) === 1 ? symbol.getJsDocTags() : undefined; });
149011
+ if (inheritedTags) {
149012
+ tags = __spreadArray(__spreadArray([], inheritedTags), tags);
149013
+ }
149014
149014
  }
149015
149015
  return tags;
149016
149016
  }
package/lib/typescript.js CHANGED
@@ -290,7 +290,7 @@ var ts;
290
290
  // The following is baselined as a literal template type without intervention
291
291
  /** The version of the TypeScript compiler release */
292
292
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
293
- ts.version = "4.2.3";
293
+ ts.version = "4.2.4";
294
294
  /* @internal */
295
295
  var Comparison;
296
296
  (function (Comparison) {
@@ -7199,13 +7199,13 @@ var ts;
7199
7199
  }
7200
7200
  var activeSession;
7201
7201
  var profilePath = "./profile.cpuprofile";
7202
- var realpathSync = (_a = _fs.realpathSync.native) !== null && _a !== void 0 ? _a : _fs.realpathSync;
7203
7202
  var Buffer = require("buffer").Buffer;
7204
7203
  var nodeVersion = getNodeMajorVersion();
7205
7204
  var isNode4OrLater = nodeVersion >= 4;
7206
7205
  var isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
7207
7206
  var platform = _os.platform();
7208
7207
  var useCaseSensitiveFileNames = isFileSystemCaseSensitive();
7208
+ var realpathSync = useCaseSensitiveFileNames ? ((_a = _fs.realpathSync.native) !== null && _a !== void 0 ? _a : _fs.realpathSync) : _fs.realpathSync;
7209
7209
  var fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin");
7210
7210
  var getCurrentDirectory = ts.memoize(function () { return process.cwd(); });
7211
7211
  var _c = createSystemWatchFunctions({
@@ -47177,7 +47177,9 @@ var ts;
47177
47177
  var result = new Type(checker, flags);
47178
47178
  typeCount++;
47179
47179
  result.id = typeCount;
47180
- typeCatalog.push(result);
47180
+ if (ts.tracing) {
47181
+ typeCatalog.push(result);
47182
+ }
47181
47183
  return result;
47182
47184
  }
47183
47185
  function createOriginType(flags) {
@@ -148988,7 +148990,7 @@ var ts;
148988
148990
  };
148989
148991
  SignatureObject.prototype.getJsDocTags = function () {
148990
148992
  if (this.jsDocTags === undefined) {
148991
- this.jsDocTags = this.declaration ? getJsDocTags([this.declaration], this.checker) : [];
148993
+ this.jsDocTags = this.declaration ? getJsDocTagsOfSignature(this.declaration, this.checker) : [];
148992
148994
  }
148993
148995
  return this.jsDocTags;
148994
148996
  };
@@ -149002,15 +149004,13 @@ var ts;
149002
149004
  function hasJSDocInheritDocTag(node) {
149003
149005
  return ts.getJSDocTags(node).some(function (tag) { return tag.tagName.text === "inheritDoc"; });
149004
149006
  }
149005
- function getJsDocTags(declarations, checker) {
149006
- var tags = ts.JsDoc.getJsDocTagsFromDeclarations(declarations);
149007
- if (tags.length === 0 || declarations.some(hasJSDocInheritDocTag)) {
149008
- ts.forEachUnique(declarations, function (declaration) {
149009
- var inheritedTags = findBaseOfDeclaration(checker, declaration, function (symbol) { return symbol.getJsDocTags(); });
149010
- if (inheritedTags) {
149011
- tags = __spreadArray(__spreadArray([], inheritedTags), tags);
149012
- }
149013
- });
149007
+ function getJsDocTagsOfSignature(declaration, checker) {
149008
+ var tags = ts.JsDoc.getJsDocTagsFromDeclarations([declaration]);
149009
+ if (tags.length === 0 || hasJSDocInheritDocTag(declaration)) {
149010
+ var inheritedTags = findBaseOfDeclaration(checker, declaration, function (symbol) { var _a; return ((_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a.length) === 1 ? symbol.getJsDocTags() : undefined; });
149011
+ if (inheritedTags) {
149012
+ tags = __spreadArray(__spreadArray([], inheritedTags), tags);
149013
+ }
149014
149014
  }
149015
149015
  return tags;
149016
149016
  }
@@ -290,7 +290,7 @@ var ts;
290
290
  // The following is baselined as a literal template type without intervention
291
291
  /** The version of the TypeScript compiler release */
292
292
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
293
- ts.version = "4.2.3";
293
+ ts.version = "4.2.4";
294
294
  /* @internal */
295
295
  var Comparison;
296
296
  (function (Comparison) {
@@ -7199,13 +7199,13 @@ var ts;
7199
7199
  }
7200
7200
  var activeSession;
7201
7201
  var profilePath = "./profile.cpuprofile";
7202
- var realpathSync = (_a = _fs.realpathSync.native) !== null && _a !== void 0 ? _a : _fs.realpathSync;
7203
7202
  var Buffer = require("buffer").Buffer;
7204
7203
  var nodeVersion = getNodeMajorVersion();
7205
7204
  var isNode4OrLater = nodeVersion >= 4;
7206
7205
  var isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
7207
7206
  var platform = _os.platform();
7208
7207
  var useCaseSensitiveFileNames = isFileSystemCaseSensitive();
7208
+ var realpathSync = useCaseSensitiveFileNames ? ((_a = _fs.realpathSync.native) !== null && _a !== void 0 ? _a : _fs.realpathSync) : _fs.realpathSync;
7209
7209
  var fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin");
7210
7210
  var getCurrentDirectory = ts.memoize(function () { return process.cwd(); });
7211
7211
  var _c = createSystemWatchFunctions({
@@ -47177,7 +47177,9 @@ var ts;
47177
47177
  var result = new Type(checker, flags);
47178
47178
  typeCount++;
47179
47179
  result.id = typeCount;
47180
- typeCatalog.push(result);
47180
+ if (ts.tracing) {
47181
+ typeCatalog.push(result);
47182
+ }
47181
47183
  return result;
47182
47184
  }
47183
47185
  function createOriginType(flags) {
@@ -148988,7 +148990,7 @@ var ts;
148988
148990
  };
148989
148991
  SignatureObject.prototype.getJsDocTags = function () {
148990
148992
  if (this.jsDocTags === undefined) {
148991
- this.jsDocTags = this.declaration ? getJsDocTags([this.declaration], this.checker) : [];
148993
+ this.jsDocTags = this.declaration ? getJsDocTagsOfSignature(this.declaration, this.checker) : [];
148992
148994
  }
148993
148995
  return this.jsDocTags;
148994
148996
  };
@@ -149002,15 +149004,13 @@ var ts;
149002
149004
  function hasJSDocInheritDocTag(node) {
149003
149005
  return ts.getJSDocTags(node).some(function (tag) { return tag.tagName.text === "inheritDoc"; });
149004
149006
  }
149005
- function getJsDocTags(declarations, checker) {
149006
- var tags = ts.JsDoc.getJsDocTagsFromDeclarations(declarations);
149007
- if (tags.length === 0 || declarations.some(hasJSDocInheritDocTag)) {
149008
- ts.forEachUnique(declarations, function (declaration) {
149009
- var inheritedTags = findBaseOfDeclaration(checker, declaration, function (symbol) { return symbol.getJsDocTags(); });
149010
- if (inheritedTags) {
149011
- tags = __spreadArray(__spreadArray([], inheritedTags), tags);
149012
- }
149013
- });
149007
+ function getJsDocTagsOfSignature(declaration, checker) {
149008
+ var tags = ts.JsDoc.getJsDocTagsFromDeclarations([declaration]);
149009
+ if (tags.length === 0 || hasJSDocInheritDocTag(declaration)) {
149010
+ var inheritedTags = findBaseOfDeclaration(checker, declaration, function (symbol) { var _a; return ((_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a.length) === 1 ? symbol.getJsDocTags() : undefined; });
149011
+ if (inheritedTags) {
149012
+ tags = __spreadArray(__spreadArray([], inheritedTags), tags);
149013
+ }
149014
149014
  }
149015
149015
  return tags;
149016
149016
  }
@@ -85,7 +85,7 @@ var ts;
85
85
  // The following is baselined as a literal template type without intervention
86
86
  /** The version of the TypeScript compiler release */
87
87
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
88
- ts.version = "4.2.3";
88
+ ts.version = "4.2.4";
89
89
  /* @internal */
90
90
  var Comparison;
91
91
  (function (Comparison) {
@@ -6994,13 +6994,13 @@ var ts;
6994
6994
  }
6995
6995
  var activeSession;
6996
6996
  var profilePath = "./profile.cpuprofile";
6997
- var realpathSync = (_a = _fs.realpathSync.native) !== null && _a !== void 0 ? _a : _fs.realpathSync;
6998
6997
  var Buffer = require("buffer").Buffer;
6999
6998
  var nodeVersion = getNodeMajorVersion();
7000
6999
  var isNode4OrLater = nodeVersion >= 4;
7001
7000
  var isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
7002
7001
  var platform = _os.platform();
7003
7002
  var useCaseSensitiveFileNames = isFileSystemCaseSensitive();
7003
+ var realpathSync = useCaseSensitiveFileNames ? ((_a = _fs.realpathSync.native) !== null && _a !== void 0 ? _a : _fs.realpathSync) : _fs.realpathSync;
7004
7004
  var fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin");
7005
7005
  var getCurrentDirectory = ts.memoize(function () { return process.cwd(); });
7006
7006
  var _c = createSystemWatchFunctions({
@@ -46972,7 +46972,9 @@ var ts;
46972
46972
  var result = new Type(checker, flags);
46973
46973
  typeCount++;
46974
46974
  result.id = typeCount;
46975
- typeCatalog.push(result);
46975
+ if (ts.tracing) {
46976
+ typeCatalog.push(result);
46977
+ }
46976
46978
  return result;
46977
46979
  }
46978
46980
  function createOriginType(flags) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "typescript",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "4.2.3",
5
+ "version": "4.2.4",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [