@angular/compiler-cli 13.0.0-rc.1 → 13.0.0-rc.2
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/bundles/index.js +14 -10
- package/bundles/index.js.map +2 -2
- package/bundles/linker/babel/index.js +2 -2
- package/bundles/linker/index.js +2 -2
- package/bundles/ngcc/index.js +18 -25
- package/bundles/ngcc/index.js.map +2 -2
- package/bundles/ngcc/main-ngcc.js +18 -25
- package/bundles/ngcc/main-ngcc.js.map +2 -2
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +17 -24
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js.map +2 -2
- package/bundles/private/migrations.js +5 -3
- package/bundles/private/migrations.js.map +2 -2
- package/bundles/src/bin/ng_xi18n.js +13 -9
- package/bundles/src/bin/ng_xi18n.js.map +2 -2
- package/bundles/src/bin/ngc.js +13 -9
- package/bundles/src/bin/ngc.js.map +2 -2
- package/bundles_metadata.json +1 -1
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/diagnostics/index.d.ts +4 -2
- package/src/ngtsc/diagnostics/src/docs.d.ts +14 -0
- package/src/ngtsc/diagnostics/src/error_details_base_url.d.ts +16 -0
- package/src/ngtsc/diagnostics/src/util.d.ts +2 -0
|
@@ -556,9 +556,6 @@ import {
|
|
|
556
556
|
import { isSyntaxError as isSyntaxError2 } from "@angular/compiler";
|
|
557
557
|
import ts86 from "typescript";
|
|
558
558
|
|
|
559
|
-
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
560
|
-
import ts2 from "typescript";
|
|
561
|
-
|
|
562
559
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
563
560
|
var ErrorCode;
|
|
564
561
|
(function(ErrorCode2) {
|
|
@@ -609,6 +606,8 @@ var ErrorCode;
|
|
|
609
606
|
ErrorCode2[ErrorCode2["SUGGEST_STRICT_TEMPLATES"] = 10001] = "SUGGEST_STRICT_TEMPLATES";
|
|
610
607
|
ErrorCode2[ErrorCode2["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
|
|
611
608
|
})(ErrorCode || (ErrorCode = {}));
|
|
609
|
+
|
|
610
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
612
611
|
var COMPILER_ERRORS_WITH_GUIDES = new Set([
|
|
613
612
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
614
613
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -618,6 +617,15 @@ var COMPILER_ERRORS_WITH_GUIDES = new Set([
|
|
|
618
617
|
ErrorCode.MISSING_REFERENCE_TARGET,
|
|
619
618
|
ErrorCode.COMPONENT_INVALID_SHADOW_DOM_SELECTOR
|
|
620
619
|
]);
|
|
620
|
+
|
|
621
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
622
|
+
import ts2 from "typescript";
|
|
623
|
+
|
|
624
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
625
|
+
var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
|
|
626
|
+
function replaceTsWithNgInErrors(errors) {
|
|
627
|
+
return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
|
|
628
|
+
}
|
|
621
629
|
function ngErrorCode(code) {
|
|
622
630
|
return parseInt("-99" + code);
|
|
623
631
|
}
|
|
@@ -662,12 +670,6 @@ function isFatalDiagnosticError(err) {
|
|
|
662
670
|
return err._isFatalDiagnosticError === true;
|
|
663
671
|
}
|
|
664
672
|
|
|
665
|
-
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
666
|
-
var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
|
|
667
|
-
function replaceTsWithNgInErrors(errors) {
|
|
668
|
-
return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
|
|
669
|
-
}
|
|
670
|
-
|
|
671
673
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
672
674
|
var UNKNOWN_ERROR_CODE = 500;
|
|
673
675
|
var EmitFlags;
|
|
@@ -13402,11 +13404,11 @@ var UmdRenderingFormatter = class extends Esm5RenderingFormatter {
|
|
|
13402
13404
|
if (!umdModule) {
|
|
13403
13405
|
return;
|
|
13404
13406
|
}
|
|
13405
|
-
const
|
|
13406
|
-
renderCommonJsDependencies(output,
|
|
13407
|
-
renderAmdDependencies(output,
|
|
13408
|
-
renderGlobalDependencies(output,
|
|
13409
|
-
renderFactoryParameters(output,
|
|
13407
|
+
const { wrapperFn, factoryFn } = umdModule;
|
|
13408
|
+
renderCommonJsDependencies(output, wrapperFn, imports);
|
|
13409
|
+
renderAmdDependencies(output, wrapperFn, imports);
|
|
13410
|
+
renderGlobalDependencies(output, wrapperFn, imports);
|
|
13411
|
+
renderFactoryParameters(output, factoryFn, imports);
|
|
13410
13412
|
}
|
|
13411
13413
|
addExports(output, entryPointBasePath, exports, importManager, file) {
|
|
13412
13414
|
const umdModule = this.umdHost.getUmdModule(file);
|
|
@@ -13492,16 +13494,7 @@ function renderGlobalDependencies(output, wrapperFunction, imports) {
|
|
|
13492
13494
|
const importString = imports.map((i) => `global.${getGlobalIdentifier(i)}`).join(",");
|
|
13493
13495
|
output.appendLeft(injectionPoint, importString + (globalFactoryCall.arguments.length > 0 ? "," : ""));
|
|
13494
13496
|
}
|
|
13495
|
-
function renderFactoryParameters(output,
|
|
13496
|
-
const wrapperCall = wrapperFunction.parent;
|
|
13497
|
-
const secondArgument = wrapperCall.arguments[1];
|
|
13498
|
-
if (!secondArgument) {
|
|
13499
|
-
return;
|
|
13500
|
-
}
|
|
13501
|
-
const factoryFunction = ts107.isParenthesizedExpression(secondArgument) ? secondArgument.expression : secondArgument;
|
|
13502
|
-
if (!ts107.isFunctionExpression(factoryFunction)) {
|
|
13503
|
-
return;
|
|
13504
|
-
}
|
|
13497
|
+
function renderFactoryParameters(output, factoryFunction, imports) {
|
|
13505
13498
|
const parameters = factoryFunction.parameters;
|
|
13506
13499
|
const parameterString = imports.map((i) => i.qualifier.text).join(",");
|
|
13507
13500
|
if (parameters.length > 0) {
|