vls-s3 1.2.0 → 1.3.0

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.
@@ -10,7 +10,7 @@ export declare class LambdaS3Client {
10
10
  type Config = {
11
11
  bucketName: string;
12
12
  region?: string;
13
- accessKey?: string;
13
+ secretAccessKey?: string;
14
14
  accessKeyID?: string;
15
15
  };
16
16
  export {};
@@ -12,11 +12,11 @@ class LambdaS3Client {
12
12
  if (!this.client) {
13
13
  this.client = new client_s3_1.S3Client({
14
14
  region: this.config.region ?? process.env.REGION,
15
- ...(this.config.accessKeyID && this.config.accessKey
15
+ ...(this.config.accessKeyID && this.config.secretAccessKey
16
16
  ? {
17
17
  credentials: {
18
18
  accessKeyId: this.config.accessKeyID,
19
- secretAccessKey: this.config.accessKey
19
+ secretAccessKey: this.config.secretAccessKey
20
20
  }
21
21
  }
22
22
  : {})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vls-s3",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "main": "dist/lambda-s3-client.js",
5
5
  "types": "dist/lambda-s3-client.d.ts",
6
6
  "scripts": {
package/release.config.js CHANGED
@@ -1,5 +1,5 @@
1
1
  module.exports = {
2
- branches: ['main'],
2
+ branches: ['s3'],
3
3
  plugins: [
4
4
  '@semantic-release/commit-analyzer',
5
5
  '@semantic-release/release-notes-generator',
@@ -20,11 +20,11 @@ export class LambdaS3Client {
20
20
  if (!this.client) {
21
21
  this.client = new S3Client({
22
22
  region: this.config.region ?? process.env.REGION,
23
- ...(this.config.accessKeyID && this.config.accessKey
23
+ ...(this.config.accessKeyID && this.config.secretAccessKey
24
24
  ? {
25
25
  credentials: {
26
26
  accessKeyId: this.config.accessKeyID,
27
- secretAccessKey: this.config.accessKey
27
+ secretAccessKey: this.config.secretAccessKey
28
28
  }
29
29
  }
30
30
  : {})
@@ -67,6 +67,6 @@ export class LambdaS3Client {
67
67
  type Config = {
68
68
  bucketName: string;
69
69
  region?: string;
70
- accessKey?: string;
70
+ secretAccessKey?: string;
71
71
  accessKeyID?: string;
72
72
  };