@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.
- package/esm2020/src/di/r3_injector.mjs +7 -1
- package/esm2020/src/errors.mjs +1 -1
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/logger.mjs +3 -3
- package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
- package/esm2020/testing/src/test_bed_common.mjs +1 -1
- package/fesm2015/core.mjs +8 -2
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +8 -2
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +8 -2
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +8 -2
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +2 -1
- package/package.json +1 -1
- package/testing/index.d.ts +2 -2
package/fesm2020/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.0.
|
|
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
|
}
|
|
@@ -21358,7 +21364,7 @@ class Version {
|
|
|
21358
21364
|
/**
|
|
21359
21365
|
* @publicApi
|
|
21360
21366
|
*/
|
|
21361
|
-
const VERSION = new Version('14.0.
|
|
21367
|
+
const VERSION = new Version('14.0.7');
|
|
21362
21368
|
|
|
21363
21369
|
/**
|
|
21364
21370
|
* @license
|