@angular-eslint/bundled-angular-compiler 22.5.1-alpha.2 → 22.5.1-alpha.3
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 +30 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -306,7 +306,7 @@ __export(index_exports, {
|
|
|
306
306
|
});
|
|
307
307
|
module.exports = __toCommonJS(index_exports);
|
|
308
308
|
|
|
309
|
-
// ../../node_modules/.pnpm/@angular+compiler@22.1.
|
|
309
|
+
// ../../node_modules/.pnpm/@angular+compiler@22.1.5/node_modules/@angular/compiler/fesm2022/compiler.mjs
|
|
310
310
|
var _SELECTOR_REGEXP = new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`, "g");
|
|
311
311
|
var CssSelector = class _CssSelector {
|
|
312
312
|
static {
|
|
@@ -700,6 +700,12 @@ function checkSecurityContext(tagName, propName, namespace) {
|
|
|
700
700
|
context = defaultSchema[tagLower] ?? defaultSchema[MATCH_ALL_ELEMENTS];
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
|
+
if (context === void 0 && (!namespace || namespace === NO_NAMESPACE)) {
|
|
704
|
+
const svgSchema = attrSchema[SVG_NAMESPACE$1];
|
|
705
|
+
if (svgSchema) {
|
|
706
|
+
context = svgSchema[tagLower];
|
|
707
|
+
}
|
|
708
|
+
}
|
|
703
709
|
return context ?? SecurityContext.NONE;
|
|
704
710
|
}
|
|
705
711
|
__name(checkSecurityContext, "checkSecurityContext");
|
|
@@ -22013,11 +22019,12 @@ function reifyCreateOperations(unit, ops) {
|
|
|
22013
22019
|
OpList.replace(op, unit.job.mode === TemplateCompilationMode.DomOnly ? domElement(op.handle.slot, op.tag, op.attributes, op.localRefs, op.wholeSourceSpan) : element(op.handle.slot, op.tag, op.attributes, op.localRefs, op.wholeSourceSpan));
|
|
22014
22020
|
break;
|
|
22015
22021
|
case OpKind.ForeignComponent:
|
|
22016
|
-
const
|
|
22022
|
+
const propsMap = op.props.size > 0 ? literalMap(Array.from(op.props.entries()).map(([key, value]) => ({
|
|
22017
22023
|
key,
|
|
22018
22024
|
value,
|
|
22019
22025
|
quoted: isUnsafeObjectKey(key)
|
|
22020
22026
|
}))) : null;
|
|
22027
|
+
const propsExpr = propsMap !== null ? arrowFn([], propsMap) : null;
|
|
22021
22028
|
OpList.replace(op, foreignComponent(op.handle.slot, literal(op.constIndex), propsExpr, op.sourceSpan));
|
|
22022
22029
|
break;
|
|
22023
22030
|
case OpKind.ElementEnd:
|
|
@@ -22666,7 +22673,16 @@ function resolveForeignContent(job) {
|
|
|
22666
22673
|
const templateOp = createTemplateOp(op.view, TemplateKind.NgTemplate, null, templateName, Namespace.HTML, void 0, op.startSourceSpan, op.sourceSpan);
|
|
22667
22674
|
OpList.replace(op, templateOp);
|
|
22668
22675
|
const foreignContent2 = new ForeignContentExpr(templateOp.xref, templateOp.handle, target.constIndex);
|
|
22669
|
-
|
|
22676
|
+
const varXref = job.allocateXrefId();
|
|
22677
|
+
const variable2 = {
|
|
22678
|
+
kind: SemanticVariableKind.Identifier,
|
|
22679
|
+
name: null,
|
|
22680
|
+
identifier: op.propertyName,
|
|
22681
|
+
local: true
|
|
22682
|
+
};
|
|
22683
|
+
const varOp = createVariableOp(varXref, variable2, foreignContent2, VariableFlags.None);
|
|
22684
|
+
OpList.insertBefore(varOp, target);
|
|
22685
|
+
target.props.set(op.propertyName, new ReadVariableExpr(varXref));
|
|
22670
22686
|
}
|
|
22671
22687
|
}
|
|
22672
22688
|
}
|
|
@@ -31512,7 +31528,7 @@ var MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = "18.0.0";
|
|
|
31512
31528
|
function compileDeclareClassMetadata(metadata) {
|
|
31513
31529
|
const definitionMap = new DefinitionMap();
|
|
31514
31530
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
|
|
31515
|
-
definitionMap.set("version", literal("22.1.
|
|
31531
|
+
definitionMap.set("version", literal("22.1.5"));
|
|
31516
31532
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31517
31533
|
definitionMap.set("type", metadata.type);
|
|
31518
31534
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -31531,7 +31547,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
31531
31547
|
callbackReturnDefinitionMap.set("ctorParameters", metadata.ctorParameters ?? literal(null));
|
|
31532
31548
|
callbackReturnDefinitionMap.set("propDecorators", metadata.propDecorators ?? literal(null));
|
|
31533
31549
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
31534
|
-
definitionMap.set("version", literal("22.1.
|
|
31550
|
+
definitionMap.set("version", literal("22.1.5"));
|
|
31535
31551
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31536
31552
|
definitionMap.set("type", metadata.type);
|
|
31537
31553
|
definitionMap.set("resolveDeferredDeps", compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -31608,7 +31624,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
31608
31624
|
const definitionMap = new DefinitionMap();
|
|
31609
31625
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
31610
31626
|
definitionMap.set("minVersion", literal(minVersion));
|
|
31611
|
-
definitionMap.set("version", literal("22.1.
|
|
31627
|
+
definitionMap.set("version", literal("22.1.5"));
|
|
31612
31628
|
definitionMap.set("type", meta.type.value);
|
|
31613
31629
|
if (meta.isStandalone !== void 0) {
|
|
31614
31630
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -31964,7 +31980,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION$5 = "12.0.0";
|
|
|
31964
31980
|
function compileDeclareFactoryFunction(meta) {
|
|
31965
31981
|
const definitionMap = new DefinitionMap();
|
|
31966
31982
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
31967
|
-
definitionMap.set("version", literal("22.1.
|
|
31983
|
+
definitionMap.set("version", literal("22.1.5"));
|
|
31968
31984
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31969
31985
|
definitionMap.set("type", meta.type.value);
|
|
31970
31986
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -31991,7 +32007,7 @@ __name(compileDeclareInjectableFromMetadata, "compileDeclareInjectableFromMetada
|
|
|
31991
32007
|
function createInjectableDefinitionMap(meta) {
|
|
31992
32008
|
const definitionMap = new DefinitionMap();
|
|
31993
32009
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
31994
|
-
definitionMap.set("version", literal("22.1.
|
|
32010
|
+
definitionMap.set("version", literal("22.1.5"));
|
|
31995
32011
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31996
32012
|
definitionMap.set("type", meta.type.value);
|
|
31997
32013
|
if (meta.providedIn !== void 0) {
|
|
@@ -32033,7 +32049,7 @@ __name(compileDeclareServiceFromMetadata, "compileDeclareServiceFromMetadata");
|
|
|
32033
32049
|
function createServiceDefinitionMap(meta) {
|
|
32034
32050
|
const definitionMap = new DefinitionMap();
|
|
32035
32051
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
32036
|
-
definitionMap.set("version", literal("22.1.
|
|
32052
|
+
definitionMap.set("version", literal("22.1.5"));
|
|
32037
32053
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
32038
32054
|
definitionMap.set("type", meta.type.value);
|
|
32039
32055
|
if (meta.autoProvided === false) {
|
|
@@ -32060,7 +32076,7 @@ __name(compileDeclareInjectorFromMetadata, "compileDeclareInjectorFromMetadata")
|
|
|
32060
32076
|
function createInjectorDefinitionMap(meta) {
|
|
32061
32077
|
const definitionMap = new DefinitionMap();
|
|
32062
32078
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
32063
|
-
definitionMap.set("version", literal("22.1.
|
|
32079
|
+
definitionMap.set("version", literal("22.1.5"));
|
|
32064
32080
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
32065
32081
|
definitionMap.set("type", meta.type.value);
|
|
32066
32082
|
definitionMap.set("providers", meta.providers);
|
|
@@ -32091,7 +32107,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
32091
32107
|
throw new Error("Invalid path! Isolated compilation mode should not get into the partial compilation path");
|
|
32092
32108
|
}
|
|
32093
32109
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
32094
|
-
definitionMap.set("version", literal("22.1.
|
|
32110
|
+
definitionMap.set("version", literal("22.1.5"));
|
|
32095
32111
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
32096
32112
|
definitionMap.set("type", meta.type.value);
|
|
32097
32113
|
if (meta.bootstrap.length > 0) {
|
|
@@ -32130,7 +32146,7 @@ __name(compileDeclarePipeFromMetadata, "compileDeclarePipeFromMetadata");
|
|
|
32130
32146
|
function createPipeDefinitionMap(meta) {
|
|
32131
32147
|
const definitionMap = new DefinitionMap();
|
|
32132
32148
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
32133
|
-
definitionMap.set("version", literal("22.1.
|
|
32149
|
+
definitionMap.set("version", literal("22.1.5"));
|
|
32134
32150
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
32135
32151
|
definitionMap.set("type", meta.type.value);
|
|
32136
32152
|
if (meta.isStandalone !== void 0) {
|
|
@@ -32205,7 +32221,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
|
|
|
32205
32221
|
return new DeclareFunctionStmt(`${meta.className}_UpdateMetadata`, params, body, null, StmtModifier.Final);
|
|
32206
32222
|
}
|
|
32207
32223
|
__name(compileHmrUpdateCallback, "compileHmrUpdateCallback");
|
|
32208
|
-
var VERSION = new Version("22.1.
|
|
32224
|
+
var VERSION = new Version("22.1.5");
|
|
32209
32225
|
var HOST_BINDING_GUARD_COMMENT_TEXT = "hostBindingsBlockGuard";
|
|
32210
32226
|
function createHostElement(type, selector, nameSpan, hostObjectLiteralBindings, hostBindingDecorators, hostListenerDecorators) {
|
|
32211
32227
|
const bindings = [];
|
|
@@ -35574,7 +35590,7 @@ publishFacade(_global);
|
|
|
35574
35590
|
|
|
35575
35591
|
@angular/compiler/fesm2022/compiler.mjs:
|
|
35576
35592
|
(**
|
|
35577
|
-
* @license Angular v22.1.
|
|
35593
|
+
* @license Angular v22.1.5
|
|
35578
35594
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
35579
35595
|
* License: MIT
|
|
35580
35596
|
*)
|