@travetto/model-s3 3.1.7 → 3.1.9
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 +3 -3
- package/src/service.ts +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-s3",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.9",
|
|
4
4
|
"description": "S3 backing for the travetto model module.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"s3",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-sdk/client-s3": "^3.272.0",
|
|
29
29
|
"@aws-sdk/credential-provider-ini": "^3.218.0",
|
|
30
|
-
"@travetto/config": "^3.1.
|
|
31
|
-
"@travetto/model": "^3.1.
|
|
30
|
+
"@travetto/config": "^3.1.3",
|
|
31
|
+
"@travetto/model": "^3.1.9"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@travetto/command": "^3.1.2"
|
package/src/service.ts
CHANGED
|
@@ -306,9 +306,8 @@ export class S3ModelService implements ModelCrudSupport, ModelStreamSupport, Mod
|
|
|
306
306
|
|
|
307
307
|
async getStreamPartial(location: string, start: number, end?: number): Promise<PartialStream> {
|
|
308
308
|
const meta = await this.describeStream(location);
|
|
309
|
-
end ??= meta.size - 1;
|
|
310
309
|
|
|
311
|
-
ModelStreamUtil.
|
|
310
|
+
[start, end] = ModelStreamUtil.enforceRange(start, end, meta.size);
|
|
312
311
|
|
|
313
312
|
// Read from s3
|
|
314
313
|
const res = await this.client.getObject(this.#q(STREAM_SPACE, location, {
|