typescript 4.4.2 → 4.4.3

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
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
69
69
  var ts;
70
70
  (function (ts) {
71
71
  ts.versionMajorMinor = "4.4";
72
- ts.version = "4.4.2";
72
+ ts.version = "4.4.3";
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  function tryGetNativeMap() {
@@ -97526,6 +97526,10 @@ var ts;
97526
97526
  });
97527
97527
  parsedConfigs = undefined;
97528
97528
  }
97529
+ if (packageJsonMap) {
97530
+ ts.clearMap(packageJsonMap, ts.closeFileWatcher);
97531
+ packageJsonMap = undefined;
97532
+ }
97529
97533
  }
97530
97534
  function getCurrentBuilderProgram() {
97531
97535
  return builderProgram;
package/lib/tsserver.js CHANGED
@@ -100,7 +100,7 @@ var ts;
100
100
  // The following is baselined as a literal template type without intervention
101
101
  /** The version of the TypeScript compiler release */
102
102
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
103
- ts.version = "4.4.2";
103
+ ts.version = "4.4.3";
104
104
  /* @internal */
105
105
  var Comparison;
106
106
  (function (Comparison) {
@@ -118027,6 +118027,10 @@ var ts;
118027
118027
  });
118028
118028
  parsedConfigs = undefined;
118029
118029
  }
118030
+ if (packageJsonMap) {
118031
+ ts.clearMap(packageJsonMap, ts.closeFileWatcher);
118032
+ packageJsonMap = undefined;
118033
+ }
118030
118034
  }
118031
118035
  function getCurrentBuilderProgram() {
118032
118036
  return builderProgram;
@@ -126702,13 +126706,16 @@ var ts;
126702
126706
  case 204 /* PropertyAccessExpression */:
126703
126707
  propertyAccessToConvert = parent;
126704
126708
  node = propertyAccessToConvert.expression;
126705
- if ((ts.isCallExpression(node) || ts.isFunctionLike(node)) &&
126706
- node.end === contextToken.pos &&
126707
- node.getChildCount(sourceFile) &&
126708
- ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */) {
126709
+ var leftmostAccessExpression = ts.getLeftmostAccessExpression(propertyAccessToConvert);
126710
+ if (ts.nodeIsMissing(leftmostAccessExpression) ||
126711
+ ((ts.isCallExpression(node) || ts.isFunctionLike(node)) &&
126712
+ node.end === contextToken.pos &&
126713
+ node.getChildCount(sourceFile) &&
126714
+ ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */)) {
126709
126715
  // This is likely dot from incorrectly parsed expression and user is starting to write spread
126710
126716
  // eg: Math.min(./**/)
126711
126717
  // const x = function (./**/) {}
126718
+ // ({./**/})
126712
126719
  return undefined;
126713
126720
  }
126714
126721
  break;
@@ -294,7 +294,7 @@ var ts;
294
294
  // The following is baselined as a literal template type without intervention
295
295
  /** The version of the TypeScript compiler release */
296
296
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
297
- ts.version = "4.4.2";
297
+ ts.version = "4.4.3";
298
298
  /* @internal */
299
299
  var Comparison;
300
300
  (function (Comparison) {
@@ -118221,6 +118221,10 @@ var ts;
118221
118221
  });
118222
118222
  parsedConfigs = undefined;
118223
118223
  }
118224
+ if (packageJsonMap) {
118225
+ ts.clearMap(packageJsonMap, ts.closeFileWatcher);
118226
+ packageJsonMap = undefined;
118227
+ }
118224
118228
  }
118225
118229
  function getCurrentBuilderProgram() {
118226
118230
  return builderProgram;
@@ -127284,13 +127288,16 @@ var ts;
127284
127288
  case 204 /* PropertyAccessExpression */:
127285
127289
  propertyAccessToConvert = parent;
127286
127290
  node = propertyAccessToConvert.expression;
127287
- if ((ts.isCallExpression(node) || ts.isFunctionLike(node)) &&
127288
- node.end === contextToken.pos &&
127289
- node.getChildCount(sourceFile) &&
127290
- ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */) {
127291
+ var leftmostAccessExpression = ts.getLeftmostAccessExpression(propertyAccessToConvert);
127292
+ if (ts.nodeIsMissing(leftmostAccessExpression) ||
127293
+ ((ts.isCallExpression(node) || ts.isFunctionLike(node)) &&
127294
+ node.end === contextToken.pos &&
127295
+ node.getChildCount(sourceFile) &&
127296
+ ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */)) {
127291
127297
  // This is likely dot from incorrectly parsed expression and user is starting to write spread
127292
127298
  // eg: Math.min(./**/)
127293
127299
  // const x = function (./**/) {}
127300
+ // ({./**/})
127294
127301
  return undefined;
127295
127302
  }
127296
127303
  break;
package/lib/typescript.js CHANGED
@@ -294,7 +294,7 @@ var ts;
294
294
  // The following is baselined as a literal template type without intervention
295
295
  /** The version of the TypeScript compiler release */
296
296
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
297
- ts.version = "4.4.2";
297
+ ts.version = "4.4.3";
298
298
  /* @internal */
299
299
  var Comparison;
300
300
  (function (Comparison) {
@@ -118221,6 +118221,10 @@ var ts;
118221
118221
  });
118222
118222
  parsedConfigs = undefined;
118223
118223
  }
118224
+ if (packageJsonMap) {
118225
+ ts.clearMap(packageJsonMap, ts.closeFileWatcher);
118226
+ packageJsonMap = undefined;
118227
+ }
118224
118228
  }
