@toa.io/storages.mongodb 1.0.0-alpha.75 → 1.0.0-alpha.79

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 +4 -4
  2. package/src/translate.js +2 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/storages.mongodb",
3
- "version": "1.0.0-alpha.75",
3
+ "version": "1.0.0-alpha.79",
4
4
  "description": "Toa MongoDB Storage Connector",
5
5
  "author": "temich <tema.gurtovoy@gmail.com>",
6
6
  "homepage": "https://github.com/toa-io/toa#readme",
@@ -20,12 +20,12 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@toa.io/conveyor": "1.0.0-alpha.63",
23
- "@toa.io/core": "1.0.0-alpha.75",
23
+ "@toa.io/core": "1.0.0-alpha.79",
24
24
  "@toa.io/generic": "1.0.0-alpha.63",
25
25
  "@toa.io/pointer": "1.0.0-alpha.63",
26
26
  "mongodb": "6.7.0",
27
- "openspan": "1.0.0-alpha.73",
27
+ "openspan": "1.0.0-alpha.79",
28
28
  "saslprep": "1.0.3"
29
29
  },
30
- "gitHead": "5050fff4a676bbcd7b6f89c1788411701b7ecba6"
30
+ "gitHead": "69f3f10212861886d4123786b695de1d456d9a3c"
31
31
  }
package/src/translate.js CHANGED
@@ -12,15 +12,11 @@ const translate = (query) => {
12
12
  options: query?.options === undefined ? {} : parse.options(query.options)
13
13
  }
14
14
 
15
- if (query?.id !== undefined) {
15
+ if (query?.id !== undefined)
16
16
  result.criteria._id = query.id
17
- }
18
17
 
19
- if (query?.version !== undefined) {
18
+ if (query?.version !== undefined)
20
19
  result.criteria._version = query.version
21
- }
22
-
23
- result.criteria._deleted = null
24
20
 
25
21
  return result
26
22
  }