@angular-eslint/bundled-angular-compiler 21.1.1-alpha.4 → 21.1.1-alpha.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/dist/index.js +48 -26
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -281,7 +281,7 @@ __export(index_exports, {
|
|
|
281
281
|
});
|
|
282
282
|
module.exports = __toCommonJS(index_exports);
|
|
283
283
|
|
|
284
|
-
// ../../node_modules/.pnpm/@angular+compiler@21.0.
|
|
284
|
+
// ../../node_modules/.pnpm/@angular+compiler@21.0.6/node_modules/@angular/compiler/fesm2022/compiler.mjs
|
|
285
285
|
var _SELECTOR_REGEXP = new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`, "g");
|
|
286
286
|
var CssSelector = class _CssSelector {
|
|
287
287
|
static {
|
|
@@ -18381,8 +18381,8 @@ function SECURITY_SCHEMA() {
|
|
|
18381
18381
|
_SECURITY_SCHEMA = {};
|
|
18382
18382
|
registerContext(SecurityContext.HTML, ["iframe|srcdoc", "*|innerHTML", "*|outerHTML"]);
|
|
18383
18383
|
registerContext(SecurityContext.STYLE, ["*|style"]);
|
|
18384
|
-
registerContext(SecurityContext.URL, ["*|formAction", "area|href", "
|
|
18385
|
-
registerContext(SecurityContext.RESOURCE_URL, ["
|
|
18384
|
+
registerContext(SecurityContext.URL, ["*|formAction", "area|href", "a|href", "a|xlink:href", "form|action", "annotation|href", "annotation|xlink:href", "annotation-xml|href", "annotation-xml|xlink:href", "maction|href", "maction|xlink:href", "malignmark|href", "malignmark|xlink:href", "math|href", "math|xlink:href", "mroot|href", "mroot|xlink:href", "msqrt|href", "msqrt|xlink:href", "merror|href", "merror|xlink:href", "mfrac|href", "mfrac|xlink:href", "mglyph|href", "mglyph|xlink:href", "msub|href", "msub|xlink:href", "msup|href", "msup|xlink:href", "msubsup|href", "msubsup|xlink:href", "mmultiscripts|href", "mmultiscripts|xlink:href", "mprescripts|href", "mprescripts|xlink:href", "mi|href", "mi|xlink:href", "mn|href", "mn|xlink:href", "mo|href", "mo|xlink:href", "mpadded|href", "mpadded|xlink:href", "mphantom|href", "mphantom|xlink:href", "mrow|href", "mrow|xlink:href", "ms|href", "ms|xlink:href", "mspace|href", "mspace|xlink:href", "mstyle|href", "mstyle|xlink:href", "mtable|href", "mtable|xlink:href", "mtd|href", "mtd|xlink:href", "mtr|href", "mtr|xlink:href", "mtext|href", "mtext|xlink:href", "mover|href", "mover|xlink:href", "munder|href", "munder|xlink:href", "munderover|href", "munderover|xlink:href", "semantics|href", "semantics|xlink:href", "none|href", "none|xlink:href", "img|src", "video|src"]);
|
|
18385
|
+
registerContext(SecurityContext.RESOURCE_URL, ["base|href", "embed|src", "frame|src", "iframe|src", "link|href", "object|codebase", "object|data", "script|src"]);
|
|
18386
18386
|
registerContext(SecurityContext.ATTRIBUTE_NO_BINDING, ["animate|attributeName", "set|attributeName", "animateMotion|attributeName", "animateTransform|attributeName", "unknown|attributeName", "iframe|sandbox", "iframe|allow", "iframe|allowFullscreen", "iframe|referrerPolicy", "iframe|csp", "iframe|fetchPriority", "unknown|sandbox", "unknown|allow", "unknown|allowFullscreen", "unknown|referrerPolicy", "unknown|csp", "unknown|fetchPriority"]);
|
|
18387
18387
|
}
|
|
18388
18388
|
return _SECURITY_SCHEMA;
|
|
@@ -24057,7 +24057,7 @@ function getQueryPredicate(query, constantPool) {
|
|
|
24057
24057
|
}
|
|
24058
24058
|
}
|
|
24059
24059
|
__name(getQueryPredicate, "getQueryPredicate");
|
|
24060
|
-
function
|
|
24060
|
+
function getQueryCreateParameters(query, constantPool, prependParams) {
|
|
24061
24061
|
const parameters = [];
|
|
24062
24062
|
if (prependParams !== void 0) {
|
|
24063
24063
|
parameters.push(...prependParams);
|
|
@@ -24069,10 +24069,9 @@ function createQueryCreateCall(query, constantPool, queryTypeFns, prependParams)
|
|
|
24069
24069
|
if (query.read) {
|
|
24070
24070
|
parameters.push(query.read);
|
|
24071
24071
|
}
|
|
24072
|
-
|
|
24073
|
-
return importExpr(queryCreateFn).callFn(parameters);
|
|
24072
|
+
return parameters;
|
|
24074
24073
|
}
|
|
24075
|
-
__name(
|
|
24074
|
+
__name(getQueryCreateParameters, "getQueryCreateParameters");
|
|
24076
24075
|
var queryAdvancePlaceholder = Symbol("queryAdvancePlaceholder");
|
|
24077
24076
|
function collapseAdvanceStatements(statements) {
|
|
24078
24077
|
const result = [];
|
|
@@ -24100,12 +24099,17 @@ function createViewQueriesFunction(viewQueries, constantPool, name) {
|
|
|
24100
24099
|
const createStatements = [];
|
|
24101
24100
|
const updateStatements = [];
|
|
24102
24101
|
const tempAllocator = temporaryAllocator((st) => updateStatements.push(st), TEMPORARY_NAME);
|
|
24102
|
+
let viewQuerySignalCall = null;
|
|
24103
|
+
let viewQueryCall = null;
|
|
24103
24104
|
viewQueries.forEach((query) => {
|
|
24104
|
-
const
|
|
24105
|
-
|
|
24106
|
-
|
|
24107
|
-
|
|
24108
|
-
|
|
24105
|
+
const params = getQueryCreateParameters(query, constantPool);
|
|
24106
|
+
if (query.isSignal) {
|
|
24107
|
+
viewQuerySignalCall ??= importExpr(Identifiers.viewQuerySignal);
|
|
24108
|
+
viewQuerySignalCall = viewQuerySignalCall.callFn(params);
|
|
24109
|
+
} else {
|
|
24110
|
+
viewQueryCall ??= importExpr(Identifiers.viewQuery);
|
|
24111
|
+
viewQueryCall = viewQueryCall.callFn(params);
|
|
24112
|
+
}
|
|
24109
24113
|
if (query.isSignal) {
|
|
24110
24114
|
updateStatements.push(queryAdvancePlaceholder);
|
|
24111
24115
|
return;
|
|
@@ -24116,6 +24120,12 @@ function createViewQueriesFunction(viewQueries, constantPool, name) {
|
|
|
24116
24120
|
const updateDirective = variable(CONTEXT_NAME).prop(query.propertyName).set(query.first ? temporary.prop("first") : temporary);
|
|
24117
24121
|
updateStatements.push(refresh.and(updateDirective).toStmt());
|
|
24118
24122
|
});
|
|
24123
|
+
if (viewQuerySignalCall !== null) {
|
|
24124
|
+
createStatements.push(new ExpressionStatement(viewQuerySignalCall));
|
|
24125
|
+
}
|
|
24126
|
+
if (viewQueryCall !== null) {
|
|
24127
|
+
createStatements.push(new ExpressionStatement(viewQueryCall));
|
|
24128
|
+
}
|
|
24119
24129
|
const viewQueryFnName = name ? `${name}_Query` : null;
|
|
24120
24130
|
return fn([new FnParam(RENDER_FLAGS, NUMBER_TYPE), new FnParam(CONTEXT_NAME, null)], [renderFlagCheckIfStmt(1, createStatements), renderFlagCheckIfStmt(2, collapseAdvanceStatements(updateStatements))], INFERRED_TYPE, null, viewQueryFnName);
|
|
24121
24131
|
}
|
|
@@ -24124,11 +24134,17 @@ function createContentQueriesFunction(queries, constantPool, name) {
|
|
|
24124
24134
|
const createStatements = [];
|
|
24125
24135
|
const updateStatements = [];
|
|
24126
24136
|
const tempAllocator = temporaryAllocator((st) => updateStatements.push(st), TEMPORARY_NAME);
|
|
24137
|
+
let contentQuerySignalCall = null;
|
|
24138
|
+
let contentQueryCall = null;
|
|
24127
24139
|
for (const query of queries) {
|
|
24128
|
-
|
|
24129
|
-
|
|
24130
|
-
|
|
24131
|
-
|
|
24140
|
+
const params = getQueryCreateParameters(query, constantPool, [variable("dirIndex")]);
|
|
24141
|
+
if (query.isSignal) {
|
|
24142
|
+
contentQuerySignalCall ??= importExpr(Identifiers.contentQuerySignal);
|
|
24143
|
+
contentQuerySignalCall = contentQuerySignalCall.callFn(params);
|
|
24144
|
+
} else {
|
|
24145
|
+
contentQueryCall ??= importExpr(Identifiers.contentQuery);
|
|
24146
|
+
contentQueryCall = contentQueryCall.callFn(params);
|
|
24147
|
+
}
|
|
24132
24148
|
if (query.isSignal) {
|
|
24133
24149
|
updateStatements.push(queryAdvancePlaceholder);
|
|
24134
24150
|
continue;
|
|
@@ -24139,6 +24155,12 @@ function createContentQueriesFunction(queries, constantPool, name) {
|
|
|
24139
24155
|
const updateDirective = variable(CONTEXT_NAME).prop(query.propertyName).set(query.first ? temporary.prop("first") : temporary);
|
|
24140
24156
|
updateStatements.push(refresh.and(updateDirective).toStmt());
|
|
24141
24157
|
}
|
|
24158
|
+
if (contentQuerySignalCall !== null) {
|
|
24159
|
+
createStatements.push(new ExpressionStatement(contentQuerySignalCall));
|
|
24160
|
+
}
|
|
24161
|
+
if (contentQueryCall !== null) {
|
|
24162
|
+
createStatements.push(new ExpressionStatement(contentQueryCall));
|
|
24163
|
+
}
|
|
24142
24164
|
const contentQueriesFnName = name ? `${name}_ContentQueries` : null;
|
|
24143
24165
|
return fn([new FnParam(RENDER_FLAGS, NUMBER_TYPE), new FnParam(CONTEXT_NAME, null), new FnParam("dirIndex", null)], [renderFlagCheckIfStmt(1, createStatements), renderFlagCheckIfStmt(2, collapseAdvanceStatements(updateStatements))], INFERRED_TYPE, null, contentQueriesFnName);
|
|
24144
24166
|
}
|
|
@@ -29887,7 +29909,7 @@ var MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = "18.0.0";
|
|
|
29887
29909
|
function compileDeclareClassMetadata(metadata) {
|
|
29888
29910
|
const definitionMap = new DefinitionMap();
|
|
29889
29911
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
29890
|
-
definitionMap.set("version", literal("21.0.
|
|
29912
|
+
definitionMap.set("version", literal("21.0.6"));
|
|
29891
29913
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
29892
29914
|
definitionMap.set("type", metadata.type);
|
|
29893
29915
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -29906,7 +29928,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
29906
29928
|
callbackReturnDefinitionMap.set("ctorParameters", metadata.ctorParameters ?? literal(null));
|
|
29907
29929
|
callbackReturnDefinitionMap.set("propDecorators", metadata.propDecorators ?? literal(null));
|
|
29908
29930
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
29909
|
-
definitionMap.set("version", literal("21.0.
|
|
29931
|
+
definitionMap.set("version", literal("21.0.6"));
|
|
29910
29932
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
29911
29933
|
definitionMap.set("type", metadata.type);
|
|
29912
29934
|
definitionMap.set("resolveDeferredDeps", compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -29983,7 +30005,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
29983
30005
|
const definitionMap = new DefinitionMap();
|
|
29984
30006
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
29985
30007
|
definitionMap.set("minVersion", literal(minVersion));
|
|
29986
|
-
definitionMap.set("version", literal("21.0.
|
|
30008
|
+
definitionMap.set("version", literal("21.0.6"));
|
|
29987
30009
|
definitionMap.set("type", meta.type.value);
|
|
29988
30010
|
if (meta.isStandalone !== void 0) {
|
|
29989
30011
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -30329,7 +30351,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION$4 = "12.0.0";
|
|
|
30329
30351
|
function compileDeclareFactoryFunction(meta) {
|
|
30330
30352
|
const definitionMap = new DefinitionMap();
|
|
30331
30353
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
30332
|
-
definitionMap.set("version", literal("21.0.
|
|
30354
|
+
definitionMap.set("version", literal("21.0.6"));
|
|
30333
30355
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30334
30356
|
definitionMap.set("type", meta.type.value);
|
|
30335
30357
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -30356,7 +30378,7 @@ __name(compileDeclareInjectableFromMetadata, "compileDeclareInjectableFromMetada
|
|
|
30356
30378
|
function createInjectableDefinitionMap(meta) {
|
|
30357
30379
|
const definitionMap = new DefinitionMap();
|
|
30358
30380
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
30359
|
-
definitionMap.set("version", literal("21.0.
|
|
30381
|
+
definitionMap.set("version", literal("21.0.6"));
|
|
30360
30382
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30361
30383
|
definitionMap.set("type", meta.type.value);
|
|
30362
30384
|
if (meta.providedIn !== void 0) {
|
|
@@ -30398,7 +30420,7 @@ __name(compileDeclareInjectorFromMetadata, "compileDeclareInjectorFromMetadata")
|
|
|
30398
30420
|
function createInjectorDefinitionMap(meta) {
|
|
30399
30421
|
const definitionMap = new DefinitionMap();
|
|
30400
30422
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
30401
|
-
definitionMap.set("version", literal("21.0.
|
|
30423
|
+
definitionMap.set("version", literal("21.0.6"));
|
|
30402
30424
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30403
30425
|
definitionMap.set("type", meta.type.value);
|
|
30404
30426
|
definitionMap.set("providers", meta.providers);
|
|
@@ -30426,7 +30448,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
30426
30448
|
throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
|
|
30427
30449
|
}
|
|
30428
30450
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
30429
|
-
definitionMap.set("version", literal("21.0.
|
|
30451
|
+
definitionMap.set("version", literal("21.0.6"));
|
|
30430
30452
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30431
30453
|
definitionMap.set("type", meta.type.value);
|
|
30432
30454
|
if (meta.bootstrap.length > 0) {
|
|
@@ -30465,7 +30487,7 @@ __name(compileDeclarePipeFromMetadata, "compileDeclarePipeFromMetadata");
|
|
|
30465
30487
|
function createPipeDefinitionMap(meta) {
|
|
30466
30488
|
const definitionMap = new DefinitionMap();
|
|
30467
30489
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
30468
|
-
definitionMap.set("version", literal("21.0.
|
|
30490
|
+
definitionMap.set("version", literal("21.0.6"));
|
|
30469
30491
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30470
30492
|
definitionMap.set("type", meta.type.value);
|
|
30471
30493
|
if (meta.isStandalone !== void 0) {
|
|
@@ -30540,7 +30562,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
|
|
|
30540
30562
|
return new DeclareFunctionStmt(`${meta.className}_UpdateMetadata`, params, body, null, StmtModifier.Final);
|
|
30541
30563
|
}
|
|
30542
30564
|
__name(compileHmrUpdateCallback, "compileHmrUpdateCallback");
|
|
30543
|
-
var VERSION = new Version("21.0.
|
|
30565
|
+
var VERSION = new Version("21.0.6");
|
|
30544
30566
|
publishFacade(_global);
|
|
30545
30567
|
// Annotate the CommonJS export names for ESM import in node:
|
|
30546
30568
|
0 && (module.exports = {
|
|
@@ -30806,7 +30828,7 @@ publishFacade(_global);
|
|
|
30806
30828
|
|
|
30807
30829
|
@angular/compiler/fesm2022/compiler.mjs:
|
|
30808
30830
|
(**
|
|
30809
|
-
* @license Angular v21.0.
|
|
30831
|
+
* @license Angular v21.0.6
|
|
30810
30832
|
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
30811
30833
|
* License: MIT
|
|
30812
30834
|
*)
|