@patchstack/connect 0.3.16 → 0.3.18

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.
package/dist/protect.d.ts CHANGED
@@ -37,8 +37,16 @@ export interface CreateProtectionOptions {
37
37
  siteUuid?: string;
38
38
  /** Override the Pulse rules API base URL. */
39
39
  pulseRulesUrl?: string;
40
- /** Directory for the last-known-good rule cache. */
40
+ /** Directory for the last-known-good rule cache (disk — the default cache backend). */
41
41
  cacheDir?: string;
42
+ /**
43
+ * Pluggable last-known-good cache, for runtimes without a filesystem (Workers/Deno). Overrides
44
+ * the disk cache. Stores/returns an opaque envelope; read may return null when nothing is cached.
45
+ */
46
+ ruleCache?: {
47
+ read(): unknown | Promise<unknown>;
48
+ write(envelope: unknown): unknown | Promise<unknown>;
49
+ };
42
50
  /** Override the default response-phase (secret-leak) rule set. */
43
51
  responseRules?: unknown[];
44
52
  /** Override the default egress-phase (SSRF) rule set. */