From 7145512df0588f63c84f1e3f79531d9318268e0d Mon Sep 17 00:00:00 2001 From: blaxk Date: Fri, 26 Jan 2024 10:09:31 +0900 Subject: [PATCH] Fix lambda invoke error --- package.json | 2 +- src/AWSLambdaTestCase.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 50bd7f7..4196f9a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aws-lambda-test-case", - "version": "0.6.0", + "version": "0.6.1", "engines": { "node": ">=12.0.0" }, diff --git a/src/AWSLambdaTestCase.js b/src/AWSLambdaTestCase.js index 18efc7b..25b1216 100644 --- a/src/AWSLambdaTestCase.js +++ b/src/AWSLambdaTestCase.js @@ -3,7 +3,7 @@ const { fromIni } = require('@aws-sdk/credential-provider-ini') const TestCase = require('./TestCase') const MODULE_NAME = 'AWSLambdaTestCase' -const MODULE_VER = '0.6.0' +const MODULE_VER = '0.6.1' class AWSLambdaTestCase { @@ -32,8 +32,8 @@ class AWSLambdaTestCase { } this._lambda = new LambdaClient({ - region: this.region, - credentials: fromIni({ profile: this.profile }) + region: this._option.region, + credentials: fromIni({ profile: this._option.profile }) }) this._cases = []