helper-fns
Advanced tools
Comparing version 2.5.17 to 2.5.18
@@ -63,9 +63,2 @@ declare const assert: (condition: boolean, message: string) => asserts condition; | ||
/** | ||
* Pipes takes a list of functions and returns a function that is the composition of those functions. | ||
* @param {any[]} fns - an array of functions | ||
* @returns A function that takes in a list of functions and returns a function that takes in a list of | ||
* arguments. | ||
*/ | ||
declare const pipes: (...fns: any[]) => any; | ||
/** | ||
* Pluck takes an array of objects and returns an array of the values of a certain property in each | ||
@@ -268,2 +261,8 @@ * object | ||
declare function randomString(length: number, symbols?: boolean, numbers?: boolean): string; | ||
/** | ||
* ComposeAsync takes a list of functions and returns a function that takes an input and returns a | ||
* promise that resolves to the result of applying the input to the list of functions in reverse order | ||
* @param {any[]} fns - an array of functions | ||
*/ | ||
declare const composeAsync: (...fns: any[]) => (input: any) => any; | ||
@@ -277,2 +276,2 @@ declare const isDef: <T = any>(val?: T | undefined) => val is T; | ||
export { assert, autoParseValues, capitalize, capitalizeEveryWord, clearUndefined, clone, common, debounce, decrypt, difference, dropRight, encrypt, ensurePrefix, enumToString, fixedDecimal, flattenDeep, formatDuration, generateRandomString, groupBy, invertObj, isBoolean, isDate, isDef, isEmpty, isFunction, isNotEmpty, isNumber, isObject, isString, lowerFirst, noop, normalizeEmail, objectArrayToArray, omit, orderBy, orderedToken, pick, pipes, pluck, randomHex, randomNumber, randomString, readFile, removeEmpty, renameKeys, resolverArgs, shuffle, slash, slugify, strAfter, strBefore, stringifyQueryParams, sumOfAnArray, template, throttle, timeTaken, toString, unescapeHTML, union, unique }; | ||
export { assert, autoParseValues, capitalize, capitalizeEveryWord, clearUndefined, clone, common, composeAsync, debounce, decrypt, difference, dropRight, encrypt, ensurePrefix, enumToString, fixedDecimal, flattenDeep, formatDuration, generateRandomString, groupBy, invertObj, isBoolean, isDate, isDef, isEmpty, isFunction, isNotEmpty, isNumber, isObject, isString, lowerFirst, noop, normalizeEmail, objectArrayToArray, omit, orderBy, orderedToken, pick, pluck, randomHex, randomNumber, randomString, readFile, removeEmpty, renameKeys, resolverArgs, shuffle, slash, slugify, strAfter, strBefore, stringifyQueryParams, sumOfAnArray, template, throttle, timeTaken, toString, unescapeHTML, union, unique }; |
{ | ||
"name": "helper-fns", | ||
"type": "module", | ||
"version": "2.5.17", | ||
"version": "2.5.18", | ||
"packageManager": "pnpm@7.2.1", | ||
@@ -52,5 +52,5 @@ "description": "Some common utilities functions for everyday backend usage with zero dependencies", | ||
"@antfu/ni": "^0.18.8", | ||
"@types/node": "^18.11.17", | ||
"@types/node": "^18.11.18", | ||
"bumpp": "^8.2.1", | ||
"eslint": "^8.30.0", | ||
"eslint": "^8.31.0", | ||
"esno": "^0.16.3", | ||
@@ -60,5 +60,5 @@ "rimraf": "^3.0.2", | ||
"unbuild": "^1.0.2", | ||
"vite": "^4.0.2", | ||
"vitest": "^0.26.0" | ||
"vite": "^4.0.4", | ||
"vitest": "^0.26.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
41060
985