@angular-eslint/bundled-angular-compiler 22.5.1-alpha.0 → 22.5.1-alpha.10
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 +39 -25
- 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.6/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");
|
|
@@ -7330,13 +7336,13 @@ function compileInjectable(meta, resolveForwardRefs) {
|
|
|
7330
7336
|
const expression = importExpr(Identifiers.\u0275\u0275defineInjectable).callFn([injectableProps.toLiteralMap()], void 0, true);
|
|
7331
7337
|
return {
|
|
7332
7338
|
expression,
|
|
7333
|
-
type: createInjectableType(
|
|
7339
|
+
type: createInjectableType(),
|
|
7334
7340
|
statements: result.statements
|
|
7335
7341
|
};
|
|
7336
7342
|
}
|
|
7337
7343
|
__name(compileInjectable, "compileInjectable");
|
|
7338
7344
|
function createInjectableType(type, typeArgumentCount) {
|
|
7339
|
-
return new ExpressionType(importExpr(Identifiers.InjectableDeclaration, [
|
|
7345
|
+
return new ExpressionType(importExpr(Identifiers.InjectableDeclaration, [DYNAMIC_TYPE]));
|
|
7340
7346
|
}
|
|
7341
7347
|
__name(createInjectableType, "createInjectableType");
|
|
7342
7348
|
function delegateToFactory(type, useType, unwrapForwardRefs) {
|
|
@@ -8439,13 +8445,13 @@ var COLON_IN_PLACEHOLDER = "%COLON_IN_PLACEHOLDER%";
|
|
|
8439
8445
|
var _cssCommaInPlaceholderReGlobal = new RegExp(COMMA_IN_PLACEHOLDER, "g");
|
|
8440
8446
|
var _cssSemiInPlaceholderReGlobal = new RegExp(SEMI_IN_PLACEHOLDER, "g");
|
|
8441
8447
|
var _cssColonInPlaceholderReGlobal = new RegExp(COLON_IN_PLACEHOLDER, "g");
|
|
8442
|
-
var _cssVariableRe = /(var\(\s
|
|
8448
|
+
var _cssVariableRe = /(var\(\s*|@property\s+)?(--(?:[a-zA-Z0-9_-]|[^\x00-\x7F])+)(\s*:)?/g;
|
|
8443
8449
|
function namespaceCssVariables(cssText) {
|
|
8444
|
-
return cssText.replace(_cssVariableRe, (match,
|
|
8445
|
-
if (!
|
|
8450
|
+
return cssText.replace(_cssVariableRe, (match, prefix, varName, trailingColon) => {
|
|
8451
|
+
if (!prefix && !trailingColon) {
|
|
8446
8452
|
return match;
|
|
8447
8453
|
}
|
|
8448
|
-
return (
|
|
8454
|
+
return (prefix ?? "") + namespaceCssVariable(varName) + (trailingColon ?? "");
|
|
8449
8455
|
});
|
|
8450
8456
|
}
|
|
8451
8457
|
__name(namespaceCssVariables, "namespaceCssVariables");
|
|
@@ -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
|
}
|
|
@@ -29146,7 +29162,7 @@ function compileService(meta, resolveForwardRefs) {
|
|
|
29146
29162
|
const expression = importExpr(Identifiers.defineService).callFn([def.toLiteralMap()], void 0, true);
|
|
29147
29163
|
return {
|
|
29148
29164
|
expression,
|
|
29149
|
-
type: createInjectableType(
|
|
29165
|
+
type: createInjectableType(),
|
|
29150
29166
|
statements: []
|
|
29151
29167
|
};
|
|
29152
29168
|
}
|
|
@@ -29264,7 +29280,6 @@ var CompilerFacadeImpl = class {
|
|
|
29264
29280
|
statements
|
|
29265
29281
|
} = compileService({
|
|
29266
29282
|
type: wrapReference(facade.type),
|
|
29267
|
-
typeArgumentCount: facade.typeArgumentCount,
|
|
29268
29283
|
autoProvided: facade.autoProvided,
|
|
29269
29284
|
factory: facade.factory ? wrapExpression(facade, "factory") : void 0
|
|
29270
29285
|
}, true);
|
|
@@ -29276,7 +29291,6 @@ var CompilerFacadeImpl = class {
|
|
|
29276
29291
|
statements
|
|
29277
29292
|
} = compileService({
|
|
29278
29293
|
type: wrapReference(facade.type),
|
|
29279
|
-
typeArgumentCount: 0,
|
|
29280
29294
|
autoProvided: facade.autoProvided,
|
|
29281
29295
|
factory: facade.factory ? wrapExpression(facade, "factory") : void 0
|
|
29282
29296
|
}, true);
|
|
@@ -31512,7 +31526,7 @@ var MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = "18.0.0";
|
|
|
31512
31526
|
function compileDeclareClassMetadata(metadata) {
|
|
31513
31527
|
const definitionMap = new DefinitionMap();
|
|
31514
31528
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
|
|
31515
|
-
definitionMap.set("version", literal("22.1.
|
|
31529
|
+
definitionMap.set("version", literal("22.1.6"));
|
|
31516
31530
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31517
31531
|
definitionMap.set("type", metadata.type);
|
|
31518
31532
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -31531,7 +31545,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
31531
31545
|
callbackReturnDefinitionMap.set("ctorParameters", metadata.ctorParameters ?? literal(null));
|
|
31532
31546
|
callbackReturnDefinitionMap.set("propDecorators", metadata.propDecorators ?? literal(null));
|
|
31533
31547
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
31534
|
-
definitionMap.set("version", literal("22.1.
|
|
31548
|
+
definitionMap.set("version", literal("22.1.6"));
|
|
31535
31549
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31536
31550
|
definitionMap.set("type", metadata.type);
|
|
31537
31551
|
definitionMap.set("resolveDeferredDeps", compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -31608,7 +31622,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
31608
31622
|
const definitionMap = new DefinitionMap();
|
|
31609
31623
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
31610
31624
|
definitionMap.set("minVersion", literal(minVersion));
|
|
31611
|
-
definitionMap.set("version", literal("22.1.
|
|
31625
|
+
definitionMap.set("version", literal("22.1.6"));
|
|
31612
31626
|
definitionMap.set("type", meta.type.value);
|
|
31613
31627
|
if (meta.isStandalone !== void 0) {
|
|
31614
31628
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -31964,7 +31978,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION$5 = "12.0.0";
|
|
|
31964
31978
|
function compileDeclareFactoryFunction(meta) {
|
|
31965
31979
|
const definitionMap = new DefinitionMap();
|
|
31966
31980
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
31967
|
-
definitionMap.set("version", literal("22.1.
|
|
31981
|
+
definitionMap.set("version", literal("22.1.6"));
|
|
31968
31982
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31969
31983
|
definitionMap.set("type", meta.type.value);
|
|
31970
31984
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -31980,7 +31994,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION$4 = "12.0.0";
|
|
|
31980
31994
|
function compileDeclareInjectableFromMetadata(meta) {
|
|
31981
31995
|
const definitionMap = createInjectableDefinitionMap(meta);
|
|
31982
31996
|
const expression = importExpr(Identifiers.declareInjectable).callFn([definitionMap.toLiteralMap()]);
|
|
31983
|
-
const type = createInjectableType(
|
|
31997
|
+
const type = createInjectableType();
|
|
31984
31998
|
return {
|
|
31985
31999
|
expression,
|
|
31986
32000
|
type,
|
|
@@ -31991,7 +32005,7 @@ __name(compileDeclareInjectableFromMetadata, "compileDeclareInjectableFromMetada
|
|
|
31991
32005
|
function createInjectableDefinitionMap(meta) {
|
|
31992
32006
|
const definitionMap = new DefinitionMap();
|
|
31993
32007
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
31994
|
-
definitionMap.set("version", literal("22.1.
|
|
32008
|
+
definitionMap.set("version", literal("22.1.6"));
|
|
31995
32009
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31996
32010
|
definitionMap.set("type", meta.type.value);
|
|
31997
32011
|
if (meta.providedIn !== void 0) {
|
|
@@ -32022,7 +32036,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION$3 = "22.0.0";
|
|
|
32022
32036
|
function compileDeclareServiceFromMetadata(meta) {
|
|
32023
32037
|
const definitionMap = createServiceDefinitionMap(meta);
|
|
32024
32038
|
const expression = importExpr(Identifiers.declareService).callFn([definitionMap.toLiteralMap()]);
|
|
32025
|
-
const type = createInjectableType(
|
|
32039
|
+
const type = createInjectableType();
|
|
32026
32040
|
return {
|
|
32027
32041
|
expression,
|
|
32028
32042
|
type,
|
|
@@ -32033,7 +32047,7 @@ __name(compileDeclareServiceFromMetadata, "compileDeclareServiceFromMetadata");
|
|
|
32033
32047
|
function createServiceDefinitionMap(meta) {
|
|
32034
32048
|
const definitionMap = new DefinitionMap();
|
|
32035
32049
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
32036
|
-
definitionMap.set("version", literal("22.1.
|
|
32050
|
+
definitionMap.set("version", literal("22.1.6"));
|
|
32037
32051
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
32038
32052
|
definitionMap.set("type", meta.type.value);
|
|
32039
32053
|
if (meta.autoProvided === false) {
|
|
@@ -32060,7 +32074,7 @@ __name(compileDeclareInjectorFromMetadata, "compileDeclareInjectorFromMetadata")
|
|
|
32060
32074
|
function createInjectorDefinitionMap(meta) {
|
|
32061
32075
|
const definitionMap = new DefinitionMap();
|
|
32062
32076
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
32063
|
-
definitionMap.set("version", literal("22.1.
|
|
32077
|
+
definitionMap.set("version", literal("22.1.6"));
|
|
32064
32078
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
32065
32079
|
definitionMap.set("type", meta.type.value);
|
|
32066
32080
|
definitionMap.set("providers", meta.providers);
|
|
@@ -32091,7 +32105,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
32091
32105
|
throw new Error("Invalid path! Isolated compilation mode should not get into the partial compilation path");
|
|
32092
32106
|
}
|
|
32093
32107
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
32094
|
-
definitionMap.set("version", literal("22.1.
|
|
32108
|
+
definitionMap.set("version", literal("22.1.6"));
|
|
32095
32109
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
32096
32110
|
definitionMap.set("type", meta.type.value);
|
|
32097
32111
|
if (meta.bootstrap.length > 0) {
|
|
@@ -32130,7 +32144,7 @@ __name(compileDeclarePipeFromMetadata, "compileDeclarePipeFromMetadata");
|
|
|
32130
32144
|
function createPipeDefinitionMap(meta) {
|
|
32131
32145
|
const definitionMap = new DefinitionMap();
|
|
32132
32146
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
32133
|
-
definitionMap.set("version", literal("22.1.
|
|
32147
|
+
definitionMap.set("version", literal("22.1.6"));
|
|
32134
32148
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
32135
32149
|
definitionMap.set("type", meta.type.value);
|
|
32136
32150
|
if (meta.isStandalone !== void 0) {
|
|
@@ -32205,7 +32219,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
|
|
|
32205
32219
|
return new DeclareFunctionStmt(`${meta.className}_UpdateMetadata`, params, body, null, StmtModifier.Final);
|
|
32206
32220
|
}
|
|
32207
32221
|
__name(compileHmrUpdateCallback, "compileHmrUpdateCallback");
|
|
32208
|
-
var VERSION = new Version("22.1.
|
|
32222
|
+
var VERSION = new Version("22.1.6");
|
|
32209
32223
|
var HOST_BINDING_GUARD_COMMENT_TEXT = "hostBindingsBlockGuard";
|
|
32210
32224
|
function createHostElement(type, selector, nameSpan, hostObjectLiteralBindings, hostBindingDecorators, hostListenerDecorators) {
|
|
32211
32225
|
const bindings = [];
|
|
@@ -35574,7 +35588,7 @@ publishFacade(_global);
|
|
|
35574
35588
|
|
|
35575
35589
|
@angular/compiler/fesm2022/compiler.mjs:
|
|
35576
35590
|
(**
|
|
35577
|
-
* @license Angular v22.1.
|
|
35591
|
+
* @license Angular v22.1.6
|
|
35578
35592
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
35579
35593
|
* License: MIT
|
|
35580
35594
|
*)
|