Skip to content

Commit 2a2773f

Browse files
committed
Update LKG
1 parent 187a21c commit 2a2773f

9 files changed

+761
-625
lines changed

lib/tsc.js

Lines changed: 121 additions & 110 deletions
Large diffs are not rendered by default.

lib/tsserver.js

Lines changed: 141 additions & 125 deletions
Large diffs are not rendered by default.

lib/tsserverlibrary.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2996,6 +2996,8 @@ declare namespace ts {
29962996
function updateBundle(node: Bundle, sourceFiles: SourceFile[]): Bundle;
29972997
function createImmediatelyInvokedFunctionExpression(statements: Statement[]): CallExpression;
29982998
function createImmediatelyInvokedFunctionExpression(statements: Statement[], param: ParameterDeclaration, paramValue: Expression): CallExpression;
2999+
function createImmediatelyInvokedArrowFunction(statements: Statement[]): CallExpression;
3000+
function createImmediatelyInvokedArrowFunction(statements: Statement[], param: ParameterDeclaration, paramValue: Expression): CallExpression;
29993001
function createComma(left: Expression, right: Expression): Expression;
30003002
function createLessThan(left: Expression, right: Expression): Expression;
30013003
function createAssignment(left: ObjectLiteralExpression | ArrayLiteralExpression, right: Expression): DestructuringAssignment;

lib/tsserverlibrary.js

Lines changed: 141 additions & 125 deletions
Large diffs are not rendered by default.

lib/typescript.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3388,6 +3388,8 @@ declare namespace ts {
33883388
function updateBundle(node: Bundle, sourceFiles: SourceFile[]): Bundle;
33893389
function createImmediatelyInvokedFunctionExpression(statements: Statement[]): CallExpression;
33903390
function createImmediatelyInvokedFunctionExpression(statements: Statement[], param: ParameterDeclaration, paramValue: Expression): CallExpression;
3391+
function createImmediatelyInvokedArrowFunction(statements: Statement[]): CallExpression;
3392+
function createImmediatelyInvokedArrowFunction(statements: Statement[], param: ParameterDeclaration, paramValue: Expression): CallExpression;
33913393
function createComma(left: Expression, right: Expression): Expression;
33923394
function createLessThan(left: Expression, right: Expression): Expression;
33933395
function createAssignment(left: ObjectLiteralExpression | ArrayLiteralExpression, right: Expression): DestructuringAssignment;

lib/typescript.js

Lines changed: 172 additions & 129 deletions
Large diffs are not rendered by default.

lib/typescriptServices.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3388,6 +3388,8 @@ declare namespace ts {
33883388
function updateBundle(node: Bundle, sourceFiles: SourceFile[]): Bundle;
33893389
function createImmediatelyInvokedFunctionExpression(statements: Statement[]): CallExpression;
33903390
function createImmediatelyInvokedFunctionExpression(statements: Statement[], param: ParameterDeclaration, paramValue: Expression): CallExpression;
3391+
function createImmediatelyInvokedArrowFunction(statements: Statement[]): CallExpression;
3392+
function createImmediatelyInvokedArrowFunction(statements: Statement[], param: ParameterDeclaration, paramValue: Expression): CallExpression;
33913393
function createComma(left: Expression, right: Expression): Expression;
33923394
function createLessThan(left: Expression, right: Expression): Expression;
33933395
function createAssignment(left: ObjectLiteralExpression | ArrayLiteralExpression, right: Expression): DestructuringAssignment;

lib/typescriptServices.js

Lines changed: 172 additions & 129 deletions
Large diffs are not rendered by default.

lib/typingsInstaller.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3531,7 +3531,7 @@ var ts;
35313531
Convert_function_to_an_ES2015_class: diag(95001, ts.DiagnosticCategory.Message, "Convert_function_to_an_ES2015_class_95001", "Convert function to an ES2015 class"),
35323532
Convert_function_0_to_class: diag(95002, ts.DiagnosticCategory.Message, "Convert_function_0_to_class_95002", "Convert function '{0}' to class"),
35333533
Extract_function: diag(95003, ts.DiagnosticCategory.Message, "Extract_function_95003", "Extract function"),
3534-
Extract_function_into_0: diag(95004, ts.DiagnosticCategory.Message, "Extract_function_into_0_95004", "Extract function into '{0}'"),
3534+
Extract_function_into_0: diag(95004, ts.DiagnosticCategory.Message, "Extract_function_into_0_95004", "Extract function into {0}"),
35353535
};
35363536
})(ts || (ts = {}));
35373537
var ts;
@@ -5290,9 +5290,9 @@ var ts;
52905290
|| kind === 265;
52915291
}
52925292
ts.nodeStartsNewLexicalEnvironment = nodeStartsNewLexicalEnvironment;
5293-
function nodeIsSynthesized(node) {
5294-
return ts.positionIsSynthesized(node.pos)
5295-
|| ts.positionIsSynthesized(node.end);
5293+
function nodeIsSynthesized(range) {
5294+
return ts.positionIsSynthesized(range.pos)
5295+
|| ts.positionIsSynthesized(range.end);
52965296
}
52975297
ts.nodeIsSynthesized = nodeIsSynthesized;
52985298
function getOriginalSourceFile(sourceFile) {
@@ -17565,6 +17565,7 @@ var ts;
1756517565
}
1756617566
};
1756717567
TypingsInstaller.prototype.install = function (req) {
17568+
var _this = this;
1756817569
if (this.log.isEnabled()) {
1756917570
this.log.writeLine("Got install request " + JSON.stringify(req));
1757017571
}
@@ -17577,7 +17578,7 @@ var ts;
1757717578
if (this.safeList === undefined) {
1757817579
this.safeList = ts.JsTyping.loadSafeList(this.installTypingHost, this.safeListPath);
1757917580
}
17580-
var discoverTypingsResult = ts.JsTyping.discoverTypings(this.installTypingHost, this.log.isEnabled() ? this.log.writeLine : undefined, req.fileNames, req.projectRootPath, this.safeList, this.packageNameToTypingLocation, req.typeAcquisition, req.unresolvedImports);
17581+
var discoverTypingsResult = ts.JsTyping.discoverTypings(this.installTypingHost, this.log.isEnabled() ? (function (s) { return _this.log.writeLine(s); }) : undefined, req.fileNames, req.projectRootPath, this.safeList, this.packageNameToTypingLocation, req.typeAcquisition, req.unresolvedImports);
1758117582
if (this.log.isEnabled()) {
1758217583
this.log.writeLine("Finished typings discovery: " + JSON.stringify(discoverTypingsResult));
1758317584
}
@@ -17919,7 +17920,7 @@ var ts;
1791917920
if (_this.log.isEnabled()) {
1792017921
_this.log.writeLine("Updating " + TypesRegistryPackageName + " npm package...");
1792117922
}
17922-
_this.execSync(_this.npmPath + " install " + TypesRegistryPackageName, { cwd: globalTypingsCacheLocation, stdio: "ignore" });
17923+
_this.execSync(_this.npmPath + " install --ignore-scripts " + TypesRegistryPackageName, { cwd: globalTypingsCacheLocation, stdio: "ignore" });
1792317924
if (_this.log.isEnabled()) {
1792417925
_this.log.writeLine("Updated " + TypesRegistryPackageName + " npm package");
1792517926
}
@@ -17965,7 +17966,7 @@ var ts;
1796517966
if (this.log.isEnabled()) {
1796617967
this.log.writeLine("#" + requestId + " with arguments'" + JSON.stringify(args) + "'.");
1796717968
}
17968-
var command = this.npmPath + " install " + args.join(" ") + " --save-dev --user-agent=\"typesInstaller/" + ts.version + "\"";
17969+
var command = this.npmPath + " install --ignore-scripts " + args.join(" ") + " --save-dev --user-agent=\"typesInstaller/" + ts.version + "\"";
1796917970
var start = Date.now();
1797017971
var stdout;
1797117972
var stderr;

0 commit comments

Comments
 (0)