@alwaysmeticulous/api
Advanced tools
Comparing version 2.33.0 to 2.34.0
@@ -6,4 +6,4 @@ export { Organization } from "./organization.types"; | ||
export { ReplayableEvent } from "./sdk-bundle-api/bidirectional/replayable-event"; | ||
export { ErrorTimelineEntry, FailedFindEntryFnEvent, JsReplayReachedMaxDurationEvent, JsReplaySimulateEvent, JsReplayTimelineEntry, PollyTimelineEntry, ReplayTimelineData, ReplayTimelineEntry, SuccessfulFindEntryFnEvent, UrlChangeTimelineEntry, } from "./sdk-bundle-api/bundle-to-sdk/timeline.types"; | ||
export { SDKReplayTimelineEntry, SDKReplayTimelineData, } from "./sdk-bundle-api/bundle-to-sdk/timeline.types"; | ||
export { HarEntry, HarLog, HarRequest, HarResponse, } from "./sdk-bundle-api/sdk-to-bundle/har-log"; | ||
export { Cookie, SessionData, UrlHistoryEvent, WindowData, } from "./sdk-bundle-api/sdk-to-bundle/session-data"; |
@@ -1,2 +0,1 @@ | ||
import { ReplayableEvent } from "../bidirectional/replayable-event"; | ||
interface GenericReplayTimelineEntry { | ||
@@ -16,11 +15,2 @@ kind: unknown; | ||
} | ||
export interface ErrorTimelineEntry extends GenericReplayTimelineEntry { | ||
kind: "error"; | ||
data: { | ||
message: string; | ||
fileName: string; | ||
lineNumber: number; | ||
stack: string | null; | ||
}; | ||
} | ||
/** | ||
@@ -37,64 +27,9 @@ * An error that cut the replay short. | ||
/** | ||
* Timed out waiting for something but continued anyway. This means the replay was still successful, but may be flakey. | ||
* ReplayTimelineEntry types used by Meticulous SDK. | ||
* | ||
* The Meticulous BE code internally uses additional timeline entries, but these | ||
* types are stored seperately. | ||
*/ | ||
export interface TimeoutTimelineEntry extends GenericReplayTimelineEntry { | ||
kind: "timeoutError"; | ||
data: { | ||
timeoutInMs: number; | ||
message: string | null; | ||
stack: string | null; | ||
}; | ||
} | ||
export interface FontsTimeoutTimelineEntry extends TimeoutTimelineEntry { | ||
data: { | ||
waitedFor: "fonts"; | ||
} & TimeoutTimelineEntry["data"]; | ||
} | ||
export interface NetworkResponsesTimeoutTimelineEntry extends TimeoutTimelineEntry { | ||
data: { | ||
waitedFor: "network-responses"; | ||
/** | ||
* The urls we timed out waiting for. | ||
*/ | ||
urls?: string[]; | ||
} & TimeoutTimelineEntry["data"]; | ||
} | ||
export interface UrlChangeTimelineEntry extends GenericReplayTimelineEntry { | ||
kind: "urlChange"; | ||
data: { | ||
url: string; | ||
timestamp: number; | ||
}; | ||
} | ||
export interface PollyTimelineEntry extends GenericReplayTimelineEntry { | ||
kind: "pollyReplay"; | ||
data: SuccessfulFindEntryFnEvent | FailedFindEntryFnEvent; | ||
} | ||
export interface SuccessfulFindEntryFnEvent { | ||
event: "findEntryFn"; | ||
result: "success"; | ||
pollyRequest: unknown; | ||
matchedRequest: unknown; | ||
} | ||
export interface FailedFindEntryFnEvent { | ||
event: "findEntryFn"; | ||
result: "failure"; | ||
pollyRequest: unknown; | ||
matchedRequest: null; | ||
} | ||
export interface JsReplayTimelineEntry extends GenericReplayTimelineEntry { | ||
kind: "jsReplay"; | ||
data: JsReplayReachedMaxDurationEvent | JsReplaySimulateEvent; | ||
} | ||
export interface JsReplayReachedMaxDurationEvent { | ||
event: "reached maxDurationMs"; | ||
maxDurationMs: number; | ||
} | ||
export interface JsReplaySimulateEvent { | ||
event: "simulate"; | ||
userEvent: ReplayableEvent; | ||
result: "success" | "failed" | "unknownEvent"; | ||
} | ||
export type ReplayTimelineEntry = ErrorTimelineEntry | FatalErrorTimelineEntry | FontsTimeoutTimelineEntry | NetworkResponsesTimeoutTimelineEntry | UrlChangeTimelineEntry | PollyTimelineEntry | JsReplayTimelineEntry; | ||
export type ReplayTimelineData = ReplayTimelineEntry[]; | ||
export type SDKReplayTimelineEntry = FatalErrorTimelineEntry | unknown; | ||
export type SDKReplayTimelineData = SDKReplayTimelineEntry[]; | ||
export {}; |
{ | ||
"name": "@alwaysmeticulous/api", | ||
"version": "2.33.0", | ||
"version": "2.34.0", | ||
"description": "Meticulous API types", | ||
@@ -37,3 +37,3 @@ "license": "ISC", | ||
}, | ||
"gitHead": "59fcb43a3781892cc3d2e9ce8c3340de8e246108" | ||
"gitHead": "239b51bf54a4114e6134d1a4d38bb1f992284af4" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17005
412
1