Files
klz-cables.com/.pnpm-store/v10/files/11/459e2ffcfbeb68584ba08692542ca7693f0585d639e96cac0c169c11178c1978860c86e64505868ad26744ff7bde62fc729094301a0f140a76e4127cac4fbf
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

17 lines
798 B
Plaintext

import { lookup } from 'dns';
import { fetch as undiciFetch } from 'undici';
/**
* @internal this is used to mock the IP `lookup` function in integration tests
*/
export declare const _internal_safeFetchGlobal: {
lookup: typeof lookup;
};
/**
* A "safe" version of undici's fetch that prevents SSRF attacks.
*
* - Utilizes a custom dispatcher that filters out requests to unsafe IP addresses.
* - Validates domain names by resolving them to IP addresses and checking if they're safe.
* - Undici was used because it supported interceptors as well as "credentials: include". Native fetch
*/
export declare const safeFetch: (input: import("undici").RequestInfo, init?: import("undici").RequestInit | undefined) => Promise<import("undici").Response>;
//# sourceMappingURL=safeFetch.d.ts.map