|
@@ -297,7 +297,7 @@ var ts;
|
|
|
// The following is baselined as a literal template type without intervention
|
|
|
/** The version of the TypeScript compiler release */
|
|
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
|
- ts.version = "4.4.2";
|
|
|
+ ts.version = "4.4.3";
|
|
|
/* @internal */
|
|
|
var Comparison;
|
|
|
(function (Comparison) {
|
|
@@ -117645,6 +117645,10 @@ var ts;
|
|
|
});
|
|
|
parsedConfigs = undefined;
|
|
|
}
|
|
|
+ if (packageJsonMap) {
|
|
|
+ ts.clearMap(packageJsonMap, ts.closeFileWatcher);
|
|
|
+ packageJsonMap = undefined;
|
|
|
+ }
|
|
|
}
|
|
|
function getCurrentBuilderProgram() {
|
|
|
return builderProgram;
|
|
@@ -126708,13 +126712,16 @@ var ts;
|
|
|
case 204 /* PropertyAccessExpression */:
|
|
|
propertyAccessToConvert = parent;
|
|
|
node = propertyAccessToConvert.expression;
|
|
|
- if ((ts.isCallExpression(node) || ts.isFunctionLike(node)) &&
|
|
|
- node.end === contextToken.pos &&
|
|
|
- node.getChildCount(sourceFile) &&
|
|
|
- ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */) {
|
|
|
+ var leftmostAccessExpression = ts.getLeftmostAccessExpression(propertyAccessToConvert);
|
|
|
+ if (ts.nodeIsMissing(leftmostAccessExpression) ||
|
|
|
+ ((ts.isCallExpression(node) || ts.isFunctionLike(node)) &&
|
|
|
+ node.end === contextToken.pos &&
|
|
|
+ node.getChildCount(sourceFile) &&
|
|
|
+ ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */)) {
|
|
|
// This is likely dot from incorrectly parsed expression and user is starting to write spread
|
|
|
// eg: Math.min(./**/)
|
|
|
// const x = function (./**/) {}
|
|
|
+ // ({./**/})
|
|
|
return undefined;
|
|
|
}
|
|
|
break;
|