@pi-r/mongodb 0.11.0 → 0.11.1
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/client/index.js +1 -1
- package/package.json +5 -5
package/client/index.js
CHANGED
|
@@ -211,7 +211,7 @@ function setCredential(item) {
|
|
|
211
211
|
.parent = POOL_STATE;
|
|
212
212
|
}
|
|
213
213
|
async function executeQuery(item, options) {
|
|
214
|
-
return (await executeBatchQuery.call(this, [item], options))
|
|
214
|
+
return (await executeBatchQuery.call(this, [item], options)).at(0) || [];
|
|
215
215
|
}
|
|
216
216
|
async function executeBatchQuery(batch, options = '', outResult) {
|
|
217
217
|
const length = batch.length;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-r/mongodb",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "MongoDB client driver for E-mc.",
|
|
5
5
|
"main": "client/index.js",
|
|
6
6
|
"types": "client/index.d.ts",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"homepage": "https://github.com/anpham6/pi-r#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@e-mc/db": "^0.13.
|
|
24
|
-
"@e-mc/request": "^0.13.
|
|
25
|
-
"@e-mc/types": "^0.13.
|
|
26
|
-
"mongodb": "^6.
|
|
23
|
+
"@e-mc/db": "^0.13.5",
|
|
24
|
+
"@e-mc/request": "^0.13.5",
|
|
25
|
+
"@e-mc/types": "^0.13.5",
|
|
26
|
+
"mongodb": "^6.21.0"
|
|
27
27
|
}
|
|
28
28
|
}
|