@pi-r/mongodb 0.9.6 → 0.9.7
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 +5 -5
- package/package.json +4 -4
package/client/index.js
CHANGED
|
@@ -210,9 +210,9 @@ async function executeBatchQuery(batch, options = '', outResult) {
|
|
|
210
210
|
if (length === 0) {
|
|
211
211
|
return [];
|
|
212
212
|
}
|
|
213
|
-
let parallel, checkObject, connectOnce, errorQuery, sessionKey, outCacheMiss;
|
|
213
|
+
let parallel, checkObject, connectOnce, errorQuery, errorAsEmpty, sessionKey, outCacheMiss;
|
|
214
214
|
if ((0, types_1.isPlainObject)(options)) {
|
|
215
|
-
({ parallel, checkObject, connectOnce, errorQuery, sessionKey, outCacheMiss } = options);
|
|
215
|
+
({ parallel, checkObject, connectOnce, errorQuery, errorAsEmpty, sessionKey, outCacheMiss } = options);
|
|
216
216
|
}
|
|
217
217
|
else {
|
|
218
218
|
if (typeof options === 'string') {
|
|
@@ -463,10 +463,9 @@ async function executeBatchQuery(batch, options = '', outResult) {
|
|
|
463
463
|
}
|
|
464
464
|
})
|
|
465
465
|
.on('end', () => stream.destroy());
|
|
466
|
+
return;
|
|
466
467
|
}
|
|
467
|
-
|
|
468
|
-
rows = await cursor.toArray();
|
|
469
|
-
}
|
|
468
|
+
rows = await cursor.toArray();
|
|
470
469
|
}
|
|
471
470
|
if (rows) {
|
|
472
471
|
this.add(item, 4);
|
|
@@ -500,6 +499,7 @@ async function executeBatchQuery(batch, options = '', outResult) {
|
|
|
500
499
|
}
|
|
501
500
|
return this.processRows(batch, tasks, {
|
|
502
501
|
parallel,
|
|
502
|
+
errorAsEmpty,
|
|
503
503
|
disconnect() {
|
|
504
504
|
for (const item of clients) {
|
|
505
505
|
void item.close(true);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-r/mongodb",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.7",
|
|
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.11.
|
|
24
|
-
"@e-mc/request": "^0.11.
|
|
25
|
-
"@e-mc/types": "^0.11.
|
|
23
|
+
"@e-mc/db": "^0.11.19",
|
|
24
|
+
"@e-mc/request": "^0.11.19",
|
|
25
|
+
"@e-mc/types": "^0.11.19",
|
|
26
26
|
"mongodb": "^6.15.0"
|
|
27
27
|
}
|
|
28
28
|
}
|