@travetto/model-s3 5.0.0-rc.1 → 5.0.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/README.md +2 -2
- package/package.json +4 -4
- package/src/config.ts +2 -2
- package/src/service.ts +1 -1
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ import type s3 from '@aws-sdk/client-s3';
|
|
|
45
45
|
|
|
46
46
|
import { Config, EnvVar } from '@travetto/config';
|
|
47
47
|
import { Field, Required } from '@travetto/schema';
|
|
48
|
-
import {
|
|
48
|
+
import { Runtime } from '@travetto/runtime';
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
51
|
* S3 Support as an Asset Source
|
|
@@ -100,7 +100,7 @@ export class S3ModelConfig {
|
|
|
100
100
|
};
|
|
101
101
|
|
|
102
102
|
// We are in localhost and not in prod, turn on forcePathStyle
|
|
103
|
-
if (!
|
|
103
|
+
if (!Runtime.production && this.endpoint.includes('localhost')) {
|
|
104
104
|
this.config.forcePathStyle ??= true;
|
|
105
105
|
}
|
|
106
106
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-s3",
|
|
3
|
-
"version": "5.0.0-rc.
|
|
3
|
+
"version": "5.0.0-rc.2",
|
|
4
4
|
"description": "S3 backing for the travetto model module.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"s3",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-sdk/client-s3": "^3.609.0",
|
|
29
29
|
"@aws-sdk/credential-provider-ini": "^3.609.0",
|
|
30
|
-
"@travetto/config": "^5.0.0-rc.
|
|
31
|
-
"@travetto/model": "^5.0.0-rc.
|
|
30
|
+
"@travetto/config": "^5.0.0-rc.2",
|
|
31
|
+
"@travetto/model": "^5.0.0-rc.2"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@travetto/command": "^5.0.0-rc.
|
|
34
|
+
"@travetto/command": "^5.0.0-rc.2"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"@travetto/command": {
|
package/src/config.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type s3 from '@aws-sdk/client-s3';
|
|
|
3
3
|
|
|
4
4
|
import { Config, EnvVar } from '@travetto/config';
|
|
5
5
|
import { Field, Required } from '@travetto/schema';
|
|
6
|
-
import {
|
|
6
|
+
import { Runtime } from '@travetto/runtime';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* S3 Support as an Asset Source
|
|
@@ -58,7 +58,7 @@ export class S3ModelConfig {
|
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
// We are in localhost and not in prod, turn on forcePathStyle
|
|
61
|
-
if (!
|
|
61
|
+
if (!Runtime.production && this.endpoint.includes('localhost')) {
|
|
62
62
|
this.config.forcePathStyle ??= true;
|
|
63
63
|
}
|
|
64
64
|
}
|
package/src/service.ts
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
StreamRange
|
|
13
13
|
} from '@travetto/model';
|
|
14
14
|
import { Injectable } from '@travetto/di';
|
|
15
|
-
import { Class, AppError } from '@travetto/
|
|
15
|
+
import { Class, AppError } from '@travetto/runtime';
|
|
16
16
|
|
|
17
17
|
import { ModelCrudUtil } from '@travetto/model/src/internal/service/crud';
|
|
18
18
|
import { ModelExpirySupport } from '@travetto/model/src/service/expiry';
|