@jumio/websdk 0.3.7 → 0.3.9
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/README.md +10 -8
- package/assets/BRAZILIAN_ID.BychxTsM.webp +0 -0
- package/assets/BRAZILIAN_ID.COOwtpxb.js +5 -0
- package/assets/style.css +1 -388
- package/dd/profiler-D3RPYsu2.js +235 -0
- package/dd/startRecording-fSlL2kj6.js +1494 -0
- package/i18n/{ar.T3uwDrDk.js → ar.DQAZ0Yuj.js} +22 -9
- package/i18n/{az.kcfl6xK0.js → az.CZpeBE-R.js} +20 -7
- package/i18n/{bg.D4GoSHJe.js → bg.DRipw-AS.js} +22 -9
- package/i18n/{bn.B5uiwpGi.js → bn.BVVDdy4Y.js} +22 -9
- package/i18n/{ca.3sQH_ppt.js → ca.BJSQMJAn.js} +20 -7
- package/i18n/{ceb.yf48eARk.js → ceb.CLSAgidd.js} +20 -7
- package/i18n/{cs.DE_0TiUD.js → cs.a2KNhAb0.js} +20 -7
- package/i18n/{da.2YNWoKGw.js → da.wqlI7cLa.js} +20 -7
- package/i18n/{de.Di6uyRBI.js → de.DbI6ONkx.js} +20 -7
- package/i18n/{el.BCLsHi_5.js → el.CtzCruwX.js} +20 -7
- package/i18n/{en.BEnScYYp.js → en.BHI7iGbf.js} +20 -7
- package/i18n/{en_GB.D9K-y9Lt.js → en_GB.C3If71_d.js} +20 -7
- package/i18n/{es.B87jC5vi.js → es.Ca-YA0Px.js} +20 -7
- package/i18n/{es_MX.CKeqnvYr.js → es_MX.TMdzNcFi.js} +20 -7
- package/i18n/{et.DW9T2-Ew.js → et.Be029R5s.js} +20 -7
- package/i18n/{fi.jQikdRqy.js → fi.BM-qeBgY.js} +20 -7
- package/i18n/{fil.DjlyI9Du.js → fil.Bpp6Zjnq.js} +20 -7
- package/i18n/{fr.D4RusXjY.js → fr.Crs44eyQ.js} +20 -7
- package/i18n/{fr_CA.BCbNlG72.js → fr_CA.BZfsGz8g.js} +20 -7
- package/i18n/{ga.BM5XegO7.js → ga.eJikZJLf.js} +20 -7
- package/i18n/{he.GFUl_Ovq.js → he.BF-pFZr0.js} +22 -9
- package/i18n/{hi.DqjwlhuN.js → hi.9BJGSrvh.js} +22 -9
- package/i18n/{hr.BUlTJRy5.js → hr.B3e7sDEJ.js} +19 -6
- package/i18n/{hu.2ESvfCXG.js → hu.B-H5lJwl.js} +24 -11
- package/i18n/{hy.bDGe0Y0q.js → hy.B7r1YYPB.js} +20 -7
- package/i18n/{id.CVv4_FYq.js → id.D3bj8W3T.js} +20 -7
- package/i18n/{is.C4Wust7-.js → is.CllYem4P.js} +20 -7
- package/i18n/{it.Bcb9WH3M.js → it.C5O5drUH.js} +20 -7
- package/i18n/{ja.CF4oKdfl.js → ja.Dpq21PVc.js} +22 -9
- package/i18n/{jv.BGK40sjr.js → jv.BUWLK4fT.js} +20 -7
- package/i18n/{ka_GE.CJ5639xN.js → ka_GE.CR0QAE8M.js} +22 -9
- package/i18n/{kk.BvZLdQua.js → kk.DlGuTdj5.js} +22 -9
- package/i18n/{km_KH.DI7Gob6t.js → km_KH.XxyQzFEg.js} +22 -9
- package/i18n/{ko.C7g9WCOC.js → ko.Gqe6BQCg.js} +22 -9
- package/i18n/{lt.C51kGu5j.js → lt.DYuXGG5u.js} +19 -6
- package/i18n/{lv.CaDIhAeK.js → lv.CC7NhGJr.js} +20 -7
- package/i18n/{ms.DU4RMKLD.js → ms.CUi0K2sb.js} +20 -7
- package/i18n/{my.Bp84_t_O.js → my.BFTbRDee.js} +20 -7
- package/i18n/{nl.CMBUMLRk.js → nl.CER8FlAM.js} +20 -7
- package/i18n/{no.3j89D7aB.js → no.BvXIkhft.js} +19 -6
- package/i18n/{pl.C1Tm61vZ.js → pl.GpBYXsbc.js} +20 -7
- package/i18n/{pt.D7JHS5UZ.js → pt.ug3cAFLh.js} +20 -7
- package/i18n/{pt_BR.4uEr0rEZ.js → pt_BR.DkEGr3X3.js} +20 -7
- package/i18n/{ro.CVfpbbV5.js → ro.BJUt7_73.js} +20 -7
- package/i18n/{ru.I6tHCzIf.js → ru.CNqwLjky.js} +22 -9
- package/i18n/{sk.B-W62p1U.js → sk.BSo1MMT4.js} +20 -7
- package/i18n/{sl.DL21tk_4.js → sl.C1kxfA-v.js} +24 -11
- package/i18n/{sq.cPkMbQYV.js → sq.DOZ1m_rM.js} +20 -7
- package/i18n/{sr_Cyrl.DcIIm4Rv.js → sr_Cyrl.BTjgWlfG.js} +21 -8
- package/i18n/{sr_Latn.FcZ8mmkQ.js → sr_Latn.DznTXc0w.js} +19 -6
- package/i18n/{sv.DiM3RdSW.js → sv.Duw1Z8vA.js} +20 -7
- package/i18n/{sw.B6BzYshj.js → sw.DjqSRQVj.js} +19 -6
- package/i18n/{th.CV7jfvWg.js → th.6xfmXEPT.js} +22 -9
- package/i18n/{tr.BY848w1R.js → tr.CmUQ4swG.js} +24 -11
- package/i18n/{uk.9d87WP3d.js → uk.DyDmS6_M.js} +20 -7
- package/i18n/{ur.CLr26BDr.js → ur.9mLau0xy.js} +22 -9
- package/i18n/{uz.C9f5ZP1F.js → uz.CeHgACLy.js} +20 -7
- package/i18n/{vi.Bf656zdP.js → vi.Camg2bdf.js} +20 -7
- package/i18n/{zh_CN.BtJxHg1j.js → zh_CN.BfndhZb4.js} +22 -9
- package/i18n/{zh_HK.DMoApWv6.js → zh_HK.rVo23BpW.js} +22 -9
- package/index.CSVWYnCO.js +63459 -0
- package/index.d.ts +5359 -2801
- package/index.html +41 -13
- package/index.js +24 -821
- package/index2.js +865 -0
- package/ml/assets_da_web_1_1_6.tar.D1WfMJyS.gz +0 -0
- package/ml/assets_da_web_1_1_6.tar.DmSCvmf5.js +5 -0
- package/ml/dac.DvB1oqUl.js +5 -0
- package/ml/dac.ylGvplzs.wasm +0 -0
- package/ml/dac_simd.CcxYX304.wasm +0 -0
- package/ml/dac_simd.Cipmg_2o.js +5 -0
- package/package.json +5 -1
- package/pdfjs/pdf-U_mH0bJO.js +17500 -0
- package/pdfjs/pdf.worker.min-DFxVranA.js +5 -0
- package/third-party-licenses.txt +1684 -8532
- package/BRAZILIAN_ID.BmZRIYzL.js +0 -5
- package/CHANGELOG.md +0 -93
- package/assets/fonts/jumio-sdk-icomoon.svg +0 -117
- package/assets/fonts/jumio-sdk-icomoon.ttf +0 -0
- package/assets/fonts/jumio-sdk-icomoon.woff +0 -0
- package/assets_da_web_1_1_6.tar.CCpLQ2oJ.js +0 -5
- package/dac.C1nISBeT.js +0 -5
- package/dac_simd.CQrYamf5.js +0 -5
- package/index._oXR6nDN.js +0 -59065
- package/pdfjs/pdf-DDTuoCrJ.js +0 -17532
- package/pdfjs/pdf.worker.min-BJaB4MSa.js +0 -5
- package/profiler.L7XU-wqf.js +0 -278
- package/startRecording.CT0PXQwS.js +0 -1227
package/profiler.L7XU-wqf.js
DELETED
|
@@ -1,278 +0,0 @@
|
|
|
1
|
-
import { c as x, j as O, o as J, a as Q, R as W, b as Y, d as Z, s as $, e as ee, f as T, g as M, h as te, m as I, i as ne, k as se, l as re, n as oe, p as ae, r as ie } from "./index._oXR6nDN.js";
|
|
2
|
-
function le(e, t, o, a) {
|
|
3
|
-
const f = (d) => {
|
|
4
|
-
t.notify(14, { error: d }), Q("Error reported to customer", { "error.message": d.message });
|
|
5
|
-
}, l = x([e.profilingEndpointBuilder], e.batchBytesLimit, f), p = o(a);
|
|
6
|
-
return {
|
|
7
|
-
async send({ event: d, ...h }) {
|
|
8
|
-
const v = new FormData(), s = O(d);
|
|
9
|
-
if (!s)
|
|
10
|
-
throw new Error("Failed to serialize event");
|
|
11
|
-
v.append("event", new Blob([s], { type: "application/json" }), "event.json");
|
|
12
|
-
let w = s.length;
|
|
13
|
-
for (const [k, E] of J(h)) {
|
|
14
|
-
const m = O(E);
|
|
15
|
-
if (!m)
|
|
16
|
-
throw new Error("Failed to serialize attachment");
|
|
17
|
-
const g = await ce(p, m);
|
|
18
|
-
w += g.outputBytesCount, v.append(k, new Blob([g.output]), k);
|
|
19
|
-
}
|
|
20
|
-
l.send({
|
|
21
|
-
data: v,
|
|
22
|
-
bytesCount: w
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
function ce(e, t) {
|
|
28
|
-
return new Promise((o) => {
|
|
29
|
-
e.write(t), e.finish((a) => {
|
|
30
|
-
o(a);
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function ue(e) {
|
|
35
|
-
let t = 0;
|
|
36
|
-
for (const o of e)
|
|
37
|
-
o.stackId !== void 0 && t++;
|
|
38
|
-
return t;
|
|
39
|
-
}
|
|
40
|
-
const y = /* @__PURE__ */ new Map();
|
|
41
|
-
function de(e, t) {
|
|
42
|
-
y.set(t, e);
|
|
43
|
-
}
|
|
44
|
-
function fe(e) {
|
|
45
|
-
return y.get(e);
|
|
46
|
-
}
|
|
47
|
-
function R(e) {
|
|
48
|
-
for (const t of y.keys())
|
|
49
|
-
t < e && y.delete(t);
|
|
50
|
-
}
|
|
51
|
-
function me({ rawRumEvent: e, startTime: t }) {
|
|
52
|
-
if (e.type !== W.LONG_TASK)
|
|
53
|
-
return;
|
|
54
|
-
const o = e.long_task.id;
|
|
55
|
-
de(o, t);
|
|
56
|
-
}
|
|
57
|
-
const pe = /\/(?![vV]\d{1,2}\/)([^/\d?]*\d+[^/?]*)/g;
|
|
58
|
-
function ve(e) {
|
|
59
|
-
return e ? e.replace(pe, "/?") : "/";
|
|
60
|
-
}
|
|
61
|
-
const A = (e, t) => e || ve(t);
|
|
62
|
-
function be(e, t, o) {
|
|
63
|
-
const a = {
|
|
64
|
-
application: {
|
|
65
|
-
id: t
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
o && (a.session = {
|
|
69
|
-
id: o
|
|
70
|
-
});
|
|
71
|
-
const { ids: f, names: l } = he(e.views);
|
|
72
|
-
f.length && (a.view = {
|
|
73
|
-
id: f,
|
|
74
|
-
name: l
|
|
75
|
-
});
|
|
76
|
-
const p = e.longTasks.map((d) => d.id).filter((d) => d !== void 0);
|
|
77
|
-
return p.length && (a.long_task = { id: p }), a;
|
|
78
|
-
}
|
|
79
|
-
function he(e) {
|
|
80
|
-
const t = { ids: [], names: [] };
|
|
81
|
-
for (const o of e)
|
|
82
|
-
t.ids.push(o.viewId), o.viewName && t.names.push(o.viewName);
|
|
83
|
-
return t.names = Array.from(new Set(t.names)), t;
|
|
84
|
-
}
|
|
85
|
-
function ge(e, t, o) {
|
|
86
|
-
return {
|
|
87
|
-
event: we(e, t, o),
|
|
88
|
-
"wall-time.json": e
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
function we(e, t, o) {
|
|
92
|
-
const a = Y(t), f = be(e, t.applicationId, o), l = ke(a);
|
|
93
|
-
return {
|
|
94
|
-
...f,
|
|
95
|
-
attachments: ["wall-time.json"],
|
|
96
|
-
start: new Date(e.startClocks.timeStamp).toISOString(),
|
|
97
|
-
end: new Date(e.endClocks.timeStamp).toISOString(),
|
|
98
|
-
family: "chrome",
|
|
99
|
-
runtime: "chrome",
|
|
100
|
-
format: "json",
|
|
101
|
-
version: 4,
|
|
102
|
-
// Ingestion event version (not the version application tag)
|
|
103
|
-
tags_profiler: l.join(","),
|
|
104
|
-
_dd: {
|
|
105
|
-
clock_drift: Z()
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
function ke(e) {
|
|
110
|
-
return e.concat(["language:javascript", "runtime:chrome", "family:chrome", "host:browser"]);
|
|
111
|
-
}
|
|
112
|
-
const Te = {
|
|
113
|
-
sampleIntervalMs: 10,
|
|
114
|
-
// Sample stack trace every 10ms
|
|
115
|
-
collectIntervalMs: 6e4,
|
|
116
|
-
// Collect data every minute
|
|
117
|
-
minProfileDurationMs: 5e3,
|
|
118
|
-
// Require at least 5 seconds of profile data to reduce noise and cost
|
|
119
|
-
minNumberOfSamples: 50
|
|
120
|
-
// Require at least 50 samples (~500 ms) to report a profile to reduce noise and cost
|
|
121
|
-
};
|
|
122
|
-
function Ee(e, t, o, a, f, l = Te) {
|
|
123
|
-
const p = le(
|
|
124
|
-
e,
|
|
125
|
-
t,
|
|
126
|
-
f,
|
|
127
|
-
6
|
|
128
|
-
/* DeflateEncoderStreamId.PROFILING */
|
|
129
|
-
), d = $(ee.LONG_ANIMATION_FRAME);
|
|
130
|
-
let h;
|
|
131
|
-
const v = [];
|
|
132
|
-
let s = { state: "stopped" };
|
|
133
|
-
function w(n) {
|
|
134
|
-
s.state !== "running" && (h = n ? {
|
|
135
|
-
startClocks: n.startClocks,
|
|
136
|
-
viewId: n.id,
|
|
137
|
-
viewName: A(n.name, document.location.pathname)
|
|
138
|
-
} : void 0, v.push(M(e, window, "visibilitychange", B).stop, M(e, window, "beforeunload", C).stop), m());
|
|
139
|
-
}
|
|
140
|
-
async function k() {
|
|
141
|
-
await P("stopped"), v.forEach((n) => n()), R(T().relative), a.set({ status: "stopped", error_reason: void 0 });
|
|
142
|
-
}
|
|
143
|
-
function E(n) {
|
|
144
|
-
if (n.state === "running")
|
|
145
|
-
return {
|
|
146
|
-
cleanupTasks: n.cleanupTasks,
|
|
147
|
-
observer: n.observer
|
|
148
|
-
};
|
|
149
|
-
const r = [];
|
|
150
|
-
let i;
|
|
151
|
-
if (e.trackLongTasks) {
|
|
152
|
-
i = new PerformanceObserver(F), i.observe({
|
|
153
|
-
entryTypes: [V()]
|
|
154
|
-
});
|
|
155
|
-
const u = t.subscribe(12, (b) => {
|
|
156
|
-
me(b);
|
|
157
|
-
});
|
|
158
|
-
r.push(() => i == null ? void 0 : i.disconnect()), r.push(u.unsubscribe);
|
|
159
|
-
}
|
|
160
|
-
const c = t.subscribe(2, (u) => {
|
|
161
|
-
const b = {
|
|
162
|
-
viewId: u.id,
|
|
163
|
-
// Note: `viewName` is only filled when users use manual view creation via `startView` method.
|
|
164
|
-
viewName: A(u.name, document.location.pathname),
|
|
165
|
-
startClocks: u.startClocks
|
|
166
|
-
};
|
|
167
|
-
S(b), h = b;
|
|
168
|
-
});
|
|
169
|
-
return r.push(c.unsubscribe), {
|
|
170
|
-
cleanupTasks: r,
|
|
171
|
-
observer: i
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
function m() {
|
|
175
|
-
const n = te().Profiler;
|
|
176
|
-
if (!n)
|
|
177
|
-
throw a.set({ status: "error", error_reason: "not-supported-by-browser" }), new Error("RUM Profiler is not supported in this browser.");
|
|
178
|
-
g(s).catch(I);
|
|
179
|
-
const { cleanupTasks: r, observer: i } = E(s);
|
|
180
|
-
let c;
|
|
181
|
-
try {
|
|
182
|
-
c = new n({
|
|
183
|
-
sampleInterval: l.sampleIntervalMs,
|
|
184
|
-
// Keep buffer size at 1.5 times of minimum required to collect data for a profiling instance
|
|
185
|
-
maxBufferSize: Math.round(l.collectIntervalMs * 1.5 / l.sampleIntervalMs)
|
|
186
|
-
});
|
|
187
|
-
} catch (u) {
|
|
188
|
-
u instanceof Error && u.message.includes("disabled by Document Policy") ? (ne.warn("[DD_RUM] Profiler startup failed. Ensure your server includes the `Document-Policy: js-profiling` response header when serving HTML pages.", u), a.set({ status: "error", error_reason: "missing-document-policy-header" })) : a.set({ status: "error", error_reason: "unexpected-exception" });
|
|
189
|
-
return;
|
|
190
|
-
}
|
|
191
|
-
a.set({ status: "running", error_reason: void 0 }), s = {
|
|
192
|
-
state: "running",
|
|
193
|
-
startClocks: T(),
|
|
194
|
-
profiler: c,
|
|
195
|
-
timeoutId: se(m, l.collectIntervalMs),
|
|
196
|
-
longTasks: [],
|
|
197
|
-
views: [],
|
|
198
|
-
cleanupTasks: r,
|
|
199
|
-
observer: i
|
|
200
|
-
}, S(h), c.addEventListener("samplebufferfull", _);
|
|
201
|
-
}
|
|
202
|
-
async function g(n) {
|
|
203
|
-
var r, i;
|
|
204
|
-
if (n.state !== "running")
|
|
205
|
-
return;
|
|
206
|
-
L((i = (r = n.observer) === null || r === void 0 ? void 0 : r.takeRecords()) !== null && i !== void 0 ? i : []), re(n.timeoutId), n.profiler.removeEventListener("samplebufferfull", _);
|
|
207
|
-
const { startClocks: c, longTasks: u, views: b } = n, H = T();
|
|
208
|
-
await n.profiler.stop().then((N) => {
|
|
209
|
-
const D = T(), q = u.length > 0, K = oe(c.timeStamp, D.timeStamp) < l.minProfileDurationMs, X = ue(N.samples) < l.minNumberOfSamples;
|
|
210
|
-
!q && (K || X) || (j(
|
|
211
|
-
// Enrich trace with time and instance data
|
|
212
|
-
Object.assign(N, {
|
|
213
|
-
startClocks: c,
|
|
214
|
-
endClocks: D,
|
|
215
|
-
clocksOrigin: ae(),
|
|
216
|
-
longTasks: u,
|
|
217
|
-
views: b,
|
|
218
|
-
sampleInterval: l.sampleIntervalMs
|
|
219
|
-
})
|
|
220
|
-
), R(H.relative));
|
|
221
|
-
}).catch(I);
|
|
222
|
-
}
|
|
223
|
-
async function P(n) {
|
|
224
|
-
s.state === "running" && (s.cleanupTasks.forEach((r) => r()), await g(s), s = { state: n });
|
|
225
|
-
}
|
|
226
|
-
function S(n) {
|
|
227
|
-
s.state !== "running" || !n || s.views.push(n);
|
|
228
|
-
}
|
|
229
|
-
function j(n) {
|
|
230
|
-
var r;
|
|
231
|
-
const i = (r = o.findTrackedSession()) === null || r === void 0 ? void 0 : r.id, c = ge(n, e, i);
|
|
232
|
-
p.send(c);
|
|
233
|
-
}
|
|
234
|
-
function _() {
|
|
235
|
-
m();
|
|
236
|
-
}
|
|
237
|
-
function F(n) {
|
|
238
|
-
L(n.getEntries());
|
|
239
|
-
}
|
|
240
|
-
function L(n) {
|
|
241
|
-
if (s.state === "running")
|
|
242
|
-
for (const r of n) {
|
|
243
|
-
if (r.duration < l.sampleIntervalMs)
|
|
244
|
-
continue;
|
|
245
|
-
const i = ie(r.startTime), c = fe(i.relative);
|
|
246
|
-
s.longTasks.push({
|
|
247
|
-
id: c,
|
|
248
|
-
duration: r.duration,
|
|
249
|
-
entryType: r.entryType,
|
|
250
|
-
startClocks: i
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
function B() {
|
|
255
|
-
document.visibilityState === "hidden" && s.state === "running" ? P("paused").catch(I) : document.visibilityState === "visible" && s.state === "paused" && m();
|
|
256
|
-
}
|
|
257
|
-
function C() {
|
|
258
|
-
m();
|
|
259
|
-
}
|
|
260
|
-
function V() {
|
|
261
|
-
return d ? "long-animation-frame" : "longtask";
|
|
262
|
-
}
|
|
263
|
-
function U() {
|
|
264
|
-
return s.state === "stopped";
|
|
265
|
-
}
|
|
266
|
-
function z() {
|
|
267
|
-
return s.state === "running";
|
|
268
|
-
}
|
|
269
|
-
function G() {
|
|
270
|
-
return s.state === "paused";
|
|
271
|
-
}
|
|
272
|
-
return { start: w, stop: k, isStopped: U, isRunning: z, isPaused: G };
|
|
273
|
-
}
|
|
274
|
-
export {
|
|
275
|
-
Te as DEFAULT_RUM_PROFILER_CONFIGURATION,
|
|
276
|
-
Ee as createRumProfiler
|
|
277
|
-
};
|
|
278
|
-
//# sourceMappingURL=profiler.L7XU-wqf.js.map
|