@angular/language-service 8.2.0 → 8.2.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v8.2.0
2
+ * @license Angular v8.2.4
3
3
  * (c) 2010-2019 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -18111,7 +18111,7 @@ define(['exports', 'path', 'typescript', 'fs'], function (exports, path, ts, fs)
18111
18111
  * Use of this source code is governed by an MIT-style license that can be
18112
18112
  * found in the LICENSE file at https://angular.io/license
18113
18113
  */
18114
- var VERSION$1 = new Version('8.2.0');
18114
+ var VERSION$1 = new Version('8.2.4');
18115
18115
 
18116
18116
  /**
18117
18117
  * @license
@@ -38627,7 +38627,7 @@ define(['exports', 'path', 'typescript', 'fs'], function (exports, path, ts, fs)
38627
38627
  /**
38628
38628
  * @publicApi
38629
38629
  */
38630
- var VERSION$2 = new Version$1('8.2.0');
38630
+ var VERSION$2 = new Version$1('8.2.4');
38631
38631
 
38632
38632
  /**
38633
38633
  * @license
@@ -41655,6 +41655,10 @@ define(['exports', 'path', 'typescript', 'fs'], function (exports, path, ts, fs)
41655
41655
  * Use of this source code is governed by an MIT-style license that can be
41656
41656
  * found in the LICENSE file at https://angular.io/license
41657
41657
  */
41658
+ /**
41659
+ * The locale id that the application is using by default (for translations and ICU expressions).
41660
+ */
41661
+ var DEFAULT_LOCALE_ID = 'en-US';
41658
41662
 
41659
41663
  /**
41660
41664
  * @license
@@ -41668,7 +41672,6 @@ define(['exports', 'path', 'typescript', 'fs'], function (exports, path, ts, fs)
41668
41672
  * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine
41669
41673
  * but is now defined as a global value.
41670
41674
  */
41671
- var DEFAULT_LOCALE_ID = 'en-US';
41672
41675
  var LOCALE_ID = DEFAULT_LOCALE_ID;
41673
41676
  /**
41674
41677
  * Sets the locale id that will be used for translations and ICU expressions.
@@ -41678,7 +41681,10 @@ define(['exports', 'path', 'typescript', 'fs'], function (exports, path, ts, fs)
41678
41681
  * @param localeId
41679
41682
  */
41680
41683
  function setLocaleId(localeId) {
41681
- LOCALE_ID = localeId.toLowerCase().replace(/_/g, '-');
41684
+ assertDefined(localeId, "Expected localeId to be defined");
41685
+ if (typeof localeId === 'string') {
41686
+ LOCALE_ID = localeId.toLowerCase().replace(/_/g, '-');
41687
+ }
41682
41688
  }
41683
41689
 
41684
41690
  /**
@@ -43458,12 +43464,16 @@ ${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}` : '';
43458
43464
  * found in the LICENSE file at https://angular.io/license
43459
43465
  */
43460
43466
  /**
43461
- * Use in directives and components to emit custom events synchronously
43462
- * or asynchronously, and register handlers for those events by subscribing
43463
- * to an instance.
43467
+ * Use in components with the `@Output` directive to emit custom events
43468
+ * synchronously or asynchronously, and register handlers for those events
43469
+ * by subscribing to an instance.
43464
43470
  *
43465
43471
  * @usageNotes
43466
43472
  *
43473
+ * Extends
43474
+ * [RxJS `Subject`](https://rxjs.dev/api/index/class/Subject)
43475
+ * for Angular by adding the `emit()` method.
43476
+ *
43467
43477
  * In the following example, a component defines two output properties
43468
43478
  * that create event emitters. When the title is clicked, the emitter
43469
43479
  * emits an open or close event to toggle the current visibility state.
@@ -43501,6 +43511,7 @@ ${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}` : '';
43501
43511
  * <zippy (open)="onOpen($event)" (close)="onClose($event)"></zippy>
43502
43512
  * ```
43503
43513
  *
43514
+ * @see [Observables in Angular](guide/observables-in-angular)
43504
43515
  * @publicApi
43505
43516
  */
43506
43517
  var EventEmitter = /** @class */ (function (_super) {
@@ -44281,6 +44292,16 @@ ${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}` : '';
44281
44292
  MissingTranslationStrategy[MissingTranslationStrategy["Ignore"] = 2] = "Ignore";
44282
44293
  })(MissingTranslationStrategy$1 || (MissingTranslationStrategy$1 = {}));
44283
44294
 
44295
+ /**
44296
+ * @license
44297
+ * Copyright Google Inc. All Rights Reserved.
44298
+ *
44299
+ * Use of this source code is governed by an MIT-style license that can be
44300
+ * found in the LICENSE file at https://angular.io/license
44301
+ */
44302
+ var SWITCH_IVY_ENABLED__PRE_R3__ = false;
44303
+ var ivyEnabled = SWITCH_IVY_ENABLED__PRE_R3__;
44304
+
44284
44305
  /**
44285
44306
  * @license
44286
44307
  * Copyright Google Inc. All Rights Reserved.
@@ -45149,9 +45170,6 @@ ${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}` : '';
45149
45170
  if (!exceptionHandler) {
45150
45171
  throw new Error('No ErrorHandler. Is platform module (BrowserModule) included?');
45151
45172
  }
45152
- // If the `LOCALE_ID` provider is defined at bootstrap we set the value for runtime i18n (ivy)
45153
- var localeId = moduleRef.injector.get(LOCALE_ID$1, DEFAULT_LOCALE_ID);
45154
- setLocaleId(localeId);
45155
45173
  moduleRef.onDestroy(function () { return remove(_this._modules, moduleRef); });
45156
45174
  ngZone.runOutsideAngular(function () { return ngZone.onError.subscribe({ next: function (error) { exceptionHandler.handleError(error); } }); });
45157
45175
  return _callAndReportToErrorHandler(exceptionHandler, ngZone, function () {
@@ -45624,16 +45642,6 @@ ${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}` : '';
45624
45642
  * found in the LICENSE file at https://angular.io/license
45625
45643
  */
45626
45644
 
45627
- /**
45628
- * @license
45629
- * Copyright Google Inc. All Rights Reserved.
45630
- *
45631
- * Use of this source code is governed by an MIT-style license that can be
45632
- * found in the LICENSE file at https://angular.io/license
45633
- */
45634
- var SWITCH_IVY_ENABLED__PRE_R3__ = false;
45635
- var ivyEnabled = SWITCH_IVY_ENABLED__PRE_R3__;
45636
-
45637
45645
  /**
45638
45646
  * @license
45639
45647
  * Copyright Google Inc. All Rights Reserved.
@@ -46538,15 +46546,21 @@ ${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}` : '';
46538
46546
  }
46539
46547
  function _localeFactory(locale) {
46540
46548
  if (locale) {
46549
+ if (ivyEnabled) {
46550
+ setLocaleId(locale);
46551
+ }
46541
46552
  return locale;
46542
46553
  }
46543
46554
  // Use `goog.LOCALE` as default value for `LOCALE_ID` token for Closure Compiler.
46544
46555
  // Note: default `goog.LOCALE` value is `en`, when Angular used `en-US`. In order to preserve
46545
46556
  // backwards compatibility, we use Angular default value over Closure Compiler's one.
46546
46557
  if (ngI18nClosureMode && typeof goog !== 'undefined' && goog.LOCALE !== 'en') {
46558
+ if (ivyEnabled) {
46559
+ setLocaleId(goog.LOCALE);
46560
+ }
46547
46561
  return goog.LOCALE;
46548
46562
  }
46549
- return 'en-US';
46563
+ return DEFAULT_LOCALE_ID;
46550
46564
  }
46551
46565
  /**
46552
46566
  * A built-in [dependency injection token](guide/glossary#di-token)
@@ -49471,7 +49485,7 @@ ${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}` : '';
49471
49485
  * Use of this source code is governed by an MIT-style license that can be
49472
49486
  * found in the LICENSE file at https://angular.io/license
49473
49487
  */
49474
- var VERSION$3 = new Version$1('8.2.0');
49488
+ var VERSION$3 = new Version$1('8.2.4');
49475
49489
 
49476
49490
  /**
49477
49491
  * @license