@travetto/model-s3 4.0.8 → 4.1.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.
Files changed (2) hide show
  1. package/package.json +6 -6
  2. package/src/service.ts +1 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-s3",
3
- "version": "4.0.8",
3
+ "version": "4.1.0",
4
4
  "description": "S3 backing for the travetto model module.",
5
5
  "keywords": [
6
6
  "s3",
@@ -25,13 +25,13 @@
25
25
  "directory": "module/model-s3"
26
26
  },
27
27
  "dependencies": {
28
- "@aws-sdk/client-s3": "^3.525.0",
29
- "@aws-sdk/credential-provider-ini": "^3.525.0",
30
- "@travetto/config": "^4.0.7",
31
- "@travetto/model": "^4.0.7"
28
+ "@aws-sdk/client-s3": "^3.577.0",
29
+ "@aws-sdk/credential-provider-ini": "^3.577.0",
30
+ "@travetto/config": "^4.1.0",
31
+ "@travetto/model": "^4.1.0"
32
32
  },
33
33
  "peerDependencies": {
34
- "@travetto/command": "^4.0.6"
34
+ "@travetto/command": "^4.1.0"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "@travetto/command": {
package/src/service.ts CHANGED
@@ -16,7 +16,6 @@ import { ModelCrudUtil } from '@travetto/model/src/internal/service/crud';
16
16
  import { ModelExpirySupport } from '@travetto/model/src/service/expiry';
17
17
  import { ModelExpiryUtil } from '@travetto/model/src/internal/service/expiry';
18
18
  import { ModelStorageUtil } from '@travetto/model/src/internal/service/storage';
19
- import { ModelStreamUtil } from '@travetto/model/src/internal/service/stream';
20
19
 
21
20
  import { S3ModelConfig } from './config';
22
21
 
@@ -325,7 +324,7 @@ export class S3ModelService implements ModelCrudSupport, ModelStreamSupport, Mod
325
324
  async getStreamPartial(location: string, start: number, end?: number): Promise<PartialStream> {
326
325
  const meta = await this.describeStream(location);
327
326
 
328
- [start, end] = ModelStreamUtil.enforceRange(start, end, meta.size);
327
+ [start, end] = StreamUtil.enforceRange(start, end, meta.size);
329
328
 
330
329
  // Read from s3
331
330
  const res = await this.client.getObject(this.#q(STREAM_SPACE, location, {