@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
- fs_1.default.renameSync(tempWorkPath, datasetPath);
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
- fs_1.default.renameSync(tempWorkPath, datasetPath);
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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forzalabs/remora",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "A powerful CLI tool for seamless data translation.",
5
5
  "main": "index.js",
6
6
  "private": false,