@travetto/model-memory 5.0.0 → 5.0.2

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 +7 -7
  2. package/src/service.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-memory",
3
- "version": "5.0.0",
3
+ "version": "5.0.2",
4
4
  "description": "Memory backing for the travetto model module.",
5
5
  "keywords": [
6
6
  "datastore",
@@ -25,14 +25,14 @@
25
25
  "directory": "module/model-memory"
26
26
  },
27
27
  "dependencies": {
28
- "@travetto/config": "^5.0.0",
29
- "@travetto/di": "^5.0.0",
30
- "@travetto/model": "^5.0.0",
31
- "@travetto/schema": "^5.0.0"
28
+ "@travetto/config": "^5.0.2",
29
+ "@travetto/di": "^5.0.2",
30
+ "@travetto/model": "^5.0.2",
31
+ "@travetto/schema": "^5.0.2"
32
32
  },
33
33
  "peerDependencies": {
34
- "@travetto/cli": "^5.0.0",
35
- "@travetto/test": "^5.0.0"
34
+ "@travetto/cli": "^5.0.2",
35
+ "@travetto/test": "^5.0.2"
36
36
  },
37
37
  "peerDependenciesMeta": {
38
38
  "@travetto/cli": {
package/src/service.ts CHANGED
@@ -205,7 +205,7 @@ export class MemoryModelService implements ModelCrudSupport, ModelBlobSupport, M
205
205
 
206
206
  async updatePartial<T extends ModelType>(cls: Class<T>, item: Partial<T> & { id: string }, view?: string): Promise<T> {
207
207
  const id = item.id;
208
- const clean = await ModelCrudUtil.naivePartialUpdate(cls, item, view, () => this.get(cls, id));
208
+ const clean = await ModelCrudUtil.naivePartialUpdate(cls, () => this.get(cls, id), item, view);
209
209
  return await this.#persist(cls, clean, 'write');
210
210
  }
211
211