@toa.io/storages.mongodb 1.0.0-alpha.207 → 1.0.0-alpha.208
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 +6 -6
- package/src/storage.js +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/storages.mongodb",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.208",
|
|
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",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@toa.io/conveyor": "1.0.0-alpha.
|
|
23
|
-
"@toa.io/core": "1.0.0-alpha.
|
|
24
|
-
"@toa.io/generic": "1.0.0-alpha.
|
|
25
|
-
"@toa.io/pointer": "1.0.0-alpha.
|
|
22
|
+
"@toa.io/conveyor": "1.0.0-alpha.208",
|
|
23
|
+
"@toa.io/core": "1.0.0-alpha.208",
|
|
24
|
+
"@toa.io/generic": "1.0.0-alpha.208",
|
|
25
|
+
"@toa.io/pointer": "1.0.0-alpha.208",
|
|
26
26
|
"mongodb": "7.1.0",
|
|
27
27
|
"openspan": "1.0.0-alpha.173",
|
|
28
28
|
"saslprep": "1.0.3"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "462bca87640cd5202af0b5d5219cf299bffa0301"
|
|
31
31
|
}
|
package/src/storage.js
CHANGED
|
@@ -107,6 +107,8 @@ class Storage extends Connector {
|
|
|
107
107
|
else
|
|
108
108
|
return await this.set(entity)
|
|
109
109
|
} catch (error) {
|
|
110
|
+
console.error('MongoDB error', error)
|
|
111
|
+
|
|
110
112
|
const retry = await retriable(error, attempt)
|
|
111
113
|
|
|
112
114
|
if (retry)
|
|
@@ -142,6 +144,8 @@ class Storage extends Connector {
|
|
|
142
144
|
|
|
143
145
|
return true
|
|
144
146
|
} catch (error) {
|
|
147
|
+
console.error('MongoDB error', error)
|
|
148
|
+
|
|
145
149
|
const retry = await retriable(error, attempt)
|
|
146
150
|
|
|
147
151
|
if (retry)
|