@angular/compiler 16.2.0-next.3 → 16.2.0-next.4

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.
@@ -29,7 +29,7 @@ export function compileDeclareInjectorFromMetadata(meta) {
29
29
  function createInjectorDefinitionMap(meta) {
30
30
  const definitionMap = new DefinitionMap();
31
31
  definitionMap.set('minVersion', o.literal(MINIMUM_PARTIAL_LINKER_VERSION));
32
- definitionMap.set('version', o.literal('16.2.0-next.3'));
32
+ definitionMap.set('version', o.literal('16.2.0-next.4'));
33
33
  definitionMap.set('ngImport', o.importExpr(R3.core));
34
34
  definitionMap.set('type', meta.type.value);
35
35
  definitionMap.set('providers', meta.providers);
@@ -33,7 +33,7 @@ function createNgModuleDefinitionMap(meta) {
33
33
  throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
34
34
  }
35
35
  definitionMap.set('minVersion', o.literal(MINIMUM_PARTIAL_LINKER_VERSION));
36
- definitionMap.set('version', o.literal('16.2.0-next.3'));
36
+ definitionMap.set('version', o.literal('16.2.0-next.4'));
37
37
  definitionMap.set('ngImport', o.importExpr(R3.core));
38
38
  definitionMap.set('type', meta.type.value);
39
39
  // We only generate the keys in the metadata if the arrays contain values.
@@ -32,7 +32,7 @@ export function compileDeclarePipeFromMetadata(meta) {
32
32
  export function createPipeDefinitionMap(meta) {
33
33
  const definitionMap = new DefinitionMap();
34
34
  definitionMap.set('minVersion', o.literal(MINIMUM_PARTIAL_LINKER_VERSION));
35
- definitionMap.set('version', o.literal('16.2.0-next.3'));
35
+ definitionMap.set('version', o.literal('16.2.0-next.4'));
36
36
  definitionMap.set('ngImport', o.importExpr(R3.core));
37
37
  // e.g. `type: MyPipe`
38
38
  definitionMap.set('type', meta.type.value);
@@ -11,5 +11,5 @@
11
11
  * Entry point for all public APIs of the compiler package.
12
12
  */
13
13
  import { Version } from './util';
14
- export const VERSION = new Version('16.2.0-next.3');
14
+ export const VERSION = new Version('16.2.0-next.4');
15
15
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbXBpbGVyL3NyYy92ZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUVIOzs7O0dBSUc7QUFFSCxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sUUFBUSxDQUFDO0FBRS9CLE1BQU0sQ0FBQyxNQUFNLE9BQU8sR0FBRyxJQUFJLE9BQU8sQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5cbi8qKlxuICogQG1vZHVsZVxuICogQGRlc2NyaXB0aW9uXG4gKiBFbnRyeSBwb2ludCBmb3IgYWxsIHB1YmxpYyBBUElzIG9mIHRoZSBjb21waWxlciBwYWNrYWdlLlxuICovXG5cbmltcG9ydCB7VmVyc2lvbn0gZnJvbSAnLi91dGlsJztcblxuZXhwb3J0IGNvbnN0IFZFUlNJT04gPSBuZXcgVmVyc2lvbignMC4wLjAtUExBQ0VIT0xERVInKTtcbiJdfQ==
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.2.0-next.3
2
+ * @license Angular v16.2.0-next.4
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -18510,10 +18510,10 @@ class _Tokenizer {
18510
18510
  this._beginToken(28 /* TokenType.BLOCK_PARAMETER */);
18511
18511
  const start = this._cursor.clone();
18512
18512
  let inQuote = null;
18513
+ let openBraces = 0;
18513
18514
  // Consume the parameter until the next semicolon or brace.
18514
18515
  // Note that we skip over semicolons/braces inside of strings.
18515
- while ((this._cursor.peek() !== $SEMICOLON && this._cursor.peek() !== $RBRACE &&
18516
- this._cursor.peek() !== $EOF) ||
18516
+ while ((this._cursor.peek() !== $SEMICOLON && this._cursor.peek() !== $EOF) ||
18517
18517
  inQuote !== null) {
18518
18518
  const char = this._cursor.peek();
18519
18519
  // Skip to the next character if it was escaped.
@@ -18526,6 +18526,17 @@ class _Tokenizer {
18526
18526
  else if (inQuote === null && isQuote(char)) {
18527
18527
  inQuote = char;
18528
18528
  }
18529
+ else if (char === $LBRACE && inQuote === null) {
18530
+ openBraces++;
18531
+ }
18532
+ else if (char === $RBRACE && inQuote === null) {
18533
+ if (openBraces === 0) {
18534
+ break;
18535
+ }
18536
+ else if (openBraces > 0) {
18537
+ openBraces--;
18538
+ }
18539
+ }
18529
18540
  this._cursor.advance();
18530
18541
  }
18531
18542
  this._endToken([this._cursor.getChars(start)]);
@@ -25535,7 +25546,7 @@ function publishFacade(global) {
25535
25546
  * @description
25536
25547
  * Entry point for all public APIs of the compiler package.
25537
25548
  */
25538
- const VERSION = new Version('16.2.0-next.3');
25549
+ const VERSION = new Version('16.2.0-next.4');
25539
25550
 
25540
25551
  class CompilerConfig {
25541
25552
  constructor({ defaultEncapsulation = ViewEncapsulation.Emulated, useJit = true, missingTranslation = null, preserveWhitespaces, strictInjectionParameters } = {}) {
@@ -27544,7 +27555,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$6 = '12.0.0';
27544
27555
  function compileDeclareClassMetadata(metadata) {
27545
27556
  const definitionMap = new DefinitionMap();
27546
27557
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
27547
- definitionMap.set('version', literal('16.2.0-next.3'));
27558
+ definitionMap.set('version', literal('16.2.0-next.4'));
27548
27559
  definitionMap.set('ngImport', importExpr(Identifiers.core));
27549
27560
  definitionMap.set('type', metadata.type);
27550
27561
  definitionMap.set('decorators', metadata.decorators);
@@ -27647,7 +27658,7 @@ function compileDeclareDirectiveFromMetadata(meta) {
27647
27658
  function createDirectiveDefinitionMap(meta) {
27648
27659
  const definitionMap = new DefinitionMap();
27649
27660
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
27650
- definitionMap.set('version', literal('16.2.0-next.3'));
27661
+ definitionMap.set('version', literal('16.2.0-next.4'));
27651
27662
  // e.g. `type: MyDirective`
27652
27663
  definitionMap.set('type', meta.type.value);
27653
27664
  if (meta.isStandalone) {
@@ -27875,7 +27886,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
27875
27886
  function compileDeclareFactoryFunction(meta) {
27876
27887
  const definitionMap = new DefinitionMap();
27877
27888
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
27878
- definitionMap.set('version', literal('16.2.0-next.3'));
27889
+ definitionMap.set('version', literal('16.2.0-next.4'));
27879
27890
  definitionMap.set('ngImport', importExpr(Identifiers.core));
27880
27891
  definitionMap.set('type', meta.type.value);
27881
27892
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -27910,7 +27921,7 @@ function compileDeclareInjectableFromMetadata(meta) {
27910
27921
  function createInjectableDefinitionMap(meta) {
27911
27922
  const definitionMap = new DefinitionMap();
27912
27923
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
27913
- definitionMap.set('version', literal('16.2.0-next.3'));
27924
+ definitionMap.set('version', literal('16.2.0-next.4'));
27914
27925
  definitionMap.set('ngImport', importExpr(Identifiers.core));
27915
27926
  definitionMap.set('type', meta.type.value);
27916
27927
  // Only generate providedIn property if it has a non-null value
@@ -27961,7 +27972,7 @@ function compileDeclareInjectorFromMetadata(meta) {
27961
27972
  function createInjectorDefinitionMap(meta) {
27962
27973
  const definitionMap = new DefinitionMap();
27963
27974
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
27964
- definitionMap.set('version', literal('16.2.0-next.3'));
27975
+ definitionMap.set('version', literal('16.2.0-next.4'));
27965
27976
  definitionMap.set('ngImport', importExpr(Identifiers.core));
27966
27977
  definitionMap.set('type', meta.type.value);
27967
27978
  definitionMap.set('providers', meta.providers);
@@ -27994,7 +28005,7 @@ function createNgModuleDefinitionMap(meta) {
27994
28005
  throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
27995
28006
  }
27996
28007
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
27997
- definitionMap.set('version', literal('16.2.0-next.3'));
28008
+ definitionMap.set('version', literal('16.2.0-next.4'));
27998
28009
  definitionMap.set('ngImport', importExpr(Identifiers.core));
27999
28010
  definitionMap.set('type', meta.type.value);
28000
28011
  // We only generate the keys in the metadata if the arrays contain values.
@@ -28045,7 +28056,7 @@ function compileDeclarePipeFromMetadata(meta) {
28045
28056
  function createPipeDefinitionMap(meta) {
28046
28057
  const definitionMap = new DefinitionMap();
28047
28058
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
28048
- definitionMap.set('version', literal('16.2.0-next.3'));
28059
+ definitionMap.set('version', literal('16.2.0-next.4'));
28049
28060
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28050
28061
  // e.g. `type: MyPipe`
28051
28062
  definitionMap.set('type', meta.type.value);