@oscarpalmer/atoms 0.136.0 → 0.138.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.
Files changed (47) hide show
  1. package/dist/array/group-by.js +1 -2
  2. package/dist/array/index.js +4 -4
  3. package/dist/array/to-map.js +1 -2
  4. package/dist/array/to-record.js +1 -2
  5. package/dist/atoms.full.js +403 -405
  6. package/dist/index.js +13 -13
  7. package/dist/internal/is.js +3 -4
  8. package/dist/internal/value/compare.js +14 -12
  9. package/dist/internal/value/equal.js +12 -13
  10. package/dist/is.js +2 -2
  11. package/dist/result.js +1 -2
  12. package/dist/string/index.js +1 -2
  13. package/dist/string/template.js +12 -12
  14. package/dist/value/clone.js +12 -10
  15. package/dist/value/index.js +1 -5
  16. package/dist/value/merge.js +3 -3
  17. package/package.json +21 -1
  18. package/src/array/group-by.ts +7 -9
  19. package/src/array/index.ts +4 -4
  20. package/src/array/to-map.ts +7 -9
  21. package/src/array/to-record.ts +7 -9
  22. package/src/index.ts +6 -1
  23. package/src/internal/is.ts +3 -5
  24. package/src/internal/value/compare.ts +17 -15
  25. package/src/internal/value/equal.ts +17 -38
  26. package/src/is.ts +17 -2
  27. package/src/result.ts +3 -5
  28. package/src/string/index.ts +0 -1
  29. package/src/string/template.ts +14 -14
  30. package/src/value/clone.ts +13 -11
  31. package/src/value/index.ts +0 -4
  32. package/src/value/merge.ts +1 -1
  33. package/types/array/group-by.d.ts +6 -10
  34. package/types/array/index.d.ts +4 -4
  35. package/types/array/to-map.d.ts +6 -10
  36. package/types/array/to-record.d.ts +6 -10
  37. package/types/index.d.ts +6 -1
  38. package/types/internal/is.d.ts +2 -2
  39. package/types/internal/value/compare.d.ts +11 -9
  40. package/types/internal/value/equal.d.ts +19 -25
  41. package/types/is.d.ts +2 -2
  42. package/types/result.d.ts +2 -6
  43. package/types/string/index.d.ts +0 -1
  44. package/types/string/template.d.ts +6 -3
  45. package/types/value/clone.d.ts +11 -9
  46. package/types/value/index.d.ts +0 -4
  47. package/types/value/merge.d.ts +6 -3
@@ -2,8 +2,7 @@ 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;
6
5
  function groupArraysBy(array, first, second) {
7
6
  return groupValues(array, first, second, true);
8
7
  }
9
- export { groupBy };
8
+ export { groupArraysBy, groupBy };
@@ -3,7 +3,7 @@ import { filter } from "./filter.js";
3
3
  import { find } from "./find.js";
4
4
  import { flatten } from "./flatten.js";
5
5
  import { getArray } from "./get.js";
6
- import { groupBy } from "./group-by.js";
6
+ import { groupArraysBy, groupBy } from "./group-by.js";
7
7
  import { indexOf } from "./index-of.js";
8
8
  import { chunk } from "../internal/array/chunk.js";
9
9
  import { compact } from "../internal/array/compact.js";
@@ -12,8 +12,8 @@ import { insert } from "./insert.js";
12
12
  import { push } from "./push.js";
13
13
  import { sort } from "./sort.js";
14
14
  import { splice } from "./splice.js";
15
- import { toMap } from "./to-map.js";
16
- import { toRecord } from "./to-record.js";
15
+ import { toMap, toMapArrays } from "./to-map.js";
16
+ import { toRecord, toRecordArrays } from "./to-record.js";
17
17
  import { toSet } from "./to-set.js";
18
18
  import { unique } from "./unique.js";
19
- export { chunk, compact, exists, filter, find, flatten, getArray, groupBy, indexOf, insert, push, shuffle, sort, splice, toMap, toRecord, toSet, unique };
19
+ export { chunk, compact, exists, filter, find, flatten, getArray, groupArraysBy, groupBy, indexOf, insert, push, shuffle, sort, splice, toMap, toMapArrays, toRecord, toRecordArrays, toSet, unique };
@@ -19,8 +19,7 @@ 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;
23
22
  function toMapArrays(array, first, second) {
24
23
  return getMapValues(array, first, second, true);
25
24
  }
26
- export { toMap };
25
+ export { toMap, toMapArrays };
@@ -2,8 +2,7 @@ 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;
6
5
  function toRecordArrays(array, first, second) {
7
6
  return groupValues(array, first, second, true);
8
7
  }
9
- export { toRecord };
8
+ export { toRecord, toRecordArrays };