@@ -3531,7 +3531,7 @@ var ts;
3531
3531
Convert_function_to_an_ES2015_class: diag(95001, ts.DiagnosticCategory.Message, "Convert_function_to_an_ES2015_class_95001", "Convert function to an ES2015 class"),
3532
3532
Convert_function_0_to_class: diag(95002, ts.DiagnosticCategory.Message, "Convert_function_0_to_class_95002", "Convert function '{0}' to class"),
3533
3533
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}"),
3535
3535
};
3536
3536
})(ts || (ts = {}));
3537
3537
var ts;
@@ -5290,9 +5290,9 @@ var ts;
5290
5290
|| kind === 265;
5291
5291
}
5292
5292
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);
5296
5296
}
5297
5297
ts.nodeIsSynthesized = nodeIsSynthesized;
5298
5298
function getOriginalSourceFile(sourceFile) {
@@ -17565,6 +17565,7 @@ var ts;
17565
17565
}
17566
17566
};
17567
17567
TypingsInstaller.prototype.install = function (req) {
17568
+ var _this = this;
17568
17569
if (this.log.isEnabled()) {
17569
17570
this.log.writeLine("Got install request " + JSON.stringify(req));
17570
17571
}
@@ -17577,7 +17578,7 @@ var ts;
17577
17578
if (this.safeList === undefined) {
17578
17579
this.safeList = ts.JsTyping.loadSafeList(this.installTypingHost, this.safeListPath);
17579
17580
}
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);
17581
17582
if (this.log.isEnabled()) {
17582
17583
this.log.writeLine("Finished typings discovery: " + JSON.stringify(discoverTypingsResult));
17583
17584
}
@@ -17919,7 +17920,7 @@ var ts;
17919
17920
if (_this.log.isEnabled()) {
17920
17921
_this.log.writeLine("Updating " + TypesRegistryPackageName + " npm package...");
17921
17922
}
17922
- _this.execSync(_this.npmPath + " install " + TypesRegistryPackageName, { cwd: globalTypingsCacheLocation, stdio: "ignore" });
17923
+ _this.execSync(_this.npmPath + " install --ignore-scripts " + TypesRegistryPackageName, { cwd: globalTypingsCacheLocation, stdio: "ignore" });
17923
17924
if (_this.log.isEnabled()) {
17924
17925
_this.log.writeLine("Updated " + TypesRegistryPackageName + " npm package");
17925
17926
}
@@ -17965,7 +17966,7 @@ var ts;
17965
17966
if (this.log.isEnabled()) {
17966
17967
this.log.writeLine("#" + requestId + " with arguments'" + JSON.stringify(args) + "'.");
17967
17968
}
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 + "\"";
17969
17970
var start = Date.now();
17970
17971
var stdout;
17971
17972
var stderr;
0 commit comments