From b800290d7252b18ca5c3856fda3e3253d26cca31 Mon Sep 17 00:00:00 2001 From: Morten Olsen Date: Sun, 18 May 2025 20:45:08 +0200 Subject: [PATCH] feat: support hash ids in http blocks --- src/execution/handlers/handlers.http.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/execution/handlers/handlers.http.ts b/src/execution/handlers/handlers.http.ts index 464ab9b..be36974 100644 --- a/src/execution/handlers/handlers.http.ts +++ b/src/execution/handlers/handlers.http.ts @@ -16,6 +16,11 @@ const httpHandler: ExecutionHandler = ({ return [key.trim(), value?.trim() || true]; }) ); + let id = options.id?.toString(); + const idPart = optionParts.find((option) => option.startsWith('#')); + if (idPart) { + id = idPart.slice(1); + } addStep({ type: 'http', @@ -66,7 +71,7 @@ const httpHandler: ExecutionHandler = ({ node.meta = undefined; context.addRequest({ - id: options.id?.toString(), + id, request: { method, url,