@nlozgachev/pipelined 0.44.0 → 0.46.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.
@@ -387,11 +387,14 @@ var Duration;
387
387
  Duration2.minutes = (m) => wrap(m * 60 * 1e3);
388
388
  Duration2.hours = (h) => wrap(h * 60 * 60 * 1e3);
389
389
  Duration2.days = (d) => wrap(d * 24 * 60 * 60 * 1e3);
390
- Duration2.toMilliseconds = (d) => Brand.unwrap(d);
391
- Duration2.toSeconds = (d) => Brand.unwrap(d) / 1e3;
392
- Duration2.toMinutes = (d) => Brand.unwrap(d) / (60 * 1e3);
393
- Duration2.toHours = (d) => Brand.unwrap(d) / (60 * 60 * 1e3);
394
- Duration2.toDays = (d) => Brand.unwrap(d) / (24 * 60 * 60 * 1e3);
390
+ let to;
391
+ ((to2) => {
392
+ to2.milliseconds = (d) => Brand.unwrap(d);
393
+ to2.seconds = (d) => Brand.unwrap(d) / 1e3;
394
+ to2.minutes = (d) => Brand.unwrap(d) / (60 * 1e3);
395
+ to2.hours = (d) => Brand.unwrap(d) / (60 * 60 * 1e3);
396
+ to2.days = (d) => Brand.unwrap(d) / (24 * 60 * 60 * 1e3);
397
+ })(to = Duration2.to || (Duration2.to = {}));
395
398
  Duration2.add = (other) => (self) => wrap(Brand.unwrap(self) + Brand.unwrap(other));
396
399
  Duration2.subtract = (other) => (self) => wrap(Brand.unwrap(self) - Brand.unwrap(other));
397
400
  })(Duration || (Duration = {}));
@@ -453,7 +456,7 @@ function tap(f) {
453
456
  const start = performance.now();
454
457
  const triggerFinish = (duration) => {
455
458
  if (config.label !== void 0) {
456
- console.log(`[${config.label}]: ${Duration.toMilliseconds(duration)}ms`);
459
+ console.log(`[${config.label}]: ${Duration.to.milliseconds(duration)}ms`);
457
460
  } else {
458
461
  config.onFinish(duration);
459
462
  }
@@ -27,8 +27,8 @@ import {
27
27
  uncurry,
28
28
  uncurry3,
29
29
  uncurry4
30
- } from "./chunk-X6XQX3OZ.mjs";
31
- import "./chunk-74JKKJ4R.mjs";
30
+ } from "./chunk-KOYYDQH4.mjs";
31
+ import "./chunk-XTVF5R6R.mjs";
32
32
  export {
33
33
  and,
34
34
  compose,