@angular/language-service 12.2.7 → 12.2.8

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/bundles/ivy.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v12.2.7
2
+ * @license Angular v12.2.8
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  * License: MIT
5
5
  */
@@ -20073,7 +20073,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
20073
20073
  * Use of this source code is governed by an MIT-style license that can be
20074
20074
  * found in the LICENSE file at https://angular.io/license
20075
20075
  */
20076
- const VERSION$1 = new Version('12.2.7');
20076
+ const VERSION$1 = new Version('12.2.8');
20077
20077
 
20078
20078
  /**
20079
20079
  * @license
@@ -20712,7 +20712,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
20712
20712
  function compileDeclareClassMetadata(metadata) {
20713
20713
  const definitionMap = new DefinitionMap();
20714
20714
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
20715
- definitionMap.set('version', literal('12.2.7'));
20715
+ definitionMap.set('version', literal('12.2.8'));
20716
20716
  definitionMap.set('ngImport', importExpr(Identifiers.core));
20717
20717
  definitionMap.set('type', metadata.type);
20718
20718
  definitionMap.set('decorators', metadata.decorators);
@@ -20752,7 +20752,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
20752
20752
  function createDirectiveDefinitionMap(meta) {
20753
20753
  const definitionMap = new DefinitionMap();
20754
20754
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
20755
- definitionMap.set('version', literal('12.2.7'));
20755
+ definitionMap.set('version', literal('12.2.8'));
20756
20756
  // e.g. `type: MyDirective`
20757
20757
  definitionMap.set('type', meta.internalType);
20758
20758
  // e.g. `selector: 'some-dir'`
@@ -20969,7 +20969,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
20969
20969
  function compileDeclareFactoryFunction(meta) {
20970
20970
  const definitionMap = new DefinitionMap();
20971
20971
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
20972
- definitionMap.set('version', literal('12.2.7'));
20972
+ definitionMap.set('version', literal('12.2.8'));
20973
20973
  definitionMap.set('ngImport', importExpr(Identifiers.core));
20974
20974
  definitionMap.set('type', meta.internalType);
20975
20975
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -21011,7 +21011,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
21011
21011
  function createInjectableDefinitionMap(meta) {
21012
21012
  const definitionMap = new DefinitionMap();
21013
21013
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
21014
- definitionMap.set('version', literal('12.2.7'));
21014
+ definitionMap.set('version', literal('12.2.8'));
21015
21015
  definitionMap.set('ngImport', importExpr(Identifiers.core));
21016
21016
  definitionMap.set('type', meta.internalType);
21017
21017
  // Only generate providedIn property if it has a non-null value
@@ -21090,7 +21090,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
21090
21090
  function createInjectorDefinitionMap(meta) {
21091
21091
  const definitionMap = new DefinitionMap();
21092
21092
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
21093
- definitionMap.set('version', literal('12.2.7'));
21093
+ definitionMap.set('version', literal('12.2.8'));
21094
21094
  definitionMap.set('ngImport', importExpr(Identifiers.core));
21095
21095
  definitionMap.set('type', meta.internalType);
21096
21096
  definitionMap.set('providers', meta.providers);
@@ -21127,7 +21127,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
21127
21127
  function createNgModuleDefinitionMap(meta) {
21128
21128
  const definitionMap = new DefinitionMap();
21129
21129
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
21130
- definitionMap.set('version', literal('12.2.7'));
21130
+ definitionMap.set('version', literal('12.2.8'));
21131
21131
  definitionMap.set('ngImport', importExpr(Identifiers.core));
21132
21132
  definitionMap.set('type', meta.internalType);
21133
21133
  // We only generate the keys in the metadata if the arrays contain values.
@@ -21185,7 +21185,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
21185
21185
  function createPipeDefinitionMap(meta) {
21186
21186
  const definitionMap = new DefinitionMap();
21187
21187
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
21188
- definitionMap.set('version', literal('12.2.7'));
21188
+ definitionMap.set('version', literal('12.2.8'));
21189
21189
  definitionMap.set('ngImport', importExpr(Identifiers.core));
21190
21190
  // e.g. `type: MyPipe`
21191
21191
  definitionMap.set('type', meta.internalType);
@@ -21217,7 +21217,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'os', 'typescript', 'fs', '
21217
21217
  * Use of this source code is governed by an MIT-style license that can be
21218
21218
  * found in the LICENSE file at https://angular.io/license
21219
21219
  */
21220
- const VERSION$2 = new Version('12.2.7');
21220
+ const VERSION$2 = new Version('12.2.8');
21221
21221
 
