@angular/core 12.2.0-next.3 → 12.2.2
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 +10 -9
- package/bundles/core.umd.js.map +1 -1
- package/core.d.ts +7 -4
- package/core.metadata.json +1 -1
- package/esm2015/src/application_module.js +5 -5
- package/esm2015/src/di/injector.js +1 -1
- package/esm2015/src/di/reflective_injector.js +1 -1
- package/esm2015/src/error_handler.js +3 -3
- package/esm2015/src/errors.js +2 -2
- package/esm2015/src/linker/component_factory_resolver.js +1 -1
- package/esm2015/src/metadata/di.js +1 -1
- package/esm2015/src/render3/instructions/shared.js +2 -1
- package/esm2015/src/version.js +1 -1
- package/fesm2015/core.js +10 -9
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/package.json +2 -2
- package/src/r3_symbols.d.ts +1 -1
- 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.2
|
|
3
3
|
* (c) 2010-2021 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -6814,7 +6814,7 @@
|
|
|
6814
6814
|
return error[ERROR_ORIGINAL_ERROR];
|
|
6815
6815
|
}
|
|
6816
6816
|
function getErrorLogger(error) {
|
|
6817
|
-
return error[ERROR_LOGGER] || defaultErrorLogger;
|
|
6817
|
+
return error && error[ERROR_LOGGER] || defaultErrorLogger;
|
|
6818
6818
|
}
|
|
6819
6819
|
function defaultErrorLogger(console) {
|
|
6820
6820
|
var values = [];
|
|
@@ -6883,11 +6883,11 @@
|
|
|
6883
6883
|
};
|
|
6884
6884
|
/** @internal */
|
|
6885
6885
|
ErrorHandler.prototype._findOriginalError = function (error) {
|
|
6886
|
-
var e = getOriginalError(error);
|
|
6886
|
+
var e = error && getOriginalError(error);
|
|
6887
6887
|
while (e && getOriginalError(e)) {
|
|
6888
6888
|
e = getOriginalError(e);
|
|
6889
6889
|
}
|
|
6890
|
-
return e;
|
|
6890
|
+
return e || null;
|
|
6891
6891
|
};
|
|
6892
6892
|
return ErrorHandler;
|
|
6893
6893
|
}());
|
|
@@ -9934,6 +9934,7 @@
|
|
|
9934
9934
|
// an error, mark the view as corrupted so we can try to recover.
|
|
9935
9935
|
if (tView.firstCreatePass) {
|
|
9936
9936
|
tView.incompleteFirstPass = true;
|
|
9937
|
+
tView.firstCreatePass = false;
|
|
9937
9938
|
}
|
|
9938
9939
|
throw error;
|
|
9939
9940
|
}
|
|
@@ -22032,7 +22033,7 @@
|
|
|
22032
22033
|
/**
|
|
22033
22034
|
* @publicApi
|
|
22034
22035
|
*/
|
|
22035
|
-
var VERSION = new Version('12.2.
|
|
22036
|
+
var VERSION = new Version('12.2.2');
|
|
22036
22037
|
|
|
22037
22038
|
/**
|
|
22038
22039
|
* @license
|
|
@@ -31477,16 +31478,16 @@
|
|
|
31477
31478
|
/**
|
|
31478
31479
|
* Work out the locale from the potential global properties.
|
|
31479
31480
|
*
|
|
31480
|
-
* * Closure Compiler: use `goog.
|
|
31481
|
+
* * Closure Compiler: use `goog.getLocale()`.
|
|
31481
31482
|
* * Ivy enabled: use `$localize.locale`
|
|
31482
31483
|
*/
|
|
31483
31484
|
function getGlobalLocale() {
|
|
31484
31485
|
if (typeof ngI18nClosureMode !== 'undefined' && ngI18nClosureMode &&
|
|
31485
|
-
typeof goog !== 'undefined' && goog.
|
|
31486
|
-
// * The default `goog.
|
|
31486
|
+
typeof goog !== 'undefined' && goog.getLocale() !== 'en') {
|
|
31487
|
+
// * The default `goog.getLocale()` value is `en`, while Angular used `en-US`.
|
|
31487
31488
|
// * In order to preserve backwards compatibility, we use Angular default value over
|
|
31488
31489
|
// Closure Compiler's one.
|
|
31489
|
-
return goog.
|
|
31490
|
+
return goog.getLocale();
|
|
31490
31491
|
}
|
|
31491
31492
|
else {
|
|
31492
31493
|
// KEEP `typeof $localize !== 'undefined' && $localize.locale` IN SYNC WITH THE LOCALIZE
|