@defra-fish/connectors-lib 1.69.0-rc.0 → 1.69.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defra-fish/connectors-lib",
3
- "version": "1.69.0-rc.0",
3
+ "version": "1.69.0-rc.2",
4
4
  "description": "Shared connectors",
5
5
  "type": "module",
6
6
  "engines": {
@@ -47,5 +47,5 @@
47
47
  "node-fetch": "2.7.0",
48
48
  "redlock": "4.2.0"
49
49
  },
50
- "gitHead": "e9eb67926528361d45ad630df84da2ad47723b97"
50
+ "gitHead": "4533f11c381c787bb9deb92ae90e470917d98c30"
51
51
  }
@@ -27,6 +27,16 @@ describe('AWS Special cases', () => {
27
27
  expect(ListObjectsV2Command).toBeDefined()
28
28
  })
29
29
 
30
+ it('exports GetObjectCommand from S3 SDK', () => {
31
+ const { GetObjectCommand } = AWS()
32
+ expect(GetObjectCommand).toBeDefined()
33
+ })
34
+
35
+ it('exports GetParameterCommand from ClientSSM SDK', () => {
36
+ const { GetParameterCommand } = AWS()
37
+ expect(GetParameterCommand).toBeDefined()
38
+ })
39
+
30
40
  describe('AWS connectors for S3Client', () => {
31
41
  it('has region set to eu-west-2', async () => {
32
42
  const { s3 } = AWS()
package/src/aws.js CHANGED
@@ -4,7 +4,7 @@ import { DynamoDB } from '@aws-sdk/client-dynamodb'
4
4
  import { SQS } from '@aws-sdk/client-sqs'
5
5
  import { S3Client, ListObjectsV2Command, GetObjectCommand } from '@aws-sdk/client-s3'
6
6
  import { SecretsManager } from '@aws-sdk/client-secrets-manager'
7
- import { SSMClient } from '@aws-sdk/client-ssm'
7
+ import { SSMClient, GetParameterCommand } from '@aws-sdk/client-ssm'
8
8
 
9
9
  export default function () {
10
10
  return {
@@ -49,6 +49,7 @@ export default function () {
49
49
  })
50
50
  }),
51
51
  ListObjectsV2Command,
52
- GetObjectCommand
52
+ GetObjectCommand,
53
+ GetParameterCommand
53
54
  }
54
55
  }