@angular-devkit/core 10.0.4 → 10.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-devkit/core",
3
- "version": "10.0.4",
3
+ "version": "10.0.8",
4
4
  "description": "Angular DevKit - Core Utility Library",
5
5
  "main": "src/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -20,11 +20,9 @@ class SyncDelegateHost {
20
20
  let completed = false;
21
21
  let result = undefined;
22
22
  let errorResult = undefined;
23
- observable.subscribe({
24
- next(x) { result = x; },
25
- error(err) { errorResult = err; },
26
- complete() { completed = true; },
27
- });
23
+ // Perf note: this is not using an observer object to avoid a performance penalty in RxJS.
24
+ // See https://github.com/ReactiveX/rxjs/pull/5646 for details.
25
+ observable.subscribe((x) => result = x, (err) => errorResult = err, () => completed = true);
28
26
  if (errorResult !== undefined) {
29
27
  throw errorResult;
30
28
  }