@naturalcycles/nodejs-lib 15.70.0 → 15.70.1

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.
@@ -105,8 +105,8 @@ export declare class Pipeline<T = unknown> {
105
105
  toFile(outputFilePath: string): Promise<void>;
106
106
  toNDJsonFile(outputFilePath: string): Promise<void>;
107
107
  to(destination: WritableTyped<T>): Promise<void>;
108
- forEach(fn: AsyncIndexedMapper<T, void>, opt?: TransformMapOptions<T, void> & TransformLogProgressOptions<T>): Promise<void>;
109
- forEach2(fn: AsyncIndexedMapper<T, void>, opt?: TransformMap2Options<T, void> & TransformLogProgressOptions<T>): Promise<void>;
108
+ forEachLegacy(fn: AsyncIndexedMapper<T, void>, opt?: TransformMapOptions<T, void> & TransformLogProgressOptions<T>): Promise<void>;
109
+ forEach(fn: AsyncIndexedMapper<T, void>, opt?: TransformMap2Options<T, void> & TransformLogProgressOptions<T>): Promise<void>;
110
110
  forEachSync(fn: IndexedMapper<T, void>, opt?: TransformMapSyncOptions<T, void> & TransformLogProgressOptions<T>): Promise<void>;
111
111
  run(): Promise<void>;
112
112
  }
@@ -310,7 +310,7 @@ export class Pipeline {
310
310
  this.destination = destination;
311
311
  await this.run();
312
312
  }
313
- async forEach(fn, opt = {}) {
313
+ async forEachLegacy(fn, opt = {}) {
314
314
  this.transforms.push(transformMap2(fn, {
315
315
  predicate: opt.logEvery ? _passthroughPredicate : undefined, // for the logger to work
316
316
  ...opt,
@@ -321,7 +321,7 @@ export class Pipeline {
321
321
  }
322
322
  await this.run();
323
323
  }
324
- async forEach2(fn, opt = {}) {
324
+ async forEach(fn, opt = {}) {
325
325
  this.transforms.push(transformMap2(fn, {
326
326
  predicate: opt.logEvery ? _passthroughPredicate : undefined, // for the logger to work
327
327
  ...opt,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/nodejs-lib",
3
3
  "type": "module",
4
- "version": "15.70.0",
4
+ "version": "15.70.1",
5
5
  "dependencies": {
6
6
  "@naturalcycles/js-lib": "^15",
7
7
  "@types/js-yaml": "^4",
@@ -425,7 +425,7 @@ export class Pipeline<T = unknown> {
425
425
  await this.run()
426
426
  }
427
427
 
428
- async forEach(
428
+ async forEachLegacy(
429
429
  fn: AsyncIndexedMapper<T, void>,
430
430
  opt: TransformMapOptions<T, void> & TransformLogProgressOptions<T> = {},
431
431
  ): Promise<void> {
@@ -442,7 +442,7 @@ export class Pipeline<T = unknown> {
442
442
  await this.run()
443
443
  }
444
444
 
445
- async forEach2(
445
+ async forEach(
446
446
  fn: AsyncIndexedMapper<T, void>,
447
447
  opt: TransformMap2Options<T, void> & TransformLogProgressOptions<T> = {},
448
448
  ): Promise<void> {