@travetto/model-s3 2.0.4 → 2.1.1

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/README.md CHANGED
@@ -39,7 +39,7 @@ import * as S3 from '@aws-sdk/client-s3';
39
39
 
40
40
  import { EnvUtil } from '@travetto/boot';
41
41
  import { Config } from '@travetto/config';
42
- import { Field } from '@travetto/schema';
42
+ import { Field, Required } from '@travetto/schema';
43
43
 
44
44
  /**
45
45
  * S3 Support as an Asset Source
@@ -55,7 +55,8 @@ export class S3ModelConfig {
55
55
  secretAccessKey = EnvUtil.get('AWS_SECRET_ACCESS_KEY', '');
56
56
 
57
57
  @Field(Object)
58
- config?: S3.S3ClientConfig; // Additional s3 config
58
+ @Required(false)
59
+ config: S3.S3ClientConfig; // Additional s3 config
59
60
 
60
61
  chunkSize = 5 * 2 ** 20; // Chunk size in bytes
61
62
 
@@ -80,6 +81,7 @@ export class S3ModelConfig {
80
81
 
81
82
  this.config = {
82
83
  ...(this.config ?? {}),
84
+ region: this.region,
83
85
  endpoint: this.endpoint,
84
86
  credentials: {
85
87
  accessKeyId: this.accessKeyId,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@travetto/model-s3",
3
3
  "displayName": "S3 Model Support",
4
- "version": "2.0.4",
4
+ "version": "2.1.1",
5
5
  "description": "S3 backing for the travetto model module.",
6
6
  "keywords": [
7
7
  "s3",
@@ -25,10 +25,10 @@
25
25
  "directory": "module/model-s3"
26
26
  },
27
27
  "dependencies": {
28
- "@aws-sdk/client-s3": "^3.18.0",
29
- "@aws-sdk/credential-provider-ini": "^3.18.0",
30
- "@travetto/config": "^2.0.3",
31
- "@travetto/model": "^2.0.3"
28
+ "@aws-sdk/client-s3": "^3.53.1",
29
+ "@aws-sdk/credential-provider-ini": "^3.53.0",
30
+ "@travetto/config": "^2.1.1",
31
+ "@travetto/model": "^2.1.1"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
package/src/config.ts CHANGED
@@ -45,6 +45,7 @@ export class S3ModelConfig {
45
45
 
46
46
  this.config = {
47
47
  ...(this.config ?? {}),
48
+ region: this.region,
48
49
  endpoint: this.endpoint,
49
50
  credentials: {
50
51
  accessKeyId: this.accessKeyId,