@acrobits/ipc-sdk 0.8.1-alpha.11 → 0.8.1-alpha.13
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/lib/ipc-sdk.js +29 -27
- package/lib/ipc-sdk.js.map +1 -1
- package/lib/ipc-sdk.umd.cjs +3 -3
- package/lib/ipc-sdk.umd.cjs.map +1 -1
- package/package.json +2 -2
package/lib/ipc-sdk.js
CHANGED
|
@@ -18,7 +18,7 @@ function M(n, t) {
|
|
|
18
18
|
}
|
|
19
19
|
n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function G(n) {
|
|
22
22
|
var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], r = 0;
|
|
23
23
|
if (e)
|
|
24
24
|
return e.call(n);
|
|
@@ -50,7 +50,7 @@ function $(n, t) {
|
|
|
50
50
|
}
|
|
51
51
|
return i;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function D(n, t, e) {
|
|
54
54
|
if (e || arguments.length === 2)
|
|
55
55
|
for (var r = 0, s = t.length, i; r < s; r++)
|
|
56
56
|
(i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
|
|
@@ -74,7 +74,7 @@ var N = X(function(n) {
|
|
|
74
74
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
|
75
75
|
};
|
|
76
76
|
});
|
|
77
|
-
function
|
|
77
|
+
function F(n, t) {
|
|
78
78
|
if (n) {
|
|
79
79
|
var e = n.indexOf(t);
|
|
80
80
|
0 <= e && n.splice(e, 1);
|
|
@@ -92,7 +92,7 @@ var R = function() {
|
|
|
92
92
|
if (o)
|
|
93
93
|
if (this._parentage = null, Array.isArray(o))
|
|
94
94
|
try {
|
|
95
|
-
for (var a =
|
|
95
|
+
for (var a = G(o), c = a.next(); !c.done; c = a.next()) {
|
|
96
96
|
var u = c.value;
|
|
97
97
|
u.remove(this);
|
|
98
98
|
}
|
|
@@ -119,12 +119,12 @@ var R = function() {
|
|
|
119
119
|
if (d) {
|
|
120
120
|
this._finalizers = null;
|
|
121
121
|
try {
|
|
122
|
-
for (var y =
|
|
122
|
+
for (var y = G(d), b = y.next(); !b.done; b = y.next()) {
|
|
123
123
|
var k = b.value;
|
|
124
124
|
try {
|
|
125
125
|
se(k);
|
|
126
126
|
} catch (v) {
|
|
127
|
-
i = i ?? [], v instanceof N ? i =
|
|
127
|
+
i = i ?? [], v instanceof N ? i = D(D([], $(i)), $(v.errors)) : i.push(v);
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
} catch (v) {
|
|
@@ -162,10 +162,10 @@ var R = function() {
|
|
|
162
162
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
|
163
163
|
}, n.prototype._removeParent = function(t) {
|
|
164
164
|
var e = this._parentage;
|
|
165
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
|
165
|
+
e === t ? this._parentage = null : Array.isArray(e) && F(e, t);
|
|
166
166
|
}, n.prototype.remove = function(t) {
|
|
167
167
|
var e = this._finalizers;
|
|
168
|
-
e &&
|
|
168
|
+
e && F(e, t), t instanceof n && t._removeParent(this);
|
|
169
169
|
}, n.EMPTY = function() {
|
|
170
170
|
var t = new n();
|
|
171
171
|
return t.closed = !0, t;
|
|
@@ -187,7 +187,7 @@ var we = {
|
|
|
187
187
|
setTimeout: function(n, t) {
|
|
188
188
|
for (var e = [], r = 2; r < arguments.length; r++)
|
|
189
189
|
e[r - 2] = arguments[r];
|
|
190
|
-
return setTimeout.apply(void 0,
|
|
190
|
+
return setTimeout.apply(void 0, D([n, t], $(e)));
|
|
191
191
|
},
|
|
192
192
|
clearTimeout: function(n) {
|
|
193
193
|
var t = Ee.delegate;
|
|
@@ -306,20 +306,20 @@ var $e = {
|
|
|
306
306
|
next: ie,
|
|
307
307
|
error: Ue,
|
|
308
308
|
complete: ie
|
|
309
|
-
},
|
|
309
|
+
}, De = function() {
|
|
310
310
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
311
311
|
}();
|
|
312
312
|
function Se(n) {
|
|
313
313
|
return n;
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function Fe(n) {
|
|
316
316
|
return n.length === 0 ? Se : n.length === 1 ? n[0] : function(e) {
|
|
317
317
|
return n.reduce(function(r, s) {
|
|
318
318
|
return s(r);
|
|
319
319
|
}, e);
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
|
-
var
|
|
322
|
+
var B = function() {
|
|
323
323
|
function n(t) {
|
|
324
324
|
t && (this._subscribe = t);
|
|
325
325
|
}
|
|
@@ -357,12 +357,12 @@ var G = function() {
|
|
|
357
357
|
}, n.prototype._subscribe = function(t) {
|
|
358
358
|
var e;
|
|
359
359
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
|
360
|
-
}, n.prototype[
|
|
360
|
+
}, n.prototype[De] = function() {
|
|
361
361
|
return this;
|
|
362
362
|
}, n.prototype.pipe = function() {
|
|
363
363
|
for (var t = [], e = 0; e < arguments.length; e++)
|
|
364
364
|
t[e] = arguments[e];
|
|
365
|
-
return
|
|
365
|
+
return Fe(t)(this);
|
|
366
366
|
}, n.prototype.toPromise = function(t) {
|
|
367
367
|
var e = this;
|
|
368
368
|
return t = oe(t), new t(function(r, s) {
|
|
@@ -466,7 +466,7 @@ var Ve = function(n) {
|
|
|
466
466
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
467
467
|
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
468
468
|
try {
|
|
469
|
-
for (var o =
|
|
469
|
+
for (var o = G(r.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
|
470
470
|
var c = a.value;
|
|
471
471
|
c.next(e);
|
|
472
472
|
}
|
|
@@ -516,18 +516,18 @@ var Ve = function(n) {
|
|
|
516
516
|
}, t.prototype._innerSubscribe = function(e) {
|
|
517
517
|
var r = this, s = this, i = s.hasError, o = s.isStopped, a = s.observers;
|
|
518
518
|
return i || o ? be : (this.currentObservers = null, a.push(e), new R(function() {
|
|
519
|
-
r.currentObservers = null,
|
|
519
|
+
r.currentObservers = null, F(a, e);
|
|
520
520
|
}));
|
|
521
521
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
|
522
522
|
var r = this, s = r.hasError, i = r.thrownError, o = r.isStopped;
|
|
523
523
|
s ? e.error(i) : o && e.complete();
|
|
524
524
|
}, t.prototype.asObservable = function() {
|
|
525
|
-
var e = new
|
|
525
|
+
var e = new B();
|
|
526
526
|
return e.source = this, e;
|
|
527
527
|
}, t.create = function(e, r) {
|
|
528
528
|
return new ae(e, r);
|
|
529
529
|
}, t;
|
|
530
|
-
}(
|
|
530
|
+
}(B), ae = function(n) {
|
|
531
531
|
M(t, n);
|
|
532
532
|
function t(e, r) {
|
|
533
533
|
var s = n.call(this) || this;
|
|
@@ -563,14 +563,14 @@ var Ve = function(n) {
|
|
|
563
563
|
setInterval: function(n, t) {
|
|
564
564
|
for (var e = [], r = 2; r < arguments.length; r++)
|
|
565
565
|
e[r - 2] = arguments[r];
|
|
566
|
-
return setInterval.apply(void 0,
|
|
566
|
+
return setInterval.apply(void 0, D([n, t], $(e)));
|
|
567
567
|
},
|
|
568
568
|
clearInterval: function(n) {
|
|
569
569
|
var t = Y.delegate;
|
|
570
570
|
return ((t == null ? void 0 : t.clearInterval) || clearInterval)(n);
|
|
571
571
|
},
|
|
572
572
|
delegate: void 0
|
|
573
|
-
},
|
|
573
|
+
}, Ge = function(n) {
|
|
574
574
|
M(t, n);
|
|
575
575
|
function t(e, r) {
|
|
576
576
|
var s = n.call(this, e, r) || this;
|
|
@@ -609,7 +609,7 @@ var Ve = function(n) {
|
|
|
609
609
|
}, t.prototype.unsubscribe = function() {
|
|
610
610
|
if (!this.closed) {
|
|
611
611
|
var e = this, r = e.id, s = e.scheduler, i = s.actions;
|
|
612
|
-
this.work = this.state = this.scheduler = null, this.pending = !1,
|
|
612
|
+
this.work = this.state = this.scheduler = null, this.pending = !1, F(i, this), r != null && (this.id = this.recycleAsyncId(s, r, null)), this.delay = null, n.prototype.unsubscribe.call(this);
|
|
613
613
|
}
|
|
614
614
|
}, t;
|
|
615
615
|
}(qe), ce = function() {
|
|
@@ -619,7 +619,7 @@ var Ve = function(n) {
|
|
|
619
619
|
return n.prototype.schedule = function(t, e, r) {
|
|
620
620
|
return e === void 0 && (e = 0), new this.schedulerActionCtor(this, t).schedule(r, e);
|
|
621
621
|
}, n.now = Qe.now, n;
|
|
622
|
-
}(),
|
|
622
|
+
}(), Be = function(n) {
|
|
623
623
|
M(t, n);
|
|
624
624
|
function t(e, r) {
|
|
625
625
|
r === void 0 && (r = ce.now);
|
|
@@ -644,7 +644,7 @@ var Ve = function(n) {
|
|
|
644
644
|
throw s;
|
|
645
645
|
}
|
|
646
646
|
}, t;
|
|
647
|
-
}(ce), Ye = new Ge
|
|
647
|
+
}(ce), Ye = new Be(Ge), ze = Ye;
|
|
648
648
|
function We(n) {
|
|
649
649
|
return n && E(n.schedule);
|
|
650
650
|
}
|
|
@@ -682,7 +682,7 @@ function O(n, t) {
|
|
|
682
682
|
function Xe(n, t, e) {
|
|
683
683
|
n === void 0 && (n = 0), e === void 0 && (e = ze);
|
|
684
684
|
var r = -1;
|
|
685
|
-
return t != null && (We(t) ? e = t : r = t), new
|
|
685
|
+
return t != null && (We(t) ? e = t : r = t), new B(function(s) {
|
|
686
686
|
var i = Je(n) ? +n - e.now() : n;
|
|
687
687
|
i < 0 && (i = 0);
|
|
688
688
|
var o = 0;
|
|
@@ -2149,7 +2149,7 @@ class xt {
|
|
|
2149
2149
|
i.correlationId = t, i.fileHash = e.toLowerCase(), i.url = r, this.logCreated(s, i);
|
|
2150
2150
|
const o = this.incomingMessages$.pipe(
|
|
2151
2151
|
g(
|
|
2152
|
-
(a) => a.type ===
|
|
2152
|
+
(a) => a.type === "FILE DOWNLOAD PROGRESS UPDATE" && a.replyTo === i.id
|
|
2153
2153
|
),
|
|
2154
2154
|
f(this.logReceived(s)),
|
|
2155
2155
|
p((a) => (a.fileHash && (a.fileHash = a.fileHash.toLowerCase()), a)),
|
|
@@ -2200,7 +2200,7 @@ class xt {
|
|
|
2200
2200
|
i.correlationId = t, i.fileHash = e.toLowerCase(), i.fileId = r, this.logCreated(s, i);
|
|
2201
2201
|
const o = this.incomingMessages$.pipe(
|
|
2202
2202
|
g(
|
|
2203
|
-
(a) => a.type ===
|
|
2203
|
+
(a) => a.type === "FILE UPLOAD PROGRESS UPDATE" && a.replyTo === i.id
|
|
2204
2204
|
),
|
|
2205
2205
|
f(this.logReceived(s)),
|
|
2206
2206
|
p((a) => (a.fileHash && (a.fileHash = a.fileHash.toLowerCase()), a)),
|
|
@@ -2427,7 +2427,9 @@ class xt {
|
|
|
2427
2427
|
const r = "SEND MESSAGE STATUS QUERY", s = this.createMessage(r, !0);
|
|
2428
2428
|
s.correlationId = t, s.streamId = e, this.logCreated(r, s);
|
|
2429
2429
|
const i = this.incomingMessages$.pipe(
|
|
2430
|
-
g(
|
|
2430
|
+
g(
|
|
2431
|
+
(o) => o.type === "SEND MESSAGE STATUS UPDATE" && o.replyTo === s.id
|
|
2432
|
+
),
|
|
2431
2433
|
f(this.logReceived(r)),
|
|
2432
2434
|
p((o) => o),
|
|
2433
2435
|
m(1)
|