@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
package/bundles/src/bin/ngc.js
CHANGED
|
@@ -403,9 +403,6 @@ import yargs from "yargs";
|
|
|
403
403
|
import { isSyntaxError as isSyntaxError2 } from "@angular/compiler";
|
|
404
404
|
import ts86 from "typescript";
|
|
405
405
|
|
|
406
|
-
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
407
|
-
import ts2 from "typescript";
|
|
408
|
-
|
|
409
406
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
410
407
|
var ErrorCode;
|
|
411
408
|
(function(ErrorCode2) {
|
|
@@ -456,7 +453,8 @@ var ErrorCode;
|
|
|
456
453
|
ErrorCode2[ErrorCode2["SUGGEST_STRICT_TEMPLATES"] = 10001] = "SUGGEST_STRICT_TEMPLATES";
|
|
457
454
|
ErrorCode2[ErrorCode2["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
|
|
458
455
|
})(ErrorCode || (ErrorCode = {}));
|
|
459
|
-
|
|
456
|
+
|
|
457
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
460
458
|
var COMPILER_ERRORS_WITH_GUIDES = new Set([
|
|
461
459
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
462
460
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -466,6 +464,15 @@ var COMPILER_ERRORS_WITH_GUIDES = new Set([
|
|
|
466
464
|
ErrorCode.MISSING_REFERENCE_TARGET,
|
|
467
465
|
ErrorCode.COMPONENT_INVALID_SHADOW_DOM_SELECTOR
|
|
468
466
|
]);
|
|
467
|
+
|
|
468
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
469
|
+
import ts2 from "typescript";
|
|
470
|
+
|
|
471
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
472
|
+
var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
|
|
473
|
+
function replaceTsWithNgInErrors(errors) {
|
|
474
|
+
return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
|
|
475
|
+
}
|
|
469
476
|
function ngErrorCode(code) {
|
|
470
477
|
return parseInt("-99" + code);
|
|
471
478
|
}
|
|
@@ -507,11 +514,8 @@ function makeRelatedInformation(node, messageText) {
|
|
|
507
514
|
};
|
|
508
515
|
}
|
|
509
516
|
|
|
510
|
-
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/
|
|
511
|
-
var
|
|
512
|
-
function replaceTsWithNgInErrors(errors) {
|
|
513
|
-
return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
|
|
514
|
-
}
|
|
517
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
|
|
518
|
+
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
|
|
515
519
|
|
|
516
520
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
517
521
|
var DEFAULT_ERROR_CODE = 100;
|