118225
118229
  function getCurrentBuilderProgram() {
118226
118230
  return builderProgram;
@@ -127284,13 +127288,16 @@ var ts;
127284
127288
  case 204 /* PropertyAccessExpression */:
127285
127289
  propertyAccessToConvert = parent;
127286
127290
  node = propertyAccessToConvert.expression;
127287
- if ((ts.isCallExpression(node) || ts.isFunctionLike(node)) &&
127288
- node.end === contextToken.pos &&
127289
- node.getChildCount(sourceFile) &&
127290
- ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */) {
127291
+ var leftmostAccessExpression = ts.getLeftmostAccessExpression(propertyAccessToConvert);
127292
+ if (ts.nodeIsMissing(leftmostAccessExpression) ||
127293
+ ((ts.isCallExpression(node) || ts.isFunctionLike(node)) &&
127294
+ node.end === contextToken.pos &&
127295
+ node.getChildCount(sourceFile) &&
127296
+ ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */)) {
127291
127297
  // This is likely dot from incorrectly parsed expression and user is starting to write spread
127292
127298
  // eg: Math.min(./**/)
127293
127299
  // const x = function (./**/) {}
127300
+ // ({./**/})
127294
127301
  return undefined;
127295
127302
  }
127296
127303
  break;
@@ -294,7 +294,7 @@ var ts;
294
294
  // The following is baselined as a literal template type without intervention
295
295
  /** The version of the TypeScript compiler release */
296
296
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
297
- ts.version = "4.4.2";
297
+ ts.version = "4.4.3";
298
298
  /* @internal */
299
299
  var Comparison;
300
300
  (function (Comparison) {
@@ -118221,6 +118221,10 @@ var ts;
118221
118221
  });
118222
118222
  parsedConfigs = undefined;
118223
118223
  }
118224
+ if (packageJsonMap) {
118225
+ ts.clearMap(packageJsonMap, ts.closeFileWatcher);
118226
+ packageJsonMap = undefined;
118227
+ }
118224
118228
  }
118225
118229
  function getCurrentBuilderProgram() {
118226
118230
  return builderProgram;
@@ -127284,13 +127288,16 @@ var ts;
127284
127288
  case 204 /* PropertyAccessExpression */:
127285
127289
  propertyAccessToConvert = parent;
127286
127290
  node = propertyAccessToConvert.expression;
127287
- if ((ts.isCallExpression(node) || ts.isFunctionLike(node)) &&
127288
- node.end === contextToken.pos &&
127289
- node.getChildCount(sourceFile) &&
127290
- ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */) {
127291
+ var leftmostAccessExpression = ts.getLeftmostAccessExpression(propertyAccessToConvert);
127292
+ if (ts.nodeIsMissing(leftmostAccessExpression) ||
127293
+ ((ts.isCallExpression(node) || ts.isFunctionLike(node)) &&
127294
+ node.end === contextToken.pos &&
127295
+ node.getChildCount(sourceFile) &&
127296
+ ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */)) {
127291
127297
  // This is likely dot from incorrectly parsed expression and user is starting to write spread
127292
127298
  // eg: Math.min(./**/)
127293
127299
  // const x = function (./**/) {}
127300
+ // ({./**/})
127294
127301
  return undefined;
127295
127302
  }
127296
127303
  break;
@@ -89,7 +89,7 @@ var ts;
89
89
  // The following is baselined as a literal template type without intervention
90
90
  /** The version of the TypeScript compiler release */
91
91
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
92
- ts.version = "4.4.2";
92
+ ts.version = "4.4.3";
93
93
  /* @internal */
94
94
  var Comparison;
95
95
  (function (Comparison) {
@@ -118016,6 +118016,10 @@ var ts;
118016
118016
  });
118017
118017
  parsedConfigs = undefined;
118018
118018
  }
118019
+ if (packageJsonMap) {
118020
+ ts.clearMap(packageJsonMap, ts.closeFileWatcher);
118021
+ packageJsonMap = undefined;
118022
+ }
118019
118023
  }
118020
118024
  function getCurrentBuilderProgram() {
118021
118025
  return builderProgram;
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.4.2",
5
+ "version": "4.4.3",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [