@opra/mongodb 1.12.1 → 1.12.3
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.
|
@@ -242,6 +242,7 @@ class MongoService extends core_1.ServiceBase {
|
|
|
242
242
|
* @param operation - The operation to retrieve the encoder for. Valid values are 'create' and 'update'.
|
|
243
243
|
*/
|
|
244
244
|
_getInputCodec(operation) {
|
|
245
|
+
const dataType = this.dataType;
|
|
245
246
|
const cacheKey = operation + (this._dataTypeScope ? ':' + this._dataTypeScope : '');
|
|
246
247
|
let validator = this._inputCodecs[cacheKey];
|
|
247
248
|
if (validator)
|
|
@@ -255,7 +256,6 @@ class MongoService extends core_1.ServiceBase {
|
|
|
255
256
|
options.allowPatchOperators = true;
|
|
256
257
|
options.keepKeyFields = true;
|
|
257
258
|
}
|
|
258
|
-
const dataType = this.dataType;
|
|
259
259
|
validator = dataType.generateCodec('decode', options);
|
|
260
260
|
this._inputCodecs[cacheKey] = validator;
|
|
261
261
|
return validator;
|
|
@@ -239,6 +239,7 @@ export class MongoService extends ServiceBase {
|
|
|
239
239
|
* @param operation - The operation to retrieve the encoder for. Valid values are 'create' and 'update'.
|
|
240
240
|
*/
|
|
241
241
|
_getInputCodec(operation) {
|
|
242
|
+
const dataType = this.dataType;
|
|
242
243
|
const cacheKey = operation + (this._dataTypeScope ? ':' + this._dataTypeScope : '');
|
|
243
244
|
let validator = this._inputCodecs[cacheKey];
|
|
244
245
|
if (validator)
|
|
@@ -252,7 +253,6 @@ export class MongoService extends ServiceBase {
|
|
|
252
253
|
options.allowPatchOperators = true;
|
|
253
254
|
options.keepKeyFields = true;
|
|
254
255
|
}
|
|
255
|
-
const dataType = this.dataType;
|
|
256
256
|
validator = dataType.generateCodec('decode', options);
|
|
257
257
|
this._inputCodecs[cacheKey] = validator;
|
|
258
258
|
return validator;
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/mongodb",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.3",
|
|
4
4
|
"description": "Opra MongoDB 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.
|
|
10
|
+
"valgen": "^5.13.3"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@opra/common": "^1.12.
|
|
14
|
-
"@opra/core": "^1.12.
|
|
15
|
-
"@opra/http": "^1.12.
|
|
13
|
+
"@opra/common": "^1.12.3",
|
|
14
|
+
"@opra/core": "^1.12.3",
|
|
15
|
+
"@opra/http": "^1.12.3",
|
|
16
16
|
"mongodb": "^6.14.2"
|
|
17
17
|
},
|
|
18
18
|
"type": "module",
|