@travetto/model-mongo 4.0.6 → 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 +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-mongo",
3
- "version": "4.0.6",
3
+ "version": "4.1.0",
4
4
  "description": "Mongo backing for the travetto model module.",
5
5
  "keywords": [
6
6
  "mongo",
@@ -25,13 +25,13 @@
25
25
  "directory": "module/model-mongo"
26
26
  },
27
27
  "dependencies": {
28
- "@travetto/config": "^4.0.6",
29
- "@travetto/model": "^4.0.6",
30
- "@travetto/model-query": "^4.0.6",
31
- "mongodb": "^6.4.0"
28
+ "@travetto/config": "^4.1.0",
29
+ "@travetto/model": "^4.1.0",
30
+ "@travetto/model-query": "^4.1.0",
31
+ "mongodb": "^6.6.2"
32
32
  },
33
33
  "peerDependencies": {
34
- "@travetto/command": "^4.0.5"
34
+ "@travetto/command": "^4.1.0"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "@travetto/command": {
package/src/service.ts CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  PageableModelQuery, ValidStringFields, WhereClause, ModelQuerySuggestSupport
19
19
  } from '@travetto/model-query';
20
20
 
21
- import { ShutdownManager, type Class, AppError, TypedObject } from '@travetto/base';
21
+ import { ShutdownManager, type Class, AppError, TypedObject, StreamUtil } from '@travetto/base';
22
22
  import { Injectable } from '@travetto/di';
23
23
  import { DeepPartial, FieldConfig, SchemaRegistry, SchemaValidator } from '@travetto/schema';
24
24
 
@@ -30,7 +30,7 @@ import { ModelQuerySuggestUtil } from '@travetto/model-query/src/internal/servic
30
30
  import { PointImpl } from '@travetto/model-query/src/internal/model/point';
31
31
  import { ModelQueryExpiryUtil } from '@travetto/model-query/src/internal/service/expiry';
32
32
  import { ModelExpiryUtil } from '@travetto/model/src/internal/service/expiry';
33
- import { ModelStreamUtil, StreamModel, STREAMS } from '@travetto/model/src/internal/service/stream';
33
+ import { StreamModel, STREAMS } from '@travetto/model/src/internal/service/stream';
34
34
  import { AllViewⲐ } from '@travetto/schema/src/internal/types';
35
35
  import { ModelBulkUtil } from '@travetto/model/src/internal/service/bulk';
36
36
 
@@ -312,7 +312,7 @@ export class MongoModelService implements
312
312
  async getStreamPartial(location: string, start: number, end?: number): Promise<PartialStream> {
313
313
  const meta = await this.describeStream(location);
314
314
 
315
- [start, end] = ModelStreamUtil.enforceRange(start, end, meta.size);
315
+ [start, end] = StreamUtil.enforceRange(start, end, meta.size);
316
316
 
317
317
  const res = await this.#bucket.openDownloadStreamByName(location, { start, end: end + 1 });
318
318
  if (!res) {