@output.ai/core 0.4.1 → 0.4.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": "@output.ai/core",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "The core module of the output framework",
5
5
  "type": "module",
6
6
  "exports": {
@@ -16,7 +16,7 @@ const getS3Client = () => {
16
16
  const secretAccessKey = process.env.OUTPUT_AWS_SECRET_ACCESS_KEY ?? throws( new Error( 'Missing OUTPUT_AWS_SECRET_ACCESS_KEY env var' ) );
17
17
  const accessKeyId = process.env.OUTPUT_AWS_ACCESS_KEY_ID ?? throws( new Error( 'Missing OUTPUT_AWS_ACCESS_KEY_ID env var' ) );
18
18
 
19
- return state.s3Client = new S3Client( { region, secretAccessKey, accessKeyId } );
19
+ return state.s3Client = new S3Client( { region, credentials: { accessKeyId, secretAccessKey } } );
20
20
  };
21
21
 
22
22
  /**
@@ -53,7 +53,7 @@ describe( 'tracing/processors/s3/s3_client', () => {
53
53
 
54
54
  await upload( { key: 'wf/key.json', content: '{"a":1}' } );
55
55
 
56
- expect( ctorState.args ).toEqual( { region: 'us-east-1', secretAccessKey: 'sek', accessKeyId: 'id' } );
56
+ expect( ctorState.args ).toEqual( { region: 'us-east-1', credentials: { secretAccessKey: 'sek', accessKeyId: 'id' } } );
57
57
  expect( sendMock ).toHaveBeenCalledTimes( 1 );
58
58
  const cmd = sendMock.mock.calls[0][0];
59
59
  expect( cmd ).toBeInstanceOf( PutObjectCommandMock );