@travetto/model-firestore 3.1.0-rc.0 → 3.1.0-rc.10

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 +5 -5
  2. package/src/service.ts +1 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-firestore",
3
- "version": "3.1.0-rc.0",
3
+ "version": "3.1.0-rc.10",
4
4
  "description": "Firestore backing for the travetto model module.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -26,12 +26,12 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@google-cloud/firestore": "^6.4.3",
29
- "@travetto/base": "^3.1.0-rc.0",
30
- "@travetto/config": "^3.1.0-rc.0",
31
- "@travetto/model": "^3.1.0-rc.0"
29
+ "@travetto/base": "^3.1.0-rc.3",
30
+ "@travetto/config": "^3.1.0-rc.8",
31
+ "@travetto/model": "^3.1.0-rc.10"
32
32
  },
33
33
  "peerDependencies": {
34
- "@travetto/command": "^3.1.0-rc.0"
34
+ "@travetto/command": "^3.1.0-rc.5"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "@travetto/command": {
package/src/service.ts CHANGED
@@ -10,7 +10,6 @@ import {
10
10
 
11
11
  import { ModelCrudUtil } from '@travetto/model/src/internal/service/crud';
12
12
  import { ModelIndexedUtil } from '@travetto/model/src/internal/service/indexed';
13
- import { ModelUtil } from '@travetto/model/src/internal/util';
14
13
 
15
14
  import { FirestoreModelConfig } from './config';
16
15
 
@@ -25,6 +24,7 @@ const toSimpleObj = <T>(inp: T, missingValue: unknown = null): PartialWithFieldV
25
24
  @Injectable()
26
25
  export class FirestoreModelService implements ModelCrudSupport, ModelStorageSupport, ModelIndexedSupport {
27
26
 
27
+ uuid = ModelCrudUtil.uuidGenerator();
28
28
  client: Firestore;
29
29
 
30
30
  constructor(public readonly config: FirestoreModelConfig) { }
@@ -57,10 +57,6 @@ export class FirestoreModelService implements ModelCrudSupport, ModelStorageSupp
57
57
  }
58
58
 
59
59
  // Crud
60
- uuid(): string {
61
- return ModelUtil.uuid();
62
- }
63
-
64
60
  async get<T extends ModelType>(cls: Class<T>, id: string): Promise<T> {
65
61
  const res = await this.#getCollection(cls).doc(id).get();
66
62