@voicenter-team/events-sdk 0.0.83 → 0.0.84
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/dist/voicenter-events-sdk.cjs.js +3 -3
- package/dist/voicenter-events-sdk.cjs.js.map +1 -1
- package/dist/voicenter-events-sdk.es.js +51 -51
- package/dist/voicenter-events-sdk.es.js.map +1 -1
- package/dist/voicenter-events-sdk.iife.js +3 -3
- package/dist/voicenter-events-sdk.iife.js.map +1 -1
- package/dist/voicenter-events-sdk.umd.js +4 -4
- package/dist/voicenter-events-sdk.umd.js.map +1 -1
- package/package.json +2 -2
|
@@ -105,17 +105,17 @@ var Ke = be.exports, Kt = {
|
|
|
105
105
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
106
106
|
* @license MIT
|
|
107
107
|
*/
|
|
108
|
-
var
|
|
109
|
-
return s != null && (Se(s) ||
|
|
108
|
+
var We = function(s) {
|
|
109
|
+
return s != null && (Se(s) || Ge(s) || !!s._isBuffer);
|
|
110
110
|
};
|
|
111
111
|
function Se(s) {
|
|
112
112
|
return !!s.constructor && typeof s.constructor.isBuffer == "function" && s.constructor.isBuffer(s);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Ge(s) {
|
|
115
115
|
return typeof s.readFloatLE == "function" && typeof s.slice == "function" && Se(s.slice(0, 0));
|
|
116
116
|
}
|
|
117
117
|
(function() {
|
|
118
|
-
var s = Ke, e = ie.utf8, t =
|
|
118
|
+
var s = Ke, e = ie.utf8, t = We, n = ie.bin, r = function(o, u) {
|
|
119
119
|
o.constructor == String ? u && u.encoding === "binary" ? o = n.stringToBytes(o) : o = e.stringToBytes(o) : t(o) ? o = Array.prototype.slice.call(o, 0) : !Array.isArray(o) && o.constructor !== Uint8Array && (o = o.toString());
|
|
120
120
|
for (var h = s.bytesToWords(o), d = o.length * 8, c = 1732584193, p = -271733879, l = -1732584194, i = 271733878, a = 0; a < h.length; a++)
|
|
121
121
|
h[a] = (h[a] << 8 | h[a] >>> 24) & 16711935 | (h[a] << 24 | h[a] >>> 8) & 4278255360;
|
|
@@ -1540,9 +1540,9 @@ function He() {
|
|
|
1540
1540
|
return A(v);
|
|
1541
1541
|
}
|
|
1542
1542
|
function d(S, T, A) {
|
|
1543
|
-
for (var m = new Array(S.length), v = a(S.length, A), _ = function(R, k,
|
|
1544
|
-
T(k, function(
|
|
1545
|
-
m[R] = H, G
|
|
1543
|
+
for (var m = new Array(S.length), v = a(S.length, A), _ = function(R, k, W) {
|
|
1544
|
+
T(k, function(G, H) {
|
|
1545
|
+
m[R] = H, W(G, m);
|
|
1546
1546
|
});
|
|
1547
1547
|
}, I = 0; I < S.length; I++)
|
|
1548
1548
|
_(I, S[I], v);
|
|
@@ -1625,17 +1625,17 @@ function He() {
|
|
|
1625
1625
|
if (S == "")
|
|
1626
1626
|
return A(F, 0, 1);
|
|
1627
1627
|
for (var v, _, I = "", R = 0, k = S.length; k > R; R++) {
|
|
1628
|
-
var
|
|
1629
|
-
if (
|
|
1630
|
-
I +=
|
|
1628
|
+
var W = S.charAt(R);
|
|
1629
|
+
if (W != ":")
|
|
1630
|
+
I += W;
|
|
1631
1631
|
else {
|
|
1632
1632
|
if (I == "" || I != (v = Number(I)) || (_ = S.substr(R + 1, v), I != _.length))
|
|
1633
1633
|
return A(F, 0, 1);
|
|
1634
1634
|
if (_.length) {
|
|
1635
1635
|
if (m = t.decodePacket(_, T, !0), F.type == m.type && F.data == m.data)
|
|
1636
1636
|
return A(F, 0, 1);
|
|
1637
|
-
var
|
|
1638
|
-
if (
|
|
1637
|
+
var G = A(m, R + v, k);
|
|
1638
|
+
if (G === !1)
|
|
1639
1639
|
return;
|
|
1640
1640
|
}
|
|
1641
1641
|
R += v, I = "";
|
|
@@ -1649,22 +1649,22 @@ function He() {
|
|
|
1649
1649
|
});
|
|
1650
1650
|
}
|
|
1651
1651
|
return S.length ? void d(S, A, function(m, v) {
|
|
1652
|
-
var _ = v.reduce(function(k,
|
|
1653
|
-
var
|
|
1654
|
-
return
|
|
1652
|
+
var _ = v.reduce(function(k, W) {
|
|
1653
|
+
var G;
|
|
1654
|
+
return G = typeof W == "string" ? W.length : W.byteLength, k + G.toString().length + G + 2;
|
|
1655
1655
|
}, 0), I = new Uint8Array(_), R = 0;
|
|
1656
1656
|
return v.forEach(function(k) {
|
|
1657
|
-
var
|
|
1658
|
-
if (
|
|
1657
|
+
var W = typeof k == "string", G = k;
|
|
1658
|
+
if (W) {
|
|
1659
1659
|
for (var H = new Uint8Array(k.length), M = 0; M < k.length; M++)
|
|
1660
1660
|
H[M] = k.charCodeAt(M);
|
|
1661
|
-
|
|
1661
|
+
G = H.buffer;
|
|
1662
1662
|
}
|
|
1663
|
-
I[R++] =
|
|
1664
|
-
for (var Y =
|
|
1663
|
+
I[R++] = W ? 0 : 1;
|
|
1664
|
+
for (var Y = G.byteLength.toString(), M = 0; M < Y.length; M++)
|
|
1665
1665
|
I[R++] = parseInt(Y[M]);
|
|
1666
1666
|
I[R++] = 255;
|
|
1667
|
-
for (var H = new Uint8Array(
|
|
1667
|
+
for (var H = new Uint8Array(G), M = 0; M < H.length; M++)
|
|
1668
1668
|
I[R++] = H[M];
|
|
1669
1669
|
}), T(I.buffer);
|
|
1670
1670
|
}) : T(new ArrayBuffer(0));
|
|
@@ -1677,9 +1677,9 @@ function He() {
|
|
|
1677
1677
|
R[k] = _.charCodeAt(k);
|
|
1678
1678
|
_ = R.buffer, I[0] = 0;
|
|
1679
1679
|
}
|
|
1680
|
-
for (var
|
|
1681
|
-
H[k] = parseInt(
|
|
1682
|
-
if (H[
|
|
1680
|
+
for (var W = _ instanceof ArrayBuffer ? _.byteLength : _.size, G = W.toString(), H = new Uint8Array(G.length + 1), k = 0; k < G.length; k++)
|
|
1681
|
+
H[k] = parseInt(G[k]);
|
|
1682
|
+
if (H[G.length] = 255, L) {
|
|
1683
1683
|
var M = new L([I.buffer, H.buffer, _]);
|
|
1684
1684
|
v(null, M);
|
|
1685
1685
|
}
|
|
@@ -1691,27 +1691,27 @@ function He() {
|
|
|
1691
1691
|
}, t.decodePayloadAsBinary = function(S, T, A) {
|
|
1692
1692
|
typeof T == "function" && (A = T, T = null);
|
|
1693
1693
|
for (var m = S, v = [], _ = !1; m.byteLength > 0; ) {
|
|
1694
|
-
for (var I = new Uint8Array(m), R = I[0] === 0, k = "",
|
|
1694
|
+
for (var I = new Uint8Array(m), R = I[0] === 0, k = "", W = 1; I[W] != 255; W++) {
|
|
1695
1695
|
if (k.length > 310) {
|
|
1696
1696
|
_ = !0;
|
|
1697
1697
|
break;
|
|
1698
1698
|
}
|
|
1699
|
-
k += I[
|
|
1699
|
+
k += I[W];
|
|
1700
1700
|
}
|
|
1701
1701
|
if (_)
|
|
1702
1702
|
return A(F, 0, 1);
|
|
1703
1703
|
m = l(m, 2 + k.length), k = parseInt(k);
|
|
1704
|
-
var
|
|
1704
|
+
var G = l(m, 0, k);
|
|
1705
1705
|
if (R)
|
|
1706
1706
|
try {
|
|
1707
|
-
|
|
1707
|
+
G = String.fromCharCode.apply(null, new Uint8Array(G));
|
|
1708
1708
|
} catch {
|
|
1709
|
-
var H = new Uint8Array(
|
|
1710
|
-
|
|
1711
|
-
for (var
|
|
1712
|
-
|
|
1709
|
+
var H = new Uint8Array(G);
|
|
1710
|
+
G = "";
|
|
1711
|
+
for (var W = 0; W < H.length; W++)
|
|
1712
|
+
G += String.fromCharCode(H[W]);
|
|
1713
1713
|
}
|
|
1714
|
-
v.push(
|
|
1714
|
+
v.push(G), m = l(m, k);
|
|
1715
1715
|
}
|
|
1716
1716
|
var M = v.length;
|
|
1717
1717
|
v.forEach(function(Y, gt) {
|
|
@@ -2418,11 +2418,11 @@ function He() {
|
|
|
2418
2418
|
};
|
|
2419
2419
|
}
|
|
2420
2420
|
if (!r("json-parse")) {
|
|
2421
|
-
var k,
|
|
2421
|
+
var k, W, G = String.fromCharCode, H = { 92: "\\", 34: '"', 47: "/", 98: "\b", 116: " ", 110: `
|
|
2422
2422
|
`, 102: "\f", 114: "\r" }, M = function() {
|
|
2423
|
-
throw k =
|
|
2423
|
+
throw k = W = null, SyntaxError();
|
|
2424
2424
|
}, Y = function() {
|
|
2425
|
-
for (var w, O, C, D, b, x =
|
|
2425
|
+
for (var w, O, C, D, b, x = W, B = x.length; B > k; )
|
|
2426
2426
|
switch (b = x.charCodeAt(k)) {
|
|
2427
2427
|
case 9:
|
|
2428
2428
|
case 10:
|
|
@@ -2456,7 +2456,7 @@ function He() {
|
|
|
2456
2456
|
case 117:
|
|
2457
2457
|
for (O = ++k, C = k + 4; C > k; k++)
|
|
2458
2458
|
b = x.charCodeAt(k), b >= 48 && 57 >= b || b >= 97 && 102 >= b || b >= 65 && 70 >= b || M();
|
|
2459
|
-
w +=
|
|
2459
|
+
w += G("0x" + x.slice(O, k));
|
|
2460
2460
|
break;
|
|
2461
2461
|
default:
|
|
2462
2462
|
M();
|
|
@@ -2531,7 +2531,7 @@ function He() {
|
|
|
2531
2531
|
};
|
|
2532
2532
|
p.parse = function(w, O) {
|
|
2533
2533
|
var C, D;
|
|
2534
|
-
return k = 0,
|
|
2534
|
+
return k = 0, W = "" + w, C = gt(Y()), Y() != "$" && M(), k = W = null, O && d.call(O) == i ? re((D = {}, D[""] = C, D), "", O) : C;
|
|
2535
2535
|
};
|
|
2536
2536
|
}
|
|
2537
2537
|
}
|
|
@@ -2558,7 +2558,7 @@ const Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2558
2558
|
function tn(s) {
|
|
2559
2559
|
return typeof s == "function";
|
|
2560
2560
|
}
|
|
2561
|
-
const
|
|
2561
|
+
const Wt = Object.entries(Qe).reduce(
|
|
2562
2562
|
(s, e) => {
|
|
2563
2563
|
var r;
|
|
2564
2564
|
const t = e[1].default, n = (r = e[0].match(Ze)) == null ? void 0 : r[0];
|
|
@@ -2566,11 +2566,11 @@ const Gt = Object.entries(Qe).reduce(
|
|
|
2566
2566
|
},
|
|
2567
2567
|
{}
|
|
2568
2568
|
), we = (s) => {
|
|
2569
|
-
if (s in
|
|
2570
|
-
return
|
|
2569
|
+
if (s in Wt)
|
|
2570
|
+
return Wt[s];
|
|
2571
2571
|
throw new Error(`Socket version ${s} not found`);
|
|
2572
2572
|
}, en = (s, ...e) => we(s)(...e), nn = {
|
|
2573
|
-
...
|
|
2573
|
+
...Wt,
|
|
2574
2574
|
getSocketVersion: we,
|
|
2575
2575
|
makeSocketVersion: en
|
|
2576
2576
|
};
|
|
@@ -2859,7 +2859,7 @@ const Nt = /* @__PURE__ */ Object.create(null);
|
|
|
2859
2859
|
Object.keys(ct).forEach((s) => {
|
|
2860
2860
|
Nt[ct[s]] = s;
|
|
2861
2861
|
});
|
|
2862
|
-
const
|
|
2862
|
+
const Gt = { type: "error", data: "parser error" }, Te = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", Ae = typeof ArrayBuffer == "function", Ne = (s) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(s) : s && s.buffer instanceof ArrayBuffer, Yt = ({ type: s, data: e }, t, n) => Te && e instanceof Blob ? t ? n(e) : ae(e, n) : Ae && (e instanceof ArrayBuffer || Ne(e)) ? t ? n(e) : ae(new Blob([e]), n) : n(ct[s] + (e || "")), ae = (s, e) => {
|
|
2863
2863
|
const t = new FileReader();
|
|
2864
2864
|
return t.onload = function() {
|
|
2865
2865
|
const n = t.result.split(",")[1];
|
|
@@ -2904,7 +2904,7 @@ const gn = (s) => {
|
|
|
2904
2904
|
data: s.substring(1)
|
|
2905
2905
|
} : {
|
|
2906
2906
|
type: Nt[t]
|
|
2907
|
-
} :
|
|
2907
|
+
} : Gt;
|
|
2908
2908
|
}, mn = (s, e) => {
|
|
2909
2909
|
if (yn) {
|
|
2910
2910
|
const t = gn(s);
|
|
@@ -2993,7 +2993,7 @@ function Sn(s, e) {
|
|
|
2993
2993
|
break;
|
|
2994
2994
|
const d = Ct(t, 8), c = new DataView(d.buffer, d.byteOffset, d.length), p = c.getUint32(0);
|
|
2995
2995
|
if (p > Math.pow(2, 21) - 1) {
|
|
2996
|
-
h.enqueue(
|
|
2996
|
+
h.enqueue(Gt);
|
|
2997
2997
|
break;
|
|
2998
2998
|
}
|
|
2999
2999
|
r = p * Math.pow(2, 32) + c.getUint32(4), n = 3;
|
|
@@ -3004,7 +3004,7 @@ function Sn(s, e) {
|
|
|
3004
3004
|
h.enqueue(Qt(o ? d : Mt.decode(d), e)), n = 0;
|
|
3005
3005
|
}
|
|
3006
3006
|
if (r === 0 || r > s) {
|
|
3007
|
-
h.enqueue(
|
|
3007
|
+
h.enqueue(Gt);
|
|
3008
3008
|
break;
|
|
3009
3009
|
}
|
|
3010
3010
|
}
|
|
@@ -3950,15 +3950,15 @@ let De = class ft extends $ {
|
|
|
3950
3950
|
}
|
|
3951
3951
|
};
|
|
3952
3952
|
De.protocol = Le;
|
|
3953
|
-
function
|
|
3953
|
+
function Wn(s, e = "", t) {
|
|
3954
3954
|
let n = s;
|
|
3955
3955
|
t = t || typeof location < "u" && location, s == null && (s = t.protocol + "//" + t.host), typeof s == "string" && (s.charAt(0) === "/" && (s.charAt(1) === "/" ? s = t.protocol + s : s = t.host + s), /^(https?|wss?):\/\//.test(s) || (typeof t < "u" ? s = t.protocol + "//" + s : s = "https://" + s), n = Jt(s)), n.port || (/^(http|ws)$/.test(n.protocol) ? n.port = "80" : /^(http|ws)s$/.test(n.protocol) && (n.port = "443")), n.path = n.path || "/";
|
|
3956
3956
|
const r = n.host.indexOf(":") !== -1 ? "[" + n.host + "]" : n.host;
|
|
3957
3957
|
return n.id = n.protocol + "://" + r + ":" + n.port + e, n.href = n.protocol + "://" + r + (t && t.port === n.port ? "" : ":" + n.port), n;
|
|
3958
3958
|
}
|
|
3959
|
-
const
|
|
3959
|
+
const Gn = typeof ArrayBuffer == "function", Xn = (s) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(s) : s.buffer instanceof ArrayBuffer, Pe = Object.prototype.toString, Jn = typeof Blob == "function" || typeof Blob < "u" && Pe.call(Blob) === "[object BlobConstructor]", $n = typeof File == "function" || typeof File < "u" && Pe.call(File) === "[object FileConstructor]";
|
|
3960
3960
|
function ee(s) {
|
|
3961
|
-
return
|
|
3961
|
+
return Gn && (s instanceof ArrayBuffer || Xn(s)) || Jn && s instanceof Blob || $n && s instanceof File;
|
|
3962
3962
|
}
|
|
3963
3963
|
function _t(s, e) {
|
|
3964
3964
|
if (!s || typeof s != "object")
|
|
@@ -5065,7 +5065,7 @@ class Ht extends $ {
|
|
|
5065
5065
|
const vt = {};
|
|
5066
5066
|
function Ot(s, e) {
|
|
5067
5067
|
typeof s == "object" && (e = s, s = void 0), e = e || {};
|
|
5068
|
-
const t =
|
|
5068
|
+
const t = Wn(s, e.path || "/socket.io"), n = t.source, r = t.id, o = t.path, u = vt[r] && o in vt[r].nsps, h = e.forceNew || e["force new connection"] || e.multiplex === !1 || u;
|
|
5069
5069
|
let d;
|
|
5070
5070
|
return h ? d = new Ht(n, e) : (vt[r] || (vt[r] = new Ht(n, e)), d = vt[r]), t.query && !e.query && (e.query = t.queryKey), d.socket(t.path, e);
|
|
5071
5071
|
}
|
|
@@ -5311,7 +5311,7 @@ class ds {
|
|
|
5311
5311
|
...this.staticObject,
|
|
5312
5312
|
...p
|
|
5313
5313
|
}, i = this.populateSendingLog(l);
|
|
5314
|
-
this.socket ?
|
|
5314
|
+
this.socket ? await this.socket.emit("Log", i) : this.requestUrl && u.push(i), r.push(c);
|
|
5315
5315
|
}
|
|
5316
5316
|
u.length && await this.sendHttpRequest(u);
|
|
5317
5317
|
const h = await this.getItem(this.storageId);
|