@patchstack/connect 0.5.6 → 0.5.8
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/AGENT-INSTALL.md +2 -2
- package/README.md +4 -4
- package/dist/chunk-4OHAYSV2.js +295 -0
- package/dist/chunk-4OHAYSV2.js.map +1 -0
- package/dist/cli.js +1089 -470
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +450 -41
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -3
- package/dist/index.d.ts +10 -3
- package/dist/index.js +461 -39
- package/dist/index.js.map +1 -1
- package/dist/protect/templates/demo-rules.json +1 -1
- package/dist/protect.cjs +1226 -244
- package/dist/protect.cjs.map +1 -1
- package/dist/protect.d.cts +7 -2
- package/dist/protect.d.ts +7 -2
- package/dist/protect.edge.js +992 -179
- package/dist/protect.edge.js.map +3 -3
- package/dist/protect.js +846 -192
- package/dist/protect.js.map +1 -1
- package/dist/{refresh-manifest-2ALIJGZ3.js → refresh-manifest-IE6SPHG6.js} +168 -41
- package/dist/refresh-manifest-IE6SPHG6.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-IOODP4ZB.js +0 -104
- package/dist/chunk-IOODP4ZB.js.map +0 -1
- package/dist/refresh-manifest-2ALIJGZ3.js.map +0 -1
package/dist/protect.d.cts
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
|
|
325
|
-
*
|
|
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
|
|
325
|
-
*
|
|
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
|
/**
|