@angular-eslint/bundled-angular-compiler 20.4.1-alpha.1 → 20.4.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 +40 -12
- 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@20.3.
|
|
284
|
+
// ../../node_modules/.pnpm/@angular+compiler@20.3.6/node_modules/@angular/compiler/fesm2022/compiler.mjs
|
|
285
285
|
var _SELECTOR_REGEXP = new RegExp(
|
|
286
286
|
`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
|
|
287
287
|
// 8: ","
|
|
@@ -3245,6 +3245,16 @@ var Identifiers = class {
|
|
|
3245
3245
|
name: "\u0275\u0275validateIframeAttribute",
|
|
3246
3246
|
moduleName: CORE
|
|
3247
3247
|
};
|
|
3248
|
+
// Decorators
|
|
3249
|
+
static inputDecorator = { name: "Input", moduleName: CORE };
|
|
3250
|
+
static outputDecorator = { name: "Output", moduleName: CORE };
|
|
3251
|
+
static viewChildDecorator = { name: "ViewChild", moduleName: CORE };
|
|
3252
|
+
static viewChildrenDecorator = { name: "ViewChildren", moduleName: CORE };
|
|
3253
|
+
static contentChildDecorator = { name: "ContentChild", moduleName: CORE };
|
|
3254
|
+
static contentChildrenDecorator = {
|
|
3255
|
+
name: "ContentChildren",
|
|
3256
|
+
moduleName: CORE
|
|
3257
|
+
};
|
|
3248
3258
|
// type-checking
|
|
3249
3259
|
static InputSignalBrandWriteType = { name: "\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE", moduleName: CORE };
|
|
3250
3260
|
static UnwrapDirectiveSignalInputs = { name: "\u0275UnwrapDirectiveSignalInputs", moduleName: CORE };
|
|
@@ -25657,6 +25667,7 @@ function createForLoop(ast, connectedBlocks, visitor, bindingParser) {
|
|
|
25657
25667
|
} else {
|
|
25658
25668
|
const endSpan = empty?.endSourceSpan ?? ast.endSourceSpan;
|
|
25659
25669
|
const sourceSpan = new ParseSourceSpan(ast.sourceSpan.start, endSpan?.end ?? ast.sourceSpan.end);
|
|
25670
|
+
validateTrackByExpression(params.trackBy.expression, params.trackBy.keywordSpan, errors);
|
|
25660
25671
|
node = new ForLoopBlock(params.itemName, params.expression, params.trackBy.expression, params.trackBy.keywordSpan, params.context, visitAll(visitor, ast.children, ast.children), empty, sourceSpan, ast.sourceSpan, ast.startSourceSpan, endSpan, ast.nameSpan, ast.i18n);
|
|
25661
25672
|
}
|
|
25662
25673
|
}
|
|
@@ -25746,6 +25757,14 @@ function parseForLoopParameters(block, errors, bindingParser) {
|
|
|
25746
25757
|
return result;
|
|
25747
25758
|
}
|
|
25748
25759
|
__name(parseForLoopParameters, "parseForLoopParameters");
|
|
25760
|
+
function validateTrackByExpression(expression, parseSourceSpan, errors) {
|
|
25761
|
+
const visitor = new PipeVisitor();
|
|
25762
|
+
expression.ast.visit(visitor);
|
|
25763
|
+
if (visitor.hasPipe) {
|
|
25764
|
+
errors.push(new ParseError(parseSourceSpan, "Cannot use pipes in track expressions"));
|
|
25765
|
+
}
|
|
25766
|
+
}
|
|
25767
|
+
__name(validateTrackByExpression, "validateTrackByExpression");
|
|
25749
25768
|
function parseLetParameter(sourceSpan, expression, span, loopItemName, context, errors) {
|
|
25750
25769
|
const parts = expression.split(",");
|
|
25751
25770
|
let startSpan = span.start;
|
|
@@ -25918,6 +25937,15 @@ function stripOptionalParentheses(param, errors) {
|
|
|
25918
25937
|
return expression.slice(start, end);
|
|
25919
25938
|
}
|
|
25920
25939
|
__name(stripOptionalParentheses, "stripOptionalParentheses");
|
|
25940
|
+
var PipeVisitor = class extends RecursiveAstVisitor2 {
|
|
25941
|
+
static {
|
|
25942
|
+
__name(this, "PipeVisitor");
|
|
25943
|
+
}
|
|
25944
|
+
hasPipe = false;
|
|
25945
|
+
visitPipe() {
|
|
25946
|
+
this.hasPipe = true;
|
|
25947
|
+
}
|
|
25948
|
+
};
|
|
25921
25949
|
var TIME_PATTERN = /^\d+\.?\d*(ms|s)?$/;
|
|
25922
25950
|
var SEPARATOR_PATTERN = /^\s$/;
|
|
25923
25951
|
var COMMA_DELIMITED_SYNTAX = /* @__PURE__ */ new Map([
|
|
@@ -30955,7 +30983,7 @@ var MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = "18.0.0";
|
|
|
30955
30983
|
function compileDeclareClassMetadata(metadata) {
|
|
30956
30984
|
const definitionMap = new DefinitionMap();
|
|
30957
30985
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
30958
|
-
definitionMap.set("version", literal("20.3.
|
|
30986
|
+
definitionMap.set("version", literal("20.3.6"));
|
|
30959
30987
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30960
30988
|
definitionMap.set("type", metadata.type);
|
|
30961
30989
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -30974,7 +31002,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
30974
31002
|
callbackReturnDefinitionMap.set("ctorParameters", metadata.ctorParameters ?? literal(null));
|
|
30975
31003
|
callbackReturnDefinitionMap.set("propDecorators", metadata.propDecorators ?? literal(null));
|
|
30976
31004
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
30977
|
-
definitionMap.set("version", literal("20.3.
|
|
31005
|
+
definitionMap.set("version", literal("20.3.6"));
|
|
30978
31006
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
30979
31007
|
definitionMap.set("type", metadata.type);
|
|
30980
31008
|
definitionMap.set("resolveDeferredDeps", compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -31043,7 +31071,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
31043
31071
|
const definitionMap = new DefinitionMap();
|
|
31044
31072
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
31045
31073
|
definitionMap.set("minVersion", literal(minVersion));
|
|
31046
|
-
definitionMap.set("version", literal("20.3.
|
|
31074
|
+
definitionMap.set("version", literal("20.3.6"));
|
|
31047
31075
|
definitionMap.set("type", meta.type.value);
|
|
31048
31076
|
if (meta.isStandalone !== void 0) {
|
|
31049
31077
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -31370,7 +31398,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION$4 = "12.0.0";
|
|
|
31370
31398
|
function compileDeclareFactoryFunction(meta) {
|
|
31371
31399
|
const definitionMap = new DefinitionMap();
|
|
31372
31400
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
31373
|
-
definitionMap.set("version", literal("20.3.
|
|
31401
|
+
definitionMap.set("version", literal("20.3.6"));
|
|
31374
31402
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31375
31403
|
definitionMap.set("type", meta.type.value);
|
|
31376
31404
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -31393,7 +31421,7 @@ __name(compileDeclareInjectableFromMetadata, "compileDeclareInjectableFromMetada
|
|
|
31393
31421
|
function createInjectableDefinitionMap(meta) {
|
|
31394
31422
|
const definitionMap = new DefinitionMap();
|
|
31395
31423
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
31396
|
-
definitionMap.set("version", literal("20.3.
|
|
31424
|
+
definitionMap.set("version", literal("20.3.6"));
|
|
31397
31425
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31398
31426
|
definitionMap.set("type", meta.type.value);
|
|
31399
31427
|
if (meta.providedIn !== void 0) {
|
|
@@ -31431,7 +31459,7 @@ __name(compileDeclareInjectorFromMetadata, "compileDeclareInjectorFromMetadata")
|
|
|
31431
31459
|
function createInjectorDefinitionMap(meta) {
|
|
31432
31460
|
const definitionMap = new DefinitionMap();
|
|
31433
31461
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
31434
|
-
definitionMap.set("version", literal("20.3.
|
|
31462
|
+
definitionMap.set("version", literal("20.3.6"));
|
|
31435
31463
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31436
31464
|
definitionMap.set("type", meta.type.value);
|
|
31437
31465
|
definitionMap.set("providers", meta.providers);
|
|
@@ -31455,7 +31483,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
31455
31483
|
throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
|
|
31456
31484
|
}
|
|
31457
31485
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
31458
|
-
definitionMap.set("version", literal("20.3.
|
|
31486
|
+
definitionMap.set("version", literal("20.3.6"));
|
|
31459
31487
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31460
31488
|
definitionMap.set("type", meta.type.value);
|
|
31461
31489
|
if (meta.bootstrap.length > 0) {
|
|
@@ -31490,7 +31518,7 @@ __name(compileDeclarePipeFromMetadata, "compileDeclarePipeFromMetadata");
|
|
|
31490
31518
|
function createPipeDefinitionMap(meta) {
|
|
31491
31519
|
const definitionMap = new DefinitionMap();
|
|
31492
31520
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
31493
|
-
definitionMap.set("version", literal("20.3.
|
|
31521
|
+
definitionMap.set("version", literal("20.3.6"));
|
|
31494
31522
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
31495
31523
|
definitionMap.set("type", meta.type.value);
|
|
31496
31524
|
if (meta.isStandalone !== void 0) {
|
|
@@ -31587,7 +31615,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
|
|
|
31587
31615
|
return new DeclareFunctionStmt(`${meta.className}_UpdateMetadata`, params, body, null, StmtModifier.Final);
|
|
31588
31616
|
}
|
|
31589
31617
|
__name(compileHmrUpdateCallback, "compileHmrUpdateCallback");
|
|
31590
|
-
var VERSION = new Version("20.3.
|
|
31618
|
+
var VERSION = new Version("20.3.6");
|
|
31591
31619
|
publishFacade(_global);
|
|
31592
31620
|
// Annotate the CommonJS export names for ESM import in node:
|
|
31593
31621
|
0 && (module.exports = {
|
|
@@ -31853,8 +31881,8 @@ publishFacade(_global);
|
|
|
31853
31881
|
|
|
31854
31882
|
@angular/compiler/fesm2022/compiler.mjs:
|
|
31855
31883
|
(**
|
|
31856
|
-
* @license Angular v20.3.
|
|
31857
|
-
* (c) 2010-2025 Google LLC. https://angular.
|
|
31884
|
+
* @license Angular v20.3.6
|
|
31885
|
+
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
31858
31886
|
* License: MIT
|
|
31859
31887
|
*)
|
|
31860
31888
|
(*!
|