@angular/core 16.1.7 → 16.1.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/esm2022/src/di/create_injector.mjs +1 -3
- package/esm2022/src/metadata/directives.mjs +1 -1
- package/esm2022/src/render3/component_ref.mjs +1 -8
- package/esm2022/src/util/coercion.mjs +11 -1
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +16 -14
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +6 -14
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +22 -8
- package/package.json +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/guard-and-resolve-interfaces/bundle.js +13 -13
- package/schematics/migrations/remove-module-id/bundle.js +14 -14
- package/schematics/ng-generate/standalone-migration/bundle.js +358 -357
- package/schematics/ng-generate/standalone-migration/bundle.js.map +2 -2
- package/testing/index.d.ts +1 -1
package/fesm2022/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.1.
|
|
2
|
+
* @license Angular v16.1.8
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -9448,12 +9448,12 @@ const CIRCULAR = {};
|
|
|
9448
9448
|
/**
|
|
9449
9449
|
* A lazily initialized NullInjector.
|
|
9450
9450
|
*/
|
|
9451
|
-
let NULL_INJECTOR
|
|
9451
|
+
let NULL_INJECTOR = undefined;
|
|
9452
9452
|
function getNullInjector() {
|
|
9453
|
-
if (NULL_INJECTOR
|
|
9454
|
-
NULL_INJECTOR
|
|
9453
|
+
if (NULL_INJECTOR === undefined) {
|
|
9454
|
+
NULL_INJECTOR = new NullInjector();
|
|
9455
9455
|
}
|
|
9456
|
-
return NULL_INJECTOR
|
|
9456
|
+
return NULL_INJECTOR;
|
|
9457
9457
|
}
|
|
9458
9458
|
/**
|
|
9459
9459
|
* An `Injector` that's part of the environment injector hierarchy, which exists outside of the
|
|
@@ -10493,7 +10493,7 @@ class Version {
|
|
|
10493
10493
|
/**
|
|
10494
10494
|
* @publicApi
|
|
10495
10495
|
*/
|
|
10496
|
-
const VERSION = new Version('16.1.
|
|
10496
|
+
const VERSION = new Version('16.1.8');
|
|
10497
10497
|
|
|
10498
10498
|
// This default value is when checking the hierarchy for a token.
|
|
10499
10499
|
//
|
|
@@ -11018,8 +11018,6 @@ const Injectable = makeDecorator('Injectable', undefined, undefined, undefined,
|
|
|
11018
11018
|
|
|
11019
11019
|
/**
|
|
11020
11020
|
* Create a new `Injector` which is configured using a `defType` of `InjectorType<any>`s.
|
|
11021
|
-
*
|
|
11022
|
-
* @publicApi
|
|
11023
11021
|
*/
|
|
11024
11022
|
function createInjector(defType, parent = null, additionalProviders = null, name) {
|
|
11025
11023
|
const injector = createInjectorWithoutInjectorInstances(defType, parent, additionalProviders, name);
|
|
@@ -13528,12 +13526,6 @@ class ComponentRef extends ComponentRef$1 {
|
|
|
13528
13526
|
this.hostView.onDestroy(callback);
|
|
13529
13527
|
}
|
|
13530
13528
|
}
|
|
13531
|
-
// TODO: A hack to not pull in the NullInjector from @angular/core.
|
|
13532
|
-
const NULL_INJECTOR = {
|
|
13533
|
-
get: (token, notFoundValue) => {
|
|
13534
|
-
throwProviderNotFoundError(token, 'NullInjector');
|
|
13535
|
-
}
|
|
13536
|
-
};
|
|
13537
13529
|
/** Creates a TNode that can be used to instantiate a root component. */
|
|
13538
13530
|
function createRootComponentTNode(lView, rNode) {
|
|
13539
13531
|
const tView = lView[TVIEW];
|