@raindrop-ai/eve 0.0.22 → 0.0.23
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.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -309,6 +309,7 @@ async function postJson(url, body, headers, opts) {
|
|
|
309
309
|
const resp = await runWithTracingSuppressed(
|
|
310
310
|
() => fetch(url, {
|
|
311
311
|
method: "POST",
|
|
312
|
+
redirect: headers["X-Raindrop-Replay-Id"] !== void 0 ? "error" : "follow",
|
|
312
313
|
headers: {
|
|
313
314
|
"Content-Type": "application/json",
|
|
314
315
|
...headers
|
|
@@ -416,14 +417,16 @@ function resolveLocalDebuggerBaseUrl(baseUrl) {
|
|
|
416
417
|
if (shouldAutoEnableLocalWorkshop()) return DEFAULT_LOCAL_WORKSHOP_URL;
|
|
417
418
|
return null;
|
|
418
419
|
}
|
|
420
|
+
var LOCAL_DEBUGGER_MIRROR_TIMEOUT_MS = 2e3;
|
|
419
421
|
function mirrorTraceExportToLocalDebugger(body, options = {}) {
|
|
420
422
|
var _a;
|
|
421
423
|
const baseUrl = resolveLocalDebuggerBaseUrl(options.baseUrl);
|
|
422
|
-
if (!baseUrl) return;
|
|
423
|
-
|
|
424
|
+
if (!baseUrl) return Promise.resolve();
|
|
425
|
+
return postJson(`${baseUrl}traces`, body, {}, {
|
|
424
426
|
maxAttempts: 1,
|
|
425
427
|
debug: (_a = options.debug) != null ? _a : false,
|
|
426
|
-
sdkName: options.sdkName
|
|
428
|
+
sdkName: options.sdkName,
|
|
429
|
+
timeoutMs: LOCAL_DEBUGGER_MIRROR_TIMEOUT_MS
|
|
427
430
|
}).catch(() => {
|
|
428
431
|
});
|
|
429
432
|
}
|
|
@@ -727,7 +730,7 @@ var RaindropEveSpanExporter = class {
|
|
|
727
730
|
// package.json
|
|
728
731
|
var package_default = {
|
|
729
732
|
name: "@raindrop-ai/eve",
|
|
730
|
-
version: "0.0.
|
|
733
|
+
version: "0.0.23"};
|
|
731
734
|
|
|
732
735
|
// src/internal/version.ts
|
|
733
736
|
var libraryName = package_default.name;
|