@jumio/websdk 0.3.2 → 0.3.3
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/dac.DVnCFTbP.js +5 -0
- package/dac_simd.B_kkhIDp.js +5 -0
- package/i18n/{ar.B5v-nzb0.js → ar.CVtc08CP.js} +267 -265
- package/i18n/{bg.f8dANnfL.js → bg.Ds2e2Kvl.js} +268 -265
- package/i18n/{cs.DKwBkw3X.js → cs.MA39qtrj.js} +267 -264
- package/i18n/{da.BQkZX9jF.js → da.UT4VIBo5.js} +255 -252
- package/i18n/{de.DYOLncd1.js → de.DrOgwXx1.js} +255 -252
- package/i18n/{el.raXOcOJw.js → el.B_0YUw_b.js} +267 -264
- package/i18n/{en.DhlJfylH.js → en.nvt_A7Ca.js} +255 -250
- package/i18n/{en_GB.BSP2p1O8.js → en_GB.mNh3SyT6.js} +231 -226
- package/i18n/{es.Ckls1eyO.js → es.B2IQp6um.js} +243 -240
- package/i18n/{es_MX.DIrzK_s-.js → es_MX.D8KUkwJE.js} +249 -261
- package/i18n/{et.D44UHjCs.js → et.BuUUrZsD.js} +255 -252
- package/i18n/{fi.oSGv1Rlj.js → fi.ClZfVmfJ.js} +267 -264
- package/i18n/{fr.vzh79Vv5.js → fr.uu5bQCKC.js} +247 -244
- package/i18n/{he.BrIB9Dml.js → he.C1PgRksV.js} +255 -264
- package/i18n/{hr.COvjFh-D.js → hr.DpC0FykX.js} +255 -252
- package/i18n/{hu.D4RuJNEh.js → hu.6ZVgsJu8.js} +259 -256
- package/i18n/{hy.Br_Tnv1F.js → hy.D45Shusk.js} +243 -250
- package/i18n/{id.EGjTml-d.js → id.CA-O_20D.js} +237 -236
- package/i18n/{it.B4MNwqAC.js → it.B1RNJxaF.js} +239 -236
- package/i18n/{ja.m07sF4Z5.js → ja.1ir7Tabb.js} +243 -242
- package/i18n/{ka_GE.CMTyCS05.js → ka_GE.KAIf1J95.js} +257 -264
- package/i18n/{km_KH.ClOtvwtJ.js → km_KH.V0gyuP4R.js} +267 -264
- package/i18n/{ko.UW8lo2rh.js → ko.DuA7mI08.js} +243 -242
- package/i18n/{lt.Cqx3mqip.js → lt.5VoyVP_J.js} +251 -248
- package/i18n/{ms.46dckKl9.js → ms.CDvob17O.js} +229 -234
- package/i18n/{nl.tkzp4rni.js → nl.CeKf6B0T.js} +247 -244
- package/i18n/{no.B_CoFr75.js → no.BXDMDcm7.js} +255 -252
- package/i18n/{pl.BdYvycQi.js → pl.GyOKjtfJ.js} +247 -244
- package/i18n/{pt.CpqxzJk6.js → pt.BJByQwSz.js} +231 -228
- package/i18n/{pt_BR.CPdKsknZ.js → pt_BR.Enps-Q3E.js} +62 -63
- package/i18n/{ro.CH1Zq2-8.js → ro.B7HQrbVr.js} +239 -237
- package/i18n/{ru.CZV0yFwC.js → ru.DZggUXG2.js} +267 -264
- package/i18n/{sk.BpkoICfL.js → sk.2TuzfWdS.js} +247 -244
- package/i18n/{sr_Cyrl.BmLmS38i.js → sr_Cyrl.iOK5BxTG.js} +263 -307
- package/i18n/{sr_Latn.B7L5t3Nr.js → sr_Latn.DhVvgzdO.js} +259 -303
- package/i18n/{sv.RoEeuy1i.js → sv.DFnnWQc4.js} +263 -260
- package/i18n/{sw.DjsmgoBA.js → sw.tFd-sAFG.js} +233 -242
- package/i18n/{th.DxR1Ndnr.js → th.DPFAV9DX.js} +271 -268
- package/i18n/{tr.CRhAJQTo.js → tr.nfFR4XRq.js} +237 -236
- package/i18n/{uk.C13KHs05.js → uk.Dzavklny.js} +277 -276
- package/i18n/{vi.CqmYDNk4.js → vi.DPPEUqvd.js} +134 -135
- package/i18n/{zh_CN.Dt6xc1C7.js → zh_CN.KG_H1Qj1.js} +267 -264
- package/i18n/{zh_HK.BOgKHxnF.js → zh_HK.D7hYXrXr.js} +199 -217
- package/{iProovMe.DzGWiLZD.js → iProovMe.WzN9s5mB.js} +2 -2
- package/{index.Bua1o1Ys.js → index.B5HUelf8.js} +20864 -19846
- package/index.d.ts +336 -186
- package/index.js +258 -253
- package/package.json +1 -1
- package/pdfjs/{pdf-DxeL3Pew.js → pdf-BappGl9h.js} +3102 -2929
- package/pdfjs/{pdf.worker.min-D0t7fbDu.js → pdf.worker.min-BJ9oGy-p.js} +2 -2
- package/profiler.C_OyDaPu.js +227 -0
- package/{startRecording.Bxx3Dh3F.js → startRecording.9HOm2aS0.js} +127 -127
- package/third-party-licenses.txt +136 -134
- package/dac.qT7PEl8J.js +0 -5
- package/dac_simd.C6bfdWfM.js +0 -5
- package/profiler.BYPEj3o_.js +0 -227
package/profiler.BYPEj3o_.js
DELETED
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
import { a as J, c as x, s as z, R as H, b as m, d as I, e as q, m as v, f as K, h as Q, i as W, j as X, k as Y, r as Z } from "./index.Bua1o1Ys.js";
|
|
2
|
-
function $(t) {
|
|
3
|
-
let n = 0;
|
|
4
|
-
for (const i of t)
|
|
5
|
-
i.stackId !== void 0 && n++;
|
|
6
|
-
return n;
|
|
7
|
-
}
|
|
8
|
-
const g = /* @__PURE__ */ new Map();
|
|
9
|
-
function ee(t, n) {
|
|
10
|
-
g.set(n, t);
|
|
11
|
-
}
|
|
12
|
-
function te(t) {
|
|
13
|
-
return g.get(t);
|
|
14
|
-
}
|
|
15
|
-
function E(t) {
|
|
16
|
-
for (const n of g.keys())
|
|
17
|
-
n < t && g.delete(n);
|
|
18
|
-
}
|
|
19
|
-
function ne({ rawRumEvent: t, startTime: n }) {
|
|
20
|
-
if (t.type !== "long_task")
|
|
21
|
-
return;
|
|
22
|
-
const i = t.long_task.id;
|
|
23
|
-
ee(i, n);
|
|
24
|
-
}
|
|
25
|
-
const se = (t, n, i, s) => {
|
|
26
|
-
const f = oe(t, n, i, s), c = ae(t, f), l = n.build("fetch", c);
|
|
27
|
-
return J("Sending profile to public profiling intake", { profilingIntakeURL: l, applicationId: i, sessionId: s }), fetch(l, {
|
|
28
|
-
body: c.data,
|
|
29
|
-
method: "POST"
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
function oe(t, n, i, s) {
|
|
33
|
-
const f = n.tags, c = ie(t, i, s), l = re(f);
|
|
34
|
-
return {
|
|
35
|
-
...c,
|
|
36
|
-
attachments: ["wall-time.json"],
|
|
37
|
-
start: new Date(t.startClocks.timeStamp).toISOString(),
|
|
38
|
-
end: new Date(t.endClocks.timeStamp).toISOString(),
|
|
39
|
-
family: "chrome",
|
|
40
|
-
runtime: "chrome",
|
|
41
|
-
format: "json",
|
|
42
|
-
version: 4,
|
|
43
|
-
// Ingestion event version (not the version application tag)
|
|
44
|
-
tags_profiler: l.join(","),
|
|
45
|
-
_dd: {
|
|
46
|
-
clock_drift: x()
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
function re(t) {
|
|
51
|
-
return t.concat(["language:javascript", "runtime:chrome", "family:chrome", "host:browser"]);
|
|
52
|
-
}
|
|
53
|
-
function ae(t, n) {
|
|
54
|
-
const i = new Blob([JSON.stringify(t)], {
|
|
55
|
-
type: "application/json"
|
|
56
|
-
}), s = new FormData();
|
|
57
|
-
return s.append("event", new Blob([JSON.stringify(n)], { type: "application/json" }), "event.json"), s.append("wall-time.json", i, "wall-time.json"), { data: s, bytesCount: 0 };
|
|
58
|
-
}
|
|
59
|
-
function ie(t, n, i) {
|
|
60
|
-
const s = {
|
|
61
|
-
application: {
|
|
62
|
-
id: n
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
i && (s.session = {
|
|
66
|
-
id: i
|
|
67
|
-
});
|
|
68
|
-
const f = Array.from(new Set(t.views.map((l) => l.viewId)));
|
|
69
|
-
f.length && (s.view = {
|
|
70
|
-
id: f
|
|
71
|
-
});
|
|
72
|
-
const c = t.longTasks.map((l) => l.id).filter((l) => l !== void 0);
|
|
73
|
-
return c.length && (s.long_task = { id: c }), s;
|
|
74
|
-
}
|
|
75
|
-
const le = {
|
|
76
|
-
sendProfile: se
|
|
77
|
-
}, ce = {
|
|
78
|
-
sampleIntervalMs: 10,
|
|
79
|
-
// Sample stack trace every 10ms
|
|
80
|
-
collectIntervalMs: 6e4,
|
|
81
|
-
// Collect data every minute
|
|
82
|
-
minProfileDurationMs: 5e3,
|
|
83
|
-
// Require at least 5 seconds of profile data to reduce noise and cost
|
|
84
|
-
minNumberOfSamples: 50
|
|
85
|
-
// Require at least 50 samples (~500 ms) to report a profile to reduce noise and cost
|
|
86
|
-
};
|
|
87
|
-
function de(t, n, i, s = ce) {
|
|
88
|
-
const f = z(H.LONG_ANIMATION_FRAME);
|
|
89
|
-
let c;
|
|
90
|
-
const l = [];
|
|
91
|
-
let r = { state: "stopped" };
|
|
92
|
-
function O(e) {
|
|
93
|
-
r.state !== "running" && (c = e ? { startClocks: e.startClocks, viewId: e.id, viewName: e.name } : void 0, l.push(I(t, window, "visibilitychange", j).stop, I(t, window, "beforeunload", D).stop), p());
|
|
94
|
-
}
|
|
95
|
-
async function L() {
|
|
96
|
-
await h("stopped"), l.forEach((e) => e()), E(m().relative);
|
|
97
|
-
}
|
|
98
|
-
function M(e) {
|
|
99
|
-
if (e.state === "running")
|
|
100
|
-
return {
|
|
101
|
-
cleanupTasks: e.cleanupTasks,
|
|
102
|
-
observer: e.observer
|
|
103
|
-
};
|
|
104
|
-
const o = [];
|
|
105
|
-
let a;
|
|
106
|
-
if (t.trackLongTasks) {
|
|
107
|
-
a = new PerformanceObserver(N), a.observe({
|
|
108
|
-
entryTypes: [R()]
|
|
109
|
-
});
|
|
110
|
-
const d = n.subscribe(12, (b) => {
|
|
111
|
-
ne(b);
|
|
112
|
-
});
|
|
113
|
-
o.push(() => a == null ? void 0 : a.disconnect()), o.push(d.unsubscribe);
|
|
114
|
-
}
|
|
115
|
-
const u = n.subscribe(2, (d) => {
|
|
116
|
-
T({ viewId: d.id, viewName: d.name, startClocks: d.startClocks });
|
|
117
|
-
});
|
|
118
|
-
return o.push(u.unsubscribe), {
|
|
119
|
-
cleanupTasks: o,
|
|
120
|
-
observer: a
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
function p() {
|
|
124
|
-
const e = q().Profiler;
|
|
125
|
-
if (!e)
|
|
126
|
-
throw new Error("RUM Profiler is not supported in this browser.");
|
|
127
|
-
k(r).catch(v);
|
|
128
|
-
const { cleanupTasks: o, observer: a } = M(r);
|
|
129
|
-
let u;
|
|
130
|
-
try {
|
|
131
|
-
u = new e({
|
|
132
|
-
sampleInterval: s.sampleIntervalMs,
|
|
133
|
-
// Keep buffer size at 1.5 times of minimum required to collect data for a profiling instance
|
|
134
|
-
maxBufferSize: Math.round(s.collectIntervalMs * 1.5 / s.sampleIntervalMs)
|
|
135
|
-
});
|
|
136
|
-
} catch (d) {
|
|
137
|
-
K.warn("[DD_RUM] Profiler startup failed. Ensure your server includes the `Document-Policy: js-profiling` response header when serving HTML pages.", d);
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
r = {
|
|
141
|
-
state: "running",
|
|
142
|
-
startClocks: m(),
|
|
143
|
-
profiler: u,
|
|
144
|
-
timeoutId: Q(p, s.collectIntervalMs),
|
|
145
|
-
longTasks: [],
|
|
146
|
-
views: [],
|
|
147
|
-
cleanupTasks: o,
|
|
148
|
-
observer: a
|
|
149
|
-
}, T(c), u.addEventListener("samplebufferfull", w);
|
|
150
|
-
}
|
|
151
|
-
async function k(e) {
|
|
152
|
-
var o, a;
|
|
153
|
-
if (e.state !== "running")
|
|
154
|
-
return;
|
|
155
|
-
y((a = (o = e.observer) === null || o === void 0 ? void 0 : o.takeRecords()) !== null && a !== void 0 ? a : []), W(e.timeoutId), e.profiler.removeEventListener("samplebufferfull", w);
|
|
156
|
-
const { startClocks: u, longTasks: d, views: b } = e, F = m();
|
|
157
|
-
await e.profiler.stop().then((S) => {
|
|
158
|
-
const P = m(), U = d.length > 0, G = X(u.timeStamp, P.timeStamp) < s.minProfileDurationMs, V = $(S.samples) < s.minNumberOfSamples;
|
|
159
|
-
!U && (G || V) || (_(
|
|
160
|
-
// Enrich trace with time and instance data
|
|
161
|
-
Object.assign(S, {
|
|
162
|
-
startClocks: u,
|
|
163
|
-
endClocks: P,
|
|
164
|
-
clocksOrigin: Y(),
|
|
165
|
-
longTasks: d,
|
|
166
|
-
views: b,
|
|
167
|
-
sampleInterval: s.sampleIntervalMs
|
|
168
|
-
})
|
|
169
|
-
), E(F.relative));
|
|
170
|
-
}).catch(v);
|
|
171
|
-
}
|
|
172
|
-
async function h(e) {
|
|
173
|
-
r.state === "running" && (r.cleanupTasks.forEach((o) => o()), await k(r), r = { state: e });
|
|
174
|
-
}
|
|
175
|
-
function T(e) {
|
|
176
|
-
r.state !== "running" || !e || r.views.push(e);
|
|
177
|
-
}
|
|
178
|
-
function _(e) {
|
|
179
|
-
var o;
|
|
180
|
-
const a = (o = i.findTrackedSession()) === null || o === void 0 ? void 0 : o.id;
|
|
181
|
-
le.sendProfile(e, t.profilingEndpointBuilder, t.applicationId, a).catch(v);
|
|
182
|
-
}
|
|
183
|
-
function w() {
|
|
184
|
-
p();
|
|
185
|
-
}
|
|
186
|
-
function N(e) {
|
|
187
|
-
y(e.getEntries());
|
|
188
|
-
}
|
|
189
|
-
function y(e) {
|
|
190
|
-
if (r.state === "running")
|
|
191
|
-
for (const o of e) {
|
|
192
|
-
if (o.duration < s.sampleIntervalMs)
|
|
193
|
-
continue;
|
|
194
|
-
const a = Z(o.startTime), u = te(a.relative);
|
|
195
|
-
r.longTasks.push({
|
|
196
|
-
id: u,
|
|
197
|
-
duration: o.duration,
|
|
198
|
-
entryType: o.entryType,
|
|
199
|
-
startClocks: a
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
function j() {
|
|
204
|
-
document.visibilityState === "hidden" && r.state === "running" ? h("paused").catch(v) : document.visibilityState === "visible" && r.state === "paused" && p();
|
|
205
|
-
}
|
|
206
|
-
function D() {
|
|
207
|
-
p();
|
|
208
|
-
}
|
|
209
|
-
function R() {
|
|
210
|
-
return f ? "long-animation-frame" : "longtask";
|
|
211
|
-
}
|
|
212
|
-
function C() {
|
|
213
|
-
return r.state === "stopped";
|
|
214
|
-
}
|
|
215
|
-
function A() {
|
|
216
|
-
return r.state === "running";
|
|
217
|
-
}
|
|
218
|
-
function B() {
|
|
219
|
-
return r.state === "paused";
|
|
220
|
-
}
|
|
221
|
-
return { start: O, stop: L, isStopped: C, isRunning: A, isPaused: B };
|
|
222
|
-
}
|
|
223
|
-
export {
|
|
224
|
-
ce as DEFAULT_RUM_PROFILER_CONFIGURATION,
|
|
225
|
-
de as createRumProfiler
|
|
226
|
-
};
|
|
227
|
-
//# sourceMappingURL=profiler.BYPEj3o_.js.map
|