@@ -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;
0 commit comments