From 0598e9559016f3f96491430c6bca451d205b12b8 Mon Sep 17 00:00:00 2001 From: Kevin Date: Thu, 16 Apr 2026 14:53:23 +1000 Subject: [PATCH] fix: correct institiation of S3Client --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index e014a9a..da8c472 100644 --- a/src/index.js +++ b/src/index.js @@ -1042,8 +1042,8 @@ class LocalstackPlugin { return; } const data = customResourcesBucketFile.getData().toString(); - const oldClientCreation = 'S3Client({ maxAttempts: MAX_AWS_REQUEST_TRY });'; - const newClientCreation = 'S3Client({ maxAttempts: MAX_AWS_REQUEST_TRY, forcePathStyle: true });'; + const oldClientCreation = 'new S3Client({ maxAttempts: MAX_AWS_REQUEST_TRY })'; + const newClientCreation = 'new S3Client({ maxAttempts: MAX_AWS_REQUEST_TRY, forcePathStyle: true })'; if (data.includes(newClientCreation)) { // patch already done createPatchMarker();