@angular-eslint/bundled-angular-compiler 16.0.3-alpha.6 → 16.1.0-alpha.0
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 +27 -9
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @license Angular v16.0.
|
|
4
|
+
* @license Angular v16.0.3
|
|
5
5
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
6
6
|
* License: MIT
|
|
7
7
|
*/
|
|
@@ -1066,6 +1066,15 @@ class MapType extends Type {
|
|
|
1066
1066
|
return visitor.visitMapType(this, context);
|
|
1067
1067
|
}
|
|
1068
1068
|
}
|
|
1069
|
+
class TransplantedType extends Type {
|
|
1070
|
+
constructor(type, modifiers) {
|
|
1071
|
+
super(modifiers);
|
|
1072
|
+
this.type = type;
|
|
1073
|
+
}
|
|
1074
|
+
visitType(visitor, context) {
|
|
1075
|
+
return visitor.visitTransplantedType(this, context);
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1069
1078
|
const DYNAMIC_TYPE = new BuiltinType(exports.BuiltinTypeName.Dynamic);
|
|
1070
1079
|
const INFERRED_TYPE = new BuiltinType(exports.BuiltinTypeName.Inferred);
|
|
1071
1080
|
const BOOL_TYPE = new BuiltinType(exports.BuiltinTypeName.Bool);
|
|
@@ -1887,6 +1896,9 @@ class RecursiveAstVisitor$1 {
|
|
|
1887
1896
|
visitMapType(type, context) {
|
|
1888
1897
|
return this.visitType(type, context);
|
|
1889
1898
|
}
|
|
1899
|
+
visitTransplantedType(type, context) {
|
|
1900
|
+
return type;
|
|
1901
|
+
}
|
|
1890
1902
|
visitWrappedNodeExpr(ast, context) {
|
|
1891
1903
|
return ast;
|
|
1892
1904
|
}
|
|
@@ -2037,6 +2049,9 @@ function importType(id, typeParams, typeModifiers) {
|
|
|
2037
2049
|
function expressionType(expr, typeModifiers, typeParams) {
|
|
2038
2050
|
return new ExpressionType(expr, typeModifiers, typeParams);
|
|
2039
2051
|
}
|
|
2052
|
+
function transplantedType(type, typeModifiers) {
|
|
2053
|
+
return new TransplantedType(type, typeModifiers);
|
|
2054
|
+
}
|
|
2040
2055
|
function typeofExpr(expr) {
|
|
2041
2056
|
return new TypeofExpr(expr);
|
|
2042
2057
|
}
|
|
@@ -2114,6 +2129,7 @@ var output_ast = /*#__PURE__*/Object.freeze({
|
|
|
2114
2129
|
ExpressionType: ExpressionType,
|
|
2115
2130
|
ArrayType: ArrayType,
|
|
2116
2131
|
MapType: MapType,
|
|
2132
|
+
TransplantedType: TransplantedType,
|
|
2117
2133
|
DYNAMIC_TYPE: DYNAMIC_TYPE,
|
|
2118
2134
|
INFERRED_TYPE: INFERRED_TYPE,
|
|
2119
2135
|
BOOL_TYPE: BOOL_TYPE,
|
|
@@ -2174,6 +2190,7 @@ var output_ast = /*#__PURE__*/Object.freeze({
|
|
|
2174
2190
|
importExpr: importExpr,
|
|
2175
2191
|
importType: importType,
|
|
2176
2192
|
expressionType: expressionType,
|
|
2193
|
+
transplantedType: transplantedType,
|
|
2177
2194
|
typeofExpr: typeofExpr,
|
|
2178
2195
|
literalArr: literalArr,
|
|
2179
2196
|
literalMap: literalMap,
|
|
@@ -20187,7 +20204,7 @@ function publishFacade(global) {
|
|
|
20187
20204
|
* @description
|
|
20188
20205
|
* Entry point for all public APIs of the compiler package.
|
|
20189
20206
|
*/
|
|
20190
|
-
const VERSION = new Version('16.0.
|
|
20207
|
+
const VERSION = new Version('16.0.3');
|
|
20191
20208
|
|
|
20192
20209
|
class CompilerConfig {
|
|
20193
20210
|
constructor({ defaultEncapsulation = exports.ViewEncapsulation.Emulated, useJit = true, missingTranslation = null, preserveWhitespaces, strictInjectionParameters } = {}) {
|
|
@@ -22115,7 +22132,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$6 = '12.0.0';
|
|
|
22115
22132
|
function compileDeclareClassMetadata(metadata) {
|
|
22116
22133
|
const definitionMap = new DefinitionMap();
|
|
22117
22134
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
|
|
22118
|
-
definitionMap.set('version', literal('16.0.
|
|
22135
|
+
definitionMap.set('version', literal('16.0.3'));
|
|
22119
22136
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22120
22137
|
definitionMap.set('type', metadata.type);
|
|
22121
22138
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -22218,7 +22235,7 @@ function compileDeclareDirectiveFromMetadata(meta) {
|
|
|
22218
22235
|
function createDirectiveDefinitionMap(meta) {
|
|
22219
22236
|
const definitionMap = new DefinitionMap();
|
|
22220
22237
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
22221
|
-
definitionMap.set('version', literal('16.0.
|
|
22238
|
+
definitionMap.set('version', literal('16.0.3'));
|
|
22222
22239
|
// e.g. `type: MyDirective`
|
|
22223
22240
|
definitionMap.set('type', meta.type.value);
|
|
22224
22241
|
if (meta.isStandalone) {
|
|
@@ -22440,7 +22457,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
22440
22457
|
function compileDeclareFactoryFunction(meta) {
|
|
22441
22458
|
const definitionMap = new DefinitionMap();
|
|
22442
22459
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
22443
|
-
definitionMap.set('version', literal('16.0.
|
|
22460
|
+
definitionMap.set('version', literal('16.0.3'));
|
|
22444
22461
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22445
22462
|
definitionMap.set('type', meta.type.value);
|
|
22446
22463
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -22475,7 +22492,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
22475
22492
|
function createInjectableDefinitionMap(meta) {
|
|
22476
22493
|
const definitionMap = new DefinitionMap();
|
|
22477
22494
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
22478
|
-
definitionMap.set('version', literal('16.0.
|
|
22495
|
+
definitionMap.set('version', literal('16.0.3'));
|
|
22479
22496
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22480
22497
|
definitionMap.set('type', meta.type.value);
|
|
22481
22498
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -22526,7 +22543,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
22526
22543
|
function createInjectorDefinitionMap(meta) {
|
|
22527
22544
|
const definitionMap = new DefinitionMap();
|
|
22528
22545
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
22529
|
-
definitionMap.set('version', literal('16.0.
|
|
22546
|
+
definitionMap.set('version', literal('16.0.3'));
|
|
22530
22547
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22531
22548
|
definitionMap.set('type', meta.type.value);
|
|
22532
22549
|
definitionMap.set('providers', meta.providers);
|
|
@@ -22556,7 +22573,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
|
|
|
22556
22573
|
function createNgModuleDefinitionMap(meta) {
|
|
22557
22574
|
const definitionMap = new DefinitionMap();
|
|
22558
22575
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
22559
|
-
definitionMap.set('version', literal('16.0.
|
|
22576
|
+
definitionMap.set('version', literal('16.0.3'));
|
|
22560
22577
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22561
22578
|
definitionMap.set('type', meta.type.value);
|
|
22562
22579
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -22607,7 +22624,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
22607
22624
|
function createPipeDefinitionMap(meta) {
|
|
22608
22625
|
const definitionMap = new DefinitionMap();
|
|
22609
22626
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
22610
|
-
definitionMap.set('version', literal('16.0.
|
|
22627
|
+
definitionMap.set('version', literal('16.0.3'));
|
|
22611
22628
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22612
22629
|
// e.g. `type: MyPipe`
|
|
22613
22630
|
definitionMap.set('type', meta.type.value);
|
|
@@ -22753,6 +22770,7 @@ exports.TmplAstText = Text$3;
|
|
|
22753
22770
|
exports.TmplAstTextAttribute = TextAttribute;
|
|
22754
22771
|
exports.TmplAstVariable = Variable;
|
|
22755
22772
|
exports.Token = Token;
|
|
22773
|
+
exports.TransplantedType = TransplantedType;
|
|
22756
22774
|
exports.TreeError = TreeError;
|
|
22757
22775
|
exports.Type = Type;
|
|
22758
22776
|
exports.TypeofExpr = TypeofExpr;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-eslint/bundled-angular-compiler",
|
|
3
|
-
"version": "16.0
|
|
3
|
+
"version": "16.1.0-alpha.0",
|
|
4
4
|
"description": "A CJS bundled version of @angular/compiler",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
"package.json",
|
|
16
16
|
"README.md"
|
|
17
17
|
],
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "255cd39008e9e9a608704f8b62a08c9dc45f8e53"
|
|
19
19
|
}
|