@angular/core 11.1.1 → 11.1.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-testing.umd.min.js +1 -1
- package/bundles/core-testing.umd.min.js.map +1 -1
- package/bundles/core.umd.js +17 -16
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +3 -3
- package/bundles/core.umd.min.js.map +1 -1
- package/core.d.ts +15 -7
- package/core.metadata.json +1 -1
- package/esm2015/src/event_emitter.js +15 -15
- package/esm2015/src/render3/error_code.js +2 -1
- package/esm2015/src/version.js +1 -1
- package/fesm2015/core.js +17 -16
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/package.json +1 -1
- 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 v11.1.
|
|
2
|
+
* @license Angular v11.1.2
|
|
3
3
|
* (c) 2010-2020 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1591,6 +1591,7 @@
|
|
|
1591
1591
|
"201" /* PROVIDER_NOT_FOUND */,
|
|
1592
1592
|
"300" /* MULTIPLE_COMPONENTS_MATCH */,
|
|
1593
1593
|
"301" /* EXPORT_NOT_FOUND */,
|
|
1594
|
+
"302" /* PIPE_NOT_FOUND */,
|
|
1594
1595
|
]);
|
|
1595
1596
|
/* tslint:enable:no-toplevel-property-access */
|
|
1596
1597
|
/** Called to format a runtime error */
|
|
@@ -21932,7 +21933,7 @@
|
|
|
21932
21933
|
/**
|
|
21933
21934
|
* @publicApi
|
|
21934
21935
|
*/
|
|
21935
|
-
var VERSION = new Version('11.1.
|
|
21936
|
+
var VERSION = new Version('11.1.2');
|
|
21936
21937
|
|
|
21937
21938
|
/**
|
|
21938
21939
|
* @license
|
|
@@ -26545,36 +26546,36 @@
|
|
|
26545
26546
|
EventEmitter_.prototype.emit = function (value) {
|
|
26546
26547
|
_super.prototype.next.call(this, value);
|
|
26547
26548
|
};
|
|
26548
|
-
EventEmitter_.prototype.subscribe = function (
|
|
26549
|
+
EventEmitter_.prototype.subscribe = function (observerOrNext, error, complete) {
|
|
26549
26550
|
var schedulerFn;
|
|
26550
26551
|
var errorFn = function (err) { return null; };
|
|
26551
26552
|
var completeFn = function () { return null; };
|
|
26552
|
-
if (
|
|
26553
|
+
if (observerOrNext && typeof observerOrNext === 'object') {
|
|
26553
26554
|
schedulerFn = this.__isAsync ? function (value) {
|
|
26554
|
-
setTimeout(function () { return
|
|
26555
|
+
setTimeout(function () { return observerOrNext.next(value); });
|
|
26555
26556
|
} : function (value) {
|
|
26556
|
-
|
|
26557
|
+
observerOrNext.next(value);
|
|
26557
26558
|
};
|
|
26558
|
-
if (
|
|
26559
|
+
if (observerOrNext.error) {
|
|
26559
26560
|
errorFn = this.__isAsync ? function (err) {
|
|
26560
|
-
setTimeout(function () { return
|
|
26561
|
+
setTimeout(function () { return observerOrNext.error(err); });
|
|
26561
26562
|
} : function (err) {
|
|
26562
|
-
|
|
26563
|
+
observerOrNext.error(err);
|
|
26563
26564
|
};
|
|
26564
26565
|
}
|
|
26565
|
-
if (
|
|
26566
|
+
if (observerOrNext.complete) {
|
|
26566
26567
|
completeFn = this.__isAsync ? function () {
|
|
26567
|
-
setTimeout(function () { return
|
|
26568
|
+
setTimeout(function () { return observerOrNext.complete(); });
|
|
26568
26569
|
} : function () {
|
|
26569
|
-
|
|
26570
|
+
observerOrNext.complete();
|
|
26570
26571
|
};
|
|
26571
26572
|
}
|
|
26572
26573
|
}
|
|
26573
26574
|
else {
|
|
26574
26575
|
schedulerFn = this.__isAsync ? function (value) {
|
|
26575
|
-
setTimeout(function () { return
|
|
26576
|
+
setTimeout(function () { return observerOrNext(value); });
|
|
26576
26577
|
} : function (value) {
|
|
26577
|
-
|
|
26578
|
+
observerOrNext(value);
|
|
26578
26579
|
};
|
|
26579
26580
|
if (error) {
|
|
26580
26581
|
errorFn = this.__isAsync ? function (err) {
|
|
@@ -26592,8 +26593,8 @@
|
|
|
26592
26593
|
}
|
|
26593
26594
|
}
|
|
26594
26595
|
var sink = _super.prototype.subscribe.call(this, schedulerFn, errorFn, completeFn);
|
|
26595
|
-
if (
|
|
26596
|
-
|
|
26596
|
+
if (observerOrNext instanceof rxjs.Subscription) {
|
|
26597
|
+
observerOrNext.add(sink);
|
|
26597
26598
|
}
|
|
26598
26599
|
return sink;
|
|
26599
26600
|
};
|