@angular/compiler-cli 19.2.4 → 19.2.6
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-YNWO773W.js → chunk-2ACG2EMN.js} +11 -10
- package/bundles/chunk-2ACG2EMN.js.map +6 -0
- package/bundles/{chunk-Z4732XCW.js → chunk-DOIZMHHW.js} +10 -6
- package/bundles/{chunk-Z4732XCW.js.map → chunk-DOIZMHHW.js.map} +1 -1
- package/bundles/{chunk-YEQZ4XY7.js → chunk-DQSPY33N.js} +3 -3
- package/bundles/{chunk-2OGNON3Y.js → chunk-NJFWM5E6.js} +2 -2
- package/bundles/{chunk-RNO4EXM5.js → chunk-TB4JL33M.js} +3 -3
- package/bundles/{chunk-ZSPLLTLI.js → chunk-UN7XKKEG.js} +2 -2
- package/bundles/{chunk-KOIBHR3X.js → chunk-XAXYS4JB.js} +2 -1
- package/bundles/chunk-XAXYS4JB.js.map +6 -0
- package/bundles/index.js +6 -6
- package/bundles/linker/babel/index.js +2 -2
- package/bundles/linker/index.js +2 -2
- package/bundles/private/migrations.js +2 -2
- package/bundles/private/tooling.js +4 -4
- package/bundles/src/bin/ng_xi18n.js +5 -5
- package/bundles/src/bin/ngc.js +5 -5
- package/bundles_metadata.json +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/diagnostics/src/error_code.d.ts +1 -0
- package/src/ngtsc/docs/src/enum_extractor.d.ts +1 -1
- package/bundles/chunk-KOIBHR3X.js.map +0 -6
- package/bundles/chunk-YNWO773W.js.map +0 -6
- /package/bundles/{chunk-YEQZ4XY7.js.map → chunk-DQSPY33N.js.map} +0 -0
- /package/bundles/{chunk-2OGNON3Y.js.map → chunk-NJFWM5E6.js.map} +0 -0
- /package/bundles/{chunk-RNO4EXM5.js.map → chunk-TB4JL33M.js.map} +0 -0
- /package/bundles/{chunk-ZSPLLTLI.js.map → chunk-UN7XKKEG.js.map} +0 -0
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
translateStatement,
|
|
49
49
|
translateType,
|
|
50
50
|
typeNodeToValueExpr
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-XAXYS4JB.js";
|
|
52
52
|
import {
|
|
53
53
|
PerfCheckpoint,
|
|
54
54
|
PerfEvent,
|
|
@@ -3621,6 +3621,7 @@ var InjectableClassRegistry = class {
|
|
|
3621
3621
|
import { ArrowFunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
|
|
3622
3622
|
import ts14 from "typescript";
|
|
3623
3623
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
3624
|
+
var _a;
|
|
3624
3625
|
if (!reflection.isClass(clazz)) {
|
|
3625
3626
|
return null;
|
|
3626
3627
|
}
|
|
@@ -3642,13 +3643,13 @@ function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompi
|
|
|
3642
3643
|
}
|
|
3643
3644
|
let metaPropDecorators = null;
|
|
3644
3645
|
const classMembers = reflection.getMembersOfClass(clazz).filter((member) => !member.isStatic && member.decorators !== null && member.decorators.length > 0);
|
|
3645
|
-
const
|
|
3646
|
-
if (
|
|
3647
|
-
throw new
|
|
3646
|
+
const duplicateDecoratedMembers = classMembers.filter((member, i, arr) => arr.findIndex((arrayMember) => arrayMember.name === member.name) < i);
|
|
3647
|
+
if (duplicateDecoratedMembers.length > 0) {
|
|
3648
|
+
throw new FatalDiagnosticError(ErrorCode.DUPLICATE_DECORATED_PROPERTIES, (_a = duplicateDecoratedMembers[0].nameNode) != null ? _a : clazz, `Duplicate decorated properties found on class '${clazz.name.text}': ` + duplicateDecoratedMembers.map((member) => member.name).join(", "));
|
|
3648
3649
|
}
|
|
3649
3650
|
const decoratedMembers = classMembers.map((member) => {
|
|
3650
|
-
var
|
|
3651
|
-
return classMemberToMetadata((
|
|
3651
|
+
var _a2;
|
|
3652
|
+
return classMemberToMetadata((_a2 = member.nameNode) != null ? _a2 : member.name, member.decorators, isCore);
|
|
3652
3653
|
});
|
|
3653
3654
|
if (decoratedMembers.length > 0) {
|
|
3654
3655
|
metaPropDecorators = new WrappedNodeExpr3(ts14.factory.createObjectLiteralExpression(decoratedMembers));
|
|
@@ -14580,13 +14581,13 @@ var ComponentDecoratorHandler = class {
|
|
|
14580
14581
|
}
|
|
14581
14582
|
}
|
|
14582
14583
|
const binder = createTargetBinder(dependencies);
|
|
14583
|
-
const pipes = extractPipes(dependencies);
|
|
14584
14584
|
let allDependencies = dependencies;
|
|
14585
14585
|
let deferBlockBinder = binder;
|
|
14586
14586
|
if (explicitlyDeferredDependencies.length > 0) {
|
|
14587
14587
|
allDependencies = [...explicitlyDeferredDependencies, ...dependencies];
|
|
14588
14588
|
deferBlockBinder = createTargetBinder(allDependencies);
|
|
14589
14589
|
}
|
|
14590
|
+
const pipes = extractPipes(allDependencies);
|
|
14590
14591
|
const bound = binder.bind({ template: metadata.template.nodes });
|
|
14591
14592
|
const deferBlocks = /* @__PURE__ */ new Map();
|
|
14592
14593
|
for (const deferBlock of bound.getDeferBlocks()) {
|
|
@@ -14617,10 +14618,10 @@ var ComponentDecoratorHandler = class {
|
|
|
14617
14618
|
}
|
|
14618
14619
|
const wholeTemplateUsed = new Set(eagerlyUsed);
|
|
14619
14620
|
for (const bound2 of deferBlocks.values()) {
|
|
14620
|
-
for (const dir of bound2.
|
|
14621
|
+
for (const dir of bound2.getUsedDirectives()) {
|
|
14621
14622
|
wholeTemplateUsed.add(dir.ref.node);
|
|
14622
14623
|
}
|
|
14623
|
-
for (const name of bound2.
|
|
14624
|
+
for (const name of bound2.getUsedPipes()) {
|
|
14624
14625
|
if (!pipes.has(name)) {
|
|
14625
14626
|
continue;
|
|
14626
14627
|
}
|
|
@@ -15628,4 +15629,4 @@ export {
|
|
|
15628
15629
|
* Use of this source code is governed by an MIT-style license that can be
|
|
15629
15630
|
* found in the LICENSE file at https://angular.dev/license
|
|
15630
15631
|
*/
|
|
15631
|
-
//# sourceMappingURL=chunk-
|
|
15632
|
+
//# sourceMappingURL=chunk-2ACG2EMN.js.map
|