@wocker/mongodb-plugin 1.0.10 → 1.0.11-beta.0
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.
|
@@ -308,6 +308,9 @@ let MongodbService = class MongodbService {
|
|
|
308
308
|
"--archive",
|
|
309
309
|
"--gzip"
|
|
310
310
|
], false);
|
|
311
|
+
if (!stream) {
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
311
314
|
stream.on("data", (chunk) => {
|
|
312
315
|
fileStream.write((0, utils_1.demuxOutput)(chunk));
|
|
313
316
|
});
|
|
@@ -404,6 +407,9 @@ let MongodbService = class MongodbService {
|
|
|
404
407
|
"--gzip",
|
|
405
408
|
"--archive"
|
|
406
409
|
], false);
|
|
410
|
+
if (!stream) {
|
|
411
|
+
return;
|
|
412
|
+
}
|
|
407
413
|
yield new Promise((resolve, reject) => {
|
|
408
414
|
file.on("data", (data) => {
|
|
409
415
|
stream.write(data);
|
|
@@ -431,6 +437,9 @@ let MongodbService = class MongodbService {
|
|
|
431
437
|
"--quiet",
|
|
432
438
|
"--eval", "db.getMongo().getDBNames().forEach(function(i){print(i)})"
|
|
433
439
|
], false);
|
|
440
|
+
if (!stream) {
|
|
441
|
+
return [];
|
|
442
|
+
}
|
|
434
443
|
const res = yield new Promise((resolve, reject) => {
|
|
435
444
|
let res = "";
|
|
436
445
|
stream.on("data", (chunk) => {
|