@bjmrq/utils
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -5,1 +5,2 @@ /// <reference types="ts-toolbelt" /> | ||
export declare const pipeAsync: <T, Y = unknown>(...fns: any[]) => (input?: Y | undefined) => Promise<T>; | ||
export declare const transverse: (functionToExecute: () => Promise<void> | void) => Promise<(<M>(inputToTransverse: M) => Promise<M>)>; |
@@ -22,3 +22,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.pipeAsync = exports.tryCatchAsync = exports.debugLog = void 0; | ||
exports.transverse = exports.pipeAsync = exports.tryCatchAsync = exports.debugLog = void 0; | ||
const R = __importStar(require("ramda")); | ||
@@ -40,2 +40,6 @@ exports.debugLog = (value) => { | ||
exports.pipeAsync = (...fns) => (input) => fns.reduce((promise, fn) => promise.then(fn), Promise.resolve(input)); | ||
exports.transverse = async (functionToExecute) => async (inputToTransverse) => { | ||
await functionToExecute(); | ||
return inputToTransverse; | ||
}; | ||
//# sourceMappingURL=fp.js.map |
{ | ||
"name": "@bjmrq/utils", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"description": "A toolkit of little utilities", | ||
@@ -5,0 +5,0 @@ "author": "Benjamin Marquis", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15291
193