all-of-just
Advanced tools
Comparing version 0.9.0 to 0.11.0
@@ -1,3 +0,3 @@ | ||
export { j as cartesianProduct, f as compact, b as flattenIt, t as groupBy, c as index, d as insert, e as intersect, g as last, n as partition, o as permutations, p as range, q as remove, i as shuffle, m as sortBy, k as split, l as splitAt, h as tail, r as union, a as unique, s as zip } from './index-3ec227ae.js'; | ||
export { j as random } from './index-c5de4909.js'; | ||
export { a as cartesianProduct, g as compact, c as flattenIt, t as groupBy, d as index, e as insert, f as intersect, h as last, n as partition, o as permutations, p as range, q as remove, j as shuffle, m as sortBy, k as split, l as splitAt, i as tail, r as union, b as unique, s as zip } from './index.esm-8e2bf9be.js'; | ||
export { a as random } from './index.esm-d68a42e5.js'; | ||
//# sourceMappingURL=arrays.js.map |
/// <reference path="./just.d.ts" /> | ||
export { diff as diff } from 'just-diff'; | ||
export { diff } from 'just-diff'; | ||
export { diffApply } from 'just-diff-apply'; | ||
@@ -5,0 +5,0 @@ export { default as compare } from 'just-compare'; |
@@ -1,9 +0,2 @@ | ||
import { j as justDiff, a as justDiffApply } from './index-46897643.js'; | ||
export { c as clone, b as compare, e as flush, d as pluck } from './index-46897643.js'; | ||
var diff = justDiff.diff; | ||
var diffApply = justDiffApply.diffApply; | ||
export { diff, diffApply }; | ||
export { b as clone, c as compare, d as diff, a as diffApply, f as flush, e as pluck } from './index.esm-562c52a5.js'; | ||
//# sourceMappingURL=collection.js.map |
@@ -1,3 +0,3 @@ | ||
export { j as compose, a as curry, e as debounce, b as demethodize, c as flip, f as memoize, g as memoizeLast, i as once, d as partial, h as throttle } from './index-ba2f36bb.js'; | ||
export { j as random } from './index-c5de4909.js'; | ||
export { f as compose, a as curry, e as debounce, b as demethodize, c as flip, g as memoize, h as memoizeLast, j as once, d as partial, i as throttle } from './index.esm-c7f1956b.js'; | ||
export { a as random } from './index.esm-d68a42e5.js'; | ||
//# sourceMappingURL=functions.js.map |
23
index.js
@@ -1,16 +0,9 @@ | ||
import { j as justDiff, a as justDiffApply } from './index-46897643.js'; | ||
export { c as collectionClone, b as collectionCompare, e as collectionFlush, d as collectionPluck } from './index-46897643.js'; | ||
export { c as objectsEntries, j as objectsExtend, f as objectsFilterObject, r as objectsFlipObject, m as objectsIsCircular, l as objectsIsEmpty, n as objectsIsPrimitive, i as objectsMapKeys, g as objectsMapObject, h as objectsMapValues, a as objectsMerge, e as objectsOmit, d as objectsPick, k as objectsReduceObject, o as objectsSafeGet, p as objectsSafeSet, q as objectsTypeof, b as objectsValues } from './index-c30be9ba.js'; | ||
export { j as arraysCartesianProduct, f as arraysCompact, b as arraysFlattenIt, t as arraysGroupBy, c as arraysIndex, d as arraysInsert, e as arraysIntersect, g as arraysLast, n as arraysPartition, o as arraysPermutations, p as arraysRange, q as arraysRemove, i as arraysShuffle, m as arraysSortBy, k as arraysSplit, l as arraysSplitAt, h as arraysTail, r as arraysUnion, a as arraysUnique, s as arraysZip } from './index-3ec227ae.js'; | ||
export { j as arraysRandom, j as functionsRandom } from './index-c5de4909.js'; | ||
export { j as statisticsMean, a as statisticsMedian, b as statisticsMode, c as statisticsPercentile, f as statisticsSkewness, e as statisticsStandardDeviation, d as statisticsVariance } from './index-bb8b6e49.js'; | ||
export { e as stringsCamelCase, k as stringsCapitalize, f as stringsKebabCase, i as stringsLeftPad, h as stringsPascalCase, b as stringsPrune, l as stringsReplaceAll, d as stringsRightPad, g as stringsSnakeCase, c as stringsSquash, j as stringsTemplate, a as stringsTruncate } from './index-1d5aff98.js'; | ||
export { j as numbersClamp, a as numbersIsPrime, b as numbersModulo } from './index-f8024365.js'; | ||
export { j as functionsCompose, a as functionsCurry, e as functionsDebounce, b as functionsDemethodize, c as functionsFlip, f as functionsMemoize, g as functionsMemoizeLast, i as functionsOnce, d as functionsPartial, h as functionsThrottle } from './index-ba2f36bb.js'; | ||
var diff = justDiff.diff; | ||
var diffApply = justDiffApply.diffApply; | ||
export { diff as collectionDiff, diffApply as collectionDiffApply }; | ||
export { b as collectionClone, c as collectionCompare, d as collectionDiff, a as collectionDiffApply, f as collectionFlush, e as collectionPluck } from './index.esm-562c52a5.js'; | ||
export { c as objectsEntries, o as objectsExtend, f as objectsFilterObject, r as objectsFlipObject, l as objectsIsCircular, k as objectsIsEmpty, m as objectsIsPrimitive, i as objectsMapKeys, g as objectsMapObject, h as objectsMapValues, a as objectsMerge, e as objectsOmit, d as objectsPick, j as objectsReduceObject, n as objectsSafeGet, p as objectsSafeSet, q as objectsTypeof, b as objectsValues } from './index.esm-de485dcc.js'; | ||
export { a as arraysCartesianProduct, g as arraysCompact, c as arraysFlattenIt, t as arraysGroupBy, d as arraysIndex, e as arraysInsert, f as arraysIntersect, h as arraysLast, n as arraysPartition, o as arraysPermutations, p as arraysRange, q as arraysRemove, j as arraysShuffle, m as arraysSortBy, k as arraysSplit, l as arraysSplitAt, i as arraysTail, r as arraysUnion, b as arraysUnique, s as arraysZip } from './index.esm-8e2bf9be.js'; | ||
export { a as arraysRandom, a as functionsRandom } from './index.esm-d68a42e5.js'; | ||
export { a as statisticsMean, b as statisticsMedian, c as statisticsMode, d as statisticsPercentile, g as statisticsSkewness, f as statisticsStandardDeviation, e as statisticsVariance } from './index.esm-a64c4911.js'; | ||
export { f as stringsCamelCase, j as stringsCapitalize, g as stringsKebabCase, d as stringsLeftPad, i as stringsPascalCase, b as stringsPrune, k as stringsReplaceAll, e as stringsRightPad, h as stringsSnakeCase, c as stringsSquash, s as stringsTemplate, a as stringsTruncate } from './index.esm-7afe842e.js'; | ||
export { n as numbersClamp, a as numbersIsPrime, b as numbersModulo } from './index.esm-270aefc9.js'; | ||
export { f as functionsCompose, a as functionsCurry, e as functionsDebounce, b as functionsDemethodize, c as functionsFlip, g as functionsMemoize, h as functionsMemoizeLast, j as functionsOnce, d as functionsPartial, i as functionsThrottle } from './index.esm-c7f1956b.js'; | ||
//# sourceMappingURL=index.js.map |
138
just.d.ts
@@ -11,2 +11,25 @@ declare module 'just-camel-case' { | ||
declare module 'just-cartesian-product' { | ||
//provide as accurate typing as we can up to a point... | ||
//this repetitiveness is a limitation of typescript | ||
function cartesianProduct<T>(arr: [T[]]): [T][]; | ||
function cartesianProduct<T, U>(arr: [T[], U[]]): [T, U][]; | ||
function cartesianProduct<T, U, V>(arr: [T[], U[], V[]]): [T, U, V][]; | ||
function cartesianProduct<T, U, V, W>( | ||
arr: [T[], U[], V[], W[]] | ||
): [T, U, V, W][]; | ||
function cartesianProduct<T, U, V, W, X>( | ||
arr: [T[], U[], V[], W[], X[]] | ||
): [T, U, V, W, X][]; | ||
function cartesianProduct<T, U, V, W, X, Y>( | ||
arr: [T[], U[], V[], W[], X[], Y[]] | ||
): [T, U, V, W, X, Y][]; | ||
function cartesianProduct<T, U, V, W, X, Y, Z>( | ||
arr: [T[], U[], V[], W[], X[], Y[], Z[]] | ||
): [T, U, V, W, X, Y, Z][]; | ||
function cartesianProduct(arr: any[][]): any[][]; | ||
export default cartesianProduct; | ||
} | ||
declare module 'just-clamp' { | ||
@@ -138,2 +161,14 @@ export default function clamp(b1: number, n: number, b2: number): number; | ||
declare module 'just-flip-object' { | ||
type Primitive = boolean | string | number | bigint | null | undefined; | ||
type KeyType = string | number | symbol; | ||
function flip<T extends Record<KeyType, Primitive>>( | ||
obj: T | ||
): { [U in keyof T as `${T[U]}`]: U }; | ||
export default flip; | ||
} | ||
declare module 'just-group-by' { | ||
@@ -234,3 +269,3 @@ /** | ||
function leftPad(str: string, length: number, padStr?: string): string; | ||
export = leftPad; | ||
export default leftPad; | ||
} | ||
@@ -275,3 +310,3 @@ | ||
resolver?: (...args: Parameters<T>) => string | ||
); | ||
): T; | ||
} | ||
@@ -326,3 +361,3 @@ | ||
declare module 'just-once' { | ||
function once<Func extends (...args: unknown[]) => unknown>(fn: Func): Func; | ||
function once<Func extends (...args: any[]) => any>(fn: Func): Func; | ||
export default once; | ||
@@ -432,2 +467,7 @@ } | ||
declare module 'just-right-pad' { | ||
function rightPad(str: string, length: number, padStr?: string): string; | ||
export default rightPad; | ||
} | ||
declare module 'just-safe-get' { | ||
@@ -474,3 +514,3 @@ // Definitions by: Richard Tan <https://github.com/chardos> | ||
declare module 'just-sort-by' { | ||
function sortBy<T>(arr: T[], iteratee?: string | Function): T[]; | ||
function sortBy<T>(arr: T[], iteratee?: string | ((val: T) => any)): T[]; | ||
@@ -484,2 +524,60 @@ export default sortBy; | ||
declare module 'just-squash' { | ||
type Space = ' '; | ||
type Tab = '\t'; | ||
type NewLine = '\n'; | ||
type FormFeed = '\f'; | ||
type VertTab = '\v'; | ||
type Return = '\r'; | ||
type Replace< | ||
T extends string, | ||
Match extends string, | ||
Replacement extends string | ||
> = T extends `${infer Start}${Match}${infer End}` | ||
? `${Start}${Replacement}${End}` | ||
: T; | ||
type SquashExtra< | ||
T extends string, | ||
U extends string = Replace<T, Space, ''>, | ||
V extends string = Replace<T, Tab, ''>, | ||
W extends string = Replace<T, NewLine, ''>, | ||
X extends string = Replace<T, FormFeed, ''>, | ||
Y extends string = Replace<T, VertTab, ''>, | ||
Z extends string = Replace<T, Return, ''> | ||
> = U extends T | ||
? V extends T | ||
? W extends T | ||
? X extends T | ||
? Y extends T | ||
? Z extends T | ||
? T | ||
: SquashExtra<Z> | ||
: SquashExtra<Y> | ||
: SquashExtra<X> | ||
: SquashExtra<W> | ||
: SquashExtra<V> | ||
: SquashExtra<U>; | ||
type Squash<T extends string, U extends boolean = false> = U extends true | ||
? SquashExtra<T> | ||
: Replace<T, ' ', ''> extends T | ||
? T | ||
: Squash<Replace<T, ' ', ''>>; | ||
function squash<T extends string>(str: T): Squash<T>; | ||
function squash<T extends string, U extends boolean>( | ||
str: T, | ||
squashEscapeSequences: U | ||
): Squash<T, U>; | ||
export default squash; | ||
} | ||
declare module 'just-standard-deviation' { | ||
@@ -514,2 +612,22 @@ function stdev(arr: number[]): number; | ||
declare module 'just-typeof' { | ||
function typeOf<T extends undefined>(obj: T): 'undefined'; | ||
function typeOf<T extends null>(obj: T): 'null'; | ||
function typeOf<T extends any[]>(obj: T): 'array'; | ||
function typeOf<T extends readonly any[]>(obj: T): 'array'; | ||
function typeOf<T extends string>(obj: T): 'string'; | ||
function typeOf<T extends number>(obj: T): 'number'; | ||
function typeOf<T extends boolean>(obj: T): 'boolean'; | ||
function typeOf<T extends Set<any>>(obj: T): 'set'; | ||
function typeOf<T extends Map<any, any>>(obj: T): 'map'; | ||
function typeOf<T extends Function>(obj: T): 'function'; | ||
function typeOf<T extends RegExp>(obj: T): 'regexp'; | ||
function typeOf<T extends Date>(obj: T): 'date'; | ||
function typeOf<T extends Symbol>(obj: T): 'symbol'; | ||
function typeOf<T extends BigInt>(obj: T): 'bigint'; | ||
function typeOf<T extends {}>(obj: T): 'object'; | ||
function typeOf<T>(obj: T): string; | ||
export default typeOf; | ||
} | ||
declare module 'just-union' { | ||
@@ -533,10 +651,6 @@ export default function union<T, U>(arr1: T[], arr2: U[]): (T | U)[]; | ||
declare module 'just-values' { | ||
function values<Arr extends unknown[]>(obj: Arr): Arr; | ||
function values<Obj extends object>( | ||
obj: Obj | ||
): Obj extends String | ||
? Obj[number][] | ||
: Obj extends Number | Boolean | ||
? unknown[] | ||
: Obj[keyof Obj][]; | ||
function values<T extends any[]>(obj: T): T; | ||
function values<T extends String>(obj: T): string[]; | ||
function values<T extends Number | Boolean>(obj: T): never[]; | ||
function values<T extends Record<string, any>>(obj: T): T[keyof T][]; | ||
@@ -543,0 +657,0 @@ export default values; |
@@ -1,2 +0,2 @@ | ||
export { j as clamp, a as isPrime, b as modulo } from './index-f8024365.js'; | ||
export { n as clamp, a as isPrime, b as modulo } from './index.esm-270aefc9.js'; | ||
//# sourceMappingURL=numbers.js.map |
@@ -1,2 +0,2 @@ | ||
export { c as entries, j as extend, f as filterObject, r as flipObject, m as isCircular, l as isEmpty, n as isPrimitive, i as mapKeys, g as mapObject, h as mapValues, a as merge, q as objectsTypeof, e as omit, d as pick, k as reduceObject, o as safeGet, p as safeSet, b as values } from './index-c30be9ba.js'; | ||
export { c as entries, o as extend, f as filterObject, r as flipObject, l as isCircular, k as isEmpty, m as isPrimitive, i as mapKeys, g as mapObject, h as mapValues, a as merge, q as objectsTypeof, e as omit, d as pick, j as reduceObject, n as safeGet, p as safeSet, b as values } from './index.esm-de485dcc.js'; | ||
//# sourceMappingURL=objects.js.map |
{ | ||
"name": "all-of-just", | ||
"private": false, | ||
"version": "0.9.0", | ||
"version": "0.11.0", | ||
"description": "A single collection of all of Just utility functions in one single library", | ||
@@ -6,0 +6,0 @@ "files": [ |
@@ -1,2 +0,2 @@ | ||
export { j as mean, a as median, b as mode, c as percentile, f as skewness, e as standardDeviation, d as variance } from './index-bb8b6e49.js'; | ||
export { a as mean, b as median, c as mode, d as percentile, g as skewness, f as standardDeviation, e as variance } from './index.esm-a64c4911.js'; | ||
//# sourceMappingURL=statistics.js.map |
@@ -1,2 +0,2 @@ | ||
export { e as camelCase, k as capitalize, f as kebabCase, i as leftPad, h as pascalCase, b as prune, l as replaceAll, d as rightPad, g as snakeCase, c as squash, j as template, a as truncate } from './index-1d5aff98.js'; | ||
export { f as camelCase, j as capitalize, g as kebabCase, d as leftPad, i as pascalCase, b as prune, k as replaceAll, e as rightPad, h as snakeCase, c as squash, s as template, a as truncate } from './index.esm-7afe842e.js'; | ||
//# sourceMappingURL=strings.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
511959
6070