@genn-inc/cluebase-frontend-sdk 0.0.3 → 0.0.6
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 +21 -0
- package/dist/_generated/{identity-pii-policy.d.ts → identity-pii-policy-text-contains.d.ts} +1 -1
- package/dist/_generated/{identity-pii-policy.js → identity-pii-policy-text-contains.js} +1 -1
- package/dist/_generated/identity-pii-policy-whole-value.d.ts +37 -0
- package/dist/_generated/identity-pii-policy-whole-value.js +106 -0
- package/dist/_generated/otel-span-conversion.js +1 -9
- package/dist/context/browser-storage.js +1 -2
- package/dist/context/environment.js +5 -3
- package/dist/context/identity.js +5 -9
- package/dist/context/organization.d.ts +1 -1
- package/dist/context/organization.js +6 -8
- package/dist/context/session.js +6 -8
- package/dist/context/tab.js +8 -12
- package/dist/context/trace.js +2 -1
- package/dist/exporter/batch.d.ts +3 -1
- package/dist/exporter/batch.js +6 -10
- package/dist/exporter/browser-outbox-records.d.ts +1 -1
- package/dist/exporter/browser-outbox-records.js +15 -6
- package/dist/exporter/browser-outbox.d.ts +5 -2
- package/dist/exporter/browser-outbox.js +48 -11
- package/dist/exporter/client.d.ts +2 -2
- package/dist/exporter/client.js +15 -30
- package/dist/exporter/delivery-response-contract.js +67 -17
- package/dist/exporter/delivery-response.d.ts +3 -1
- package/dist/exporter/delivery-response.js +31 -20
- package/dist/exporter/diagnostics.d.ts +1 -1
- package/dist/exporter/diagnostics.js +4 -1
- package/dist/exporter/event-id.js +1 -3
- package/dist/exporter/frontend-resource.js +5 -4
- package/dist/exporter/observation-source-event-exporter.d.ts +1 -0
- package/dist/exporter/observation-source-event-exporter.js +5 -2
- package/dist/exporter/path-template.js +3 -1
- package/dist/exporter/raw-event-to-source-signal.js +4 -2
- package/dist/exporter/sanitize.d.ts +3 -2
- package/dist/exporter/sanitize.js +4 -3
- package/dist/exporter/sdk-core-wasm.d.ts +5 -0
- package/dist/exporter/sdk-core-wasm.js +18 -0
- package/dist/exporter/source-event.d.ts +1 -0
- package/dist/exporter/span-to-source-signal.d.ts +1 -1
- package/dist/exporter/span-to-source-signal.js +122 -82
- package/dist/index.d.ts +5 -4
- package/dist/index.js +16 -6
- package/dist/instrumentation/action.js +9 -8
- package/dist/instrumentation/dom.js +13 -21
- package/dist/instrumentation/drag.js +0 -3
- package/dist/instrumentation/error.js +3 -1
- package/dist/instrumentation/form.js +5 -6
- package/dist/instrumentation/input.js +4 -8
- package/dist/instrumentation/location.js +3 -1
- package/dist/instrumentation/network-request.js +1 -1
- package/dist/instrumentation/network-span-attributes.js +2 -2
- package/dist/instrumentation/network.js +7 -3
- package/dist/instrumentation/performance.js +1 -2
- package/dist/internal/internal-log.js +2 -1
- package/dist/provider/_version.d.ts +1 -1
- package/dist/provider/_version.js +1 -1
- package/dist/provider/config.js +0 -1
- package/dist/provider/constants.d.ts +1 -1
- package/dist/provider/constants.js +0 -1
- package/dist/provider/sdk-event-pipeline.d.ts +2 -1
- package/dist/provider/sdk-event-pipeline.js +6 -3
- package/dist/provider/sdk-input-normalization.js +2 -2
- package/dist/provider/sdk-otel-pipeline.js +5 -4
- package/dist/provider/sdk-runtime-surfaces.d.ts +15 -12
- package/dist/provider/sdk-runtime-surfaces.js +8 -7
- package/dist/provider/sdk.js +67 -12
- package/dist/provider/types.d.ts +6 -5
- package/dist/wasm/pkg-web/cluebase_sdk_core_wasm.d.ts +41 -0
- package/dist/wasm/pkg-web/cluebase_sdk_core_wasm.js +267 -0
- package/dist/wasm/pkg-web/cluebase_sdk_core_wasm_bg.wasm +0 -0
- package/dist/wasm/pkg-web/cluebase_sdk_core_wasm_bg.wasm.d.ts +12 -0
- package/dist/wasm/pkg-web/package.json +15 -0
- package/package.json +62 -53
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
/* @ts-self-types="./cluebase_sdk_core_wasm.d.ts" */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @param {string} span_json
|
|
5
|
+
* @param {string} options_json
|
|
6
|
+
* @returns {string}
|
|
7
|
+
*/
|
|
8
|
+
export function spanToSdkSignalJson(span_json, options_json) {
|
|
9
|
+
let deferred4_0;
|
|
10
|
+
let deferred4_1;
|
|
11
|
+
try {
|
|
12
|
+
const ptr0 = passStringToWasm0(span_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
13
|
+
const len0 = WASM_VECTOR_LEN;
|
|
14
|
+
const ptr1 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
15
|
+
const len1 = WASM_VECTOR_LEN;
|
|
16
|
+
const ret = wasm.spanToSdkSignalJson(ptr0, len0, ptr1, len1);
|
|
17
|
+
var ptr3 = ret[0];
|
|
18
|
+
var len3 = ret[1];
|
|
19
|
+
if (ret[3]) {
|
|
20
|
+
ptr3 = 0; len3 = 0;
|
|
21
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
22
|
+
}
|
|
23
|
+
deferred4_0 = ptr3;
|
|
24
|
+
deferred4_1 = len3;
|
|
25
|
+
return getStringFromWasm0(ptr3, len3);
|
|
26
|
+
} finally {
|
|
27
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
function __wbg_get_imports() {
|
|
31
|
+
const import0 = {
|
|
32
|
+
__proto__: null,
|
|
33
|
+
__wbg___wbindgen_throw_41e9ee4f547fc59a: function(arg0, arg1) {
|
|
34
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
35
|
+
},
|
|
36
|
+
__wbg_getRandomValues_a608c4436c19407a: function() { return handleError(function (arg0, arg1) {
|
|
37
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
38
|
+
}, arguments); },
|
|
39
|
+
__wbg_getTime_f5a55efff2585d5d: function(arg0) {
|
|
40
|
+
const ret = arg0.getTime();
|
|
41
|
+
return ret;
|
|
42
|
+
},
|
|
43
|
+
__wbg_new_0_72d020f0c63443d4: function() {
|
|
44
|
+
const ret = new Date();
|
|
45
|
+
return ret;
|
|
46
|
+
},
|
|
47
|
+
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
48
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
49
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
50
|
+
return ret;
|
|
51
|
+
},
|
|
52
|
+
__wbindgen_init_externref_table: function() {
|
|
53
|
+
const table = wasm.__wbindgen_externrefs;
|
|
54
|
+
const offset = table.grow(4);
|
|
55
|
+
table.set(0, undefined);
|
|
56
|
+
table.set(offset + 0, undefined);
|
|
57
|
+
table.set(offset + 1, null);
|
|
58
|
+
table.set(offset + 2, true);
|
|
59
|
+
table.set(offset + 3, false);
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
return {
|
|
63
|
+
__proto__: null,
|
|
64
|
+
"./cluebase_sdk_core_wasm_bg.js": import0,
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function addToExternrefTable0(obj) {
|
|
69
|
+
const idx = wasm.__externref_table_alloc();
|
|
70
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
71
|
+
return idx;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
75
|
+
ptr = ptr >>> 0;
|
|
76
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function getStringFromWasm0(ptr, len) {
|
|
80
|
+
return decodeText(ptr >>> 0, len);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
let cachedUint8ArrayMemory0 = null;
|
|
84
|
+
function getUint8ArrayMemory0() {
|
|
85
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
86
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
87
|
+
}
|
|
88
|
+
return cachedUint8ArrayMemory0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function handleError(f, args) {
|
|
92
|
+
try {
|
|
93
|
+
return f.apply(this, args);
|
|
94
|
+
} catch (e) {
|
|
95
|
+
const idx = addToExternrefTable0(e);
|
|
96
|
+
wasm.__wbindgen_exn_store(idx);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
101
|
+
if (realloc === undefined) {
|
|
102
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
103
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
104
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
105
|
+
WASM_VECTOR_LEN = buf.length;
|
|
106
|
+
return ptr;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
let len = arg.length;
|
|
110
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
111
|
+
|
|
112
|
+
const mem = getUint8ArrayMemory0();
|
|
113
|
+
|
|
114
|
+
let offset = 0;
|
|
115
|
+
|
|
116
|
+
for (; offset < len; offset++) {
|
|
117
|
+
const code = arg.charCodeAt(offset);
|
|
118
|
+
if (code > 0x7F) break;
|
|
119
|
+
mem[ptr + offset] = code;
|
|
120
|
+
}
|
|
121
|
+
if (offset !== len) {
|
|
122
|
+
if (offset !== 0) {
|
|
123
|
+
arg = arg.slice(offset);
|
|
124
|
+
}
|
|
125
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
126
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
127
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
128
|
+
|
|
129
|
+
offset += ret.written;
|
|
130
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
WASM_VECTOR_LEN = offset;
|
|
134
|
+
return ptr;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
function takeFromExternrefTable0(idx) {
|
|
138
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
139
|
+
wasm.__externref_table_dealloc(idx);
|
|
140
|
+
return value;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
144
|
+
cachedTextDecoder.decode();
|
|
145
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
146
|
+
let numBytesDecoded = 0;
|
|
147
|
+
function decodeText(ptr, len) {
|
|
148
|
+
numBytesDecoded += len;
|
|
149
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
150
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
151
|
+
cachedTextDecoder.decode();
|
|
152
|
+
numBytesDecoded = len;
|
|
153
|
+
}
|
|
154
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
const cachedTextEncoder = new TextEncoder();
|
|
158
|
+
|
|
159
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
160
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
161
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
162
|
+
view.set(buf);
|
|
163
|
+
return {
|
|
164
|
+
read: arg.length,
|
|
165
|
+
written: buf.length
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
let WASM_VECTOR_LEN = 0;
|
|
171
|
+
|
|
172
|
+
let wasmModule, wasmInstance, wasm;
|
|
173
|
+
function __wbg_finalize_init(instance, module) {
|
|
174
|
+
wasmInstance = instance;
|
|
175
|
+
wasm = instance.exports;
|
|
176
|
+
wasmModule = module;
|
|
177
|
+
cachedUint8ArrayMemory0 = null;
|
|
178
|
+
wasm.__wbindgen_start();
|
|
179
|
+
return wasm;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
async function __wbg_load(module, imports) {
|
|
183
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
184
|
+
if (!module.ok) {
|
|
185
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
189
|
+
try {
|
|
190
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
191
|
+
} catch (e) {
|
|
192
|
+
const validResponse = expectedResponseType(module.type);
|
|
193
|
+
|
|
194
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
195
|
+
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
196
|
+
|
|
197
|
+
} else { throw e; }
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
const bytes = await module.arrayBuffer();
|
|
202
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
203
|
+
} else {
|
|
204
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
205
|
+
|
|
206
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
207
|
+
return { instance, module };
|
|
208
|
+
} else {
|
|
209
|
+
return instance;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
function expectedResponseType(type) {
|
|
214
|
+
switch (type) {
|
|
215
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
216
|
+
}
|
|
217
|
+
return false;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
function initSync(module) {
|
|
222
|
+
if (wasm !== undefined) return wasm;
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
if (module !== undefined) {
|
|
226
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
227
|
+
({module} = module)
|
|
228
|
+
} else {
|
|
229
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
const imports = __wbg_get_imports();
|
|
234
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
235
|
+
module = new WebAssembly.Module(module);
|
|
236
|
+
}
|
|
237
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
238
|
+
return __wbg_finalize_init(instance, module);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
async function __wbg_init(module_or_path) {
|
|
242
|
+
if (wasm !== undefined) return wasm;
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
if (module_or_path !== undefined) {
|
|
246
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
247
|
+
({module_or_path} = module_or_path)
|
|
248
|
+
} else {
|
|
249
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
if (module_or_path === undefined) {
|
|
254
|
+
module_or_path = new URL('cluebase_sdk_core_wasm_bg.wasm', import.meta.url);
|
|
255
|
+
}
|
|
256
|
+
const imports = __wbg_get_imports();
|
|
257
|
+
|
|
258
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
259
|
+
module_or_path = fetch(module_or_path);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
263
|
+
|
|
264
|
+
return __wbg_finalize_init(instance, module);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export { initSync, __wbg_init as default };
|
|
Binary file
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const spanToSdkSignalJson: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
5
|
+
export const __wbindgen_exn_store: (a: number) => void;
|
|
6
|
+
export const __externref_table_alloc: () => number;
|
|
7
|
+
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
8
|
+
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
9
|
+
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
10
|
+
export const __externref_table_dealloc: (a: number) => void;
|
|
11
|
+
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
12
|
+
export const __wbindgen_start: () => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cluebase-sdk-core-wasm",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"files": [
|
|
6
|
+
"cluebase_sdk_core_wasm_bg.wasm",
|
|
7
|
+
"cluebase_sdk_core_wasm.js",
|
|
8
|
+
"cluebase_sdk_core_wasm.d.ts"
|
|
9
|
+
],
|
|
10
|
+
"main": "cluebase_sdk_core_wasm.js",
|
|
11
|
+
"types": "cluebase_sdk_core_wasm.d.ts",
|
|
12
|
+
"sideEffects": [
|
|
13
|
+
"./snippets/*"
|
|
14
|
+
]
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,54 +1,63 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
2
|
+
"name": "@genn-inc/cluebase-frontend-sdk",
|
|
3
|
+
"version": "0.0.6",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/genn-inc/cluebase.git"
|
|
7
|
+
},
|
|
8
|
+
"description": "Cluebase Frontend SDK — OTel-based observation-source event capture for frontend apps",
|
|
9
|
+
"type": "module",
|
|
10
|
+
"main": "dist/index.js",
|
|
11
|
+
"types": "dist/index.d.ts",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist/",
|
|
14
|
+
"README.md"
|
|
15
|
+
],
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"browser": "./dist/index.js",
|
|
20
|
+
"default": "./dist/index.js"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build:wasm": "node ../../../scripts/build-sdk-core-wasm.mjs --target web --dest src/wasm/pkg-web",
|
|
25
|
+
"build": "node ./scripts/clean-dist.mjs && node ../../../scripts/generate-shared-contract-tables.mjs && node ./scripts/generate-version-module.mjs && pnpm build:wasm && tsc -p tsconfig.build.json && node ./scripts/fix-esm-relative-imports.mjs && node ../../../scripts/copy-directory.mjs --from src/wasm --to dist/wasm",
|
|
26
|
+
"prepack": "pnpm build",
|
|
27
|
+
"prepublishOnly": "pnpm lint && pnpm test:cov && pnpm typecheck && pnpm test:package-import",
|
|
28
|
+
"lint": "pnpm exec biome lint src",
|
|
29
|
+
"test:package-import": "pnpm build && node ../../../tests/distribution/frontend-sdk/check-package-import.mjs",
|
|
30
|
+
"pretypecheck": "pnpm build:wasm",
|
|
31
|
+
"typecheck": "tsc -p tsconfig.typecheck.json",
|
|
32
|
+
"pretest": "pnpm build:wasm",
|
|
33
|
+
"test": "vitest run --config ../../../tests/config/vitest/frontend-sdk.config.ts",
|
|
34
|
+
"pretest:cov": "pnpm build:wasm",
|
|
35
|
+
"test:cov": "vitest run --config ../../../tests/config/vitest/frontend-sdk.config.ts --coverage"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@cluebase/schema": "workspace:*",
|
|
39
|
+
"@cluebase/shared": "workspace:*",
|
|
40
|
+
"@opentelemetry/api": "1.10.0",
|
|
41
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
42
|
+
"jsdom": "^26.1.0",
|
|
43
|
+
"typescript": "^5.9.3",
|
|
44
|
+
"vitest": "^3.2.7"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@noble/hashes": "1.8.0",
|
|
48
|
+
"@opentelemetry/api-logs": ">=0.218.0 <1.0.0",
|
|
49
|
+
"@opentelemetry/browser-instrumentation": ">=0.5.2 <1.0.0",
|
|
50
|
+
"@opentelemetry/core": ">=2.7.1 <3.0.0",
|
|
51
|
+
"@opentelemetry/instrumentation-document-load": ">=0.63.0 <1.0.0",
|
|
52
|
+
"@opentelemetry/instrumentation-fetch": ">=0.218.0 <1.0.0",
|
|
53
|
+
"@opentelemetry/instrumentation-xml-http-request": ">=0.218.0 <1.0.0",
|
|
54
|
+
"@opentelemetry/resources": ">=2.7.1 <3.0.0",
|
|
55
|
+
"@opentelemetry/sdk-trace-base": ">=2.7.1 <3.0.0",
|
|
56
|
+
"@opentelemetry/sdk-trace-web": ">=2.7.1 <3.0.0",
|
|
57
|
+
"json-canonicalize": "2.0.0",
|
|
58
|
+
"zod": "^4.4.3"
|
|
59
|
+
},
|
|
60
|
+
"peerDependencies": {
|
|
61
|
+
"@opentelemetry/api": ">=1.10.0 <1.11.0"
|
|
62
|
+
}
|
|
63
|
+
}
|