@travetto/model-dynamodb 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 +4 -4
  2. package/src/service.ts +1 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-dynamodb",
3
- "version": "3.1.0-rc.0",
3
+ "version": "3.1.0-rc.10",
4
4
  "description": "DynamoDB backing for the travetto model module.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -26,11 +26,11 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@aws-sdk/client-dynamodb": "^3.272.0",
29
- "@travetto/config": "^3.1.0-rc.0",
30
- "@travetto/model": "^3.1.0-rc.0"
29
+ "@travetto/config": "^3.1.0-rc.8",
30
+ "@travetto/model": "^3.1.0-rc.10"
31
31
  },
32
32
  "peerDependencies": {
33
- "@travetto/command": "^3.1.0-rc.0"
33
+ "@travetto/command": "^3.1.0-rc.5"
34
34
  },
35
35
  "peerDependenciesMeta": {
36
36
  "@travetto/command": {
package/src/service.ts CHANGED
@@ -13,7 +13,6 @@ import { ModelCrudUtil } from '@travetto/model/src/internal/service/crud';
13
13
  import { ModelExpiryUtil } from '@travetto/model/src/internal/service/expiry';
14
14
  import { ModelIndexedUtil } from '@travetto/model/src/internal/service/indexed';
15
15
  import { ModelStorageUtil } from '@travetto/model/src/internal/service/storage';
16
- import { ModelUtil } from '@travetto/model/src/internal/util';
17
16
 
18
17
  import { DynamoDBModelConfig } from './config';
19
18
 
@@ -58,6 +57,7 @@ async function loadAndCheckExpiry<T extends ModelType>(cls: Class<T>, doc: strin
58
57
  @Injectable()
59
58
  export class DynamoDBModelService implements ModelCrudSupport, ModelExpirySupport, ModelStorageSupport, ModelIndexedSupport {
60
59
 
60
+ uuid = ModelCrudUtil.uuidGenerator();
61
61
  client: dynamodb.DynamoDB;
62
62
 
63
63
  constructor(public readonly config: DynamoDBModelConfig) { }
@@ -269,10 +269,6 @@ export class DynamoDBModelService implements ModelCrudSupport, ModelExpirySuppor
269
269
  }
270
270
 
271
271
  // Crud
272
- uuid(): string {
273
- return ModelUtil.uuid();
274
- }
275
-
276
272
  async get<T extends ModelType>(cls: Class<T>, id: string): Promise<T> {
277
273
  const res = await this.client.getItem({
278
274
  TableName: this.#resolveTable(cls),