@oscarpalmer/atoms 0.139.0 → 0.141.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/array/group-by.js +2 -1
- package/dist/array/to-map.js +2 -1
- package/dist/array/to-record.js +2 -1
- package/dist/atoms.full.js +2501 -2390
- package/dist/beacon.js +5 -5
- package/dist/function/debounce.js +13 -0
- package/dist/{function.js → function/memoize.js} +4 -53
- package/dist/function/misc.js +2 -0
- package/dist/function/throttle.js +11 -0
- package/dist/index.js +28 -25
- package/dist/internal/function/limiter.js +29 -0
- package/dist/internal/sized.js +10 -0
- package/dist/internal/value/compare.js +12 -10
- package/dist/internal/value/equal.js +13 -7
- package/dist/logger.js +1 -1
- package/dist/random.js +1 -1
- package/dist/sized/map.js +48 -0
- package/dist/sized/set.js +54 -0
- package/dist/string/case.js +2 -2
- package/dist/string/match.js +41 -0
- package/dist/string/misc.js +2 -41
- package/dist/string/template.js +2 -1
- package/dist/value/clone.js +10 -8
- package/dist/value/get-set.js +3 -0
- package/dist/value/merge.js +2 -1
- package/dist/value/misc.js +4 -0
- package/package.json +113 -21
- package/src/array/get.ts +1 -2
- package/src/array/group-by.ts +9 -7
- package/src/array/sort.ts +43 -6
- package/src/array/to-map.ts +9 -7
- package/src/array/to-record.ts +9 -7
- package/src/beacon.ts +7 -7
- package/src/color/constants.ts +1 -1
- package/src/color/misc/index.ts +1 -1
- package/src/color/misc/is.ts +1 -1
- package/src/function/debounce.ts +21 -0
- package/src/{function.ts → function/memoize.ts} +11 -89
- package/src/function/misc.ts +1 -0
- package/src/function/throttle.ts +19 -0
- package/src/index.ts +44 -10
- package/src/internal/array/chunk.ts +1 -1
- package/src/internal/array/find.ts +1 -1
- package/src/internal/frame-rate.ts +1 -1
- package/src/internal/function/limiter.ts +52 -0
- package/src/internal/is.ts +1 -1
- package/src/internal/math/aggregate.ts +1 -1
- package/src/internal/number.ts +1 -1
- package/src/internal/sized.ts +25 -0
- package/src/internal/string.ts +1 -1
- package/src/internal/value/compare.ts +18 -14
- package/src/internal/value/equal.ts +43 -14
- package/src/internal/value/misc.ts +1 -1
- package/src/internal/value/set.ts +1 -1
- package/src/is.ts +1 -10
- package/src/logger.ts +3 -3
- package/src/math.ts +0 -1
- package/src/models.ts +17 -0
- package/src/query.ts +1 -7
- package/src/queue.ts +1 -1
- package/src/random.ts +1 -1
- package/src/sized/map.ts +101 -0
- package/src/sized/set.ts +101 -0
- package/src/string/case.ts +4 -4
- package/src/string/match.ts +71 -0
- package/src/string/misc.ts +1 -67
- package/src/string/template.ts +4 -2
- package/src/value/clone.ts +14 -10
- package/src/value/get-set.ts +2 -0
- package/src/value/merge.ts +4 -2
- package/src/value/misc.ts +3 -0
- package/src/value/smush.ts +2 -2
- package/src/value/unsmush.ts +1 -1
- package/types/array/get.d.ts +1 -2
- package/types/array/group-by.d.ts +10 -6
- package/types/array/sort.d.ts +38 -5
- package/types/array/to-map.d.ts +10 -6
- package/types/array/to-record.d.ts +10 -6
- package/types/function/debounce.d.ts +10 -0
- package/types/{function.d.ts → function/memoize.d.ts} +2 -25
- package/types/function/misc.d.ts +1 -0
- package/types/function/throttle.d.ts +8 -0
- package/types/index.d.ts +39 -10
- package/types/internal/function/limiter.d.ts +3 -0
- package/types/internal/sized.d.ts +1 -0
- package/types/internal/value/compare.d.ts +12 -2
- package/types/internal/value/equal.d.ts +28 -5
- package/types/is.d.ts +0 -1
- package/types/math.d.ts +0 -1
- package/types/models.d.ts +15 -0
- package/types/query.d.ts +0 -1
- package/types/sized/map.d.ts +43 -0
- package/types/{sized.d.ts → sized/set.d.ts} +0 -43
- package/types/string/match.d.ts +24 -0
- package/types/string/misc.d.ts +1 -24
- package/types/string/template.d.ts +4 -1
- package/types/value/clone.d.ts +12 -2
- package/types/value/get-set.d.ts +2 -0
- package/types/value/merge.d.ts +5 -2
- package/types/value/misc.d.ts +3 -0
- package/types/value/smush.d.ts +1 -2
- package/types/value/unsmush.d.ts +1 -1
- package/dist/array/index.js +0 -19
- package/dist/array/models.js +0 -0
- package/dist/sized.js +0 -108
- package/dist/string/index.js +0 -4
- package/dist/value/index.js +0 -6
- package/src/array/index.ts +0 -27
- package/src/array/models.ts +0 -52
- package/src/sized.ts +0 -221
- package/src/string/index.ts +0 -13
- package/src/value/index.ts +0 -6
- package/types/array/index.d.ts +0 -19
- package/types/array/models.d.ts +0 -41
- package/types/string/index.d.ts +0 -4
- package/types/value/index.d.ts +0 -6
- /package/dist/internal/{function.js → function/misc.js} +0 -0
- /package/src/internal/{function.ts → function/misc.ts} +0 -0
- /package/types/internal/{function.d.ts → function/misc.d.ts} +0 -0
package/dist/array/group-by.js
CHANGED
|
@@ -2,7 +2,8 @@ import { groupValues } from "../internal/array/group.js";
|
|
|
2
2
|
function groupBy(array, first, second) {
|
|
3
3
|
return groupValues(array, first, second, false);
|
|
4
4
|
}
|
|
5
|
+
groupBy.arrays = groupArraysBy;
|
|
5
6
|
function groupArraysBy(array, first, second) {
|
|
6
7
|
return groupValues(array, first, second, true);
|
|
7
8
|
}
|
|
8
|
-
export {
|
|
9
|
+
export { groupBy };
|
package/dist/array/to-map.js
CHANGED
|
@@ -19,7 +19,8 @@ function getMapValues(array, first, second, arrays) {
|
|
|
19
19
|
function toMap(array, first, second) {
|
|
20
20
|
return getMapValues(array, first, second, false);
|
|
21
21
|
}
|
|
22
|
+
toMap.arrays = toMapArrays;
|
|
22
23
|
function toMapArrays(array, first, second) {
|
|
23
24
|
return getMapValues(array, first, second, true);
|
|
24
25
|
}
|
|
25
|
-
export { toMap
|
|
26
|
+
export { toMap };
|
package/dist/array/to-record.js
CHANGED
|
@@ -2,7 +2,8 @@ import { groupValues } from "../internal/array/group.js";
|
|
|
2
2
|
function toRecord(array, first, second) {
|
|
3
3
|
return groupValues(array, first, second, false);
|
|
4
4
|
}
|
|
5
|
+
toRecord.arrays = toRecordArrays;
|
|
5
6
|
function toRecordArrays(array, first, second) {
|
|
6
7
|
return groupValues(array, first, second, true);
|
|
7
8
|
}
|
|
8
|
-
export { toRecord
|
|
9
|
+
export { toRecord };
|