@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.js
CHANGED
|
@@ -314,6 +314,7 @@ async function postJson(url, body, headers, opts) {
|
|
|
314
314
|
const resp = await runWithTracingSuppressed(
|
|
315
315
|
() => fetch(url, {
|
|
316
316
|
method: "POST",
|
|
317
|
+
redirect: headers["X-Raindrop-Replay-Id"] !== void 0 ? "error" : "follow",
|
|
317
318
|
headers: {
|
|
318
319
|
"Content-Type": "application/json",
|
|
319
320
|
...headers
|
|
@@ -421,14 +422,16 @@ function resolveLocalDebuggerBaseUrl(baseUrl) {
|
|
|
421
422
|
if (shouldAutoEnableLocalWorkshop()) return DEFAULT_LOCAL_WORKSHOP_URL;
|
|
422
423
|
return null;
|
|
423
424
|
}
|
|
425
|
+
var LOCAL_DEBUGGER_MIRROR_TIMEOUT_MS = 2e3;
|
|
424
426
|
function mirrorTraceExportToLocalDebugger(body, options = {}) {
|
|
425
427
|
var _a;
|
|
426
428
|
const baseUrl = resolveLocalDebuggerBaseUrl(options.baseUrl);
|
|
427
|
-
if (!baseUrl) return;
|
|
428
|
-
|
|
429
|
+
if (!baseUrl) return Promise.resolve();
|
|
430
|
+
return postJson(`${baseUrl}traces`, body, {}, {
|
|
429
431
|
maxAttempts: 1,
|
|
430
432
|
debug: (_a = options.debug) != null ? _a : false,
|
|
431
|
-
sdkName: options.sdkName
|
|
433
|
+
sdkName: options.sdkName,
|
|
434
|
+
timeoutMs: LOCAL_DEBUGGER_MIRROR_TIMEOUT_MS
|
|
432
435
|
}).catch(() => {
|
|
433
436
|
});
|
|
434
437
|
}
|
|
@@ -732,7 +735,7 @@ var RaindropEveSpanExporter = class {
|
|
|
732
735
|
// package.json
|
|
733
736
|
var package_default = {
|
|
734
737
|
name: "@raindrop-ai/eve",
|
|
735
|
-
version: "0.0.
|
|
738
|
+
version: "0.0.23"};
|
|
736
739
|
|
|
737
740
|
// src/internal/version.ts
|
|
738
741
|
var libraryName = package_default.name;
|