diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 33745c7..aa9b387 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,4 +1,4 @@ -name: Build and test the aws jslib against a Localstack instance +name: Lint the aws jslib on: # Enables running the workflow manually from the Actions tab workflow_dispatch: diff --git a/.gitignore b/.gitignore index 7273e94..9ff5785 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules/ /volume dist/ +.DS_Store diff --git a/package-lock.json b/package-lock.json index 35dc1e8..eafce00 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "k6-jslib-aws", - "version": "0.12.0", + "version": "0.12.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "k6-jslib-aws", - "version": "0.12.0", + "version": "0.12.3", "license": "MIT", "devDependencies": { "@babel/core": "^7.4.4", diff --git a/src/internal/signature.ts b/src/internal/signature.ts index 02bcb64..79407d3 100644 --- a/src/internal/signature.ts +++ b/src/internal/signature.ts @@ -274,7 +274,7 @@ export class SignatureV4 { if (request.path) { // Ensure there is a trailing slash at the end of the URL // so that appending the path does not result in a malformed URL. - url = url.endsWith('/') ? url : url + '/' + url = url?.endsWith('/') ? url : url + '/' // Append the path to the URL url += request.path