@angular-eslint/bundled-angular-compiler 22.1.1-alpha.10 → 22.1.1-alpha.11
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/dist/index.js +35 -33
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -307,7 +307,7 @@ __export(index_exports, {
|
|
|
307
307
|
});
|
|
308
308
|
module.exports = __toCommonJS(index_exports);
|
|
309
309
|
|
|
310
|
-
// ../../node_modules/.pnpm/@angular+compiler@22.1.
|
|
310
|
+
// ../../node_modules/.pnpm/@angular+compiler@22.1.3/node_modules/@angular/compiler/fesm2022/compiler.mjs
|
|
311
311
|
var _SELECTOR_REGEXP = new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`, "g");
|
|
312
312
|
var CssSelector = class _CssSelector {
|
|
313
313
|
static {
|
|
@@ -6770,10 +6770,10 @@ var SimplePlaceholderMapper = class extends RecurseVisitor {
|
|
|
6770
6770
|
message.nodes.forEach((node) => node.visit(this));
|
|
6771
6771
|
}
|
|
6772
6772
|
toPublicName(internalName) {
|
|
6773
|
-
return this.internalToPublic
|
|
6773
|
+
return Object.hasOwn(this.internalToPublic, internalName) ? this.internalToPublic[internalName] : null;
|
|
6774
6774
|
}
|
|
6775
6775
|
toInternalName(publicName) {
|
|
6776
|
-
return this.publicToInternal
|
|
6776
|
+
return Object.hasOwn(this.publicToInternal, publicName) ? this.publicToInternal[publicName] : null;
|
|
6777
6777
|
}
|
|
6778
6778
|
visitText(text2, context) {
|
|
6779
6779
|
return null;
|
|
@@ -6795,11 +6795,11 @@ var SimplePlaceholderMapper = class extends RecurseVisitor {
|
|
|
6795
6795
|
this.visitPlaceholderName(ph.name);
|
|
6796
6796
|
}
|
|
6797
6797
|
visitPlaceholderName(internalName) {
|
|
6798
|
-
if (!internalName || this.internalToPublic
|
|
6798
|
+
if (!internalName || Object.hasOwn(this.internalToPublic, internalName)) {
|
|
6799
6799
|
return;
|
|
6800
6800
|
}
|
|
6801
6801
|
let publicName = this.mapName(internalName);
|
|
6802
|
-
if (this.publicToInternal
|
|
6802
|
+
if (Object.hasOwn(this.publicToInternal, publicName)) {
|
|
6803
6803
|
const nextId = this.publicToNextId[publicName];
|
|
6804
6804
|
this.publicToNextId[publicName] = nextId + 1;
|
|
6805
6805
|
publicName = `${publicName}_${nextId}`;
|
|
@@ -7850,7 +7850,7 @@ var R3JitReflector = class {
|
|
|
7850
7850
|
if (ref.moduleName !== "@angular/core") {
|
|
7851
7851
|
throw new Error(`Cannot resolve external reference to ${ref.moduleName}, only references to @angular/core are supported.`);
|
|
7852
7852
|
}
|
|
7853
|
-
if (!this.context
|
|
7853
|
+
if (!Object.hasOwn(this.context, ref.name)) {
|
|
7854
7854
|
throw new Error(`No value provided for @angular/core symbol '${ref.name}'.`);
|
|
7855
7855
|
}
|
|
7856
7856
|
return this.context[ref.name];
|
|
@@ -15675,7 +15675,7 @@ var _Tokenizer = class {
|
|
|
15675
15675
|
} else {
|
|
15676
15676
|
const name = this._cursor.getChars(nameStart);
|
|
15677
15677
|
this._cursor.advance();
|
|
15678
|
-
const char =
|
|
15678
|
+
const char = Object.hasOwn(NAMED_ENTITIES, name) && NAMED_ENTITIES[name];
|
|
15679
15679
|
if (!char) {
|
|
15680
15680
|
throw this._createError(_unknownEntityErrorMsg(name), this._cursor.getSpan(start));
|
|
15681
15681
|
}
|
|
@@ -19764,7 +19764,7 @@ var PlaceholderRegistry = class {
|
|
|
19764
19764
|
return name.toUpperCase().replace(/[^A-Z0-9]/g, "_");
|
|
19765
19765
|
}
|
|
19766
19766
|
_generateUniqueName(base) {
|
|
19767
|
-
const seen = this._placeHolderNameCounts
|
|
19767
|
+
const seen = Object.hasOwn(this._placeHolderNameCounts, base);
|
|
19768
19768
|
if (!seen) {
|
|
19769
19769
|
this._placeHolderNameCounts[base] = 1;
|
|
19770
19770
|
return base;
|
|
@@ -27992,7 +27992,7 @@ __name(createHostDirectivesFeatureArg, "createHostDirectivesFeatureArg");
|
|
|
27992
27992
|
function createHostDirectivesMappingArray(mapping) {
|
|
27993
27993
|
const elements = [];
|
|
27994
27994
|
for (const publicName in mapping) {
|
|
27995
|
-
if (
|
|
27995
|
+
if (Object.hasOwn(mapping, publicName)) {
|
|
27996
27996
|
elements.push(literal(publicName), literal(mapping[publicName]));
|
|
27997
27997
|
}
|
|
27998
27998
|
}
|
|
@@ -29398,7 +29398,7 @@ function convertDirectiveFacadeToMetadata(facade) {
|
|
|
29398
29398
|
const inputsFromType = {};
|
|
29399
29399
|
const outputsFromType = {};
|
|
29400
29400
|
for (const field in propMetadata) {
|
|
29401
|
-
if (
|
|
29401
|
+
if (Object.hasOwn(propMetadata, field)) {
|
|
29402
29402
|
propMetadata[field].forEach((ann) => {
|
|
29403
29403
|
if (isInput(ann)) {
|
|
29404
29404
|
inputsFromType[field] = {
|
|
@@ -29628,7 +29628,7 @@ function parseJitTemplate(template2, typeName, sourceMapUrl, preserveWhitespaces
|
|
|
29628
29628
|
}
|
|
29629
29629
|
__name(parseJitTemplate, "parseJitTemplate");
|
|
29630
29630
|
function convertToProviderExpression(obj, property2) {
|
|
29631
|
-
if (
|
|
29631
|
+
if (Object.hasOwn(obj, property2)) {
|
|
29632
29632
|
return createMayBeForwardRefExpression(new WrappedNodeExpr(obj[property2]), 0);
|
|
29633
29633
|
} else {
|
|
29634
29634
|
return void 0;
|
|
@@ -29636,7 +29636,7 @@ function convertToProviderExpression(obj, property2) {
|
|
|
29636
29636
|
}
|
|
29637
29637
|
__name(convertToProviderExpression, "convertToProviderExpression");
|
|
29638
29638
|
function wrapExpression(obj, property2) {
|
|
29639
|
-
if (
|
|
29639
|
+
if (Object.hasOwn(obj, property2)) {
|
|
29640
29640
|
return new WrappedNodeExpr(obj[property2]);
|
|
29641
29641
|
} else {
|
|
29642
29642
|
return void 0;
|
|
@@ -29693,7 +29693,7 @@ __name(createR3ComponentDeferMetadata, "createR3ComponentDeferMetadata");
|
|
|
29693
29693
|
function extractHostBindings(propMetadata, sourceSpan, host) {
|
|
29694
29694
|
const bindings = parseHostBindings(host || {});
|
|
29695
29695
|
for (const field in propMetadata) {
|
|
29696
|
-
if (
|
|
29696
|
+
if (Object.hasOwn(propMetadata, field)) {
|
|
29697
29697
|
propMetadata[field].forEach((ann) => {
|
|
29698
29698
|
if (isHostBinding(ann)) {
|
|
29699
29699
|
bindings.properties[ann.hostPropertyName || field] = getSafePropertyAccessString("this", field);
|
|
@@ -30146,7 +30146,7 @@ var _Visitor3 = class {
|
|
|
30146
30146
|
if (attr.name === _I18N_ATTR || attr.name.startsWith(_I18N_ATTR_PREFIX)) {
|
|
30147
30147
|
return;
|
|
30148
30148
|
}
|
|
30149
|
-
if (attr.value && attr.value != "" &&
|
|
30149
|
+
if (attr.value && attr.value != "" && Object.hasOwn(i18nParsedMessageMeta, attr.name)) {
|
|
30150
30150
|
const {
|
|
30151
30151
|
meaning,
|
|
30152
30152
|
description,
|
|
@@ -30489,7 +30489,7 @@ var XliffParser = class {
|
|
|
30489
30489
|
this._addError(element2, `<${_UNIT_TAG$1}> misses the "id" attribute`);
|
|
30490
30490
|
} else {
|
|
30491
30491
|
const id = idAttr.value;
|
|
30492
|
-
if (this._msgIdToHtml
|
|
30492
|
+
if (Object.hasOwn(this._msgIdToHtml, id)) {
|
|
30493
30493
|
this._addError(element2, `Duplicated translations for msg ${id}`);
|
|
30494
30494
|
} else {
|
|
30495
30495
|
visitAll(this, element2.children, null);
|
|
@@ -30831,7 +30831,7 @@ var Xliff2Parser = class {
|
|
|
30831
30831
|
this._addError(element2, `<${_UNIT_TAG}> misses the "id" attribute`);
|
|
30832
30832
|
} else {
|
|
30833
30833
|
const id = idAttr.value;
|
|
30834
|
-
if (this._msgIdToHtml
|
|
30834
|
+
if (Object.hasOwn(this._msgIdToHtml, id)) {
|
|
30835
30835
|
this._addError(element2, `Duplicated translations for msg ${id}`);
|
|
30836
30836
|
} else {
|
|
30837
30837
|
visitAll(this, element2.children, null);
|
|
@@ -31100,7 +31100,7 @@ var XtbParser = class {
|
|
|
31100
31100
|
this._addError(element2, `<${_TRANSLATION_TAG}> misses the "id" attribute`);
|
|
31101
31101
|
} else {
|
|
31102
31102
|
const id = idAttr.value;
|
|
31103
|
-
if (this._msgIdToHtml
|
|
31103
|
+
if (Object.hasOwn(this._msgIdToHtml, id)) {
|
|
31104
31104
|
this._addError(element2, `Duplicated translations for msg ${id}`);
|
|
31105
31105
|
} else {
|
|
31106
31106
|
const innerTextStart = element2.startSourceSpan.end.offset;
|
|
@@ -31282,15 +31282,15 @@ var I18nToHtmlVisitor = class {
|
|
|
31282
31282
|
}
|
|
31283
31283
|
visitIcu(icu, context) {
|
|
31284
31284
|
const cases = Object.keys(icu.cases).map((k) => `${k} {${icu.cases[k].visit(this)}}`);
|
|
31285
|
-
const exp = this._srcMsg.placeholders
|
|
31285
|
+
const exp = Object.hasOwn(this._srcMsg.placeholders, icu.expression) ? this._srcMsg.placeholders[icu.expression].text : icu.expression;
|
|
31286
31286
|
return `{${exp}, ${icu.type}, ${cases.join(" ")}}`;
|
|
31287
31287
|
}
|
|
31288
31288
|
visitPlaceholder(ph, context) {
|
|
31289
31289
|
const phName = this._mapper(ph.name);
|
|
31290
|
-
if (this._srcMsg.placeholders
|
|
31290
|
+
if (Object.hasOwn(this._srcMsg.placeholders, phName)) {
|
|
31291
31291
|
return this._srcMsg.placeholders[phName].text;
|
|
31292
31292
|
}
|
|
31293
|
-
if (this._srcMsg.placeholderToMessage
|
|
31293
|
+
if (Object.hasOwn(this._srcMsg.placeholderToMessage, phName)) {
|
|
31294
31294
|
return this._convertToText(this._srcMsg.placeholderToMessage[phName]);
|
|
31295
31295
|
}
|
|
31296
31296
|
this._addError(ph, `Unknown placeholder "${ph.name}"`);
|
|
@@ -31322,7 +31322,7 @@ var I18nToHtmlVisitor = class {
|
|
|
31322
31322
|
mapper: this._mapper
|
|
31323
31323
|
});
|
|
31324
31324
|
this._srcMsg = srcMsg;
|
|
31325
|
-
if (this._i18nNodesByMsgId
|
|
31325
|
+
if (Object.hasOwn(this._i18nNodesByMsgId, id)) {
|
|
31326
31326
|
nodes = this._i18nNodesByMsgId[id];
|
|
31327
31327
|
this._mapper = (name) => mapper ? mapper.toInternalName(name) : name;
|
|
31328
31328
|
} else {
|
|
@@ -31429,7 +31429,7 @@ var MessageBundle = class {
|
|
|
31429
31429
|
const mapperVisitor = new MapPlaceholderNames();
|
|
31430
31430
|
this._messages.forEach((message) => {
|
|
31431
31431
|
const id = serializer2.digest(message);
|
|
31432
|
-
if (!
|
|
31432
|
+
if (!Object.hasOwn(messages, id)) {
|
|
31433
31433
|
messages[id] = message;
|
|
31434
31434
|
} else {
|
|
31435
31435
|
messages[id].sources.push(...message.sources);
|
|
@@ -31519,7 +31519,7 @@ var MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = "18.0.0";
|
|
|
31519
31519
|
function compileDeclareClassMetadata(metadata) {
|
|
31520
31520
|
const definitionMap = new DefinitionMap();
|
|
31521
31521
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
|
|
31522
|
-
definitionMap.set("version", literal("22.1.
|
|
31522
|
+
definitionMap.set("version", literal("22.1.3"));
|
|
31523
31523
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31524
31524
|
definitionMap.set("type", metadata.type);
|
|
31525
31525
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -31538,7 +31538,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
31538
31538
|
callbackReturnDefinitionMap.set("ctorParameters", metadata.ctorParameters ?? literal(null));
|
|
31539
31539
|
callbackReturnDefinitionMap.set("propDecorators", metadata.propDecorators ?? literal(null));
|
|
31540
31540
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
31541
|
-
definitionMap.set("version", literal("22.1.
|
|
31541
|
+
definitionMap.set("version", literal("22.1.3"));
|
|
31542
31542
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31543
31543
|
definitionMap.set("type", metadata.type);
|
|
31544
31544
|
definitionMap.set("resolveDeferredDeps", compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -31615,7 +31615,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
31615
31615
|
const definitionMap = new DefinitionMap();
|
|
31616
31616
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
31617
31617
|
definitionMap.set("minVersion", literal(minVersion));
|
|
31618
|
-
definitionMap.set("version", literal("22.1.
|
|
31618
|
+
definitionMap.set("version", literal("22.1.3"));
|
|
31619
31619
|
definitionMap.set("type", meta.type.value);
|
|
31620
31620
|
if (meta.isStandalone !== void 0) {
|
|
31621
31621
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -31971,7 +31971,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION$5 = "12.0.0";
|
|
|
31971
31971
|
function compileDeclareFactoryFunction(meta) {
|
|
31972
31972
|
const definitionMap = new DefinitionMap();
|
|
31973
31973
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
31974
|
-
definitionMap.set("version", literal("22.1.
|
|
31974
|
+
definitionMap.set("version", literal("22.1.3"));
|
|
31975
31975
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31976
31976
|
definitionMap.set("type", meta.type.value);
|
|
31977
31977
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -31998,7 +31998,7 @@ __name(compileDeclareInjectableFromMetadata, "compileDeclareInjectableFromMetada
|
|
|
31998
31998
|
function createInjectableDefinitionMap(meta) {
|
|
31999
31999
|
const definitionMap = new DefinitionMap();
|
|
32000
32000
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
32001
|
-
definitionMap.set("version", literal("22.1.
|
|
32001
|
+
definitionMap.set("version", literal("22.1.3"));
|
|
32002
32002
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
32003
32003
|
definitionMap.set("type", meta.type.value);
|
|
32004
32004
|
if (meta.providedIn !== void 0) {
|
|
@@ -32040,7 +32040,7 @@ __name(compileDeclareServiceFromMetadata, "compileDeclareServiceFromMetadata");
|
|
|
32040
32040
|
function createServiceDefinitionMap(meta) {
|
|
32041
32041
|
const definitionMap = new DefinitionMap();
|
|
32042
32042
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
32043
|
-
definitionMap.set("version", literal("22.1.
|
|
32043
|
+
definitionMap.set("version", literal("22.1.3"));
|
|
32044
32044
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
32045
32045
|
definitionMap.set("type", meta.type.value);
|
|
32046
32046
|
if (meta.autoProvided === false) {
|
|
@@ -32067,7 +32067,7 @@ __name(compileDeclareInjectorFromMetadata, "compileDeclareInjectorFromMetadata")
|
|
|
32067
32067
|
function createInjectorDefinitionMap(meta) {
|
|
32068
32068
|
const definitionMap = new DefinitionMap();
|
|
32069
32069
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
32070
|
-
definitionMap.set("version", literal("22.1.
|
|
32070
|
+
definitionMap.set("version", literal("22.1.3"));
|
|
32071
32071
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
32072
32072
|
definitionMap.set("type", meta.type.value);
|
|
32073
32073
|
definitionMap.set("providers", meta.providers);
|
|
@@ -32098,7 +32098,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
32098
32098
|
throw new Error("Invalid path! Isolated compilation mode should not get into the partial compilation path");
|
|
32099
32099
|
}
|
|
32100
32100
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
32101
|
-
definitionMap.set("version", literal("22.1.
|
|
32101
|
+
definitionMap.set("version", literal("22.1.3"));
|
|
32102
32102
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
32103
32103
|
definitionMap.set("type", meta.type.value);
|
|
32104
32104
|
if (meta.bootstrap.length > 0) {
|
|
@@ -32137,7 +32137,7 @@ __name(compileDeclarePipeFromMetadata, "compileDeclarePipeFromMetadata");
|
|
|
32137
32137
|
function createPipeDefinitionMap(meta) {
|
|
32138
32138
|
const definitionMap = new DefinitionMap();
|
|
32139
32139
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
32140
|
-
definitionMap.set("version", literal("22.1.
|
|
32140
|
+
definitionMap.set("version", literal("22.1.3"));
|
|
32141
32141
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
32142
32142
|
definitionMap.set("type", meta.type.value);
|
|
32143
32143
|
if (meta.isStandalone !== void 0) {
|
|
@@ -32212,7 +32212,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
|
|
|
32212
32212
|
return new DeclareFunctionStmt(`${meta.className}_UpdateMetadata`, params, body, null, StmtModifier.Final);
|
|
32213
32213
|
}
|
|
32214
32214
|
__name(compileHmrUpdateCallback, "compileHmrUpdateCallback");
|
|
32215
|
-
var VERSION = new Version("22.1.
|
|
32215
|
+
var VERSION = new Version("22.1.3");
|
|
32216
32216
|
var HOST_BINDING_GUARD_COMMENT_TEXT = "hostBindingsBlockGuard";
|
|
32217
32217
|
function createHostElement(type, selector, nameSpan, hostObjectLiteralBindings, hostBindingDecorators, hostListenerDecorators) {
|
|
32218
32218
|
const bindings = [];
|
|
@@ -33826,6 +33826,8 @@ function checkUnsupportedFieldBindings(node, unsupportedBindingFields, tcb) {
|
|
|
33826
33826
|
tcb.oobRecorder.formFieldUnsupportedBinding(tcb.id, input);
|
|
33827
33827
|
} else if (input.type === BindingType.Attribute && unsupportedBindingFields.has(input.name.toLowerCase())) {
|
|
33828
33828
|
tcb.oobRecorder.formFieldUnsupportedBinding(tcb.id, input);
|
|
33829
|
+
} else if (input.type === BindingType.TwoWay && unsupportedBindingFields.has(input.name)) {
|
|
33830
|
+
tcb.oobRecorder.formFieldUnsupportedBinding(tcb.id, input);
|
|
33829
33831
|
}
|
|
33830
33832
|
}
|
|
33831
33833
|
if (!(node instanceof HostElement)) {
|
|
@@ -35556,7 +35558,7 @@ publishFacade(_global);
|
|
|
35556
35558
|
|
|
35557
35559
|
@angular/compiler/fesm2022/compiler.mjs:
|
|
35558
35560
|
(**
|
|
35559
|
-
* @license Angular v22.1.
|
|
35561
|
+
* @license Angular v22.1.3
|
|
35560
35562
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
35561
35563
|
* License: MIT
|
|
35562
35564
|
*)
|