21222
21222
  /**
21223
21223
  * @license
@@ -31566,7 +31566,7 @@ Either add the @Injectable() decorator to '${provider.node.name
31566
31566
  function maybeUpdateDecorator(dec, reflector, token) {
31567
31567
  const source = reflector.getImportOfIdentifier(dec);
31568
31568
  if (source === null || source.from !== '@angular/core') {
31569
- return;
31569
+ return false;
31570
31570
  }
31571
31571
  switch (source.name) {
31572
31572
  case 'Inject':
@@ -31583,16 +31583,23 @@ Either add the @Injectable() decorator to '${provider.node.name
31583
31583
  case 'Self':
31584
31584
  meta.self = true;
31585
31585
  break;
31586
+ default:
31587
+ return false;
31586
31588
  }
31589
+ return true;
31587
31590
  }
31588
31591
  if (ts$1.isArrayLiteralExpression(dep)) {
31589
31592
  dep.elements.forEach(el => {
31593
+ let isDecorator = false;
31590
31594
  if (ts$1.isIdentifier(el)) {
31591
- maybeUpdateDecorator(el, reflector);
31595
+ isDecorator = maybeUpdateDecorator(el, reflector);
31592
31596
  }
31593
31597
  else if (ts$1.isNewExpression(el) && ts$1.isIdentifier(el.expression)) {
31594
31598
  const token = el.arguments && el.arguments.length > 0 && el.arguments[0] || undefined;
31595
- maybeUpdateDecorator(el.expression, reflector, token);
31599
+ isDecorator = maybeUpdateDecorator(el.expression, reflector, token);
31600
+ }
31601
+ if (!isDecorator) {
31602
+ meta.token = new WrappedNodeExpr(el);
31596
31603
  }
31597
31604
  });
31598
31605
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v12.2.7
2
+ * @license Angular v12.2.8
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  * License: MIT
5
5
  */
@@ -21610,7 +21610,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
21610
21610
  * Use of this source code is governed by an MIT-style license that can be
21611
21611
  * found in the LICENSE file at https://angular.io/license
21612
21612
  */
21613
- const VERSION$1 = new Version('12.2.7');
21613
+ const VERSION$1 = new Version('12.2.8');
21614
21614
 
21615
21615
  /**
21616
21616
  * @license
@@ -36825,7 +36825,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
36825
36825
  /**
36826
36826
  * @publicApi
36827
36827
  */
36828
- const VERSION$2 = new Version$1('12.2.7');
36828
+ const VERSION$2 = new Version$1('12.2.8');
36829
36829
 
36830
36830
  /**
36831
36831
  * @license
@@ -40554,7 +40554,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
40554
40554
  * It is used for i18n extraction, by i18n pipes (DatePipe, I18nPluralPipe, CurrencyPipe,
40555
40555
  * DecimalPipe and PercentPipe) and by ICU expressions.
40556
40556
  *
40557
- * See the [i18n guide](guide/i18n#setting-up-locale) for more information.
40557
+ * See the [i18n guide](guide/i18n-common-locale-id) for more information.
40558
40558
  *
40559
40559
  * @usageNotes
40560
40560
  * ### Example
@@ -40577,7 +40577,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
40577
40577
  * CurrencyPipe when there is no currency code passed into it. This is only used by
40578
40578
  * CurrencyPipe and has no relation to locale currency. Defaults to USD if not configured.
40579
40579
  *
40580
- * See the [i18n guide](guide/i18n#setting-up-locale) for more information.
40580
+ * See the [i18n guide](guide/i18n-common-locale-id) for more information.
40581
40581
  *
40582
40582
  * <div class="alert is-helpful">
40583
40583
  *
@@ -40615,7 +40615,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
40615
40615
  * Use this token at bootstrap to provide the content of your translation file (`xtb`,
40616
40616
  * `xlf` or `xlf2`) when you want to translate your application in another language.
40617
40617
  *
40618
- * See the [i18n guide](guide/i18n#merge) for more information.
40618
+ * See the [i18n guide](guide/i18n-common-merge) for more information.
40619
40619
  *
40620
40620
  * @usageNotes
40621
40621
  * ### Example
@@ -40640,7 +40640,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
40640
40640
  * Provide this token at bootstrap to set the format of your {@link TRANSLATIONS}: `xtb`,
40641
40641
  * `xlf` or `xlf2`.
40642
40642
  *
40643
- * See the [i18n guide](guide/i18n#merge) for more information.
40643
+ * See the [i18n guide](guide/i18n-common-merge) for more information.
40644
40644
  *
40645
40645
  * @usageNotes
40646
40646
  * ### Example
@@ -40665,7 +40665,7 @@ define(['exports', 'typescript/lib/tsserverlibrary', 'typescript', 'path'], func
40665
40665
  * - Warning (default): show a warning in the console and/or shell.
40666
40666
  * - Ignore: do nothing.
40667
40667
  *
40668
- * See the [i18n guide](guide/i18n#missing-translation) for more information.
40668
+ * See the [i18n guide](guide/i18n-common-merge#report-missing-translations) for more information.
40669
40669
  *
40670
40670
  * @usageNotes
40671
40671
  * ### Example
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/language-service",
3
- "version": "12.2.7",
3
+ "version": "12.2.8",
4
4
  "description": "Angular - language services",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",