@patchstack/connect 0.5.6 → 0.5.7

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.
@@ -321,8 +321,9 @@ export interface CreateProtectionOptions {
321
321
  /** Hosts exempt from egress screening. */
322
322
  allowHosts?: string[];
323
323
  /**
324
- * Screen the Node http/https path against DNS rebinding: resolve outbound hostnames and block +
325
- * pin to the vetted address when they map to a disallowed (internal/metadata) IP. Default true;
324
+ * Screen hostname resolutions the guard performs for Node http/https requests. Disallowed
325
+ * internal/metadata addresses are blocked, and permitted results are used for those resolutions.
326
+ * Reused sockets or transports that bypass the guard's resolver are not covered. Default true;
326
327
  * only active when `egress` is on and node:dns is available (a no-op on edge runtimes).
327
328
  */
328
329
  screenDns?: boolean;
@@ -356,6 +357,10 @@ export function createSupabaseGuard(opts: {
356
357
  protection: Protection;
357
358
  supabaseUrl?: string;
358
359
  fetchImpl?: typeof fetch;
360
+ /** Maximum tunneled request body size. Default 1 MiB. */
361
+ maxBodyBytes?: number;
362
+ /** Maximum upstream request duration. Default 30 seconds. */
363
+ timeoutMs?: number;
359
364
  }): (request: Request) => Promise<Response>;
360
365
 
361
366
  /**
package/dist/protect.d.ts CHANGED
@@ -321,8 +321,9 @@ export interface CreateProtectionOptions {
321
321
  /** Hosts exempt from egress screening. */
322
322
  allowHosts?: string[];
323
323
  /**
324
- * Screen the Node http/https path against DNS rebinding: resolve outbound hostnames and block +
325
- * pin to the vetted address when they map to a disallowed (internal/metadata) IP. Default true;
324
+ * Screen hostname resolutions the guard performs for Node http/https requests. Disallowed
325
+ * internal/metadata addresses are blocked, and permitted results are used for those resolutions.
326
+ * Reused sockets or transports that bypass the guard's resolver are not covered. Default true;
326
327
  * only active when `egress` is on and node:dns is available (a no-op on edge runtimes).
327
328
  */
328
329
  screenDns?: boolean;
@@ -356,6 +357,10 @@ export function createSupabaseGuard(opts: {
356
357
  protection: Protection;
357
358
  supabaseUrl?: string;
358
359
  fetchImpl?: typeof fetch;
360
+ /** Maximum tunneled request body size. Default 1 MiB. */
361
+ maxBodyBytes?: number;
362
+ /** Maximum upstream request duration. Default 30 seconds. */
363
+ timeoutMs?: number;
359
364
  }): (request: Request) => Promise<Response>;
360
365
 
361
366
  /**