@antfu/utils
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -20,2 +20,6 @@ export { debounce, throttle } from 'throttle-debounce'; | ||
/** | ||
* Constructor | ||
*/ | ||
declare type Constructor<T = void> = new (...args: any[]) => T; | ||
/** | ||
* Infers the element type of an array | ||
@@ -50,3 +54,3 @@ */ | ||
/** | ||
* Convert `Arrayable<T>` to `Array<T>` and flat it | ||
* Convert `Arrayable<T>` to `Array<T>` and flatten it | ||
* | ||
@@ -63,3 +67,3 @@ * @category Array | ||
/** | ||
* Divide an array into two parts by a filter function. | ||
* Divide an array into two parts by a filter function | ||
* | ||
@@ -180,3 +184,3 @@ * @category Array | ||
/** | ||
* Call every functions in an array | ||
* Call every function in an array | ||
*/ | ||
@@ -189,3 +193,3 @@ declare function batchInvoke(functions: Nullable<Fn>[]): void; | ||
/** | ||
* Pass the value through the callback, and return the value. | ||
* Pass the value through the callback, and return the value | ||
* | ||
@@ -265,3 +269,3 @@ * @example | ||
/** | ||
* Create create undefined fields from an object. It mutate the object | ||
* Clear undefined fields from an object. It mutates the object | ||
* | ||
@@ -283,3 +287,3 @@ * @category Object | ||
* Reset current staled promise. | ||
* await it to have proper shutdown. | ||
* Await it to have proper shutdown. | ||
*/ | ||
@@ -306,2 +310,2 @@ reset: () => Promise<void>; | ||
export { ArgumentsType, Arrayable, Awaitable, DeepMerge, ElementOf, Fn, MergeInsertions, Nullable, SingletonPromiseReturn, UnionToIntersection, assert, at, batchInvoke, clamp, clampArrayRange, clearUndefined, createSingletonPromise, deepMerge, ensurePrefix, flattenArrayable, hasOwnProperty, invoke, isBoolean, isBrowser, isDef, isFunction, isKeyOf, isNumber, isObject, isString, isTruthy, isWindow, last, mergeArrayable, move, noNull, noop, notNullish, notUndefined, objectEntries, objectKeys, objectMap, objectPick, partition, range, remove, slash, sleep, sum, tap, timestamp, toArray, toString, uniq }; | ||
export { ArgumentsType, Arrayable, Awaitable, Constructor, DeepMerge, ElementOf, Fn, MergeInsertions, Nullable, SingletonPromiseReturn, UnionToIntersection, assert, at, batchInvoke, clamp, clampArrayRange, clearUndefined, createSingletonPromise, deepMerge, ensurePrefix, flattenArrayable, hasOwnProperty, invoke, isBoolean, isBrowser, isDef, isFunction, isKeyOf, isNumber, isObject, isString, isTruthy, isWindow, last, mergeArrayable, move, noNull, noop, notNullish, notUndefined, objectEntries, objectKeys, objectMap, objectPick, partition, range, remove, slash, sleep, sum, tap, timestamp, toArray, toString, uniq }; |
{ | ||
"name": "@antfu/utils", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Opinionated collection of common JavaScript / TypeScript utils by @antfu", | ||
@@ -36,19 +36,21 @@ "main": "dist/index.js", | ||
}, | ||
"dependencies": { | ||
"@types/throttle-debounce": "^2.1.0" | ||
}, | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^0.6.2", | ||
"@antfu/ni": "^0.5.5", | ||
"@types/jest": "^26.0.22", | ||
"@types/node": "^14.14.37", | ||
"@types/throttle-debounce": "^2.1.0", | ||
"@antfu/eslint-config": "^0.6.6", | ||
"@antfu/ni": "^0.7.0", | ||
"@types/jest": "^26.0.23", | ||
"@types/node": "^15.12.4", | ||
"bumpp": "^6.0.6", | ||
"eslint": "^7.23.0", | ||
"eslint-plugin-jest": "^24.3.2", | ||
"esno": "^0.5.0", | ||
"eslint": "^7.29.0", | ||
"eslint-plugin-jest": "^24.3.6", | ||
"esno": "^0.7.3", | ||
"git-ensure": "^0.1.0", | ||
"jest": "^26.6.3", | ||
"jest": "^27.0.5", | ||
"throttle-debounce": "^3.0.1", | ||
"ts-jest": "^26.5.4", | ||
"tsup": "^4.8.21", | ||
"typescript": "^4.2.3" | ||
"ts-jest": "^27.0.3", | ||
"tsup": "^4.11.2", | ||
"typescript": "^4.3.4" | ||
} | ||
} |
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
26395
14
850
1
+ Added@types/throttle-debounce@2.1.0(transitive)