@angular-eslint/bundled-angular-compiler 15.2.2-alpha.3 → 15.2.2-alpha.7

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.
Files changed (2) hide show
  1. package/dist/index.js +13 -30
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.1.4
2
+ * @license Angular v15.2.5
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -8314,7 +8314,6 @@ function parse(value) {
8314
8314
  let valueStart = 0;
8315
8315
  let propStart = 0;
8316
8316
  let currentProp = null;
8317
- let valueHasQuotes = false;
8318
8317
  while (i < value.length) {
8319
8318
  const token = value.charCodeAt(i++);
8320
8319
  switch (token) {
@@ -8327,7 +8326,6 @@ function parse(value) {
8327
8326
  case 39 /* Char.QuoteSingle */:
8328
8327
  // valueStart needs to be there since prop values don't
8329
8328
  // have quotes in CSS
8330
- valueHasQuotes = valueHasQuotes || valueStart > 0;
8331
8329
  if (quote === 0 /* Char.QuoteNone */) {
8332
8330
  quote = 39 /* Char.QuoteSingle */;
8333
8331
  }
@@ -8337,7 +8335,6 @@ function parse(value) {
8337
8335
  break;
8338
8336
  case 34 /* Char.QuoteDouble */:
8339
8337
  // same logic as above
8340
- valueHasQuotes = valueHasQuotes || valueStart > 0;
8341
8338
  if (quote === 0 /* Char.QuoteNone */) {
8342
8339
  quote = 34 /* Char.QuoteDouble */;
8343
8340
  }
@@ -8354,34 +8351,20 @@ function parse(value) {
8354
8351
  case 59 /* Char.Semicolon */:
8355
8352
  if (currentProp && valueStart > 0 && parenDepth === 0 && quote === 0 /* Char.QuoteNone */) {
8356
8353
  const styleVal = value.substring(valueStart, i - 1).trim();
8357
- styles.push(currentProp, valueHasQuotes ? stripUnnecessaryQuotes(styleVal) : styleVal);
8354
+ styles.push(currentProp, styleVal);
8358
8355
  propStart = i;
8359
8356
  valueStart = 0;
8360
8357
  currentProp = null;
8361
- valueHasQuotes = false;
8362
8358
  }
8363
8359
  break;
8364
8360
  }
8365
8361
  }
8366
8362
  if (currentProp && valueStart) {
8367
8363
  const styleVal = value.slice(valueStart).trim();
8368
- styles.push(currentProp, valueHasQuotes ? stripUnnecessaryQuotes(styleVal) : styleVal);
8364
+ styles.push(currentProp, styleVal);
8369
8365
  }
8370
8366
  return styles;
8371
8367
  }
8372
- function stripUnnecessaryQuotes(value) {
8373
- const qS = value.charCodeAt(0);
8374
- const qE = value.charCodeAt(value.length - 1);
8375
- if (qS == qE && (qS == 39 /* Char.QuoteSingle */ || qS == 34 /* Char.QuoteDouble */)) {
8376
- const tempValue = value.substring(1, value.length - 1);
8377
- // special case to avoid using a multi-quoted string that was just chomped
8378
- // (e.g. `font-family: "Verdana", "sans-serif"`)
8379
- if (tempValue.indexOf('\'') == -1 && tempValue.indexOf('"') == -1) {
8380
- value = tempValue;
8381
- }
8382
- }
8383
- return value;
8384
- }
8385
8368
  function hyphenate(value) {
8386
8369
  return value
8387
8370
  .replace(/[a-z][A-Z]/g, v => {
@@ -10154,7 +10137,8 @@ class _ParseAST {
10154
10137
  const sourceSpan = this.sourceSpan(keyStart);
10155
10138
  values.push(new PropertyRead(span, sourceSpan, sourceSpan, new ImplicitReceiver(span, sourceSpan), key));
10156
10139
  }
10157
- } while (this.consumeOptionalCharacter($COMMA));
10140
+ } while (this.consumeOptionalCharacter($COMMA) &&
10141
+ !this.next.isCharacter($RBRACE));
10158
10142
  this.rbracesExpected--;
10159
10143
  this.expectCharacter($RBRACE);
10160
10144
  }
@@ -19725,7 +19709,7 @@ function publishFacade(global) {
19725
19709
  * @description
19726
19710
  * Entry point for all public APIs of the compiler package.
19727
19711
  */
19728
- const VERSION = new Version('15.1.4');
19712
+ const VERSION = new Version('15.2.5');
19729
19713
 
19730
19714
  class CompilerConfig {
19731
19715
  constructor({ defaultEncapsulation = exports.ViewEncapsulation.Emulated, useJit = true, missingTranslation = null, preserveWhitespaces, strictInjectionParameters } = {}) {
@@ -21416,7 +21400,6 @@ class TemplateBinder extends RecursiveAstVisitor {
21416
21400
  this.scope = scope;
21417
21401
  this.template = template;
21418
21402
  this.level = level;
21419
- this.pipesUsed = [];
21420
21403
  // Save a bit of processing time by constructing this closure in advance.
21421
21404
  this.visitNode = (node) => node.visit(this);
21422
21405
  }
@@ -21652,7 +21635,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$6 = '12.0.0';
21652
21635
  function compileDeclareClassMetadata(metadata) {
21653
21636
  const definitionMap = new DefinitionMap();
21654
21637
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
21655
- definitionMap.set('version', literal('15.1.4'));
21638
+ definitionMap.set('version', literal('15.2.5'));
21656
21639
  definitionMap.set('ngImport', importExpr(Identifiers.core));
21657
21640
  definitionMap.set('type', metadata.type);
21658
21641
  definitionMap.set('decorators', metadata.decorators);
@@ -21756,7 +21739,7 @@ function createDirectiveDefinitionMap(meta) {
21756
21739
  var _a;
21757
21740
  const definitionMap = new DefinitionMap();
21758
21741
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
21759
- definitionMap.set('version', literal('15.1.4'));
21742
+ definitionMap.set('version', literal('15.2.5'));
21760
21743
  // e.g. `type: MyDirective`
21761
21744
  definitionMap.set('type', meta.internalType);
21762
21745
  if (meta.isStandalone) {
@@ -21978,7 +21961,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
21978
21961
  function compileDeclareFactoryFunction(meta) {
21979
21962
  const definitionMap = new DefinitionMap();
21980
21963
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
21981
- definitionMap.set('version', literal('15.1.4'));
21964
+ definitionMap.set('version', literal('15.2.5'));
21982
21965
  definitionMap.set('ngImport', importExpr(Identifiers.core));
21983
21966
  definitionMap.set('type', meta.internalType);
21984
21967
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -22013,7 +21996,7 @@ function compileDeclareInjectableFromMetadata(meta) {
22013
21996
  function createInjectableDefinitionMap(meta) {
22014
21997
  const definitionMap = new DefinitionMap();
22015
21998
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
22016
- definitionMap.set('version', literal('15.1.4'));
21999
+ definitionMap.set('version', literal('15.2.5'));
22017
22000
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22018
22001
  definitionMap.set('type', meta.internalType);
22019
22002
  // Only generate providedIn property if it has a non-null value
@@ -22064,7 +22047,7 @@ function compileDeclareInjectorFromMetadata(meta) {
22064
22047
  function createInjectorDefinitionMap(meta) {
22065
22048
  const definitionMap = new DefinitionMap();
22066
22049
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
22067
- definitionMap.set('version', literal('15.1.4'));
22050
+ definitionMap.set('version', literal('15.2.5'));
22068
22051
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22069
22052
  definitionMap.set('type', meta.internalType);
22070
22053
  definitionMap.set('providers', meta.providers);
@@ -22094,7 +22077,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
22094
22077
  function createNgModuleDefinitionMap(meta) {
22095
22078
  const definitionMap = new DefinitionMap();
22096
22079
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
22097
- definitionMap.set('version', literal('15.1.4'));
22080
+ definitionMap.set('version', literal('15.2.5'));
22098
22081
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22099
22082
  definitionMap.set('type', meta.internalType);
22100
22083
  // We only generate the keys in the metadata if the arrays contain values.
@@ -22145,7 +22128,7 @@ function compileDeclarePipeFromMetadata(meta) {
22145
22128
  function createPipeDefinitionMap(meta) {
22146
22129
  const definitionMap = new DefinitionMap();
22147
22130
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
22148
- definitionMap.set('version', literal('15.1.4'));
22131
+ definitionMap.set('version', literal('15.2.5'));
22149
22132
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22150
22133
  // e.g. `type: MyPipe`
22151
22134
  definitionMap.set('type', meta.internalType);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/bundled-angular-compiler",
3
- "version": "15.2.2-alpha.3+5f729bc",
3
+ "version": "15.2.2-alpha.7+cef0169",
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": "5f729bc75ca345b98deb208b6a790705b9b8c538"
18
+ "gitHead": "cef01699afc1cfb958e9d405646dbf1a851efcf3"
19
19
  }