@elice/material-shared-utils 1.260305.0 → 1.260430.0

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.
Files changed (41) hide show
  1. package/cjs/material-config/MaterialConfigContext.js +2 -2
  2. package/cjs/material-config/MaterialConfigProvider.d.ts +3 -1
  3. package/es/material-config/MaterialConfigContext.js +1 -1
  4. package/es/material-config/MaterialConfigProvider.d.ts +3 -1
  5. package/package.json +22 -14
  6. package/cjs/node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js +0 -39
  7. package/cjs/node_modules/rxjs/dist/esm5/internal/Observable.js +0 -105
  8. package/cjs/node_modules/rxjs/dist/esm5/internal/Subject.js +0 -165
  9. package/cjs/node_modules/rxjs/dist/esm5/internal/Subscriber.js +0 -157
  10. package/cjs/node_modules/rxjs/dist/esm5/internal/Subscription.js +0 -148
  11. package/cjs/node_modules/rxjs/dist/esm5/internal/config.js +0 -6
  12. package/cjs/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +0 -19
  13. package/cjs/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +0 -5
  14. package/cjs/node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js +0 -13
  15. package/cjs/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +0 -16
  16. package/cjs/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +0 -10
  17. package/cjs/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +0 -14
  18. package/cjs/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +0 -9
  19. package/cjs/node_modules/rxjs/dist/esm5/internal/util/identity.js +0 -7
  20. package/cjs/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +0 -7
  21. package/cjs/node_modules/rxjs/dist/esm5/internal/util/noop.js +0 -5
  22. package/cjs/node_modules/rxjs/dist/esm5/internal/util/pipe.js +0 -17
  23. package/cjs/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +0 -13
  24. package/es/node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js +0 -37
  25. package/es/node_modules/rxjs/dist/esm5/internal/Observable.js +0 -103
  26. package/es/node_modules/rxjs/dist/esm5/internal/Subject.js +0 -162
  27. package/es/node_modules/rxjs/dist/esm5/internal/Subscriber.js +0 -153
  28. package/es/node_modules/rxjs/dist/esm5/internal/Subscription.js +0 -144
  29. package/es/node_modules/rxjs/dist/esm5/internal/config.js +0 -4
  30. package/es/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +0 -17
  31. package/es/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +0 -3
  32. package/es/node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js +0 -11
  33. package/es/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +0 -14
  34. package/es/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +0 -8
  35. package/es/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +0 -12
  36. package/es/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +0 -7
  37. package/es/node_modules/rxjs/dist/esm5/internal/util/identity.js +0 -5
  38. package/es/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +0 -5
  39. package/es/node_modules/rxjs/dist/esm5/internal/util/noop.js +0 -3
  40. package/es/node_modules/rxjs/dist/esm5/internal/util/pipe.js +0 -15
  41. package/es/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +0 -11
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
- var BehaviorSubject = require('../node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js');
4
+ var rxjs = require('rxjs');
5
5
 
6
6
  var MaterialConfigContext = React.createContext(null);
7
- var sessionKeySubject$ = new BehaviorSubject.BehaviorSubject(null);
7
+ var sessionKeySubject$ = new rxjs.BehaviorSubject(null);
8
8
 
9
9
  exports.MaterialConfigContext = MaterialConfigContext;
10
10
  exports.sessionKeySubject$ = sessionKeySubject$;
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { MaterialConfig } from './MaterialConfigContext';
3
- type MaterialConfigProviderProps = Omit<MaterialConfig, 'sessionKey'>;
3
+ interface MaterialConfigProviderProps extends Omit<MaterialConfig, 'sessionKey'> {
4
+ children?: React.ReactNode;
5
+ }
4
6
  declare const MaterialConfigProvider: React.FC<MaterialConfigProviderProps>;
5
7
  export default MaterialConfigProvider;
@@ -1,5 +1,5 @@
1
1
  import { createContext } from 'react';
