From 57bf8a1c1c82e167974fce4e0e10c10273f74f9e Mon Sep 17 00:00:00 2001 From: Artem Derevnjuk Date: Fri, 21 Jun 2024 20:04:48 +0400 Subject: [PATCH 1/2] fix(repeater): decode base64 bodies before scripts (#553) closes #552 --- src/RequestExecutor/HttpRequestExecutor.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/RequestExecutor/HttpRequestExecutor.ts b/src/RequestExecutor/HttpRequestExecutor.ts index 3c73ad62..d45bf077 100644 --- a/src/RequestExecutor/HttpRequestExecutor.ts +++ b/src/RequestExecutor/HttpRequestExecutor.ts @@ -359,7 +359,12 @@ export class HttpRequestExecutor implements RequestExecutor { const result = await vm.exec( this.DEFAULT_SCRIPT_ENTRYPOINT, - script.toJSON() + { + ...script.toJSON(), + body: script.encoding + ? iconv.encode(script.body, script.encoding).toString() + : script.body + } ); return new Request(result); From c211e2eaf9f936d54a73f145156167bf6e591ba7 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 21 Jun 2024 16:51:49 +0000 Subject: [PATCH 2/2] chore(release): cut the 11.5.4 release [skip ci] --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7b95064c..d27303a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@brightsec/cli", - "version": "11.5.3", + "version": "11.5.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@brightsec/cli", - "version": "11.5.3", + "version": "11.5.4", "license": "MIT", "dependencies": { "@neuralegion/capture-har": "^0.3.4", diff --git a/package.json b/package.json index ae3ab88d..22af1d19 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@brightsec/cli", - "version": "11.5.3", + "version": "11.5.4", "private": false, "repository": { "type": "git",