@opra/elastic 1.12.2 → 1.12.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.
@@ -337,6 +337,7 @@ class ElasticEntityService extends elastic_service_js_1.ElasticService {
337
337
  * @param operation - The operation to retrieve the encoder for. Valid values are 'create' and 'update'.
338
338
  */
339
339
  _getInputCodec(operation) {
340
+ const dataType = this.dataType;
340
341
  const cacheKey = operation + (this._dataTypeScope ? ':' + this._dataTypeScope : '');
341
342
  let validator = this._inputCodecs[cacheKey];
342
343
  if (validator)
@@ -349,7 +350,6 @@ class ElasticEntityService extends elastic_service_js_1.ElasticService {
349
350
  options.partial = 'deep';
350
351
  options.keepKeyFields = true;
351
352
  }
352
- const dataType = this.dataType;
353
353
  validator = dataType.generateCodec('decode', options);
354
354
  this._inputCodecs[cacheKey] = validator;
355
355
  return validator;
@@ -334,6 +334,7 @@ export class ElasticEntityService extends ElasticService {
334
334
  * @param operation - The operation to retrieve the encoder for. Valid values are 'create' and 'update'.
335
335
  */
336
336
  _getInputCodec(operation) {
337
+ const dataType = this.dataType;
337
338
  const cacheKey = operation + (this._dataTypeScope ? ':' + this._dataTypeScope : '');
338
339
  let validator = this._inputCodecs[cacheKey];
339
340
  if (validator)
@@ -346,7 +347,6 @@ export class ElasticEntityService extends ElasticService {
346
347
  options.partial = 'deep';
347
348
  options.keepKeyFields = true;
348
349
  }
349
- const dataType = this.dataType;
350
350
  validator = dataType.generateCodec('decode', options);
351
351
  this._inputCodecs[cacheKey] = validator;
352
352
  return validator;
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@opra/elastic",
3
- "version": "1.12.2",
3
+ "version": "1.12.4",
4
4
  "description": "Opra Elastic Search adapter package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
7
7
  "dependencies": {
8
8
  "@jsopen/objects": "^1.5.2",
9
9
  "tslib": "^2.8.1",
10
- "valgen": "^5.13.0"
10
+ "valgen": "^5.13.3"
11
11
  },
12
12
  "peerDependencies": {
13
13
  "@elastic/elasticsearch": ">=8.7.0 <9",
14
- "@opra/common": "^1.12.2",
15
- "@opra/core": "^1.12.2"
14
+ "@opra/common": "^1.12.4",
15
+ "@opra/core": "^1.12.4"
16
16
  },
17
17
  "type": "module",
18
18
  "exports": {