2
- import { BehaviorSubject } from '../node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js';
2
+ import { BehaviorSubject } from 'rxjs';
3
3
 
4
4
  var MaterialConfigContext = createContext(null);
5
5
  var sessionKeySubject$ = new BehaviorSubject(null);
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { MaterialConfig } from './MaterialConfigContext';
3
- type MaterialConfigProviderProps = Omit<MaterialConfig, 'sessionKey'>;
3
+ interface MaterialConfigProviderProps extends Omit<MaterialConfig, 'sessionKey'> {
4
+ children?: React.ReactNode;
5
+ }
4
6
  declare const MaterialConfigProvider: React.FC<MaterialConfigProviderProps>;
5
7
  export default MaterialConfigProvider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-shared-utils",
3
- "version": "1.260305.0",
3
+ "version": "1.260430.0",
4
4
  "description": "Shared typings for elice material projects",
5
5
  "repository": "https://git.elicer.io/elice/frontend/library/elice-material",
6
6
  "license": "UNLICENSED",
@@ -14,36 +14,44 @@
14
14
  "README.md"
15
15
  ],
16
16
  "sideEffects": false,
17
- "scripts": {
18
- "start": "run-s watch",
19
- "prebuild": "run-s clean",
20
- "build": "cross-env NODE_ENV=production rollup -c ../../rollup.config.ts --configPlugin typescript -f es -f cjs",
21
- "watch": "rollup -c ../../rollup.config.ts --configPlugin typescript -f es -f cjs -w",
22
- "lint": "eslint --ext .ts,.tsx ./src --max-warnings=0",
23
- "clean": "del-cli \"es/*\" \"cjs/*\" \"dist/*\""
24
- },
25
17
  "peerDependencies": {
26
18
  "@elice/api-client": "^1",
27
19
  "@elice/blocks": "^1",
28
- "@elice/material-shared-types": "1.260305.0",
20
+ "@elice/types": "^1",
29
21
  "@tanstack/react-query": "^4",
30
22
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
31
23
  "react-use": "^17.0.0",
32
- "recoil": "^0"
24
+ "@elice/material-shared-types": "1.260430.0"
33
25
  },
34
26
  "dependencies": {
35
27
  "lodash-es": "^4.17.21",
28
+ "recoil": "0.7.7",
29
+ "rxjs": "^7.8.2",
36
30
  "tslib": "^2.6.1"
37
31
  },
38
32
  "devDependencies": {
39
33
  "@elice/api-client": "^1.260212.0",
40
34
  "@elice/blocks": "1.241007.0",
41
- "@elice/material-shared-types": "1.260305.0",
35
+ "@elice/rollup-config": "^1.260406.0",
42
36
  "@elice/types": "^1.251229.0",
43
37
  "@tanstack/react-query": "^4.29.3",
44
38
  "@types/lodash-es": "^4.17.6",
45
39
  "@types/react": "~17.0.9",
40
+ "cross-env": "^7.0.3",
41
+ "del-cli": "^3.0.1",
42
+ "eslint": "~9.39.0",
43
+ "npm-run-all": "^4.1.5",
46
44
  "react-use": "^17.2.4",
47
- "recoil": "~0.7.3"
45
+ "rollup": "^4.0.0",
46
+ "typescript": "~5.9.3",
47
+ "@elice/material-shared-types": "1.260430.0"
48
+ },
49
+ "scripts": {
50
+ "start": "run-s watch",
51
+ "prebuild": "run-s clean",
52
+ "build": "cross-env NODE_ENV=production rollup -c ../../rollup.config.ts --configPlugin typescript -f es -f cjs",
53
+ "watch": "rollup -c ../../rollup.config.ts --configPlugin typescript -f es -f cjs -w",
54
+ "lint": "eslint --ext .ts,.tsx ./src --max-warnings=0",
55
+ "clean": "del-cli \"es/*\" \"cjs/*\" \"dist/*\""
48
56
  }
