@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.
- package/README.md +12 -6
- package/dist/{InternalTypes-BL23H8Qr.d.mts → InternalTypes-CLE7qlOc.d.mts} +33 -28
- package/dist/{InternalTypes-7o9-yrHq.d.ts → InternalTypes-Mssktd7z.d.ts} +33 -28
- package/dist/{Validation-DM2eh6wj.d.ts → Validation-BMsvixWH.d.ts} +475 -443
- package/dist/{Validation-Dz70wtcG.d.mts → Validation-v38R0qH-.d.mts} +475 -443
- package/dist/{chunk-X6XQX3OZ.mjs → chunk-KOYYDQH4.mjs} +2 -2
- package/dist/{chunk-ND476266.mjs → chunk-VSU36S2K.mjs} +432 -309
- package/dist/{chunk-LKTOK5IT.mjs → chunk-W2L244AS.mjs} +188 -73
- package/dist/{chunk-74JKKJ4R.mjs → chunk-XTVF5R6R.mjs} +8 -5
- package/dist/composition.d.mts +10 -10
- package/dist/composition.d.ts +10 -10
- package/dist/composition.js +9 -6
- package/dist/composition.mjs +2 -2
- package/dist/core.d.mts +453 -402
- package/dist/core.d.ts +453 -402
- package/dist/core.js +439 -313
- package/dist/core.mjs +2 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +627 -386
- package/dist/index.mjs +4 -4
- package/dist/types.d.mts +23 -21
- package/dist/types.d.ts +23 -21
- package/dist/types.js +8 -5
- package/dist/types.mjs +1 -1
- package/dist/utils.d.mts +522 -370
- package/dist/utils.d.ts +522 -370
- package/dist/utils.js +434 -243
- package/dist/utils.mjs +3 -3
- package/package.json +15 -5
package/dist/composition.js
CHANGED
|
@@ -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
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
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.
|
|
459
|
+
console.log(`[${config.label}]: ${Duration.to.milliseconds(duration)}ms`);
|
|
457
460
|
} else {
|
|
458
461
|
config.onFinish(duration);
|
|
459
462
|
}
|