@travetto/model-elasticsearch 4.1.2 → 4.1.4

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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 ArcSine Technologies
3
+ Copyright (c) 2020 ArcSine Technologies
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-elasticsearch",
3
- "version": "4.1.2",
3
+ "version": "4.1.4",
4
4
  "description": "Elasticsearch backing for the travetto model module, with real-time modeling support for Elasticsearch mappings.",
5
5
  "keywords": [
6
6
  "elasticsearch",
@@ -27,13 +27,13 @@
27
27
  "directory": "module/model-elasticsearch"
28
28
  },
29
29
  "dependencies": {
30
- "@elastic/elasticsearch": "^8.13.1",
31
- "@travetto/config": "^4.1.0",
32
- "@travetto/model": "^4.1.2",
33
- "@travetto/model-query": "^4.1.2"
30
+ "@elastic/elasticsearch": "^8.14.0",
31
+ "@travetto/config": "^4.1.2",
32
+ "@travetto/model": "^4.1.3",
33
+ "@travetto/model-query": "^4.1.4"
34
34
  },
35
35
  "peerDependencies": {
36
- "@travetto/command": "^4.1.0"
36
+ "@travetto/command": "^4.1.1"
37
37
  },
38
38
  "peerDependenciesMeta": {
39
39
  "@travetto/command": {
package/src/service.ts CHANGED
@@ -214,6 +214,8 @@ export class ElasticsearchModelService implements
214
214
  async updatePartial<T extends ModelType>(cls: Class<T>, data: Partial<T> & { id: string }): Promise<T> {
215
215
  ModelCrudUtil.ensureNotSubType(cls);
216
216
 
217
+ await ModelCrudUtil.prePersist(cls, data, 'partial');
218
+
217
219
  const script = ElasticsearchSchemaUtil.generateUpdateScript(data);
218
220
  const id = data.id;
219
221