@naturalcycles/nodejs-lib 13.22.0 → 13.23.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.
- package/dist/fs/fs2.js +1 -0
- package/package.json +1 -1
- package/src/fs/fs2.ts +2 -0
package/dist/fs/fs2.js
CHANGED
|
@@ -319,6 +319,7 @@ class FS2 {
|
|
|
319
319
|
- fs.createWriteStream
|
|
320
320
|
*/
|
|
321
321
|
createWriteStreamAsNDJSON(outputPath) {
|
|
322
|
+
this.ensureFile(outputPath);
|
|
322
323
|
const transform1 = (0, transformToNDJson_1.transformToNDJson)();
|
|
323
324
|
let transform = transform1;
|
|
324
325
|
if (outputPath.endsWith('.gz')) {
|
package/package.json
CHANGED
package/src/fs/fs2.ts
CHANGED
|
@@ -361,6 +361,8 @@ class FS2 {
|
|
|
361
361
|
- fs.createWriteStream
|
|
362
362
|
*/
|
|
363
363
|
createWriteStreamAsNDJSON(outputPath: string): WritableTyped<any> {
|
|
364
|
+
this.ensureFile(outputPath)
|
|
365
|
+
|
|
364
366
|
const transform1 = transformToNDJson()
|
|
365
367
|
let transform = transform1
|
|
366
368
|
if (outputPath.endsWith('.gz')) {
|