@travetto/model-elasticsearch 3.1.13 → 3.1.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-elasticsearch",
3
- "version": "3.1.13",
3
+ "version": "3.1.15",
4
4
  "description": "Elasticsearch backing for the travetto model module, with real-time modeling support for Elasticsearch mappings.",
5
5
  "keywords": [
6
6
  "elasticsearch",
@@ -28,12 +28,12 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@elastic/elasticsearch": "^8.7.0",
31
- "@travetto/config": "^3.1.7",
32
- "@travetto/model": "^3.1.13",
33
- "@travetto/model-query": "^3.1.13"
31
+ "@travetto/config": "^3.1.9",
32
+ "@travetto/model": "^3.1.15",
33
+ "@travetto/model-query": "^3.1.15"
34
34
  },
35
35
  "peerDependencies": {
36
- "@travetto/command": "^3.1.4"
36
+ "@travetto/command": "^3.1.5"
37
37
  },
38
38
  "peerDependenciesMeta": {
39
39
  "@travetto/command": {
@@ -156,13 +156,6 @@ export class ElasticsearchQueryUtil {
156
156
  items.push({ range: { [sPath]: out } });
157
157
  break;
158
158
  }
159
- case '$empty': {
160
- const q = {
161
- exists: { field: sPath }
162
- };
163
- items.push(!v ? q : { bool: { ['must_not']: q } });
164
- break;
165
- }
166
159
  case '$regex': {
167
160
  // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
168
161
  const pattern = DataUtil.toRegex(v as string);
package/src/service.ts CHANGED
@@ -454,6 +454,7 @@ export class ElasticsearchModelService implements
454
454
  throw new NotFoundError(cls, id);
455
455
  }
456
456
  } catch (err) {
457
+ // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
457
458
  if (err instanceof es.errors.ResponseError && (err.body as UpdateByQueryResponse).version_conflicts) {
458
459
  throw new NotFoundError(cls, id);
459
460
  } else {