@angular/core 14.0.6 → 14.0.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.0.6
2
+ * @license Angular v14.0.7
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -9485,6 +9485,12 @@ class R3Injector extends EnvironmentInjector {
9485
9485
  const previousInjectImplementation = setInjectImplementation(undefined);
9486
9486
  try {
9487
9487
  const initializers = this.get(ENVIRONMENT_INITIALIZER.multi, EMPTY_ARRAY, InjectFlags.Self);
9488
+ if (ngDevMode && !Array.isArray(initializers)) {
9489
+ throw new RuntimeError(209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `ENVIRONMENT_INITIALIZER` token value ' +
9490
+ `(expected an array, but got ${typeof initializers}). ` +
9491
+ 'Please check that the `ENVIRONMENT_INITIALIZER` token is configured as a ' +
9492
+ '`multi: true` provider.');
9493
+ }
9488
9494
  for (const initializer of initializers) {
9489
9495
  initializer();
9490
9496
  }
@@ -21360,7 +21366,7 @@ class Version {
21360
21366
  /**
21361
21367
  * @publicApi
21362
21368
  */
21363
- const VERSION = new Version('14.0.6');
21369
+ const VERSION = new Version('14.0.7');
21364
21370
 
21365
21371
  /**
21366
21372
  * @license