@eka-care/ekascribe-ts-sdk 3.0.30 → 3.0.32
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/index.d.ts +2 -1
- package/dist/index.mjs +78 -77
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -216,7 +216,8 @@ export declare enum ERROR_CODE {
|
|
|
216
216
|
NETWORK_ERROR = "network_error",
|
|
217
217
|
UNKNOWN_ERROR = "unknown_error",
|
|
218
218
|
UNAUTHORIZED = "unauthorized",
|
|
219
|
-
FORBIDDEN = "forbidden"
|
|
219
|
+
FORBIDDEN = "forbidden",
|
|
220
|
+
START_RECORDING_FAILED = "start_recording_failed"
|
|
220
221
|
}
|
|
221
222
|
|
|
222
223
|
declare type Gender = 'M' | 'F' | 'O';
|
package/dist/index.mjs
CHANGED
|
@@ -238,37 +238,37 @@ function me(t) {
|
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
|
-
function Vs() {
|
|
242
|
-
Gt().enabled = !0;
|
|
243
|
-
}
|
|
244
241
|
function Gs() {
|
|
245
|
-
|
|
242
|
+
Vt().enabled = !0;
|
|
243
|
+
}
|
|
244
|
+
function Vs() {
|
|
245
|
+
Vt().enabled = !1;
|
|
246
246
|
}
|
|
247
247
|
function wr() {
|
|
248
|
-
return
|
|
248
|
+
return Vt().enabled;
|
|
249
249
|
}
|
|
250
250
|
function Ws(...t) {
|
|
251
|
-
|
|
251
|
+
Gt("log", ...t);
|
|
252
252
|
}
|
|
253
253
|
function Xs(...t) {
|
|
254
|
-
|
|
254
|
+
Gt("warn", ...t);
|
|
255
255
|
}
|
|
256
256
|
function Ks(...t) {
|
|
257
|
-
|
|
257
|
+
Gt("error", ...t);
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function Gt(t, ...e) {
|
|
260
260
|
_ && wr() && me(() => {
|
|
261
261
|
R.console[t](`${qs}[${t}]:`, ...e);
|
|
262
262
|
});
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function Vt() {
|
|
265
265
|
return _ ? ge("loggerSettings", () => ({ enabled: !1 })) : { enabled: !1 };
|
|
266
266
|
}
|
|
267
267
|
const m = {
|
|
268
268
|
/** Enable logging. */
|
|
269
|
-
enable:
|
|
269
|
+
enable: Gs,
|
|
270
270
|
/** Disable logging. */
|
|
271
|
-
disable:
|
|
271
|
+
disable: Vs,
|
|
272
272
|
/** Check if logging is enabled. */
|
|
273
273
|
isEnabled: wr,
|
|
274
274
|
/** Log a message. */
|
|
@@ -721,11 +721,11 @@ function hi() {
|
|
|
721
721
|
return () => (e + it(() => t.now())) / Mr;
|
|
722
722
|
}
|
|
723
723
|
let vn;
|
|
724
|
-
function
|
|
724
|
+
function G() {
|
|
725
725
|
return (vn ?? (vn = hi()))();
|
|
726
726
|
}
|
|
727
727
|
function fi(t) {
|
|
728
|
-
const e =
|
|
728
|
+
const e = G(), n = {
|
|
729
729
|
sid: P(),
|
|
730
730
|
init: !0,
|
|
731
731
|
timestamp: e,
|
|
@@ -739,7 +739,7 @@ function fi(t) {
|
|
|
739
739
|
return t && pe(n, t), n;
|
|
740
740
|
}
|
|
741
741
|
function pe(t, e = {}) {
|
|
742
|
-
if (e.user && (!t.ipAddress && e.user.ip_address && (t.ipAddress = e.user.ip_address), !t.did && !e.did && (t.did = e.user.id || e.user.email || e.user.username)), t.timestamp = e.timestamp ||
|
|
742
|
+
if (e.user && (!t.ipAddress && e.user.ip_address && (t.ipAddress = e.user.ip_address), !t.did && !e.did && (t.did = e.user.id || e.user.email || e.user.username)), t.timestamp = e.timestamp || G(), e.abnormal_mechanism && (t.abnormal_mechanism = e.abnormal_mechanism), e.ignoreDuration && (t.ignoreDuration = e.ignoreDuration), e.sid && (t.sid = e.sid.length === 32 ? e.sid : P()), e.init !== void 0 && (t.init = e.init), !t.did && e.did && (t.did = `${e.did}`), typeof e.started == "number" && (t.started = e.started), t.ignoreDuration)
|
|
743
743
|
t.duration = void 0;
|
|
744
744
|
else if (typeof e.duration == "number")
|
|
745
745
|
t.duration = e.duration;
|
|
@@ -1418,7 +1418,7 @@ function De(t, e = !1) {
|
|
|
1418
1418
|
const { host: n, path: r, pass: s, port: i, projectId: o, protocol: a, publicKey: c } = t;
|
|
1419
1419
|
return `${a}://${c}${e && s ? `:${s}` : ""}@${n}${i ? `:${i}` : ""}/${r && `${r}/`}${o}`;
|
|
1420
1420
|
}
|
|
1421
|
-
function
|
|
1421
|
+
function Gi(t) {
|
|
1422
1422
|
const e = ji.exec(t);
|
|
1423
1423
|
if (!e) {
|
|
1424
1424
|
me(() => {
|
|
@@ -1446,7 +1446,7 @@ function zr(t) {
|
|
|
1446
1446
|
projectId: t.projectId
|
|
1447
1447
|
};
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function Vi(t) {
|
|
1450
1450
|
if (!_)
|
|
1451
1451
|
return !0;
|
|
1452
1452
|
const { port: e, projectId: n, protocol: r } = t;
|
|
@@ -1461,8 +1461,8 @@ function Xi(t) {
|
|
|
1461
1461
|
return e.orgId ? r = String(e.orgId) : n && (r = Wi(n)), r;
|
|
1462
1462
|
}
|
|
1463
1463
|
function Ki(t) {
|
|
1464
|
-
const e = typeof t == "string" ?
|
|
1465
|
-
if (!(!e || !
|
|
1464
|
+
const e = typeof t == "string" ? Gi(t) : zr(t);
|
|
1465
|
+
if (!(!e || !Vi(e)))
|
|
1466
1466
|
return e;
|
|
1467
1467
|
}
|
|
1468
1468
|
function Yi(t) {
|
|
@@ -1493,7 +1493,7 @@ function Ji(t) {
|
|
|
1493
1493
|
}));
|
|
1494
1494
|
}
|
|
1495
1495
|
function $n(t) {
|
|
1496
|
-
return typeof t == "number" ? Pn(t) : Array.isArray(t) ? t[0] + t[1] / 1e9 : t instanceof Date ? Pn(t.getTime()) :
|
|
1496
|
+
return typeof t == "number" ? Pn(t) : Array.isArray(t) ? t[0] + t[1] / 1e9 : t instanceof Date ? Pn(t.getTime()) : G();
|
|
1497
1497
|
}
|
|
1498
1498
|
function Pn(t) {
|
|
1499
1499
|
return t > 9999999999 ? t / 1e3 : t;
|
|
@@ -1589,7 +1589,7 @@ function oo(t) {
|
|
|
1589
1589
|
return typeof t == "string" || t instanceof RegExp;
|
|
1590
1590
|
}
|
|
1591
1591
|
const Qt = "production", ao = "_frozenDsc";
|
|
1592
|
-
function
|
|
1592
|
+
function Gr(t, e) {
|
|
1593
1593
|
const n = e.getOptions(), { publicKey: r } = e.getDsn() || {}, s = {
|
|
1594
1594
|
environment: n.environment || Qt,
|
|
1595
1595
|
release: n.release,
|
|
@@ -1601,7 +1601,7 @@ function Vr(t, e) {
|
|
|
1601
1601
|
}
|
|
1602
1602
|
function co(t, e) {
|
|
1603
1603
|
const n = e.getPropagationContext();
|
|
1604
|
-
return n.dsc ||
|
|
1604
|
+
return n.dsc || Gr(n.traceId, t);
|
|
1605
1605
|
}
|
|
1606
1606
|
function lo(t) {
|
|
1607
1607
|
const e = C();
|
|
@@ -1617,7 +1617,7 @@ function lo(t) {
|
|
|
1617
1617
|
const l = i?.get("sentry.dsc"), d = l && Bi(l);
|
|
1618
1618
|
if (d)
|
|
1619
1619
|
return a(d);
|
|
1620
|
-
const u =
|
|
1620
|
+
const u = Gr(t.spanContext().traceId, e), p = s[vi], h = r.description;
|
|
1621
1621
|
return p !== "url" && h && (u.transaction = h), so() && (u.sampled = String(to(n)), u.sample_rand = // In OTEL we store the sample rand on the trace state because we cannot access scopes for NonRecordingSpans
|
|
1622
1622
|
// The Sentry OTEL SpanSampler takes care of writing the sample rand on the root span
|
|
1623
1623
|
i?.get("sentry.sample_rand") ?? // On all other platforms we can actually get the scopes from a root span (we use this as a fallback)
|
|
@@ -1630,9 +1630,9 @@ function z(t, e = 100, n = 1 / 0) {
|
|
|
1630
1630
|
return { ERROR: `**non-serializable** (${r})` };
|
|
1631
1631
|
}
|
|
1632
1632
|
}
|
|
1633
|
-
function
|
|
1633
|
+
function Vr(t, e = 3, n = 100 * 1024) {
|
|
1634
1634
|
const r = z(t, e);
|
|
1635
|
-
return fo(r) > n ?
|
|
1635
|
+
return fo(r) > n ? Vr(t, e - 1, n) : r;
|
|
1636
1636
|
}
|
|
1637
1637
|
function It(t, e, n = 1 / 0, r = 1 / 0, s = go()) {
|
|
1638
1638
|
const [i, o] = s;
|
|
@@ -1972,33 +1972,33 @@ function At(t, e, n, r) {
|
|
|
1972
1972
|
const i = s({ ...t }, e);
|
|
1973
1973
|
return _ && i === null && m.log(`Event processor "${s.id || "?"}" dropped event`), Ce(i) ? i.then((o) => At(o, e, n, r + 1)) : At(i, e, n, r + 1);
|
|
1974
1974
|
}
|
|
1975
|
-
let Q, zn, jn,
|
|
1975
|
+
let Q, zn, jn, V;
|
|
1976
1976
|
function vo(t) {
|
|
1977
1977
|
const e = R._sentryDebugIds, n = R._debugIds;
|
|
1978
1978
|
if (!e && !n)
|
|
1979
1979
|
return {};
|
|
1980
1980
|
const r = e ? Object.keys(e) : [], s = n ? Object.keys(n) : [];
|
|
1981
|
-
if (
|
|
1982
|
-
return
|
|
1983
|
-
zn = r.length, jn = s.length,
|
|
1981
|
+
if (V && r.length === zn && s.length === jn)
|
|
1982
|
+
return V;
|
|
1983
|
+
zn = r.length, jn = s.length, V = {}, Q || (Q = {});
|
|
1984
1984
|
const i = (o, a) => {
|
|
1985
1985
|
for (const c of o) {
|
|
1986
1986
|
const l = a[c], d = Q?.[c];
|
|
1987
|
-
if (d &&
|
|
1988
|
-
|
|
1987
|
+
if (d && V && l)
|
|
1988
|
+
V[d[0]] = l, Q && (Q[c] = [d[0], l]);
|
|
1989
1989
|
else if (l) {
|
|
1990
1990
|
const u = t(c);
|
|
1991
1991
|
for (let p = u.length - 1; p >= 0; p--) {
|
|
1992
1992
|
const f = u[p]?.filename;
|
|
1993
|
-
if (f &&
|
|
1994
|
-
|
|
1993
|
+
if (f && V && Q) {
|
|
1994
|
+
V[f] = l, Q[c] = [f, l];
|
|
1995
1995
|
break;
|
|
1996
1996
|
}
|
|
1997
1997
|
}
|
|
1998
1998
|
}
|
|
1999
1999
|
}
|
|
2000
2000
|
};
|
|
2001
|
-
return e && i(r, e), n && i(s, n),
|
|
2001
|
+
return e && i(r, e), n && i(s, n), V;
|
|
2002
2002
|
}
|
|
2003
2003
|
function Io(t, e) {
|
|
2004
2004
|
const { fingerprint: n, span: r, breadcrumbs: s, sdkProcessingMetadata: i } = e;
|
|
@@ -2173,17 +2173,17 @@ function qo(t) {
|
|
|
2173
2173
|
function Kr(t, e) {
|
|
2174
2174
|
return H().captureException(t, Ho(e));
|
|
2175
2175
|
}
|
|
2176
|
-
function
|
|
2176
|
+
function Go(t, e) {
|
|
2177
2177
|
const n = typeof e == "string" ? e : void 0, r = typeof e != "string" ? { captureContext: e } : void 0;
|
|
2178
2178
|
return H().captureMessage(t, n, r);
|
|
2179
2179
|
}
|
|
2180
2180
|
function Yr(t, e) {
|
|
2181
2181
|
return H().captureEvent(t, e);
|
|
2182
2182
|
}
|
|
2183
|
-
function
|
|
2183
|
+
function Vo(t) {
|
|
2184
2184
|
J().setUser(t);
|
|
2185
2185
|
}
|
|
2186
|
-
function
|
|
2186
|
+
function Gn(t) {
|
|
2187
2187
|
const e = J(), { user: n } = Xr(e, H()), { userAgent: r } = R.navigator || {}, s = fi({
|
|
2188
2188
|
user: n,
|
|
2189
2189
|
...r && { userAgent: r },
|
|
@@ -2223,7 +2223,7 @@ function Yo(t, e) {
|
|
|
2223
2223
|
function Zo(t, e, n) {
|
|
2224
2224
|
return e || `${Ko(t)}?${Yo(t, n)}`;
|
|
2225
2225
|
}
|
|
2226
|
-
const
|
|
2226
|
+
const Vn = [];
|
|
2227
2227
|
function Jo(t) {
|
|
2228
2228
|
const e = {};
|
|
2229
2229
|
return t.forEach((n) => {
|
|
@@ -2261,7 +2261,7 @@ function Qr(t, e, n) {
|
|
|
2261
2261
|
_ && m.log(`Integration skipped because it was already installed: ${e.name}`);
|
|
2262
2262
|
return;
|
|
2263
2263
|
}
|
|
2264
|
-
if (n[e.name] = e, !
|
|
2264
|
+
if (n[e.name] = e, !Vn.includes(e.name) && typeof e.setupOnce == "function" && (e.setupOnce(), Vn.push(e.name)), e.setup && typeof e.setup == "function" && e.setup(t), typeof e.preprocessEvent == "function") {
|
|
2265
2265
|
const r = e.preprocessEvent.bind(e);
|
|
2266
2266
|
t.on("preprocessEvent", (s, i) => r(s, i, t));
|
|
2267
2267
|
}
|
|
@@ -3418,9 +3418,9 @@ function or(t, e, n, r) {
|
|
|
3418
3418
|
}
|
|
3419
3419
|
function qa(t) {
|
|
3420
3420
|
const e = "console";
|
|
3421
|
-
oe(e, t), ae(e,
|
|
3421
|
+
oe(e, t), ae(e, Ga);
|
|
3422
3422
|
}
|
|
3423
|
-
function
|
|
3423
|
+
function Ga() {
|
|
3424
3424
|
"console" in R && js.forEach(function(t) {
|
|
3425
3425
|
t in R.console && $(R.console, t, function(e) {
|
|
3426
3426
|
return Xe[t] = e, function(...n) {
|
|
@@ -3429,7 +3429,7 @@ function Va() {
|
|
|
3429
3429
|
});
|
|
3430
3430
|
});
|
|
3431
3431
|
}
|
|
3432
|
-
function
|
|
3432
|
+
function Va(t) {
|
|
3433
3433
|
return t === "warn" ? "warning" : ["fatal", "error", "warning", "log", "info", "debug"].includes(t) ? t : "log";
|
|
3434
3434
|
}
|
|
3435
3435
|
const Wa = "Dedupe", Xa = (() => {
|
|
@@ -3548,7 +3548,7 @@ function oc(t, e = !1) {
|
|
|
3548
3548
|
method: i,
|
|
3549
3549
|
url: o
|
|
3550
3550
|
},
|
|
3551
|
-
startTimestamp:
|
|
3551
|
+
startTimestamp: G() * 1e3,
|
|
3552
3552
|
// // Adding the error to be able to fingerprint the failed fetch event in HttpClient instrumentation
|
|
3553
3553
|
virtualError: s,
|
|
3554
3554
|
headers: cc(r)
|
|
@@ -3558,13 +3558,13 @@ function oc(t, e = !1) {
|
|
|
3558
3558
|
}), n.apply(R, r).then(
|
|
3559
3559
|
async (c) => (F("fetch", {
|
|
3560
3560
|
...a,
|
|
3561
|
-
endTimestamp:
|
|
3561
|
+
endTimestamp: G() * 1e3,
|
|
3562
3562
|
response: c
|
|
3563
3563
|
}), c),
|
|
3564
3564
|
(c) => {
|
|
3565
3565
|
F("fetch", {
|
|
3566
3566
|
...a,
|
|
3567
|
-
endTimestamp:
|
|
3567
|
+
endTimestamp: G() * 1e3,
|
|
3568
3568
|
error: c
|
|
3569
3569
|
}), nt(c) && c.stack === void 0 && (c.stack = s.stack, Y(c, "framesToPop", 1));
|
|
3570
3570
|
const d = C()?.getOptions().enhanceFetchErrorMessages ?? "always";
|
|
@@ -3580,11 +3580,11 @@ function oc(t, e = !1) {
|
|
|
3580
3580
|
};
|
|
3581
3581
|
});
|
|
3582
3582
|
}
|
|
3583
|
-
function
|
|
3583
|
+
function Ge(t, e) {
|
|
3584
3584
|
return !!t && typeof t == "object" && !!t[e];
|
|
3585
3585
|
}
|
|
3586
3586
|
function cr(t) {
|
|
3587
|
-
return typeof t == "string" ? t : t ?
|
|
3587
|
+
return typeof t == "string" ? t : t ? Ge(t, "url") ? t.url : t.toString ? t.toString() : "" : "";
|
|
3588
3588
|
}
|
|
3589
3589
|
function ac(t) {
|
|
3590
3590
|
if (t.length === 0)
|
|
@@ -3593,16 +3593,16 @@ function ac(t) {
|
|
|
3593
3593
|
const [n, r] = t;
|
|
3594
3594
|
return {
|
|
3595
3595
|
url: cr(n),
|
|
3596
|
-
method:
|
|
3596
|
+
method: Ge(r, "method") ? String(r.method).toUpperCase() : (
|
|
3597
3597
|
// Request object as first argument
|
|
3598
|
-
Dr(n) &&
|
|
3598
|
+
Dr(n) && Ge(n, "method") ? String(n.method).toUpperCase() : "GET"
|
|
3599
3599
|
)
|
|
3600
3600
|
};
|
|
3601
3601
|
}
|
|
3602
3602
|
const e = t[0];
|
|
3603
3603
|
return {
|
|
3604
3604
|
url: cr(e),
|
|
3605
|
-
method:
|
|
3605
|
+
method: Ge(e, "method") ? String(e.method).toUpperCase() : "GET"
|
|
3606
3606
|
};
|
|
3607
3607
|
}
|
|
3608
3608
|
function cc(t) {
|
|
@@ -3691,7 +3691,7 @@ function rn(t, e) {
|
|
|
3691
3691
|
}
|
|
3692
3692
|
function pc(t, e, n, r) {
|
|
3693
3693
|
const i = C()?.getOptions().normalizeDepth, o = kc(e), a = {
|
|
3694
|
-
__serialized__:
|
|
3694
|
+
__serialized__: Vr(e, i)
|
|
3695
3695
|
};
|
|
3696
3696
|
if (o)
|
|
3697
3697
|
return {
|
|
@@ -3977,14 +3977,14 @@ function Oc(t) {
|
|
|
3977
3977
|
return t;
|
|
3978
3978
|
}
|
|
3979
3979
|
}
|
|
3980
|
-
const
|
|
3980
|
+
const Ve = {};
|
|
3981
3981
|
function $c(t) {
|
|
3982
|
-
const e =
|
|
3982
|
+
const e = Ve[t];
|
|
3983
3983
|
if (e)
|
|
3984
3984
|
return e;
|
|
3985
3985
|
let n = A[t];
|
|
3986
3986
|
if (Pt(n))
|
|
3987
|
-
return
|
|
3987
|
+
return Ve[t] = n.bind(A);
|
|
3988
3988
|
const r = A.document;
|
|
3989
3989
|
if (r && typeof r.createElement == "function")
|
|
3990
3990
|
try {
|
|
@@ -3995,10 +3995,10 @@ function $c(t) {
|
|
|
3995
3995
|
} catch (s) {
|
|
3996
3996
|
wc && m.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `, s);
|
|
3997
3997
|
}
|
|
3998
|
-
return n && (
|
|
3998
|
+
return n && (Ve[t] = n.bind(A));
|
|
3999
3999
|
}
|
|
4000
4000
|
function Pc(t) {
|
|
4001
|
-
|
|
4001
|
+
Ve[t] = void 0;
|
|
4002
4002
|
}
|
|
4003
4003
|
const Re = "__sentry_xhr_v3__";
|
|
4004
4004
|
function Lc(t) {
|
|
@@ -4010,7 +4010,7 @@ function Mc() {
|
|
|
4010
4010
|
const t = XMLHttpRequest.prototype;
|
|
4011
4011
|
t.open = new Proxy(t.open, {
|
|
4012
4012
|
apply(e, n, r) {
|
|
4013
|
-
const s = new Error(), i =
|
|
4013
|
+
const s = new Error(), i = G() * 1e3, o = q(r[0]) ? r[0].toUpperCase() : void 0, a = Fc(r[1]);
|
|
4014
4014
|
if (!o || !a)
|
|
4015
4015
|
return e.apply(n, r);
|
|
4016
4016
|
n[Re] = {
|
|
@@ -4026,7 +4026,7 @@ function Mc() {
|
|
|
4026
4026
|
} catch {
|
|
4027
4027
|
}
|
|
4028
4028
|
const d = {
|
|
4029
|
-
endTimestamp:
|
|
4029
|
+
endTimestamp: G() * 1e3,
|
|
4030
4030
|
startTimestamp: i,
|
|
4031
4031
|
xhr: n,
|
|
4032
4032
|
virtualError: s
|
|
@@ -4052,7 +4052,7 @@ function Mc() {
|
|
|
4052
4052
|
return e.apply(n, r);
|
|
4053
4053
|
r[0] !== void 0 && (s.body = r[0]);
|
|
4054
4054
|
const i = {
|
|
4055
|
-
startTimestamp:
|
|
4055
|
+
startTimestamp: G() * 1e3,
|
|
4056
4056
|
xhr: n
|
|
4057
4057
|
};
|
|
4058
4058
|
return F("xhr", i), e.apply(n, r);
|
|
@@ -4123,8 +4123,8 @@ function Bt(t, e, n, r) {
|
|
|
4123
4123
|
};
|
|
4124
4124
|
return n !== void 0 && (s.lineno = n), r !== void 0 && (s.colno = r), s;
|
|
4125
4125
|
}
|
|
4126
|
-
const jc = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, qc = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,
|
|
4127
|
-
const e = t.match(
|
|
4126
|
+
const jc = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, qc = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, Gc = /\((\S*)(?::(\d+))(?::(\d+))\)/, Vc = /at (.+?) ?\(data:(.+?),/, Wc = (t) => {
|
|
4127
|
+
const e = t.match(Vc);
|
|
4128
4128
|
if (e)
|
|
4129
4129
|
return {
|
|
4130
4130
|
filename: `<data:${e[2]}>`,
|
|
@@ -4138,7 +4138,7 @@ const jc = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, qc = /^\s*at (?:(.+?\)(?: \
|
|
|
4138
4138
|
const r = qc.exec(t);
|
|
4139
4139
|
if (r) {
|
|
4140
4140
|
if (r[2] && r[2].indexOf("eval") === 0) {
|
|
4141
|
-
const a =
|
|
4141
|
+
const a = Gc.exec(r[2]);
|
|
4142
4142
|
a && (r[2] = a[1], r[3] = a[2], r[4] = a[3]);
|
|
4143
4143
|
}
|
|
4144
4144
|
const [i, o] = _s(r[1] || se, r[2]);
|
|
@@ -4229,7 +4229,7 @@ function ol(t) {
|
|
|
4229
4229
|
arguments: n.args,
|
|
4230
4230
|
logger: "console"
|
|
4231
4231
|
},
|
|
4232
|
-
level:
|
|
4232
|
+
level: Va(n.level),
|
|
4233
4233
|
message: wn(n.args, " ")
|
|
4234
4234
|
};
|
|
4235
4235
|
if (n.level === "assert")
|
|
@@ -4484,14 +4484,14 @@ const bl = (t = {}) => {
|
|
|
4484
4484
|
ct && m.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");
|
|
4485
4485
|
return;
|
|
4486
4486
|
}
|
|
4487
|
-
|
|
4487
|
+
Gn({ ignoreDuration: !0 }), _t();
|
|
4488
4488
|
const n = J();
|
|
4489
4489
|
let r = n.getUser();
|
|
4490
4490
|
n.addScopeListener((s) => {
|
|
4491
4491
|
const i = s.getUser();
|
|
4492
4492
|
(r?.id !== i?.id || r?.ip_address !== i?.ip_address) && (_t(), r = i);
|
|
4493
4493
|
}), e === "route" && ms(({ from: s, to: i }) => {
|
|
4494
|
-
s !== i && (
|
|
4494
|
+
s !== i && (Gn({ ignoreDuration: !0 }), _t());
|
|
4495
4495
|
});
|
|
4496
4496
|
}
|
|
4497
4497
|
};
|
|
@@ -4701,7 +4701,7 @@ function jl(t = {}) {
|
|
|
4701
4701
|
return xa(xc, r);
|
|
4702
4702
|
}
|
|
4703
4703
|
const ql = "https://06451c8d861702902d2e6b2088fa9b62@o1128948.ingest.us.sentry.io/4509207135387648";
|
|
4704
|
-
class
|
|
4704
|
+
class Gl {
|
|
4705
4705
|
constructor(e) {
|
|
4706
4706
|
this.enabled = e;
|
|
4707
4707
|
}
|
|
@@ -4714,7 +4714,7 @@ class Vl {
|
|
|
4714
4714
|
});
|
|
4715
4715
|
}
|
|
4716
4716
|
setUser(e) {
|
|
4717
|
-
!this.enabled || !e || (this.flavour = e,
|
|
4717
|
+
!this.enabled || !e || (this.flavour = e, Vo({ id: e, username: e }));
|
|
4718
4718
|
}
|
|
4719
4719
|
setTransactionId(e) {
|
|
4720
4720
|
this.txnId = e;
|
|
@@ -4723,7 +4723,7 @@ class Vl {
|
|
|
4723
4723
|
this.enabled && Z({ category: e, message: n, data: r, level: "info", timestamp: Date.now() / 1e3 });
|
|
4724
4724
|
}
|
|
4725
4725
|
captureEvent(e, n) {
|
|
4726
|
-
this.enabled &&
|
|
4726
|
+
this.enabled && Go(e, {
|
|
4727
4727
|
level: "info",
|
|
4728
4728
|
tags: { txn_id: this.txnId, flavour: this.flavour },
|
|
4729
4729
|
extra: n,
|
|
@@ -4746,7 +4746,7 @@ const y = {
|
|
|
4746
4746
|
UNAUTHORIZED: 401,
|
|
4747
4747
|
FORBIDDEN: 403
|
|
4748
4748
|
};
|
|
4749
|
-
var
|
|
4749
|
+
var Vl = /* @__PURE__ */ ((t) => (t.NOT_INITIALIZED = "na", t.INIT = "init", t.STOP = "stop", t.COMMIT = "commit", t))(Vl || {}), Wl = /* @__PURE__ */ ((t) => (t.START = "start", t.PAUSE = "pause", t.RESUME = "resume", t.STOP = "stop", t))(Wl || {}), Xl = /* @__PURE__ */ ((t) => (t.EKA_EMR_TEMPLATE = "eka_emr_template", t.CLINICAL_NOTE_TEMPLATE = "clinical_notes_template", t.TRANSCRIPT_TEMPLATE = "transcript_template", t.EKA_EMR_TO_FHIR_TEMPLATE = "eka_emr_to_fhir_template", t.NIC_TEMPLATE = "nic_template", t))(Xl || {}), Kl = /* @__PURE__ */ ((t) => (t.SUCCESS = "success", t.FAILURE = "failure", t.PARTIAL_COMPLETE = "partial_complete", t.IN_PROGRESS = "in-progress", t))(Kl || {}), S = /* @__PURE__ */ ((t) => (t.MICROPHONE = "microphone", t.TXN_INIT_FAILED = "txn_init_failed", t.TXN_LIMIT_EXCEEDED = "txn_limit_exceeded", t.INTERNAL_SERVER_ERROR = "internal_server_error", t.END_RECORDING_FAILED = "end_recording_failed", t.AUDIO_UPLOAD_FAILED = "audio_upload_failed", t.TXN_COMMIT_FAILED = "txn_commit_failed", t.TXN_STATUS_MISMATCH = "txn_status_mismatch", t.NETWORK_ERROR = "network_error", t.UNKNOWN_ERROR = "unknown_error", t.UNAUTHORIZED = "unauthorized", t.FORBIDDEN = "forbidden", t.START_RECORDING_FAILED = "start_recording_failed", t))(S || {}), Yl = /* @__PURE__ */ ((t) => (t.SUCCESS = "success", t.IN_PROGRESS = "in-progress", t.FAILED = "failed", t.CANCELLED = "cancelled", t))(Yl || {}), Zl = /* @__PURE__ */ ((t) => (t.AWS_CONFIGURE_STATUS = "aws_configure_status", t.FILE_UPLOAD_STATUS = "file_upload_status", t.TRANSACTION_STATUS = "transaction_status", t.TEMPLATE_OPERATION_STATUS = "template_operation_status", t.AUTHENTICATION_STATUS = "authentication_status", t.NETWORK_STATUS = "network_status", t.STORAGE_STATUS = "storage_status", t))(Zl || {}), We = /* @__PURE__ */ ((t) => (t.JSON = "json", t.TRANSCRIPT = "transcript", t.MARKDOWN = "markdown", t))(We || {}), ee = /* @__PURE__ */ ((t) => (t.INTERNET_CONNECTIVITY = "INTERNET_CONNECTIVITY", t.SYSTEM_INFO = "SYSTEM_INFO", t.MICROPHONE = "MICROPHONE", t.SHARED_WORKER = "SHARED_WORKER", t.NETWORK_API = "NETWORK_API", t))(ee || {}), v = /* @__PURE__ */ ((t) => (t.SUCCESS = "success", t.ERROR = "error", t.WARNING = "warning", t))(v || {});
|
|
4750
4750
|
function E(t, e) {
|
|
4751
4751
|
return t instanceof j ? t.status === 401 ? {
|
|
4752
4752
|
error_code: S.UNAUTHORIZED,
|
|
@@ -5489,6 +5489,7 @@ class eu {
|
|
|
5489
5489
|
status_code: y.TXN_ERROR,
|
|
5490
5490
|
message: "Transaction not initialized. Call initTransaction() first."
|
|
5491
5491
|
};
|
|
5492
|
+
this.allianceClient.clearRecordingState();
|
|
5492
5493
|
const n = await this.allianceClient.startRecordingWithSession(
|
|
5493
5494
|
this.storedSession,
|
|
5494
5495
|
{
|
|
@@ -5501,7 +5502,7 @@ class eu {
|
|
|
5501
5502
|
message: "Recording started successfully.",
|
|
5502
5503
|
txn_id: this.txnID
|
|
5503
5504
|
} : {
|
|
5504
|
-
error_code: S.
|
|
5505
|
+
error_code: S.START_RECORDING_FAILED,
|
|
5505
5506
|
status_code: n.error.httpStatus ?? y.INTERNAL_SERVER_ERROR,
|
|
5506
5507
|
message: n.error.message || "Failed to start recording."
|
|
5507
5508
|
};
|
|
@@ -5534,7 +5535,7 @@ class eu {
|
|
|
5534
5535
|
message: "Recording started for existing session.",
|
|
5535
5536
|
txn_id: this.txnID
|
|
5536
5537
|
}) : {
|
|
5537
|
-
error_code: S.
|
|
5538
|
+
error_code: S.START_RECORDING_FAILED,
|
|
5538
5539
|
status_code: r.error.httpStatus ?? y.INTERNAL_SERVER_ERROR,
|
|
5539
5540
|
message: r.error.message || "Failed to start recording for existing session."
|
|
5540
5541
|
};
|
|
@@ -6293,7 +6294,7 @@ function kr(t, e, n, r, s) {
|
|
|
6293
6294
|
let c = { type: t[0].charAt(0) === "!" ? "image" : "link", raw: n, href: i, title: o, text: a, tokens: r.inlineTokens(a) };
|
|
6294
6295
|
return r.state.inLink = !1, c;
|
|
6295
6296
|
}
|
|
6296
|
-
function
|
|
6297
|
+
function Gu(t, e, n) {
|
|
6297
6298
|
let r = t.match(n.other.indentCodeCompensation);
|
|
6298
6299
|
if (r === null) return e;
|
|
6299
6300
|
let s = r[1];
|
|
@@ -6327,7 +6328,7 @@ var Je = class {
|
|
|
6327
6328
|
fences(t) {
|
|
6328
6329
|
let e = this.rules.block.fences.exec(t);
|
|
6329
6330
|
if (e) {
|
|
6330
|
-
let n = e[0], r =
|
|
6331
|
+
let n = e[0], r = Gu(n, e[3] || "", this.rules);
|
|
6331
6332
|
return { type: "code", raw: n, lang: e[2] ? e[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : e[2], text: r };
|
|
6332
6333
|
}
|
|
6333
6334
|
}
|
|
@@ -7167,7 +7168,7 @@ ${t}</tr>
|
|
|
7167
7168
|
provideParser(t = this.block) {
|
|
7168
7169
|
return t ? M.parse : M.parseInline;
|
|
7169
7170
|
}
|
|
7170
|
-
}, w(He, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), w(He, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), He),
|
|
7171
|
+
}, w(He, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), w(He, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), He), Vu = class {
|
|
7171
7172
|
constructor(...t) {
|
|
7172
7173
|
w(this, "defaults", an());
|
|
7173
7174
|
w(this, "options", this.setOptions);
|
|
@@ -7327,7 +7328,7 @@ Please report this to https://github.com/markedjs/marked.`, t) {
|
|
|
7327
7328
|
throw n;
|
|
7328
7329
|
};
|
|
7329
7330
|
}
|
|
7330
|
-
}, ie = new
|
|
7331
|
+
}, ie = new Vu();
|
|
7331
7332
|
function x(t, e) {
|
|
7332
7333
|
return ie.parse(t, e);
|
|
7333
7334
|
}
|
|
@@ -8198,7 +8199,7 @@ class rd {
|
|
|
8198
8199
|
}
|
|
8199
8200
|
const O = class O {
|
|
8200
8201
|
constructor(e) {
|
|
8201
|
-
this.widgetManager = null, this.config = e, this.hosts = Hs(e.env), this.callbackRegistry = new zs(), this.tracker = new
|
|
8202
|
+
this.widgetManager = null, this.config = e, this.hosts = Hs(e.env), this.callbackRegistry = new zs(), this.tracker = new Gl(e.enableTracking ?? !1);
|
|
8202
8203
|
const n = {
|
|
8203
8204
|
access_token: e.access_token,
|
|
8204
8205
|
clientId: e.clientId,
|
|
@@ -8359,7 +8360,7 @@ O.instance = null;
|
|
|
8359
8360
|
let qt = O;
|
|
8360
8361
|
const od = (t) => qt.getInstance(t);
|
|
8361
8362
|
export {
|
|
8362
|
-
|
|
8363
|
+
Vl as API_STATUS,
|
|
8363
8364
|
Zl as CALLBACK_TYPE,
|
|
8364
8365
|
v as COMPATIBILITY_TEST_STATUS,
|
|
8365
8366
|
ee as COMPATIBILITY_TEST_TYPE,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eka-care/ekascribe-ts-sdk",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.32",
|
|
4
4
|
"description": "EkaScribe TypeScript SDK - Modern ES2020 build",
|
|
5
5
|
"main": "dist/index.mjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"marked": "^18.0.4",
|
|
41
|
-
"med-scribe-alliance-ts-sdk": "2.0.
|
|
41
|
+
"med-scribe-alliance-ts-sdk": "2.0.32"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"vite-bundle-analyzer": "^1.3.6"
|