49
- }
57
+ }
@@ -1,39 +0,0 @@
1
- 'use strict';
2
-
3
- var tslib = require('tslib');
4
- var Subject = require('./Subject.js');
5
-
6
- var BehaviorSubject = (function (_super) {
7
- tslib.__extends(BehaviorSubject, _super);
8
- function BehaviorSubject(_value) {
9
- var _this = _super.call(this) || this;
10
- _this._value = _value;
11
- return _this;
12
- }
13
- Object.defineProperty(BehaviorSubject.prototype, "value", {
14
- get: function () {
15
- return this.getValue();
16
- },
17
- enumerable: false,
18
- configurable: true
19
- });
20
- BehaviorSubject.prototype._subscribe = function (subscriber) {
21
- var subscription = _super.prototype._subscribe.call(this, subscriber);
22
- !subscription.closed && subscriber.next(this._value);
23
- return subscription;
24
- };
25
- BehaviorSubject.prototype.getValue = function () {
26
- var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, _value = _a._value;
27
- if (hasError) {
28
- throw thrownError;
29
- }
30
- this._throwIfClosed();
31
- return _value;
32
- };
33
- BehaviorSubject.prototype.next = function (value) {
34
- _super.prototype.next.call(this, (this._value = value));
35
- };
36
- return BehaviorSubject;
37
- }(Subject.Subject));
38
-
39
- exports.BehaviorSubject = BehaviorSubject;
@@ -1,105 +0,0 @@
1
- 'use strict';
2
-
3
- var Subscriber = require('./Subscriber.js');
4
- var Subscription = require('./Subscription.js');
5
- var observable = require('./symbol/observable.js');
6
- var pipe = require('./util/pipe.js');
7
- var config = require('./config.js');
8
- var isFunction = require('./util/isFunction.js');
9
- var errorContext = require('./util/errorContext.js');
10
-
11
- var Observable = (function () {
12
- function Observable(subscribe) {
13
- if (subscribe) {
14
- this._subscribe = subscribe;
15
- }
16
- }
17
- Observable.prototype.lift = function (operator) {
18
- var observable = new Observable();
19
- observable.source = this;
20
- observable.operator = operator;
21
- return observable;
22
- };
23
- Observable.prototype.subscribe = function (observerOrNext, error, complete) {
24
- var _this = this;
25
- var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new Subscriber.SafeSubscriber(observerOrNext, error, complete);
26
- errorContext.errorContext(function () {
27
- var _a = _this, operator = _a.operator, source = _a.source;
28
- subscriber.add(operator
29
- ?
30
- operator.call(subscriber, source)
31
- : source
32
- ?
33
- _this._subscribe(subscriber)
34
- :
35
- _this._trySubscribe(subscriber));
36
- });
37
- return subscriber;
38
- };
39
- Observable.prototype._trySubscribe = function (sink) {
40
- try {
41
- return this._subscribe(sink);
42
- }
43
- catch (err) {
44
- sink.error(err);
45
- }
46
- };
47
- Observable.prototype.forEach = function (next, promiseCtor) {
48
- var _this = this;
49
- promiseCtor = getPromiseCtor(promiseCtor);
50
- return new promiseCtor(function (resolve, reject) {
51
- var subscriber = new Subscriber.SafeSubscriber({
52
- next: function (value) {
53
- try {
54
- next(value);
55
- }
56
- catch (err) {
57
- reject(err);
58
- subscriber.unsubscribe();
59
- }
60
- },
61
- error: reject,
62
- complete: resolve,
63
- });
64
- _this.subscribe(subscriber);
65
- });
66
- };
67
- Observable.prototype._subscribe = function (subscriber) {
68
- var _a;
69
- return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);
70
- };
71
- Observable.prototype[observable.observable] = function () {
72
- return this;
73
- };
74
- Observable.prototype.pipe = function () {
75
- var operations = [];
76
- for (var _i = 0; _i < arguments.length; _i++) {
77
- operations[_i] = arguments[_i];
78
- }
79
- return pipe.pipeFromArray(operations)(this);
80
- };
81
- Observable.prototype.toPromise = function (promiseCtor) {
82
- var _this = this;
83
- promiseCtor = getPromiseCtor(promiseCtor);
84
- return new promiseCtor(function (resolve, reject) {
85
- var value;
86
- _this.subscribe(function (x) { return (value = x); }, function (err) { return reject(err); }, function () { return resolve(value); });
87
- });
88
- };
89
- Observable.create = function (subscribe) {
90
- return new Observable(subscribe);
91
- };
92
- return Observable;
93
- }());
94
- function getPromiseCtor(promiseCtor) {
95
- var _a;
96
- return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.config.Promise) !== null && _a !== void 0 ? _a : Promise;
97
- }
98
- function isObserver(value) {
99
- return value && isFunction.isFunction(value.next) && isFunction.isFunction(value.error) && isFunction.isFunction(value.complete);
100
- }
101
- function isSubscriber(value) {
102
- return (value && value instanceof Subscriber.Subscriber) || (isObserver(value) && Subscription.isSubscription(value));
103
- }
104
-
105
- exports.Observable = Observable;
@@ -1,165 +0,0 @@
1
- 'use strict';
2
-
3
- var tslib = require('tslib');
4
- var Observable = require('./Observable.js');
5
- var Subscription = require('./Subscription.js');
6
- var ObjectUnsubscribedError = require('./util/ObjectUnsubscribedError.js');
7
- var arrRemove = require('./util/arrRemove.js');
8
- var errorContext = require('./util/errorContext.js');
9
-
10
- var Subject = (function (_super) {
11
- tslib.__extends(Subject, _super);
12
- function Subject() {
13
- var _this = _super.call(this) || this;
14
- _this.closed = false;
15
- _this.currentObservers = null;
16
- _this.observers = [];
17
- _this.isStopped = false;
18
- _this.hasError = false;
19
- _this.thrownError = null;
20
- return _this;
21
- }
22
- Subject.prototype.lift = function (operator) {
23
- var subject = new AnonymousSubject(this, this);
24
- subject.operator = operator;
25
- return subject;
26
- };
27
- Subject.prototype._throwIfClosed = function () {
28
- if (this.closed) {
29
- throw new ObjectUnsubscribedError.ObjectUnsubscribedError();
30
- }
31
- };
32
- Subject.prototype.next = function (value) {
33
- var _this = this;
34
- errorContext.errorContext(function () {
35
- var e_1, _a;
36
- _this._throwIfClosed();
37
- if (!_this.isStopped) {
38
- if (!_this.currentObservers) {
39
- _this.currentObservers = Array.from(_this.observers);
40
- }
41
- try {
42
- for (var _b = tslib.__values(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) {
43
- var observer = _c.value;
44
- observer.next(value);
45
- }
46
- }
47
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
48
- finally {
49
- try {
50
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
51
- }
52
- finally { if (e_1) throw e_1.error; }
53
- }
54
- }
55
- });
56
- };
57
- Subject.prototype.error = function (err) {
58
- var _this = this;
59
- errorContext.errorContext(function () {
60
- _this._throwIfClosed();
61
- if (!_this.isStopped) {
62
- _this.hasError = _this.isStopped = true;
63
- _this.thrownError = err;
64
- var observers = _this.observers;
65
- while (observers.length) {
66
- observers.shift().error(err);
67
- }
68
- }
69
- });
70
- };
71
- Subject.prototype.complete = function () {
72
- var _this = this;
73
- errorContext.errorContext(function () {
74
- _this._throwIfClosed();
75
- if (!_this.isStopped) {
76
- _this.isStopped = true;
77
- var observers = _this.observers;
78
- while (observers.length) {
79
- observers.shift().complete();
80
- }
81
- }
82
- });
83
- };
84
- Subject.prototype.unsubscribe = function () {
85
- this.isStopped = this.closed = true;
86
- this.observers = this.currentObservers = null;
87
- };
88
- Object.defineProperty(Subject.prototype, "observed", {
89
- get: function () {
90
- var _a;
91
- return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;
92
- },
93
- enumerable: false,
94
- configurable: true
95
- });
96
- Subject.prototype._trySubscribe = function (subscriber) {
97
- this._throwIfClosed();
98
- return _super.prototype._trySubscribe.call(this, subscriber);
99
- };
100
- Subject.prototype._subscribe = function (subscriber) {
101
- this._throwIfClosed();
102
- this._checkFinalizedStatuses(subscriber);
103
- return this._innerSubscribe(subscriber);
104
- };
105
- Subject.prototype._innerSubscribe = function (subscriber) {
106
- var _this = this;
107
- var _a = this, hasError = _a.hasError, isStopped = _a.isStopped, observers = _a.observers;
108
- if (hasError || isStopped) {
109
- return Subscription.EMPTY_SUBSCRIPTION;
110
- }
111
- this.currentObservers = null;
112
- observers.push(subscriber);
113
- return new Subscription.Subscription(function () {
114
- _this.currentObservers = null;
115
- arrRemove.arrRemove(observers, subscriber);
116
- });
117
- };
118
- Subject.prototype._checkFinalizedStatuses = function (subscriber) {
119
- var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, isStopped = _a.isStopped;
120
- if (hasError) {
121
- subscriber.error(thrownError);
122
- }
123
- else if (isStopped) {
124
- subscriber.complete();
125
- }
126
- };
127
- Subject.prototype.asObservable = function () {
128
- var observable = new Observable.Observable();
129
- observable.source = this;
130
- return observable;
131
- };
132
- Subject.create = function (destination, source) {
133
- return new AnonymousSubject(destination, source);
134
- };
135
- return Subject;
136
- }(Observable.Observable));
137
- var AnonymousSubject = (function (_super) {
138
- tslib.__extends(AnonymousSubject, _super);
139
- function AnonymousSubject(destination, source) {
140
- var _this = _super.call(this) || this;
141
- _this.destination = destination;
142
- _this.source = source;
143
- return _this;
144
- }
145
- AnonymousSubject.prototype.next = function (value) {
146
- var _a, _b;
147
- (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);
148
- };
149
- AnonymousSubject.prototype.error = function (err) {
150
- var _a, _b;
151
- (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);
152
- };
153
- AnonymousSubject.prototype.complete = function () {
154
- var _a, _b;
155
- (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);
156
- };
157
- AnonymousSubject.prototype._subscribe = function (subscriber) {
158
- var _a, _b;
159
- return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : Subscription.EMPTY_SUBSCRIPTION;
160
- };
161
- return AnonymousSubject;
162
- }(Subject));
163
-
164
- exports.AnonymousSubject = AnonymousSubject;
165
- exports.Subject = Subject;
@@ -1,157 +0,0 @@
1
- 'use strict';
2
-
3
- var tslib = require('tslib');
4
- var isFunction = require('./util/isFunction.js');
5
- var Subscription = require('./Subscription.js');
6
- var reportUnhandledError = require('./util/reportUnhandledError.js');
7
- var noop = require('./util/noop.js');
8
-
9
- var Subscriber = (function (_super) {
10
- tslib.__extends(Subscriber, _super);
11
- function Subscriber(destination) {
12
- var _this = _super.call(this) || this;
13
- _this.isStopped = false;
14
- if (destination) {
15
- _this.destination = destination;
16
- if (Subscription.isSubscription(destination)) {
17
- destination.add(_this);
18
- }
19
- }
20
- else {
21
- _this.destination = EMPTY_OBSERVER;
22
- }
23
- return _this;
24
- }
25
- Subscriber.create = function (next, error, complete) {
26
- return new SafeSubscriber(next, error, complete);
27
- };
28
- Subscriber.prototype.next = function (value) {
29
- if (this.isStopped) ;
30
- else {
31
- this._next(value);
32
- }
33
- };
34
- Subscriber.prototype.error = function (err) {
35
- if (this.isStopped) ;
36
- else {
37
- this.isStopped = true;
38
- this._error(err);
39
- }
40
- };
41
- Subscriber.prototype.complete = function () {
42
- if (this.isStopped) ;
43
- else {
44
- this.isStopped = true;
45
- this._complete();
46
- }
47
- };
48
- Subscriber.prototype.unsubscribe = function () {
49
- if (!this.closed) {
50
- this.isStopped = true;
51
- _super.prototype.unsubscribe.call(this);
52
- this.destination = null;
53
- }
54
- };
55
- Subscriber.prototype._next = function (value) {
56
- this.destination.next(value);
57
- };
58
- Subscriber.prototype._error = function (err) {
59
- try {
60
- this.destination.error(err);
61
- }
62
- finally {
63
- this.unsubscribe();
64
- }
65
- };
66
- Subscriber.prototype._complete = function () {
67
- try {
68
- this.destination.complete();
69
- }
70
- finally {
71
- this.unsubscribe();
72
- }
73
- };
74
- return Subscriber;
75
- }(Subscription.Subscription));
76
- var ConsumerObserver = (function () {
77
- function ConsumerObserver(partialObserver) {
78
- this.partialObserver = partialObserver;
79
- }
80
- ConsumerObserver.prototype.next = function (value) {
81
- var partialObserver = this.partialObserver;
82
- if (partialObserver.next) {
83
- try {
84
- partialObserver.next(value);
85
- }
86
- catch (error) {
87
- handleUnhandledError(error);
88
- }
89
- }
90
- };
91
- ConsumerObserver.prototype.error = function (err) {
92
- var partialObserver = this.partialObserver;
93
- if (partialObserver.error) {
94
- try {
95
- partialObserver.error(err);
96
- }
97
- catch (error) {
98
- handleUnhandledError(error);
99
- }
100
- }
101
- else {
102
- handleUnhandledError(err);
103
- }
104
- };
105
- ConsumerObserver.prototype.complete = function () {
106
- var partialObserver = this.partialObserver;
107
- if (partialObserver.complete) {
108
- try {
109
- partialObserver.complete();
110
- }
111
- catch (error) {
112
- handleUnhandledError(error);
113
- }
114
- }
115
- };
116
- return ConsumerObserver;
117
- }());
118
- var SafeSubscriber = (function (_super) {
119
- tslib.__extends(SafeSubscriber, _super);
120
- function SafeSubscriber(observerOrNext, error, complete) {
121
- var _this = _super.call(this) || this;
122
- var partialObserver;
123
- if (isFunction.isFunction(observerOrNext) || !observerOrNext) {
124
- partialObserver = {
125
- next: (observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined),
126
- error: error !== null && error !== void 0 ? error : undefined,
127
- complete: complete !== null && complete !== void 0 ? complete : undefined,
128
- };
129
- }
130
- else {
131
- {
132
- partialObserver = observerOrNext;
133
- }
134
- }
135
- _this.destination = new ConsumerObserver(partialObserver);
136
- return _this;
137
- }
138
- return SafeSubscriber;
139
- }(Subscriber));
140
- function handleUnhandledError(error) {
141
- {
142
- reportUnhandledError.reportUnhandledError(error);
143
- }
144
- }
145
- function defaultErrorHandler(err) {
146
- throw err;
147
- }
148
- var EMPTY_OBSERVER = {
149
- closed: true,
150
- next: noop.noop,
151
- error: defaultErrorHandler,
152
- complete: noop.noop,
153
- };
154
-
155
- exports.EMPTY_OBSERVER = EMPTY_OBSERVER;
156
- exports.SafeSubscriber = SafeSubscriber;
157
- exports.Subscriber = Subscriber;