@angular/compiler 15.2.4 → 15.2.5

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 v15.2.4
2
+ * @license Angular v15.2.5
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 v15.2.4
2
+ * @license Angular v15.2.5
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -8423,7 +8423,6 @@ function parse(value) {
8423
8423
  let valueStart = 0;
8424
8424
  let propStart = 0;
8425
8425
  let currentProp = null;
8426
- let valueHasQuotes = false;
8427
8426
  while (i < value.length) {
8428
8427
  const token = value.charCodeAt(i++);
8429
8428
  switch (token) {
@@ -8436,7 +8435,6 @@ function parse(value) {
8436
8435
  case 39 /* Char.QuoteSingle */:
8437
8436
  // valueStart needs to be there since prop values don't
8438
8437
  // have quotes in CSS
8439
- valueHasQuotes = valueHasQuotes || valueStart > 0;
8440
8438
  if (quote === 0 /* Char.QuoteNone */) {
8441
8439
  quote = 39 /* Char.QuoteSingle */;
8442
8440
  }
@@ -8446,7 +8444,6 @@ function parse(value) {
8446
8444
  break;
8447
8445
  case 34 /* Char.QuoteDouble */:
8448
8446
  // same logic as above
8449
- valueHasQuotes = valueHasQuotes || valueStart > 0;
8450
8447
  if (quote === 0 /* Char.QuoteNone */) {
8451
8448
  quote = 34 /* Char.QuoteDouble */;
8452
8449
  }
@@ -8463,34 +8460,20 @@ function parse(value) {
8463
8460
  case 59 /* Char.Semicolon */:
8464
8461
  if (currentProp && valueStart > 0 && parenDepth === 0 && quote === 0 /* Char.QuoteNone */) {
8465
8462
  const styleVal = value.substring(valueStart, i - 1).trim();
8466
- styles.push(currentProp, valueHasQuotes ? stripUnnecessaryQuotes(styleVal) : styleVal);
8463
+ styles.push(currentProp, styleVal);
8467
8464
  propStart = i;
8468
8465
  valueStart = 0;
8469
8466
  currentProp = null;
8470
- valueHasQuotes = false;
8471
8467
  }
8472
8468
  break;
8473
8469
  }
8474
8470
  }
8475
8471
  if (currentProp && valueStart) {
8476
8472
  const styleVal = value.slice(valueStart).trim();
8477
- styles.push(currentProp, valueHasQuotes ? stripUnnecessaryQuotes(styleVal) : styleVal);
8473
+ styles.push(currentProp, styleVal);
8478
8474
  }
8479
8475
  return styles;
8480
8476
  }
8481
- function stripUnnecessaryQuotes(value) {
8482
- const qS = value.charCodeAt(0);
8483
- const qE = value.charCodeAt(value.length - 1);
8484
- if (qS == qE && (qS == 39 /* Char.QuoteSingle */ || qS == 34 /* Char.QuoteDouble */)) {
8485
- const tempValue = value.substring(1, value.length - 1);
8486
- // special case to avoid using a multi-quoted string that was just chomped
8487
- // (e.g. `font-family: "Verdana", "sans-serif"`)
8488
- if (tempValue.indexOf('\'') == -1 && tempValue.indexOf('"') == -1) {
8489
- value = tempValue;
8490
- }
8491
- }
8492
- return value;
8493
- }
8494
8477
  function hyphenate(value) {
8495
8478
  return value
8496
8479
  .replace(/[a-z][A-Z]/g, v => {
@@ -10264,7 +10247,8 @@ class _ParseAST {
10264
10247
  const sourceSpan = this.sourceSpan(keyStart);
10265
10248
  values.push(new PropertyRead(span, sourceSpan, sourceSpan, new ImplicitReceiver(span, sourceSpan), key));
10266
10249
  }
10267
- } while (this.consumeOptionalCharacter($COMMA));
10250
+ } while (this.consumeOptionalCharacter($COMMA) &&
10251
+ !this.next.isCharacter($RBRACE));
10268
10252
  this.rbracesExpected--;
10269
10253
  this.expectCharacter($RBRACE);
10270
10254
  }
@@ -19887,7 +19871,7 @@ function publishFacade(global) {
19887
19871
  * @description
19888
19872
  * Entry point for all public APIs of the compiler package.
19889
19873
  */
19890
- const VERSION = new Version('15.2.4');
19874
+ const VERSION = new Version('15.2.5');
19891
19875
 
19892
19876
  class CompilerConfig {
19893
19877
  constructor({ defaultEncapsulation = ViewEncapsulation.Emulated, useJit = true, missingTranslation = null, preserveWhitespaces, strictInjectionParameters } = {}) {
@@ -21811,7 +21795,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$6 = '12.0.0';
21811
21795
  function compileDeclareClassMetadata(metadata) {
21812
21796
  const definitionMap = new DefinitionMap();
21813
21797
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
21814
- definitionMap.set('version', literal('15.2.4'));
21798
+ definitionMap.set('version', literal('15.2.5'));
21815
21799
  definitionMap.set('ngImport', importExpr(Identifiers.core));
21816
21800
  definitionMap.set('type', metadata.type);
21817
21801
  definitionMap.set('decorators', metadata.decorators);
@@ -21914,7 +21898,7 @@ function compileDeclareDirectiveFromMetadata(meta) {
21914
21898
  function createDirectiveDefinitionMap(meta) {
21915
21899
  const definitionMap = new DefinitionMap();
21916
21900
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
21917
- definitionMap.set('version', literal('15.2.4'));
21901
+ definitionMap.set('version', literal('15.2.5'));
21918
21902
  // e.g. `type: MyDirective`
21919
21903
  definitionMap.set('type', meta.internalType);
21920
21904
  if (meta.isStandalone) {
@@ -22139,7 +22123,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
22139
22123
  function compileDeclareFactoryFunction(meta) {
22140
22124
  const definitionMap = new DefinitionMap();
22141
22125
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
22142
- definitionMap.set('version', literal('15.2.4'));
22126
+ definitionMap.set('version', literal('15.2.5'));
22143
22127
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22144
22128
  definitionMap.set('type', meta.internalType);
22145
22129
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -22174,7 +22158,7 @@ function compileDeclareInjectableFromMetadata(meta) {
22174
22158
  function createInjectableDefinitionMap(meta) {
22175
22159
  const definitionMap = new DefinitionMap();
22176
22160
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
22177
- definitionMap.set('version', literal('15.2.4'));
22161
+ definitionMap.set('version', literal('15.2.5'));
22178
22162
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22179
22163
  definitionMap.set('type', meta.internalType);
22180
22164
  // Only generate providedIn property if it has a non-null value
@@ -22225,7 +22209,7 @@ function compileDeclareInjectorFromMetadata(meta) {
22225
22209
  function createInjectorDefinitionMap(meta) {
22226
22210
  const definitionMap = new DefinitionMap();
22227
22211
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
22228
- definitionMap.set('version', literal('15.2.4'));
22212
+ definitionMap.set('version', literal('15.2.5'));
22229
22213
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22230
22214
  definitionMap.set('type', meta.internalType);
22231
22215
  definitionMap.set('providers', meta.providers);
@@ -22255,7 +22239,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
22255
22239
  function createNgModuleDefinitionMap(meta) {
22256
22240
  const definitionMap = new DefinitionMap();
22257
22241
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
22258
- definitionMap.set('version', literal('15.2.4'));
22242
+ definitionMap.set('version', literal('15.2.5'));
22259
22243
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22260
22244
  definitionMap.set('type', meta.internalType);
22261
22245
  // We only generate the keys in the metadata if the arrays contain values.
@@ -22306,7 +22290,7 @@ function compileDeclarePipeFromMetadata(meta) {
22306
22290
  function createPipeDefinitionMap(meta) {
22307
22291
  const definitionMap = new DefinitionMap();
22308
22292
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
22309
- definitionMap.set('version', literal('15.2.4'));
22293
+ definitionMap.set('version', literal('15.2.5'));
22310
22294
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22311
22295
  // e.g. `type: MyPipe`
22312
22296
  definitionMap.set('type', meta.internalType);