@pi-r/mongodb 0.12.4 → 0.12.5
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 +5 -5
package/client/index.js
CHANGED
|
@@ -228,9 +228,9 @@ async function executeBatchQuery(batch, options = '', outResult) {
|
|
|
228
228
|
if (length === 0) {
|
|
229
229
|
return [];
|
|
230
230
|
}
|
|
231
|
-
let parallel, checkObject, connectOnce, errorQuery, sessionKey, outCacheMiss;
|
|
231
|
+
let parallel, checkObject, connectOnce, errorQuery, errorAsEmpty, sessionKey, outCacheMiss;
|
|
232
232
|
if (isPlainObject(options)) {
|
|
233
|
-
({ parallel, checkObject, connectOnce, errorQuery, sessionKey, outCacheMiss } = options);
|
|
233
|
+
({ parallel, checkObject, connectOnce, errorQuery, errorAsEmpty, sessionKey, outCacheMiss } = options);
|
|
234
234
|
}
|
|
235
235
|
else {
|
|
236
236
|
if (typeof options === 'string') {
|
|
@@ -506,10 +506,9 @@ async function executeBatchQuery(batch, options = '', outResult) {
|
|
|
506
506
|
}
|
|
507
507
|
})
|
|
508
508
|
.on('end', () => stream.destroy());
|
|
509
|
+
return;
|
|
509
510
|
}
|
|
510
|
-
|
|
511
|
-
rows = await cursor.toArray();
|
|
512
|
-
}
|
|
511
|
+
rows = await cursor.toArray();
|
|
513
512
|
}
|
|
514
513
|
if (rows) {
|
|
515
514
|
this.add(item, 4);
|
|
@@ -543,6 +542,7 @@ async function executeBatchQuery(batch, options = '', outResult) {
|
|
|
543
542
|
}
|
|
544
543
|
return this.processRows(batch, tasks, clients.length === 0 ? parallel : {
|
|
545
544
|
parallel,
|
|
545
|
+
errorAsEmpty,
|
|
546
546
|
disconnect() {
|
|
547
547
|
for (const item of clients) {
|
|
548
548
|
void item.close();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-r/mongodb",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.5",
|
|
4
4
|
"description": "MongoDB client driver for E-mc.",
|
|
5
5
|
"main": "client/index.js",
|
|
6
6
|
"types": "client/index.d.ts",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"homepage": "https://github.com/anpham6/pi-r#readme",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@e-mc/db": "^0.14.
|
|
21
|
-
"@e-mc/request": "^0.14.
|
|
22
|
-
"@e-mc/types": "^0.14.
|
|
23
|
-
"mongodb": "^7.
|
|
20
|
+
"@e-mc/db": "^0.14.6",
|
|
21
|
+
"@e-mc/request": "^0.14.6",
|
|
22
|
+
"@e-mc/types": "^0.14.6",
|
|
23
|
+
"mongodb": "^7.6.0"
|
|
24
24
|
}
|
|
25
25
|
}
|