@angular/compiler 14.1.2 → 14.1.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.1.2
2
+ * @license Angular v14.1.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.2.0-next.1
2
+ * @license Angular v14.1.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -9955,10 +9955,18 @@ class _ParseAST {
9955
9955
  } // read all semicolons
9956
9956
  }
9957
9957
  else if (this.index < this.tokens.length) {
9958
+ const errorIndex = this.index;
9958
9959
  this.error(`Unexpected token '${this.next}'`);
9960
+ // The `error` call above will skip ahead to the next recovery point in an attempt to
9961
+ // recover part of the expression, but that might be the token we started from which will
9962
+ // lead to an infinite loop. If that's the case, break the loop assuming that we can't
9963
+ // parse further.
9964
+ if (this.index === errorIndex) {
9965
+ break;
9966
+ }
9959
9967
  }
9960
9968
  }
9961
- if (exprs.length == 0) {
9969
+ if (exprs.length === 0) {
9962
9970
  // We have no expressions so create an empty expression that spans the entire input length
9963
9971
  const artificialStart = this.offset;
9964
9972
  const artificialEnd = this.offset + this.input.length;
@@ -19896,7 +19904,7 @@ function publishFacade(global) {
19896
19904
  * Use of this source code is governed by an MIT-style license that can be
19897
19905
  * found in the LICENSE file at https://angular.io/license
19898
19906
  */
19899
- const VERSION = new Version('14.1.2');
19907
+ const VERSION = new Version('14.1.3');
19900
19908
 
19901
19909
  /**
19902
19910
  * @license
@@ -21929,7 +21937,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$6 = '12.0.0';
21929
21937
  function compileDeclareClassMetadata(metadata) {
21930
21938
  const definitionMap = new DefinitionMap();
21931
21939
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
21932
- definitionMap.set('version', literal('14.1.2'));
21940
+ definitionMap.set('version', literal('14.1.3'));
21933
21941
  definitionMap.set('ngImport', importExpr(Identifiers.core));
21934
21942
  definitionMap.set('type', metadata.type);
21935
21943
  definitionMap.set('decorators', metadata.decorators);
@@ -22046,7 +22054,7 @@ function compileDeclareDirectiveFromMetadata(meta) {
22046
22054
  function createDirectiveDefinitionMap(meta) {
22047
22055
  const definitionMap = new DefinitionMap();
22048
22056
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
22049
- definitionMap.set('version', literal('14.1.2'));
22057
+ definitionMap.set('version', literal('14.1.3'));
22050
22058
  // e.g. `type: MyDirective`
22051
22059
  definitionMap.set('type', meta.internalType);
22052
22060
  if (meta.isStandalone) {
@@ -22260,7 +22268,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
22260
22268
  function compileDeclareFactoryFunction(meta) {
22261
22269
  const definitionMap = new DefinitionMap();
22262
22270
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
22263
- definitionMap.set('version', literal('14.1.2'));
22271
+ definitionMap.set('version', literal('14.1.3'));
22264
22272
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22265
22273
  definitionMap.set('type', meta.internalType);
22266
22274
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -22302,7 +22310,7 @@ function compileDeclareInjectableFromMetadata(meta) {
22302
22310
  function createInjectableDefinitionMap(meta) {
22303
22311
  const definitionMap = new DefinitionMap();
22304
22312
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
22305
- definitionMap.set('version', literal('14.1.2'));
22313
+ definitionMap.set('version', literal('14.1.3'));
22306
22314
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22307
22315
  definitionMap.set('type', meta.internalType);
22308
22316
  // Only generate providedIn property if it has a non-null value
@@ -22360,7 +22368,7 @@ function compileDeclareInjectorFromMetadata(meta) {
22360
22368
  function createInjectorDefinitionMap(meta) {
22361
22369
  const definitionMap = new DefinitionMap();
22362
22370
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
22363
- definitionMap.set('version', literal('14.1.2'));
22371
+ definitionMap.set('version', literal('14.1.3'));
22364
22372
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22365
22373
  definitionMap.set('type', meta.internalType);
22366
22374
  definitionMap.set('providers', meta.providers);
@@ -22397,7 +22405,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
22397
22405
  function createNgModuleDefinitionMap(meta) {
22398
22406
  const definitionMap = new DefinitionMap();
22399
22407
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
22400
- definitionMap.set('version', literal('14.1.2'));
22408
+ definitionMap.set('version', literal('14.1.3'));
22401
22409
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22402
22410
  definitionMap.set('type', meta.internalType);
22403
22411
  // We only generate the keys in the metadata if the arrays contain values.
@@ -22455,7 +22463,7 @@ function compileDeclarePipeFromMetadata(meta) {
22455
22463
  function createPipeDefinitionMap(meta) {
22456
22464
  const definitionMap = new DefinitionMap();
22457
22465
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
22458
- definitionMap.set('version', literal('14.1.2'));
22466
+ definitionMap.set('version', literal('14.1.3'));
22459
22467
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22460
22468
  // e.g. `type: MyPipe`
22461
22469
  definitionMap.set('type', meta.internalType);