mirror of
https://github.com/morluto/rea.git
synced 2026-11-10 00:36:35 +00:00
* feat(javascript): compare static endpoints with HAR captures * test(javascript): preserve original HAR fixture bytes during formatting * test(javascript): load the byte-preserved HAR fixture
33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
import { createEvidence } from "../../domain/evidence.js";
|
|
import { JAVASCRIPT_APPLICATION_EVIDENCE_EXAMPLE } from "./javascriptRuntimeReconciliationExample.js";
|
|
|
|
/** Portable source records demonstrate admission, without claiming a real capture. */
|
|
export const STATIC_OBSERVED_ENDPOINT_COMPARISON_EXAMPLE = {
|
|
application: JAVASCRIPT_APPLICATION_EVIDENCE_EXAMPLE,
|
|
capture: createEvidence(
|
|
undefined,
|
|
{ id: "rea-example-har", name: "Example HAR", version: "1" },
|
|
{
|
|
operation: "inspect_web_network_capture",
|
|
parameters: { sensitive_value_count: 0 },
|
|
result: {
|
|
artifact: { path: "/capture.har", sha256: null, bytes: 0 },
|
|
format: "har",
|
|
decoder: { id: "rea-example-har", name: "Example HAR", version: "1" },
|
|
container: {
|
|
reported: {},
|
|
numeric_literals: [],
|
|
redactions: [],
|
|
records_pointer: "/log/entries",
|
|
},
|
|
total_records: 0,
|
|
records: [],
|
|
runtime_attribution: "unknown",
|
|
limitations: ["Empty illustrative capture, not a runtime measurement."],
|
|
},
|
|
confidence: "observed",
|
|
},
|
|
),
|
|
origin: "https://example.test",
|
|
};
|