@keploy/capture-sdk 3.2.1 → 3.3.1
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 +38 -29
- package/dist/body-jobs.d.ts +2 -2
- package/dist/body-redact.js +1 -1
- package/dist/body-redact.js.map +1 -1
- package/dist/body-redact.mjs +1 -1
- package/dist/body-redact.mjs.map +1 -1
- package/dist/body-worker-none.js +1 -1
- package/dist/body-worker-none.js.map +1 -1
- package/dist/body-worker-none.mjs +1 -1
- package/dist/body-worker-none.mjs.map +1 -1
- package/dist/body-worker-start.js +1 -1
- package/dist/body-worker-start.js.map +1 -1
- package/dist/body-worker-start.mjs +1 -1
- package/dist/body-worker-start.mjs.map +1 -1
- package/dist/body-worker-unbundled.mjs +1 -1
- package/dist/body-worker-unbundled.mjs.map +1 -1
- package/dist/body-worker.js +1 -1
- package/dist/body-worker.js.map +1 -1
- package/dist/errors.d.ts +6 -6
- package/dist/index.bundler.mjs +1 -1
- package/dist/index.bundler.mjs.map +1 -1
- package/dist/index.d.ts +4 -6
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/network.d.ts +9 -9
- package/dist/privacy.d.ts +26 -32
- package/dist/recorder.d.ts +29 -25
- package/dist/redact.d.ts +9 -0
- package/dist/request-term.js +1 -1
- package/dist/request-term.js.map +1 -1
- package/dist/request-term.mjs +1 -1
- package/dist/request-term.mjs.map +1 -1
- package/dist/strict-attributes.js +1 -1
- package/dist/strict-attributes.js.map +1 -1
- package/dist/strict-attributes.mjs +1 -1
- package/dist/strict-attributes.mjs.map +1 -1
- package/dist/transport.d.ts +12 -12
- package/dist/types.d.ts +8 -1
- package/package.json +2 -2
package/dist/errors.d.ts
CHANGED
|
@@ -301,7 +301,7 @@ export declare class CaptureError extends Error {
|
|
|
301
301
|
readonly issues: readonly ServerIssue[] | null;
|
|
302
302
|
readonly remedy: CaptureRemedy;
|
|
303
303
|
readonly evidence: CaptureEvidence;
|
|
304
|
-
protected constructor(code: CaptureErrorCode, message: string,
|
|
304
|
+
protected constructor(code: CaptureErrorCode, message: string, evidence: CaptureEvidence, status?: number | null, server?: ServerError);
|
|
305
305
|
}
|
|
306
306
|
/** What the transport builds from a terminal response. */
|
|
307
307
|
export interface IngestRejectionInit {
|
|
@@ -316,7 +316,7 @@ export declare class IngestRejection extends CaptureError {
|
|
|
316
316
|
readonly code: ServerAnsweredCode;
|
|
317
317
|
readonly status: number;
|
|
318
318
|
readonly evidence: IngestEvidence;
|
|
319
|
-
constructor(
|
|
319
|
+
constructor({ code, status, server, endpoint, sessionId, }: IngestRejectionInit);
|
|
320
320
|
}
|
|
321
321
|
/** What the recorder builds when sessionIdGenerator does not produce a session id. */
|
|
322
322
|
export interface SessionIdRefusalInit {
|
|
@@ -330,7 +330,7 @@ export declare class SessionIdRefusal extends CaptureError {
|
|
|
330
330
|
readonly code: "KUI_E_SESSION_ID_INVALID";
|
|
331
331
|
readonly status: null;
|
|
332
332
|
readonly evidence: SessionIdEvidence;
|
|
333
|
-
constructor(
|
|
333
|
+
constructor({ sessionId, received }: SessionIdRefusalInit);
|
|
334
334
|
}
|
|
335
335
|
/**
|
|
336
336
|
* The SDK refused a strict capture: KUI_E_STRICT_ATTRIBUTES_UNAVAILABLE,
|
|
@@ -347,7 +347,7 @@ export declare class StrictAttributesRefusal extends CaptureError {
|
|
|
347
347
|
readonly code: "KUI_E_STRICT_ATTRIBUTES_UNAVAILABLE";
|
|
348
348
|
readonly status: null;
|
|
349
349
|
readonly evidence: DomRecorderEvidence;
|
|
350
|
-
constructor(
|
|
350
|
+
constructor({ reason }: {
|
|
351
351
|
reason: string;
|
|
352
352
|
});
|
|
353
353
|
}
|
|
@@ -370,7 +370,7 @@ export declare class DomRecorderRefusal extends CaptureError {
|
|
|
370
370
|
readonly code: "KUI_E_DOM_RECORDER_UNAVAILABLE";
|
|
371
371
|
readonly status: null;
|
|
372
372
|
readonly evidence: DomRecorderEvidence;
|
|
373
|
-
constructor(
|
|
373
|
+
constructor({ reason }: {
|
|
374
374
|
reason: string;
|
|
375
375
|
});
|
|
376
376
|
}
|
|
@@ -384,7 +384,7 @@ export declare class PrivacyRouteRefusal extends CaptureError {
|
|
|
384
384
|
readonly code: "KUI_E_PRIVACY_ROUTE_INVALID";
|
|
385
385
|
readonly status: null;
|
|
386
386
|
readonly evidence: PrivacyRouteEvidence;
|
|
387
|
-
constructor(
|
|
387
|
+
constructor({ option, received, }: {
|
|
388
388
|
option: "secretRoutes" | "keepRoutes";
|
|
389
389
|
received: string;
|
|
390
390
|
});
|