@angular/compiler-cli 14.0.0-next.11 → 14.0.0-next.14
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-LQLIHXU2.js → chunk-3DX2DBWU.js} +70 -70
- package/bundles/{chunk-LQLIHXU2.js.map → chunk-3DX2DBWU.js.map} +0 -0
- package/bundles/{chunk-2IMT6JFI.js → chunk-5K2JLFXT.js} +6 -6
- package/bundles/{chunk-2IMT6JFI.js.map → chunk-5K2JLFXT.js.map} +0 -0
- package/bundles/{chunk-UMDDHI5B.js → chunk-6356XFP6.js} +26 -26
- package/bundles/{chunk-UMDDHI5B.js.map → chunk-6356XFP6.js.map} +0 -0
- package/bundles/{chunk-DNXEJI2I.js → chunk-6VKVKDGL.js} +5 -5
- package/bundles/{chunk-DNXEJI2I.js.map → chunk-6VKVKDGL.js.map} +0 -0
- package/bundles/{chunk-OLGEBPBY.js → chunk-BRHP6XKM.js} +4 -4
- package/bundles/{chunk-OLGEBPBY.js.map → chunk-BRHP6XKM.js.map} +0 -0
- package/bundles/{chunk-ESNS3BVQ.js → chunk-HDIW2RJZ.js} +205 -122
- package/bundles/chunk-HDIW2RJZ.js.map +6 -0
- package/bundles/{chunk-R4NY3TJC.js → chunk-LC26KH5A.js} +5 -5
- package/bundles/{chunk-R4NY3TJC.js.map → chunk-LC26KH5A.js.map} +0 -0
- package/bundles/{chunk-FDAHGRSF.js → chunk-MKGTDQEO.js} +40 -40
- package/bundles/{chunk-FDAHGRSF.js.map → chunk-MKGTDQEO.js.map} +0 -0
- package/bundles/{chunk-FJDIFR5C.js → chunk-O6PNL22F.js} +97 -61
- package/bundles/chunk-O6PNL22F.js.map +6 -0
- package/bundles/{chunk-R3C7RFJ4.js → chunk-SJL5HBUW.js} +2 -2
- package/bundles/{chunk-R3C7RFJ4.js.map → chunk-SJL5HBUW.js.map} +0 -0
- package/bundles/{chunk-T7MYRXIE.js → chunk-TD64C4QJ.js} +7 -7
- package/bundles/{chunk-T7MYRXIE.js.map → chunk-TD64C4QJ.js.map} +0 -0
- package/bundles/{chunk-W6KM7BUM.js → chunk-TV7VZNWL.js} +6 -6
- package/bundles/{chunk-W6KM7BUM.js.map → chunk-TV7VZNWL.js.map} +0 -0
- package/bundles/{chunk-RYXFJXXN.js → chunk-U3GWKPTG.js} +3084 -3052
- package/bundles/chunk-U3GWKPTG.js.map +6 -0
- package/bundles/{chunk-WGBFSDVQ.js → chunk-WH4QSABR.js} +7 -7
- package/bundles/{chunk-WGBFSDVQ.js.map → chunk-WH4QSABR.js.map} +0 -0
- package/bundles/{chunk-LX5Q27EF.js → chunk-ZCDB56AX.js} +3 -3
- package/bundles/{chunk-LX5Q27EF.js.map → chunk-ZCDB56AX.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/component/src/metadata.d.ts +6 -8
- package/src/ngtsc/metadata/src/api.d.ts +14 -5
- package/src/ngtsc/metadata/src/util.d.ts +1 -0
- package/src/ngtsc/scope/index.d.ts +2 -2
- package/src/ngtsc/scope/src/api.d.ts +16 -10
- package/src/ngtsc/scope/src/component_scope.d.ts +2 -2
- package/src/ngtsc/scope/src/standalone.d.ts +26 -0
- package/src/ngtsc/scope/src/util.d.ts +1 -0
- package/bundles/chunk-ESNS3BVQ.js.map +0 -6
- package/bundles/chunk-FJDIFR5C.js.map +0 -6
- package/bundles/chunk-RYXFJXXN.js.map +0 -6
- package/src/ngtsc/annotations/component/src/scope.d.ts +0 -20
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
resolve,
|
|
14
14
|
stripExtension,
|
|
15
15
|
toRelativeImport
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TD64C4QJ.js";
|
|
17
17
|
|
|
18
|
-
// bazel-out/
|
|
18
|
+
// bazel-out/darwin-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-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-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-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-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";
|
|
@@ -240,7 +240,7 @@ var ErrorCode;
|
|
|
240
240
|
ErrorCode2[ErrorCode2["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
|
|
241
241
|
})(ErrorCode || (ErrorCode = {}));
|
|
242
242
|
|
|
243
|
-
// bazel-out/
|
|
243
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
244
244
|
var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
245
245
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
246
246
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -252,10 +252,10 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
|
252
252
|
ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
|
|
253
253
|
]);
|
|
254
254
|
|
|
255
|
-
// bazel-out/
|
|
255
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
256
256
|
import ts2 from "typescript";
|
|
257
257
|
|
|
258
|
-
// bazel-out/
|
|
258
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
259
259
|
var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
|
|
260
260
|
function replaceTsWithNgInErrors(errors) {
|
|
261
261
|
return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
|
|
@@ -264,7 +264,7 @@ function ngErrorCode(code) {
|
|
|
264
264
|
return parseInt("-99" + code);
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
// bazel-out/
|
|
267
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
268
268
|
var FatalDiagnosticError = class {
|
|
269
269
|
constructor(code, node, message, relatedInformation) {
|
|
270
270
|
this.code = code;
|
|
@@ -312,17 +312,17 @@ function isFatalDiagnosticError(err) {
|
|
|
312
312
|
return err._isFatalDiagnosticError === true;
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
-
// bazel-out/
|
|
315
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
|
|
316
316
|
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
|
|
317
317
|
|
|
318
|
-
// bazel-out/
|
|
318
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
|
|
319
319
|
var ExtendedTemplateDiagnosticName;
|
|
320
320
|
(function(ExtendedTemplateDiagnosticName2) {
|
|
321
321
|
ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
|
|
322
322
|
ExtendedTemplateDiagnosticName2["NULLISH_COALESCING_NOT_NULLABLE"] = "nullishCoalescingNotNullable";
|
|
323
323
|
})(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
|
|
324
324
|
|
|
325
|
-
// bazel-out/
|
|
325
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
|
|
326
326
|
function findExportedNameOfNode(target, file, reflector) {
|
|
327
327
|
const exports = reflector.getExportsOfModule(file);
|
|
328
328
|
if (exports === null) {
|
|
@@ -342,7 +342,7 @@ function findExportedNameOfNode(target, file, reflector) {
|
|
|
342
342
|
return foundExportName;
|
|
343
343
|
}
|
|
344
344
|
|
|
345
|
-
// bazel-out/
|
|
345
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
346
346
|
var ImportFlags;
|
|
347
347
|
(function(ImportFlags2) {
|
|
348
348
|
ImportFlags2[ImportFlags2["None"] = 0] = "None";
|
|
@@ -558,7 +558,7 @@ var UnifiedModulesStrategy = class {
|
|
|
558
558
|
}
|
|
559
559
|
};
|
|
560
560
|
|
|
561
|
-
// bazel-out/
|
|
561
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
562
562
|
var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
|
|
563
563
|
var UnifiedModulesAliasingHost = class {
|
|
564
564
|
constructor(unifiedModulesHost) {
|
|
@@ -625,7 +625,7 @@ var AliasStrategy = class {
|
|
|
625
625
|
}
|
|
626
626
|
};
|
|
627
627
|
|
|
628
|
-
// bazel-out/
|
|
628
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
|
|
629
629
|
function relativePathBetween(from, to) {
|
|
630
630
|
const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
|
|
631
631
|
return relativePath !== "" ? toRelativeImport(relativePath) : null;
|
|
@@ -634,7 +634,7 @@ function normalizeSeparators(path) {
|
|
|
634
634
|
return path.replace(/\\/g, "/");
|
|
635
635
|
}
|
|
636
636
|
|
|
637
|
-
// bazel-out/
|
|
637
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
|
|
638
638
|
var NoopImportRewriter = class {
|
|
639
639
|
shouldImportSymbol(symbol, specifier) {
|
|
640
640
|
return true;
|
|
@@ -692,7 +692,7 @@ function validateAndRewriteCoreSymbol(name) {
|
|
|
692
692
|
return CORE_SUPPORTED_SYMBOLS.get(name);
|
|
693
693
|
}
|
|
694
694
|
|
|
695
|
-
// bazel-out/
|
|
695
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
696
696
|
import ts4 from "typescript";
|
|
697
697
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
698
698
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
@@ -737,7 +737,7 @@ var DefaultImportTracker = class {
|
|
|
737
737
|
}
|
|
738
738
|
};
|
|
739
739
|
|
|
740
|
-
// bazel-out/
|
|
740
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
741
741
|
var ModuleResolver = class {
|
|
742
742
|
constructor(program, compilerOptions, host, moduleResolutionCache) {
|
|
743
743
|
this.program = program;
|
|
@@ -754,7 +754,7 @@ var ModuleResolver = class {
|
|
|
754
754
|
}
|
|
755
755
|
};
|
|
756
756
|
|
|
757
|
-
// bazel-out/
|
|
757
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
758
758
|
var Context = class {
|
|
759
759
|
constructor(isStatement) {
|
|
760
760
|
this.isStatement = isStatement;
|
|
@@ -767,7 +767,7 @@ var Context = class {
|
|
|
767
767
|
}
|
|
768
768
|
};
|
|
769
769
|
|
|
770
|
-
// bazel-out/
|
|
770
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
771
771
|
import * as o from "@angular/compiler";
|
|
772
772
|
var UNARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
773
773
|
[o.UnaryOperator.Minus, "-"],
|
|
@@ -991,7 +991,7 @@ function createRange(span) {
|
|
|
991
991
|
};
|
|
992
992
|
}
|
|
993
993
|
|
|
994
|
-
// bazel-out/
|
|
994
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
|
|
995
995
|
import ts5 from "typescript";
|
|
996
996
|
var ImportManager = class {
|
|
997
997
|
constructor(rewriter = new NoopImportRewriter(), prefix = "i") {
|
|
@@ -1027,7 +1027,7 @@ var ImportManager = class {
|
|
|
1027
1027
|
}
|
|
1028
1028
|
};
|
|
1029
1029
|
|
|
1030
|
-
// bazel-out/
|
|
1030
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
1031
1031
|
import * as o2 from "@angular/compiler";
|
|
1032
1032
|
import ts6 from "typescript";
|
|
1033
1033
|
function translateType(type, imports) {
|
|
@@ -1198,7 +1198,7 @@ var TypeTranslatorVisitor = class {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
};
|
|
1200
1200
|
|
|
1201
|
-
// bazel-out/
|
|
1201
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
1202
1202
|
import ts7 from "typescript";
|
|
1203
1203
|
var PureAnnotation;
|
|
1204
1204
|
(function(PureAnnotation2) {
|
|
@@ -1376,7 +1376,7 @@ function attachComments(statement, leadingComments) {
|
|
|
1376
1376
|
}
|
|
1377
1377
|
}
|
|
1378
1378
|
|
|
1379
|
-
// bazel-out/
|
|
1379
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
1380
1380
|
function translateExpression(expression, imports, options = {}) {
|
|
1381
1381
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(false));
|
|
1382
1382
|
}
|
|
@@ -1444,4 +1444,4 @@ export {
|
|
|
1444
1444
|
* Use of this source code is governed by an MIT-style license that can be
|
|
1445
1445
|
* found in the LICENSE file at https://angular.io/license
|
|
1446
1446
|
*/
|
|
1447
|
-
//# sourceMappingURL=chunk-
|
|
1447
|
+
//# sourceMappingURL=chunk-6356XFP6.js.map
|
|
File without changes
|
|
@@ -14,17 +14,17 @@ import {
|
|
|
14
14
|
formatDiagnostics,
|
|
15
15
|
performCompilation,
|
|
16
16
|
readConfiguration
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HDIW2RJZ.js";
|
|
18
18
|
import {
|
|
19
19
|
__spreadProps,
|
|
20
20
|
__spreadValues
|
|
21
21
|
} from "./chunk-GMSUYBZP.js";
|
|
22
22
|
|
|
23
|
-
// bazel-out/
|
|
23
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/main.mjs
|
|
24
24
|
import ts2 from "typescript";
|
|
25
25
|
import yargs from "yargs";
|
|
26
26
|
|
|
27
|
-
// bazel-out/
|
|
27
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/perform_watch.mjs
|
|
28
28
|
import * as chokidar from "chokidar";
|
|
29
29
|
import * as path from "path";
|
|
30
30
|
import ts from "typescript";
|
|
@@ -240,7 +240,7 @@ function performWatchCompilation(host) {
|
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
-
// bazel-out/
|
|
243
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/main.mjs
|
|
244
244
|
function main(args, consoleError = console.error, config, customTransformers, programReuse, modifiedResourceFiles, tsickle) {
|
|
245
245
|
let { project, rootNames, options, errors: configErrors, watch: watch2, emitFlags } = config || readNgcCommandLineAndConfiguration(args);
|
|
246
246
|
if (configErrors.length) {
|
|
@@ -379,4 +379,4 @@ export {
|
|
|
379
379
|
* Use of this source code is governed by an MIT-style license that can be
|
|
380
380
|
* found in the LICENSE file at https://angular.io/license
|
|
381
381
|
*/
|
|
382
|
-
//# sourceMappingURL=chunk-
|
|
382
|
+
//# sourceMappingURL=chunk-6VKVKDGL.js.map
|
|
File without changes
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
import {
|
|
7
7
|
ConsoleLogger,
|
|
8
8
|
LogLevel
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZCDB56AX.js";
|
|
10
10
|
import {
|
|
11
11
|
NodeJSFileSystem,
|
|
12
12
|
setFileSystem
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TD64C4QJ.js";
|
|
14
14
|
|
|
15
|
-
// bazel-out/
|
|
15
|
+
// bazel-out/darwin-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-BRHP6XKM.js.map
|
|
File without changes
|