From f1a79b1ccf86730baa3623bd9b26b1c45d575849 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Thu, 21 Nov 2024 14:54:54 -0800 Subject: [PATCH] additional options for extraOpts --- src/response.ts | 3 +++ src/rewrite/rxrewriter.ts | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/response.ts b/src/response.ts index a733525e..fa1f410d 100644 --- a/src/response.ts +++ b/src/response.ts @@ -24,6 +24,9 @@ export type WARCExtraOpts = { maxBand?: number; maxBitrate?: number; + + cert?: { issuer: string; ctc: string }; + ipType?: string; }; type ArchiveResponseOpts = { diff --git a/src/rewrite/rxrewriter.ts b/src/rewrite/rxrewriter.ts index 8e5e8342..d49b20f1 100644 --- a/src/rewrite/rxrewriter.ts +++ b/src/rewrite/rxrewriter.ts @@ -1,8 +1,8 @@ -import { type ArchiveResponse } from "../response"; +import { type WARCExtraOpts, type ArchiveResponse } from "../response"; export type RwOpts = { response?: ArchiveResponse; - save?: { maxRes: number; maxBand: number; maxBitrate: number }; + save?: WARCExtraOpts; prefix?: string; baseUrl?: string; isModule?: boolean | null;