version bump

This commit is contained in:
Gavin McDonald
2025-07-04 14:31:12 -04:00
parent 87de2f57b2
commit c6c1c63dcd
2 changed files with 1 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "tarokka", "name": "tarokka",
"version": "1.1.1", "version": "1.1.2",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "nodemon", "dev": "nodemon",

View File

@@ -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];
};