@angular/core 12.2.9 → 12.2.13
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/core-testing.umd.js +1 -1
- package/bundles/core.umd.js +23 -11
- package/bundles/core.umd.js.map +1 -1
- package/core.d.ts +12 -5
- package/core.metadata.json +1 -1
- package/esm2015/index.js +6 -5
- package/esm2015/src/di/injection_token.js +12 -5
- package/esm2015/src/render3/di.js +3 -3
- package/esm2015/src/render3/error_code.js +2 -5
- package/esm2015/src/render3/error_details_base_url.js +16 -0
- package/esm2015/src/version.js +1 -1
- package/fesm2015/core.js +30 -11
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/package.json +1 -1
- package/src/r3_symbols.d.ts +12 -5
- package/testing/testing.d.ts +1 -1
- package/testing.d.ts +1 -1
package/bundles/core.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v12.2.
|
|
2
|
+
* @license Angular v12.2.13
|
|
3
3
|
* (c) 2010-2021 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -457,10 +457,15 @@
|
|
|
457
457
|
* Use of this source code is governed by an MIT-style license that can be
|
|
458
458
|
* found in the LICENSE file at https://angular.io/license
|
|
459
459
|
*/
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
460
|
+
/**
|
|
461
|
+
* Base URL for the error details page.
|
|
462
|
+
*
|
|
463
|
+
* Keep the files below in sync:
|
|
464
|
+
* - packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.ts
|
|
465
|
+
* - packages/core/src/render3/error_details_base_url.ts
|
|
466
|
+
*/
|
|
463
467
|
var ERROR_DETAILS_PAGE_BASE_URL = 'https://angular.io/errors';
|
|
468
|
+
|
|
464
469
|
var RuntimeError = /** @class */ (function (_super) {
|
|
465
470
|
__extends(RuntimeError, _super);
|
|
466
471
|
function RuntimeError(code, message) {
|
|
@@ -3918,8 +3923,8 @@
|
|
|
3918
3923
|
this._tNode = _tNode;
|
|
3919
3924
|
this._lView = _lView;
|
|
3920
3925
|
}
|
|
3921
|
-
NodeInjector.prototype.get = function (token, notFoundValue) {
|
|
3922
|
-
return getOrCreateInjectable(this._tNode, this._lView, token,
|
|
3926
|
+
NodeInjector.prototype.get = function (token, notFoundValue, flags) {
|
|
3927
|
+
return getOrCreateInjectable(this._tNode, this._lView, token, flags, notFoundValue);
|
|
3923
3928
|
};
|
|
3924
3929
|
return NodeInjector;
|
|
3925
3930
|
}());
|
|
@@ -4144,11 +4149,11 @@
|
|
|
4144
4149
|
* parameterized type.
|
|
4145
4150
|
*
|
|
4146
4151
|
* `InjectionToken` is parameterized on `T` which is the type of object which will be returned by
|
|
4147
|
-
* the `Injector`. This provides additional level of type safety.
|
|
4152
|
+
* the `Injector`. This provides an additional level of type safety.
|
|
4148
4153
|
*
|
|
4149
4154
|
* ```
|
|
4150
4155
|
* interface MyInterface {...}
|
|
4151
|
-
*
|
|
4156
|
+
* const myInterface = injector.get(new InjectionToken<MyInterface>('SomeToken'));
|
|
4152
4157
|
* // myInterface is inferred to be MyInterface.
|
|
4153
4158
|
* ```
|
|
4154
4159
|
*
|
|
@@ -4156,14 +4161,15 @@
|
|
|
4156
4161
|
* (possibly by creating) a default value of the parameterized type `T`. This sets up the
|
|
4157
4162
|
* `InjectionToken` using this factory as a provider as if it was defined explicitly in the
|
|
4158
4163
|
* application's root injector. If the factory function, which takes zero arguments, needs to inject
|
|
4159
|
-
* dependencies, it can do so using the `inject` function.
|
|
4164
|
+
* dependencies, it can do so using the `inject` function.
|
|
4165
|
+
* As you can see in the Tree-shakable InjectionToken example below.
|
|
4160
4166
|
*
|
|
4161
4167
|
* Additionally, if a `factory` is specified you can also specify the `providedIn` option, which
|
|
4162
4168
|
* overrides the above behavior and marks the token as belonging to a particular `@NgModule`. As
|
|
4163
4169
|
* mentioned above, `'root'` is the default value for `providedIn`.
|
|
4164
4170
|
*
|
|
4165
4171
|
* @usageNotes
|
|
4166
|
-
* ### Basic
|
|
4172
|
+
* ### Basic Examples
|
|
4167
4173
|
*
|
|
4168
4174
|
* ### Plain InjectionToken
|
|
4169
4175
|
*
|
|
@@ -4177,6 +4183,12 @@
|
|
|
4177
4183
|
* @publicApi
|
|
4178
4184
|
*/
|
|
4179
4185
|
var InjectionToken = /** @class */ (function () {
|
|
4186
|
+
/**
|
|
4187
|
+
* @param _desc Description for the token,
|
|
4188
|
+
* used only for debugging purposes,
|
|
4189
|
+
* it should but does not need to be unique
|
|
4190
|
+
* @param options Options for the token's usage, as described above
|
|
4191
|
+
*/
|
|
4180
4192
|
function InjectionToken(_desc, options) {
|
|
4181
4193
|
this._desc = _desc;
|
|
4182
4194
|
/** @internal */
|
|
@@ -22034,7 +22046,7 @@
|
|
|
22034
22046
|
/**
|
|
22035
22047
|
* @publicApi
|
|
22036
22048
|
*/
|
|
22037
|
-
var VERSION = new Version('12.2.
|
|
22049
|
+
var VERSION = new Version('12.2.13');
|
|
22038
22050
|
|
|
22039
22051
|
/**
|
|
22040
22052
|
* @license
|