@angular-eslint/bundled-angular-compiler 19.3.1-alpha.2 → 19.3.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 +21 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -269,7 +269,7 @@ __export(index_exports, {
|
|
|
269
269
|
});
|
|
270
270
|
module.exports = __toCommonJS(index_exports);
|
|
271
271
|
|
|
272
|
-
// ../../node_modules/.pnpm/@angular+compiler@19.2.
|
|
272
|
+
// ../../node_modules/.pnpm/@angular+compiler@19.2.5/node_modules/@angular/compiler/fesm2022/compiler.mjs
|
|
273
273
|
var _SELECTOR_REGEXP = new RegExp(
|
|
274
274
|
`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
|
|
275
275
|
// 8: ","
|
|
@@ -15114,7 +15114,7 @@ var _Tokenizer = class {
|
|
|
15114
15114
|
} else {
|
|
15115
15115
|
const name = this._cursor.getChars(nameStart);
|
|
15116
15116
|
this._cursor.advance();
|
|
15117
|
-
const char = NAMED_ENTITIES[name];
|
|
15117
|
+
const char = NAMED_ENTITIES.hasOwnProperty(name) && NAMED_ENTITIES[name];
|
|
15118
15118
|
if (!char) {
|
|
15119
15119
|
throw this._createError(_unknownEntityErrorMsg(name), this._cursor.getSpan(start));
|
|
15120
15120
|
}
|
|
@@ -24556,9 +24556,10 @@ function normalizeNgContentSelect(selectAttr) {
|
|
|
24556
24556
|
__name(normalizeNgContentSelect, "normalizeNgContentSelect");
|
|
24557
24557
|
var FOR_LOOP_EXPRESSION_PATTERN = /^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/;
|
|
24558
24558
|
var FOR_LOOP_TRACK_PATTERN = /^track\s+([\S\s]*)/;
|
|
24559
|
-
var CONDITIONAL_ALIAS_PATTERN = /^(as\s)
|
|
24559
|
+
var CONDITIONAL_ALIAS_PATTERN = /^(as\s+)(.*)/;
|
|
24560
24560
|
var ELSE_IF_PATTERN = /^else[^\S\r\n]+if/;
|
|
24561
24561
|
var FOR_LOOP_LET_PATTERN = /^let\s+([\S\s]*)/;
|
|
24562
|
+
var IDENTIFIER_PATTERN = /^[$A-Z_][0-9A-Z_$]*$/i;
|
|
24562
24563
|
var CHARACTERS_IN_SURROUNDING_WHITESPACE_PATTERN = /(\s*)(\S+)(\s*)/;
|
|
24563
24564
|
var ALLOWED_FOR_LOOP_LET_VARIABLES = /* @__PURE__ */ new Set([
|
|
24564
24565
|
"$index",
|
|
@@ -24840,9 +24841,13 @@ function parseConditionalBlockParameters(block, errors, bindingParser) {
|
|
|
24840
24841
|
errors.push(new ParseError(param.sourceSpan, 'Conditional can only have one "as" expression'));
|
|
24841
24842
|
} else {
|
|
24842
24843
|
const name = aliasMatch[2].trim();
|
|
24843
|
-
|
|
24844
|
-
|
|
24845
|
-
|
|
24844
|
+
if (IDENTIFIER_PATTERN.test(name)) {
|
|
24845
|
+
const variableStart = param.sourceSpan.start.moveBy(aliasMatch[1].length);
|
|
24846
|
+
const variableSpan = new ParseSourceSpan(variableStart, variableStart.moveBy(name.length));
|
|
24847
|
+
expressionAlias = new Variable(name, name, variableSpan, variableSpan);
|
|
24848
|
+
} else {
|
|
24849
|
+
errors.push(new ParseError(param.sourceSpan, '"as" expression must be a valid JavaScript identifier'));
|
|
24850
|
+
}
|
|
24846
24851
|
}
|
|
24847
24852
|
}
|
|
24848
24853
|
return { expression, expressionAlias };
|
|
@@ -27865,7 +27870,7 @@ function publishFacade(global) {
|
|
|
27865
27870
|
ng.\u0275compilerFacade = new CompilerFacadeImpl();
|
|
27866
27871
|
}
|
|
27867
27872
|
__name(publishFacade, "publishFacade");
|
|
27868
|
-
var VERSION = new Version("19.2.
|
|
27873
|
+
var VERSION = new Version("19.2.5");
|
|
27869
27874
|
var CompilerConfig = class {
|
|
27870
27875
|
static {
|
|
27871
27876
|
__name(this, "CompilerConfig");
|
|
@@ -29643,7 +29648,7 @@ var MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = "18.0.0";
|
|
|
29643
29648
|
function compileDeclareClassMetadata(metadata) {
|
|
29644
29649
|
const definitionMap = new DefinitionMap();
|
|
29645
29650
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
29646
|
-
definitionMap.set("version", literal("19.2.
|
|
29651
|
+
definitionMap.set("version", literal("19.2.5"));
|
|
29647
29652
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
29648
29653
|
definitionMap.set("type", metadata.type);
|
|
29649
29654
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -29662,7 +29667,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
29662
29667
|
callbackReturnDefinitionMap.set("ctorParameters", metadata.ctorParameters ?? literal(null));
|
|
29663
29668
|
callbackReturnDefinitionMap.set("propDecorators", metadata.propDecorators ?? literal(null));
|
|
29664
29669
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
29665
|
-
definitionMap.set("version", literal("19.2.
|
|
29670
|
+
definitionMap.set("version", literal("19.2.5"));
|
|
29666
29671
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
29667
29672
|
definitionMap.set("type", metadata.type);
|
|
29668
29673
|
definitionMap.set("resolveDeferredDeps", compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -29731,7 +29736,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
29731
29736
|
const definitionMap = new DefinitionMap();
|
|
29732
29737
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
29733
29738
|
definitionMap.set("minVersion", literal(minVersion));
|
|
29734
|
-
definitionMap.set("version", literal("19.2.
|
|
29739
|
+
definitionMap.set("version", literal("19.2.5"));
|
|
29735
29740
|
definitionMap.set("type", meta.type.value);
|
|
29736
29741
|
if (meta.isStandalone !== void 0) {
|
|
29737
29742
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -30058,7 +30063,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION$4 = "12.0.0";
|
|
|
30058
30063
|
function compileDeclareFactoryFunction(meta) {
|
|
30059
30064
|
const definitionMap = new DefinitionMap();
|
|
30060
30065
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
30061
|
-
definitionMap.set("version", literal("19.2.
|
|
30066
|
+
definitionMap.set("version", literal("19.2.5"));
|
|
30062
30067
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30063
30068
|
definitionMap.set("type", meta.type.value);
|
|
30064
30069
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -30081,7 +30086,7 @@ __name(compileDeclareInjectableFromMetadata, "compileDeclareInjectableFromMetada
|
|
|
30081
30086
|
function createInjectableDefinitionMap(meta) {
|
|
30082
30087
|
const definitionMap = new DefinitionMap();
|
|
30083
30088
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
30084
|
-
definitionMap.set("version", literal("19.2.
|
|
30089
|
+
definitionMap.set("version", literal("19.2.5"));
|
|
30085
30090
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30086
30091
|
definitionMap.set("type", meta.type.value);
|
|
30087
30092
|
if (meta.providedIn !== void 0) {
|
|
@@ -30119,7 +30124,7 @@ __name(compileDeclareInjectorFromMetadata, "compileDeclareInjectorFromMetadata")
|
|
|
30119
30124
|
function createInjectorDefinitionMap(meta) {
|
|
30120
30125
|
const definitionMap = new DefinitionMap();
|
|
30121
30126
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
30122
|
-
definitionMap.set("version", literal("19.2.
|
|
30127
|
+
definitionMap.set("version", literal("19.2.5"));
|
|
30123
30128
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30124
30129
|
definitionMap.set("type", meta.type.value);
|
|
30125
30130
|
definitionMap.set("providers", meta.providers);
|
|
@@ -30143,7 +30148,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
30143
30148
|
throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
|
|
30144
30149
|
}
|
|
30145
30150
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
30146
|
-
definitionMap.set("version", literal("19.2.
|
|
30151
|
+
definitionMap.set("version", literal("19.2.5"));
|
|
30147
30152
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30148
30153
|
definitionMap.set("type", meta.type.value);
|
|
30149
30154
|
if (meta.bootstrap.length > 0) {
|
|
@@ -30178,7 +30183,7 @@ __name(compileDeclarePipeFromMetadata, "compileDeclarePipeFromMetadata");
|
|
|
30178
30183
|
function createPipeDefinitionMap(meta) {
|
|
30179
30184
|
const definitionMap = new DefinitionMap();
|
|
30180
30185
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
30181
|
-
definitionMap.set("version", literal("19.2.
|
|
30186
|
+
definitionMap.set("version", literal("19.2.5"));
|
|
30182
30187
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30183
30188
|
definitionMap.set("type", meta.type.value);
|
|
30184
30189
|
if (meta.isStandalone !== void 0) {
|
|
@@ -30444,7 +30449,7 @@ publishFacade(_global);
|
|
|
30444
30449
|
|
|
30445
30450
|
@angular/compiler/fesm2022/compiler.mjs:
|
|
30446
30451
|
(**
|
|
30447
|
-
* @license Angular v19.2.
|
|
30452
|
+
* @license Angular v19.2.5
|
|
30448
30453
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
30449
30454
|
* License: MIT
|
|
30450
30455
|
*)
|