diff --git a/package.json b/package.json index 67b8631..f1741cc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tarokka", - "version": "1.1.1", + "version": "1.1.2", "private": true, "scripts": { "dev": "nodemon", diff --git a/tools/log.tsx b/tools/log.tsx deleted file mode 100644 index 54ba25d..0000000 --- a/tools/log.tsx +++ /dev/null @@ -1,19 +0,0 @@ -/** - * A logging utility designed to be inserted into functional chains. - * Logs all parameters with an optional prefix, then returns the first argument unchanged. - * - * @param {string} [prefix=''] - A label or message to prepend to the logged output. - * @returns {(value: any, ...rest: any[]) => any} - A function that logs its arguments and returns the first one. - * - * @example - * const result = [1, 2, 3] - * .map((n) => n * 2) - * .map(log('doubled:')) - * .filter((n) => n > 2); - */ -export const log = - (prefix: string = ''): ((value: any, ...rest: any[]) => any) => - (...args: any[]) => { - console.log(prefix, ...args); - return args[0]; - };