@angular/compiler-cli 14.0.0-rc.3 → 14.1.0-next.0
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/{chunk-LX5Q27EF.js → chunk-7J66ZDC5.js} +3 -3
- package/bundles/{chunk-LX5Q27EF.js.map → chunk-7J66ZDC5.js.map} +0 -0
- package/bundles/{chunk-W6KM7BUM.js → chunk-AKU7LV22.js} +6 -6
- package/bundles/{chunk-W6KM7BUM.js.map → chunk-AKU7LV22.js.map} +0 -0
- package/bundles/{chunk-WGBFSDVQ.js → chunk-BFPVXDJN.js} +7 -7
- package/bundles/{chunk-WGBFSDVQ.js.map → chunk-BFPVXDJN.js.map} +0 -0
- package/bundles/{chunk-I7TI6THJ.js → chunk-CFXFF2GM.js} +40 -40
- package/bundles/{chunk-I7TI6THJ.js.map → chunk-CFXFF2GM.js.map} +0 -0
- package/bundles/{chunk-EN4WVK2E.js → chunk-GIDRICZE.js} +5 -5
- package/bundles/{chunk-EN4WVK2E.js.map → chunk-GIDRICZE.js.map} +0 -0
- package/bundles/{chunk-R3C7RFJ4.js → chunk-HMWNYAAE.js} +2 -2
- package/bundles/{chunk-R3C7RFJ4.js.map → chunk-HMWNYAAE.js.map} +0 -0
- package/bundles/{chunk-7XY4OMWJ.js → chunk-JJOKGPPP.js} +33 -31
- package/bundles/{chunk-7XY4OMWJ.js.map → chunk-JJOKGPPP.js.map} +1 -1
- package/bundles/{chunk-T7MYRXIE.js → chunk-MURZUYM7.js} +7 -7
- package/bundles/{chunk-T7MYRXIE.js.map → chunk-MURZUYM7.js.map} +0 -0
- package/bundles/{chunk-KAZROYQX.js → chunk-PI2777Z6.js} +71 -71
- package/bundles/{chunk-KAZROYQX.js.map → chunk-PI2777Z6.js.map} +1 -1
- package/bundles/{chunk-R4NY3TJC.js → chunk-QK4SXRQA.js} +5 -5
- package/bundles/{chunk-R4NY3TJC.js.map → chunk-QK4SXRQA.js.map} +0 -0
- package/bundles/{chunk-JDKMNZ6O.js → chunk-SFACRVMZ.js} +26 -26
- package/bundles/{chunk-JDKMNZ6O.js.map → chunk-SFACRVMZ.js.map} +0 -0
- package/bundles/{chunk-OLGEBPBY.js → chunk-U2VFXNL7.js} +4 -4
- package/bundles/{chunk-OLGEBPBY.js.map → chunk-U2VFXNL7.js.map} +0 -0
- package/bundles/{chunk-GWA6QBDZ.js → chunk-UERCMXQE.js} +83 -71
- package/bundles/{chunk-GWA6QBDZ.js.map → chunk-UERCMXQE.js.map} +1 -1
- package/bundles/{chunk-AWUSLKAS.js → chunk-VAPEAGED.js} +93 -92
- package/bundles/{chunk-AWUSLKAS.js.map → chunk-VAPEAGED.js.map} +1 -1
- package/bundles/{chunk-2IMT6JFI.js → chunk-ZJCM37WF.js} +6 -6
- package/bundles/{chunk-2IMT6JFI.js.map → chunk-ZJCM37WF.js.map} +0 -0
- package/bundles/index.js +12 -12
- package/bundles/linker/babel/index.js +12 -12
- package/bundles/linker/index.js +4 -4
- package/bundles/ngcc/index.js +12 -12
- package/bundles/ngcc/main-ngcc.js +13 -13
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +13 -13
- package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +4 -4
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +5 -5
- package/bundles/private/tooling.js +2 -2
- package/bundles/src/bin/ng_xi18n.js +10 -10
- package/bundles/src/bin/ngc.js +8 -8
- package/bundles_metadata.json +1 -1
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/annotations/ng_module/src/handler.d.ts +2 -1
- package/src/ngtsc/core/api/src/public_options.d.ts +10 -0
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
resolve,
|
|
14
14
|
stripExtension,
|
|
15
15
|
toRelativeImport
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MURZUYM7.js";
|
|
17
17
|
|
|
18
|
-
// bazel-out/
|
|
18
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
|
|
19
19
|
import ts from "typescript";
|
|
20
20
|
var TS = /\.tsx?$/i;
|
|
21
21
|
var D_TS = /\.d\.ts$/i;
|
|
@@ -110,7 +110,7 @@ function toUnredirectedSourceFile(sf) {
|
|
|
110
110
|
return redirectInfo.unredirected;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
// bazel-out/
|
|
113
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
|
|
114
114
|
var Reference = class {
|
|
115
115
|
constructor(node, bestGuessOwningModule = null) {
|
|
116
116
|
this.node = node;
|
|
@@ -173,14 +173,14 @@ var Reference = class {
|
|
|
173
173
|
}
|
|
174
174
|
};
|
|
175
175
|
|
|
176
|
-
// bazel-out/
|
|
176
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
177
177
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
178
178
|
|
|
179
|
-
// bazel-out/
|
|
179
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
180
180
|
import { ExternalExpr, ExternalReference, WrappedNodeExpr } from "@angular/compiler";
|
|
181
181
|
import ts3 from "typescript";
|
|
182
182
|
|
|
183
|
-
// bazel-out/
|
|
183
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
184
184
|
var ErrorCode;
|
|
185
185
|
(function(ErrorCode2) {
|
|
186
186
|
ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
|
|
@@ -241,7 +241,7 @@ var ErrorCode;
|
|
|
241
241
|
ErrorCode2[ErrorCode2["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
|
|
242
242
|
})(ErrorCode || (ErrorCode = {}));
|
|
243
243
|
|
|
244
|
-
// bazel-out/
|
|
244
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
245
245
|
var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
246
246
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
247
247
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -253,10 +253,10 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
|
253
253
|
ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
|
|
254
254
|
]);
|
|
255
255
|
|
|
256
|
-
// bazel-out/
|
|
256
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
257
257
|
import ts2 from "typescript";
|
|
258
258
|
|
|
259
|
-
// bazel-out/
|
|
259
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
260
260
|
var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
|
|
261
261
|
function replaceTsWithNgInErrors(errors) {
|
|
262
262
|
return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
|
|
@@ -265,7 +265,7 @@ function ngErrorCode(code) {
|
|
|
265
265
|
return parseInt("-99" + code);
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
// bazel-out/
|
|
268
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
269
269
|
var FatalDiagnosticError = class {
|
|
270
270
|
constructor(code, node, message, relatedInformation) {
|
|
271
271
|
this.code = code;
|
|
@@ -313,17 +313,17 @@ function isFatalDiagnosticError(err) {
|
|
|
313
313
|
return err._isFatalDiagnosticError === true;
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
-
// bazel-out/
|
|
316
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
|
|
317
317
|
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
|
|
318
318
|
|
|
319
|
-
// bazel-out/
|
|
319
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
|
|
320
320
|
var ExtendedTemplateDiagnosticName;
|
|
321
321
|
(function(ExtendedTemplateDiagnosticName2) {
|
|
322
322
|
ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
|
|
323
323
|
ExtendedTemplateDiagnosticName2["NULLISH_COALESCING_NOT_NULLABLE"] = "nullishCoalescingNotNullable";
|
|
324
324
|
})(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
|
|
325
325
|
|
|
326
|
-
// bazel-out/
|
|
326
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
|
|
327
327
|
function findExportedNameOfNode(target, file, reflector) {
|
|
328
328
|
const exports = reflector.getExportsOfModule(file);
|
|
329
329
|
if (exports === null) {
|
|
@@ -343,7 +343,7 @@ function findExportedNameOfNode(target, file, reflector) {
|
|
|
343
343
|
return foundExportName;
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
-
// bazel-out/
|
|
346
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
347
347
|
var ImportFlags;
|
|
348
348
|
(function(ImportFlags2) {
|
|
349
349
|
ImportFlags2[ImportFlags2["None"] = 0] = "None";
|
|
@@ -559,7 +559,7 @@ var UnifiedModulesStrategy = class {
|
|
|
559
559
|
}
|
|
560
560
|
};
|
|
561
561
|
|
|
562
|
-
// bazel-out/
|
|
562
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
563
563
|
var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
|
|
564
564
|
var UnifiedModulesAliasingHost = class {
|
|
565
565
|
constructor(unifiedModulesHost) {
|
|
@@ -626,7 +626,7 @@ var AliasStrategy = class {
|
|
|
626
626
|
}
|
|
627
627
|
};
|
|
628
628
|
|
|
629
|
-
// bazel-out/
|
|
629
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
|
|
630
630
|
function relativePathBetween(from, to) {
|
|
631
631
|
const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
|
|
632
632
|
return relativePath !== "" ? toRelativeImport(relativePath) : null;
|
|
@@ -635,7 +635,7 @@ function normalizeSeparators(path) {
|
|
|
635
635
|
return path.replace(/\\/g, "/");
|
|
636
636
|
}
|
|
637
637
|
|
|
638
|
-
// bazel-out/
|
|
638
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
|
|
639
639
|
var NoopImportRewriter = class {
|
|
640
640
|
shouldImportSymbol(symbol, specifier) {
|
|
641
641
|
return true;
|
|
@@ -693,7 +693,7 @@ function validateAndRewriteCoreSymbol(name) {
|
|
|
693
693
|
return CORE_SUPPORTED_SYMBOLS.get(name);
|
|
694
694
|
}
|
|
695
695
|
|
|
696
|
-
// bazel-out/
|
|
696
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
697
697
|
import ts4 from "typescript";
|
|
698
698
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
699
699
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
@@ -738,7 +738,7 @@ var DefaultImportTracker = class {
|
|
|
738
738
|
}
|
|
739
739
|
};
|
|
740
740
|
|
|
741
|
-
// bazel-out/
|
|
741
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
742
742
|
var ModuleResolver = class {
|
|
743
743
|
constructor(program, compilerOptions, host, moduleResolutionCache) {
|
|
744
744
|
this.program = program;
|
|
@@ -755,7 +755,7 @@ var ModuleResolver = class {
|
|
|
755
755
|
}
|
|
756
756
|
};
|
|
757
757
|
|
|
758
|
-
// bazel-out/
|
|
758
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
759
759
|
var Context = class {
|
|
760
760
|
constructor(isStatement) {
|
|
761
761
|
this.isStatement = isStatement;
|
|
@@ -768,7 +768,7 @@ var Context = class {
|
|
|
768
768
|
}
|
|
769
769
|
};
|
|
770
770
|
|
|
771
|
-
// bazel-out/
|
|
771
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
772
772
|
import * as o from "@angular/compiler";
|
|
773
773
|
var UNARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
774
774
|
[o.UnaryOperator.Minus, "-"],
|
|
@@ -992,7 +992,7 @@ function createRange(span) {
|
|
|
992
992
|
};
|
|
993
993
|
}
|
|
994
994
|
|
|
995
|
-
// bazel-out/
|
|
995
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
|
|
996
996
|
import ts5 from "typescript";
|
|
997
997
|
var ImportManager = class {
|
|
998
998
|
constructor(rewriter = new NoopImportRewriter(), prefix = "i") {
|
|
@@ -1028,7 +1028,7 @@ var ImportManager = class {
|
|
|
1028
1028
|
}
|
|
1029
1029
|
};
|
|
1030
1030
|
|
|
1031
|
-
// bazel-out/
|
|
1031
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
1032
1032
|
import * as o2 from "@angular/compiler";
|
|
1033
1033
|
import ts6 from "typescript";
|
|
1034
1034
|
function translateType(type, imports) {
|
|
@@ -1199,7 +1199,7 @@ var TypeTranslatorVisitor = class {
|
|
|
1199
1199
|
}
|
|
1200
1200
|
};
|
|
1201
1201
|
|
|
1202
|
-
// bazel-out/
|
|
1202
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
1203
1203
|
import ts7 from "typescript";
|
|
1204
1204
|
var PureAnnotation;
|
|
1205
1205
|
(function(PureAnnotation2) {
|
|
@@ -1377,7 +1377,7 @@ function attachComments(statement, leadingComments) {
|
|
|
1377
1377
|
}
|
|
1378
1378
|
}
|
|
1379
1379
|
|
|
1380
|
-
// bazel-out/
|
|
1380
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
1381
1381
|
function translateExpression(expression, imports, options = {}) {
|
|
1382
1382
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(false));
|
|
1383
1383
|
}
|
|
@@ -1445,4 +1445,4 @@ export {
|
|
|
1445
1445
|
* Use of this source code is governed by an MIT-style license that can be
|
|
1446
1446
|
* found in the LICENSE file at https://angular.io/license
|
|
1447
1447
|
*/
|
|
1448
|
-
//# sourceMappingURL=chunk-
|
|
1448
|
+
//# sourceMappingURL=chunk-SFACRVMZ.js.map
|
|
File without changes
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
import {
|
|
7
7
|
ConsoleLogger,
|
|
8
8
|
LogLevel
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7J66ZDC5.js";
|
|
10
10
|
import {
|
|
11
11
|
NodeJSFileSystem,
|
|
12
12
|
setFileSystem
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MURZUYM7.js";
|
|
14
14
|
|
|
15
|
-
// bazel-out/
|
|
15
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/command_line_options.mjs
|
|
16
16
|
import yargs from "yargs";
|
|
17
17
|
function parseCommandLineOptions(args) {
|
|
18
18
|
var _a;
|
|
@@ -113,4 +113,4 @@ export {
|
|
|
113
113
|
* Use of this source code is governed by an MIT-style license that can be
|
|
114
114
|
* found in the LICENSE file at https://angular.io/license
|
|
115
115
|
*/
|
|
116
|
-
//# sourceMappingURL=chunk-
|
|
116
|
+
//# sourceMappingURL=chunk-U2VFXNL7.js.map
|
|
File without changes
|