MCPcopy Create free account
hub / github.com/Kong/insomnia / normalizeSession

Function normalizeSession

packages/insomnia/src/konnect/debug-session-api.ts:122–133  ·  view source on GitHub ↗
(raw: Raw)

Source from the content-addressed store, hash-verified

120type Raw = Record<string, any>;
121
122function normalizeSession(raw: Raw): DebugSession {
123 return {
124 id: String(raw.id),
125 name: raw.name ?? undefined,
126 durationSecs: Number(raw.duration_secs ?? 0),
127 startedAt: raw.started_at ?? null,
128 stoppedAt: raw.stopped_at ?? null,
129 completedAt: raw.completed_at ?? null,
130 timedOut: raw.timed_out === true,
131 targets: Array.isArray(raw.targets) ? raw.targets : [],
132 };
133}
134
135// Attribute names used in debug traces
136const attributeNames = {

Callers 2

createDebugSessionFunction · 0.85
getDebugSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected