@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/esm2015/src/version.js
CHANGED
|
@@ -21,5 +21,5 @@ export class Version {
|
|
|
21
21
|
/**
|
|
22
22
|
* @publicApi
|
|
23
23
|
*/
|
|
24
|
-
export const VERSION = new Version('12.2.
|
|
24
|
+
export const VERSION = new Version('12.2.2');
|
|
25
25
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvcmUvc3JjL3ZlcnNpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUg7Ozs7R0FJRztBQUNILE1BQU0sT0FBTyxPQUFPO0lBS2xCLFlBQW1CLElBQVk7UUFBWixTQUFJLEdBQUosSUFBSSxDQUFRO1FBQzdCLElBQUksQ0FBQyxLQUFLLEdBQUcsSUFBSSxD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SB7XG4gICAgdGhpcy5tYWpvciA9IGZ1bGwuc3BsaXQoJy4nKVswXTtcbiAgICB0aGlzLm1pbm9yID0gZnVsbC5zcGxpdCgnLicpWzFdO1xuICAgIHRoaXMucGF0Y2ggPSBmdWxsLnNwbGl0KCcuJykuc2xpY2UoMikuam9pbignLicpO1xuICB9XG59XG5cbi8qKlxuICogQHB1YmxpY0FwaVxuICovXG5leHBvcnQgY29uc3QgVkVSU0lPTiA9IG5ldyBWZXJzaW9uKCcwLjAuMC1QTEFDRUhPTERFUicpO1xuIl19
|
package/fesm2015/core.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
|
*/
|
|
@@ -6473,7 +6473,7 @@ function getOriginalError(error) {
|
|
|
6473
6473
|
return error[ERROR_ORIGINAL_ERROR];
|
|
6474
6474
|
}
|
|
6475
6475
|
function getErrorLogger(error) {
|
|
6476
|
-
return error[ERROR_LOGGER] || defaultErrorLogger;
|
|
6476
|
+
return error && error[ERROR_LOGGER] || defaultErrorLogger;
|
|
6477
6477
|
}
|
|
6478
6478
|
function defaultErrorLogger(console, ...values) {
|
|
6479
6479
|
console.error(...values);
|
|
@@ -6538,11 +6538,11 @@ class ErrorHandler {
|
|
|
6538
6538
|
}
|
|
6539
6539
|
/** @internal */
|
|
6540
6540
|
_findOriginalError(error) {
|
|
6541
|
-
let e = getOriginalError(error);
|
|
6541
|
+
let e = error && getOriginalError(error);
|
|
6542
6542
|
while (e && getOriginalError(e)) {
|
|
6543
6543
|
e = getOriginalError(e);
|
|
6544
6544
|
}
|
|
6545
|
-
return e;
|
|
6545
|
+
return e || null;
|
|
6546
6546
|
}
|
|
6547
6547
|
}
|
|
6548
6548
|
|
|
@@ -9432,6 +9432,7 @@ function renderView(tView, lView, context) {
|
|
|
9432
9432
|
// an error, mark the view as corrupted so we can try to recover.
|
|
9433
9433
|
if (tView.firstCreatePass) {
|
|
9434
9434
|
tView.incompleteFirstPass = true;
|
|
9435
|
+
tView.firstCreatePass = false;
|
|
9435
9436
|
}
|
|
9436
9437
|
throw error;
|
|
9437
9438
|
}
|
|
@@ -21457,7 +21458,7 @@ class Version {
|
|
|
21457
21458
|
/**
|
|
21458
21459
|
* @publicApi
|
|
21459
21460
|
*/
|
|
21460
|
-
const VERSION = new Version('12.2.
|
|
21461
|
+
const VERSION = new Version('12.2.2');
|
|
21461
21462
|
|
|
21462
21463
|
/**
|
|
21463
21464
|
* @license
|
|
@@ -30626,16 +30627,16 @@ function _localeFactory(locale) {
|
|
|
30626
30627
|
/**
|
|
30627
30628
|
* Work out the locale from the potential global properties.
|
|
30628
30629
|
*
|
|
30629
|
-
* * Closure Compiler: use `goog.
|
|
30630
|
+
* * Closure Compiler: use `goog.getLocale()`.
|
|
30630
30631
|
* * Ivy enabled: use `$localize.locale`
|
|
30631
30632
|
*/
|
|
30632
30633
|
function getGlobalLocale() {
|
|
30633
30634
|
if (typeof ngI18nClosureMode !== 'undefined' && ngI18nClosureMode &&
|
|
30634
|
-
typeof goog !== 'undefined' && goog.
|
|
30635
|
-
// * The default `goog.
|
|
30635
|
+
typeof goog !== 'undefined' && goog.getLocale() !== 'en') {
|
|
30636
|
+
// * The default `goog.getLocale()` value is `en`, while Angular used `en-US`.
|
|
30636
30637
|
// * In order to preserve backwards compatibility, we use Angular default value over
|
|
30637
30638
|
// Closure Compiler's one.
|
|
30638
|
-
return goog.
|
|
30639
|
+
return goog.getLocale();
|
|
30639
30640
|
}
|
|
30640
30641
|
else {
|
|
30641
30642
|
// KEEP `typeof $localize !== 'undefined' && $localize.locale` IN SYNC WITH THE LOCALIZE
|