From 5834229427d1173456432850375471e09b9c2cd8 Mon Sep 17 00:00:00 2001 From: Sander Declerck Date: Mon, 24 Nov 2025 15:13:25 +0100 Subject: [PATCH] Add comment in interceptorBuilder.js to clarify which api is for setup, and which api is used by the proxy. --- .../src/registryProxy/interceptors/interceptorBuilder.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/safe-chain/src/registryProxy/interceptors/interceptorBuilder.js b/packages/safe-chain/src/registryProxy/interceptors/interceptorBuilder.js index 362f31a..003aae7 100644 --- a/packages/safe-chain/src/registryProxy/interceptors/interceptorBuilder.js +++ b/packages/safe-chain/src/registryProxy/interceptors/interceptorBuilder.js @@ -115,6 +115,7 @@ function createRequestContext(targetUrl, eventEmitter) { return modifiedBody; } + // These functions are invoked in the proxy, allowing to apply the configured modifications return { blockResponse, modifyRequestHeaders: modifyRequestHeaders, @@ -123,6 +124,7 @@ function createRequestContext(targetUrl, eventEmitter) { }; } + // These functions are used to setup the modifications return { targetUrl, blockMalware: blockMalwareSetup,