@angular-eslint/bundled-angular-compiler 21.1.1-alpha.0 → 21.1.1-alpha.1
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 +20 -43
- 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.2/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 {
|
|
@@ -644,6 +644,7 @@ var SecurityContext;
|
|
|
644
644
|
SecurityContext2[SecurityContext2["SCRIPT"] = 3] = "SCRIPT";
|
|
645
645
|
SecurityContext2[SecurityContext2["URL"] = 4] = "URL";
|
|
646
646
|
SecurityContext2[SecurityContext2["RESOURCE_URL"] = 5] = "RESOURCE_URL";
|
|
647
|
+
SecurityContext2[SecurityContext2["ATTRIBUTE_NO_BINDING"] = 6] = "ATTRIBUTE_NO_BINDING";
|
|
647
648
|
})(SecurityContext || (SecurityContext = {}));
|
|
648
649
|
var MissingTranslationStrategy;
|
|
649
650
|
(function(MissingTranslationStrategy2) {
|
|
@@ -3523,6 +3524,10 @@ var Identifiers = class {
|
|
|
3523
3524
|
name: "\u0275\u0275sanitizeStyle",
|
|
3524
3525
|
moduleName: CORE
|
|
3525
3526
|
};
|
|
3527
|
+
static validateAttribute = {
|
|
3528
|
+
name: "\u0275\u0275validateAttribute",
|
|
3529
|
+
moduleName: CORE
|
|
3530
|
+
};
|
|
3526
3531
|
static sanitizeResourceUrl = {
|
|
3527
3532
|
name: "\u0275\u0275sanitizeResourceUrl",
|
|
3528
3533
|
moduleName: CORE
|
|
@@ -3547,10 +3552,6 @@ var Identifiers = class {
|
|
|
3547
3552
|
name: "\u0275\u0275trustConstantResourceUrl",
|
|
3548
3553
|
moduleName: CORE
|
|
3549
3554
|
};
|
|
3550
|
-
static validateIframeAttribute = {
|
|
3551
|
-
name: "\u0275\u0275validateIframeAttribute",
|
|
3552
|
-
moduleName: CORE
|
|
3553
|
-
};
|
|
3554
3555
|
static inputDecorator = {
|
|
3555
3556
|
name: "Input",
|
|
3556
3557
|
moduleName: CORE
|
|
@@ -18380,8 +18381,9 @@ function SECURITY_SCHEMA() {
|
|
|
18380
18381
|
_SECURITY_SCHEMA = {};
|
|
18381
18382
|
registerContext(SecurityContext.HTML, ["iframe|srcdoc", "*|innerHTML", "*|outerHTML"]);
|
|
18382
18383
|
registerContext(SecurityContext.STYLE, ["*|style"]);
|
|
18383
|
-
registerContext(SecurityContext.URL, ["*|formAction", "area|href", "area|ping", "audio|src", "a|href", "a|ping", "blockquote|cite", "body|background", "del|cite", "form|action", "img|src", "input|src", "ins|cite", "q|cite", "source|src", "track|src", "video|poster", "video|src"]);
|
|
18384
|
+
registerContext(SecurityContext.URL, ["*|formAction", "area|href", "area|ping", "audio|src", "a|href", "a|xlink:href", "a|ping", "blockquote|cite", "body|background", "del|cite", "form|action", "img|src", "input|src", "ins|cite", "q|cite", "source|src", "track|src", "video|poster", "video|src", "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"]);
|
|
18384
18385
|
registerContext(SecurityContext.RESOURCE_URL, ["applet|code", "applet|codebase", "base|href", "embed|src", "frame|src", "head|profile", "html|manifest", "iframe|src", "link|href", "media|src", "object|codebase", "object|data", "script|src"]);
|
|
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"]);
|
|
18385
18387
|
}
|
|
18386
18388
|
return _SECURITY_SCHEMA;
|
|
18387
18389
|
}
|
|
@@ -18390,11 +18392,6 @@ function registerContext(ctx, specs) {
|
|
|
18390
18392
|
for (const spec of specs) _SECURITY_SCHEMA[spec.toLowerCase()] = ctx;
|
|
18391
18393
|
}
|
|
18392
18394
|
__name(registerContext, "registerContext");
|
|
18393
|
-
var IFRAME_SECURITY_SENSITIVE_ATTRS = /* @__PURE__ */ new Set(["sandbox", "allow", "allowfullscreen", "referrerpolicy", "csp", "fetchpriority"]);
|
|
18394
|
-
function isIframeSecuritySensitiveAttr(attrName) {
|
|
18395
|
-
return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
|
|
18396
|
-
}
|
|
18397
|
-
__name(isIframeSecuritySensitiveAttr, "isIframeSecuritySensitiveAttr");
|
|
18398
18395
|
var ElementSchemaRegistry = class {
|
|
18399
18396
|
static {
|
|
18400
18397
|
__name(this, "ElementSchemaRegistry");
|
|
@@ -22126,11 +22123,10 @@ function processLexicalScope(unit, ops, savedView) {
|
|
|
22126
22123
|
}
|
|
22127
22124
|
}
|
|
22128
22125
|
__name(processLexicalScope, "processLexicalScope");
|
|
22129
|
-
var sanitizerFns = /* @__PURE__ */ new Map([[SecurityContext.HTML, Identifiers.sanitizeHtml], [SecurityContext.RESOURCE_URL, Identifiers.sanitizeResourceUrl], [SecurityContext.SCRIPT, Identifiers.sanitizeScript], [SecurityContext.STYLE, Identifiers.sanitizeStyle], [SecurityContext.URL, Identifiers.sanitizeUrl]]);
|
|
22126
|
+
var sanitizerFns = /* @__PURE__ */ new Map([[SecurityContext.HTML, Identifiers.sanitizeHtml], [SecurityContext.RESOURCE_URL, Identifiers.sanitizeResourceUrl], [SecurityContext.SCRIPT, Identifiers.sanitizeScript], [SecurityContext.STYLE, Identifiers.sanitizeStyle], [SecurityContext.URL, Identifiers.sanitizeUrl], [SecurityContext.ATTRIBUTE_NO_BINDING, Identifiers.validateAttribute]]);
|
|
22130
22127
|
var trustedValueFns = /* @__PURE__ */ new Map([[SecurityContext.HTML, Identifiers.trustConstantHtml], [SecurityContext.RESOURCE_URL, Identifiers.trustConstantResourceUrl]]);
|
|
22131
22128
|
function resolveSanitizers(job) {
|
|
22132
22129
|
for (const unit of job.units) {
|
|
22133
|
-
const elements = createOpXrefMap(unit);
|
|
22134
22130
|
if (job.kind !== CompilationJobKind.Host) {
|
|
22135
22131
|
for (const op of unit.create) {
|
|
22136
22132
|
if (op.kind === OpKind.ExtractedAttribute) {
|
|
@@ -22145,37 +22141,18 @@ function resolveSanitizers(job) {
|
|
|
22145
22141
|
case OpKind.Attribute:
|
|
22146
22142
|
case OpKind.DomProperty:
|
|
22147
22143
|
let sanitizerFn = null;
|
|
22148
|
-
if (Array.isArray(op.securityContext) && op.securityContext.length === 2 && op.securityContext.
|
|
22144
|
+
if (Array.isArray(op.securityContext) && op.securityContext.length === 2 && op.securityContext.includes(SecurityContext.URL) && op.securityContext.includes(SecurityContext.RESOURCE_URL)) {
|
|
22149
22145
|
sanitizerFn = Identifiers.sanitizeUrlOrResourceUrl;
|
|
22150
22146
|
} else {
|
|
22151
22147
|
sanitizerFn = sanitizerFns.get(getOnlySecurityContext(op.securityContext)) ?? null;
|
|
22152
22148
|
}
|
|
22153
22149
|
op.sanitizer = sanitizerFn !== null ? importExpr(sanitizerFn) : null;
|
|
22154
|
-
if (op.sanitizer === null) {
|
|
22155
|
-
let isIframe = false;
|
|
22156
|
-
if (job.kind === CompilationJobKind.Host || op.kind === OpKind.DomProperty) {
|
|
22157
|
-
isIframe = true;
|
|
22158
|
-
} else {
|
|
22159
|
-
const ownerOp = elements.get(op.target);
|
|
22160
|
-
if (ownerOp === void 0 || !isElementOrContainerOp(ownerOp)) {
|
|
22161
|
-
throw Error("Property should have an element-like owner");
|
|
22162
|
-
}
|
|
22163
|
-
isIframe = isIframeElement(ownerOp);
|
|
22164
|
-
}
|
|
22165
|
-
if (isIframe && isIframeSecuritySensitiveAttr(op.name)) {
|
|
22166
|
-
op.sanitizer = importExpr(Identifiers.validateIframeAttribute);
|
|
22167
|
-
}
|
|
22168
|
-
}
|
|
22169
22150
|
break;
|
|
22170
22151
|
}
|
|
22171
22152
|
}
|
|
22172
22153
|
}
|
|
22173
22154
|
}
|
|
22174
22155
|
__name(resolveSanitizers, "resolveSanitizers");
|
|
22175
|
-
function isIframeElement(op) {
|
|
22176
|
-
return op.kind === OpKind.ElementStart && op.tag?.toLowerCase() === "iframe";
|
|
22177
|
-
}
|
|
22178
|
-
__name(isIframeElement, "isIframeElement");
|
|
22179
22156
|
function getOnlySecurityContext(securityContext) {
|
|
22180
22157
|
if (Array.isArray(securityContext)) {
|
|
22181
22158
|
if (securityContext.length > 1) {
|
|
@@ -29909,7 +29886,7 @@ var MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = "18.0.0";
|
|
|
29909
29886
|
function compileDeclareClassMetadata(metadata) {
|
|
29910
29887
|
const definitionMap = new DefinitionMap();
|
|
29911
29888
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
29912
|
-
definitionMap.set("version", literal("21.0.
|
|
29889
|
+
definitionMap.set("version", literal("21.0.2"));
|
|
29913
29890
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
29914
29891
|
definitionMap.set("type", metadata.type);
|
|
29915
29892
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -29928,7 +29905,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
29928
29905
|
callbackReturnDefinitionMap.set("ctorParameters", metadata.ctorParameters ?? literal(null));
|
|
29929
29906
|
callbackReturnDefinitionMap.set("propDecorators", metadata.propDecorators ?? literal(null));
|
|
29930
29907
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
29931
|
-
definitionMap.set("version", literal("21.0.
|
|
29908
|
+
definitionMap.set("version", literal("21.0.2"));
|
|
29932
29909
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
29933
29910
|
definitionMap.set("type", metadata.type);
|
|
29934
29911
|
definitionMap.set("resolveDeferredDeps", compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -30005,7 +29982,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
30005
29982
|
const definitionMap = new DefinitionMap();
|
|
30006
29983
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
30007
29984
|
definitionMap.set("minVersion", literal(minVersion));
|
|
30008
|
-
definitionMap.set("version", literal("21.0.
|
|
29985
|
+
definitionMap.set("version", literal("21.0.2"));
|
|
30009
29986
|
definitionMap.set("type", meta.type.value);
|
|
30010
29987
|
if (meta.isStandalone !== void 0) {
|
|
30011
29988
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -30351,7 +30328,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION$4 = "12.0.0";
|
|
|
30351
30328
|
function compileDeclareFactoryFunction(meta) {
|
|
30352
30329
|
const definitionMap = new DefinitionMap();
|
|
30353
30330
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
30354
|
-
definitionMap.set("version", literal("21.0.
|
|
30331
|
+
definitionMap.set("version", literal("21.0.2"));
|
|
30355
30332
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30356
30333
|
definitionMap.set("type", meta.type.value);
|
|
30357
30334
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -30378,7 +30355,7 @@ __name(compileDeclareInjectableFromMetadata, "compileDeclareInjectableFromMetada
|
|
|
30378
30355
|
function createInjectableDefinitionMap(meta) {
|
|
30379
30356
|
const definitionMap = new DefinitionMap();
|
|
30380
30357
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
30381
|
-
definitionMap.set("version", literal("21.0.
|
|
30358
|
+
definitionMap.set("version", literal("21.0.2"));
|
|
30382
30359
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30383
30360
|
definitionMap.set("type", meta.type.value);
|
|
30384
30361
|
if (meta.providedIn !== void 0) {
|
|
@@ -30420,7 +30397,7 @@ __name(compileDeclareInjectorFromMetadata, "compileDeclareInjectorFromMetadata")
|
|
|
30420
30397
|
function createInjectorDefinitionMap(meta) {
|
|
30421
30398
|
const definitionMap = new DefinitionMap();
|
|
30422
30399
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
30423
|
-
definitionMap.set("version", literal("21.0.
|
|
30400
|
+
definitionMap.set("version", literal("21.0.2"));
|
|
30424
30401
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30425
30402
|
definitionMap.set("type", meta.type.value);
|
|
30426
30403
|
definitionMap.set("providers", meta.providers);
|
|
@@ -30448,7 +30425,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
30448
30425
|
throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
|
|
30449
30426
|
}
|
|
30450
30427
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
30451
|
-
definitionMap.set("version", literal("21.0.
|
|
30428
|
+
definitionMap.set("version", literal("21.0.2"));
|
|
30452
30429
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30453
30430
|
definitionMap.set("type", meta.type.value);
|
|
30454
30431
|
if (meta.bootstrap.length > 0) {
|
|
@@ -30487,7 +30464,7 @@ __name(compileDeclarePipeFromMetadata, "compileDeclarePipeFromMetadata");
|
|
|
30487
30464
|
function createPipeDefinitionMap(meta) {
|
|
30488
30465
|
const definitionMap = new DefinitionMap();
|
|
30489
30466
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
30490
|
-
definitionMap.set("version", literal("21.0.
|
|
30467
|
+
definitionMap.set("version", literal("21.0.2"));
|
|
30491
30468
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30492
30469
|
definitionMap.set("type", meta.type.value);
|
|
30493
30470
|
if (meta.isStandalone !== void 0) {
|
|
@@ -30562,7 +30539,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
|
|
|
30562
30539
|
return new DeclareFunctionStmt(`${meta.className}_UpdateMetadata`, params, body, null, StmtModifier.Final);
|
|
30563
30540
|
}
|
|
30564
30541
|
__name(compileHmrUpdateCallback, "compileHmrUpdateCallback");
|
|
30565
|
-
var VERSION = new Version("21.0.
|
|
30542
|
+
var VERSION = new Version("21.0.2");
|
|
30566
30543
|
publishFacade(_global);
|
|
30567
30544
|
// Annotate the CommonJS export names for ESM import in node:
|
|
30568
30545
|
0 && (module.exports = {
|
|
@@ -30828,7 +30805,7 @@ publishFacade(_global);
|
|
|
30828
30805
|
|
|
30829
30806
|
@angular/compiler/fesm2022/compiler.mjs:
|
|
30830
30807
|
(**
|
|
30831
|
-
* @license Angular v21.0.
|
|
30808
|
+
* @license Angular v21.0.2
|
|
30832
30809
|
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
30833
30810
|
* License: MIT
|
|
30834
30811
|
*)
|