@forzalabs/remora 1.0.16 → 1.0.17
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.
|
@@ -155,7 +155,9 @@ class ConsumerExecutorClass {
|
|
|
155
155
|
reader.destroy();
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
// Delete original file first to avoid EPERM on Windows
|
|
159
|
+
yield promises_1.default.unlink(datasetPath);
|
|
160
|
+
yield promises_1.default.rename(tempWorkPath, datasetPath);
|
|
159
161
|
return newLineCount;
|
|
160
162
|
});
|
|
161
163
|
this.processDistinctOn = (consumer, datasetPath) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -217,7 +219,9 @@ class ConsumerExecutorClass {
|
|
|
217
219
|
reader.destroy();
|
|
218
220
|
});
|
|
219
221
|
}
|
|
220
|
-
|
|
222
|
+
// Delete original file first to avoid EPERM on Windows
|
|
223
|
+
yield promises_1.default.unlink(datasetPath);
|
|
224
|
+
yield promises_1.default.rename(tempWorkPath, datasetPath);
|
|
221
225
|
return winners.size;
|
|
222
226
|
});
|
|
223
227
|
/**
|