Skip to content

Commit 59ece0e

Browse files
committed
Release v1.0.1
1 parent 6c74cbd commit 59ece0e

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# AWS Parameter Store Json Reader - Changelog
22

3+
## 2018-11-27 Version 1.0.1
4+
5+
* (Bug fix) - AWS APIVersion now is passed to the SSM module correctly.
6+
37
## 2018-11-27 Version 1.0.0
48

59
* Initial Release.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aws-parameter-store-json-reader",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "A library that reads JSON from AWS Parameter Store.",
55
"main": "src/AwsParameterStoreJsonReader.js",
66
"scripts": {

src/AwsParameterStoreJsonReader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ module.exports = class AwsParameterStoreJsonReader {
77

88
constructor(configuration) {
99
this.configuration = configuration;
10-
const apiVersion = configuration ? configuration.apiVersion : undefined;
10+
const ssmConfig = configuration ? { "apiVersion": configuration.apiVersion } : undefined;
1111

12-
this.ssm = new AWS.SSM(apiVersion);
12+
this.ssm = new AWS.SSM(ssmConfig);
1313
this.ssm.getParametersByPathAsync = promisify(this.ssm.getParametersByPath);
1414
}
1515

test/AwsParameterStoreJsonReader_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ describe('AwsParameterStoreJsonReader', () => {
7777
const parameterReader = new AwsParameterStoreJsonReader(configuration);
7878

7979
expect(stub).to.have.been.calledWithNew;
80-
expect(stub.getCall(0).args[0]).to.be.equal(configuration.apiVersion);
80+
expect(stub.getCall(0).args[0]).to.be.eql({ "apiVersion": configuration.apiVersion });
8181
expect(parameterReader.ssm).to.be.equal(ssm);
8282
});
8383
});

0 commit comments

Comments
 (0)