@monstermann/map 0.1.0 → 0.1.2

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 (66) hide show
  1. package/dist/Map/{compact.d.ts → compact.d.mts} +1 -1
  2. package/dist/Map/{compact.js → compact.mjs} +1 -1
  3. package/dist/Map/{filter.d.ts → filter.d.mts} +1 -1
  4. package/dist/Map/{forEach.d.ts → forEach.d.mts} +1 -1
  5. package/dist/Map/{getOr.d.ts → getOr.d.mts} +1 -1
  6. package/dist/Map/{getOrElse.d.ts → getOrElse.d.mts} +1 -1
  7. package/dist/Map/{getOrThrow.d.ts → getOrThrow.d.mts} +1 -1
  8. package/dist/Map/index.d.mts +36 -0
  9. package/dist/Map/index.mjs +63 -0
  10. package/dist/Map/{map.d.ts → map.d.mts} +1 -1
  11. package/dist/Map/{mapEach.d.ts → mapEach.d.mts} +1 -1
  12. package/dist/Map/{mapOr.d.ts → mapOr.d.mts} +1 -1
  13. package/dist/Map/{mapOrElse.d.ts → mapOrElse.d.mts} +1 -1
  14. package/dist/Map/{mapOrThrow.d.ts → mapOrThrow.d.mts} +1 -1
  15. package/dist/Map/{reject.d.ts → reject.d.mts} +1 -1
  16. package/dist/Map/{removeOrElse.d.ts → removeOrElse.d.mts} +1 -1
  17. package/dist/index.d.mts +2 -0
  18. package/dist/index.mjs +3 -0
  19. package/package.json +6 -6
  20. package/dist/Map/index.d.ts +0 -36
  21. package/dist/Map/index.js +0 -63
  22. package/dist/index.d.ts +0 -2
  23. package/dist/index.js +0 -3
  24. /package/dist/Map/{clone.d.ts → clone.d.mts} +0 -0
  25. /package/dist/Map/{clone.js → clone.mjs} +0 -0
  26. /package/dist/Map/{create.d.ts → create.d.mts} +0 -0
  27. /package/dist/Map/{create.js → create.mjs} +0 -0
  28. /package/dist/Map/{filter.js → filter.mjs} +0 -0
  29. /package/dist/Map/{forEach.js → forEach.mjs} +0 -0
  30. /package/dist/Map/{get.d.ts → get.d.mts} +0 -0
  31. /package/dist/Map/{get.js → get.mjs} +0 -0
  32. /package/dist/Map/{getOr.js → getOr.mjs} +0 -0
  33. /package/dist/Map/{getOrElse.js → getOrElse.mjs} +0 -0
  34. /package/dist/Map/{getOrThrow.js → getOrThrow.mjs} +0 -0
  35. /package/dist/Map/{has.d.ts → has.d.mts} +0 -0
  36. /package/dist/Map/{has.js → has.mjs} +0 -0
  37. /package/dist/Map/{hasAll.d.ts → hasAll.d.mts} +0 -0
  38. /package/dist/Map/{hasAll.js → hasAll.mjs} +0 -0
  39. /package/dist/Map/{hasAny.d.ts → hasAny.d.mts} +0 -0
  40. /package/dist/Map/{hasAny.js → hasAny.mjs} +0 -0
  41. /package/dist/Map/{hasNone.d.ts → hasNone.d.mts} +0 -0
  42. /package/dist/Map/{hasNone.js → hasNone.mjs} +0 -0
  43. /package/dist/Map/internals/{types.d.ts → types.d.mts} +0 -0
  44. /package/dist/Map/{is.d.ts → is.d.mts} +0 -0
  45. /package/dist/Map/{is.js → is.mjs} +0 -0
  46. /package/dist/Map/{isEmpty.d.ts → isEmpty.d.mts} +0 -0
  47. /package/dist/Map/{isEmpty.js → isEmpty.mjs} +0 -0
  48. /package/dist/Map/{isShallowEqual.d.ts → isShallowEqual.d.mts} +0 -0
  49. /package/dist/Map/{isShallowEqual.js → isShallowEqual.mjs} +0 -0
  50. /package/dist/Map/{map.js → map.mjs} +0 -0
  51. /package/dist/Map/{mapEach.js → mapEach.mjs} +0 -0
  52. /package/dist/Map/{mapOr.js → mapOr.mjs} +0 -0
  53. /package/dist/Map/{mapOrElse.js → mapOrElse.mjs} +0 -0
  54. /package/dist/Map/{mapOrThrow.js → mapOrThrow.mjs} +0 -0
  55. /package/dist/Map/{reject.js → reject.mjs} +0 -0
  56. /package/dist/Map/{remove.d.ts → remove.d.mts} +0 -0
  57. /package/dist/Map/{remove.js → remove.mjs} +0 -0
  58. /package/dist/Map/{removeAll.d.ts → removeAll.d.mts} +0 -0
  59. /package/dist/Map/{removeAll.js → removeAll.mjs} +0 -0
  60. /package/dist/Map/{removeOr.d.ts → removeOr.d.mts} +0 -0
  61. /package/dist/Map/{removeOr.js → removeOr.mjs} +0 -0
  62. /package/dist/Map/{removeOrElse.js → removeOrElse.mjs} +0 -0
  63. /package/dist/Map/{removeOrThrow.d.ts → removeOrThrow.d.mts} +0 -0
  64. /package/dist/Map/{removeOrThrow.js → removeOrThrow.mjs} +0 -0
  65. /package/dist/Map/{set.d.ts → set.d.mts} +0 -0
  66. /package/dist/Map/{set.js → set.mjs} +0 -0
@@ -1,4 +1,4 @@
1
- import { NonNil } from "./internals/types.js";
1
+ import { NonNil } from "./internals/types.mjs";
2
2
 
3
3
  //#region src/Map/compact.d.ts
4
4
 
@@ -1,4 +1,4 @@
1
- import { filter } from "./filter.js";
1
+ import { filter } from "./filter.mjs";
2
2
  import { dfdlT } from "@monstermann/dfdl";
3
3
 
4
4
  //#region src/Map/compact.ts
@@ -1,4 +1,4 @@
1
- import { MapGuard, MapPredicate } from "./internals/types.js";
1
+ import { MapGuard, MapPredicate } from "./internals/types.mjs";
2
2
 
3
3
  //#region src/Map/filter.d.ts
4
4
 
@@ -1,4 +1,4 @@
1
- import { MapMap } from "./internals/types.js";
1
+ import { MapMap } from "./internals/types.mjs";
2
2
 
3
3
  //#region src/Map/forEach.d.ts
4
4
 
@@ -1,4 +1,4 @@
1
- import { NonNil } from "./internals/types.js";
1
+ import { NonNil } from "./internals/types.mjs";
2
2
 
3
3
  //#region src/Map/getOr.d.ts
4
4
 
@@ -1,4 +1,4 @@
1
- import { NonNil, OrElse } from "./internals/types.js";
1
+ import { NonNil, OrElse } from "./internals/types.mjs";
2
2
 
3
3
  //#region src/Map/getOrElse.d.ts
4
4
 
@@ -1,4 +1,4 @@
1
- import { NonNil } from "./internals/types.js";
1
+ import { NonNil } from "./internals/types.mjs";
2
2
 
3
3
  //#region src/Map/getOrThrow.d.ts
4
4
 
@@ -0,0 +1,36 @@
1
+ import { clone } from "./clone.mjs";
2
+ import { compact } from "./compact.mjs";
3
+ import { create } from "./create.mjs";
4
+ import { filter } from "./filter.mjs";
5
+ import { forEach } from "./forEach.mjs";
6
+ import { get } from "./get.mjs";
7
+ import { getOr } from "./getOr.mjs";
8
+ import { getOrElse } from "./getOrElse.mjs";
9
+ import { getOrThrow } from "./getOrThrow.mjs";
10
+ import { has } from "./has.mjs";
11
+ import { hasAll } from "./hasAll.mjs";
12
+ import { hasAny } from "./hasAny.mjs";
13
+ import { hasNone } from "./hasNone.mjs";
14
+ import { is } from "./is.mjs";
15
+ import { isEmpty } from "./isEmpty.mjs";
16
+ import { isShallowEqual } from "./isShallowEqual.mjs";
17
+ import { map } from "./map.mjs";
18
+ import { mapEach } from "./mapEach.mjs";
19
+ import { mapOr } from "./mapOr.mjs";
20
+ import { mapOrElse } from "./mapOrElse.mjs";
21
+ import { mapOrThrow } from "./mapOrThrow.mjs";
22
+ import { reject } from "./reject.mjs";
23
+ import { remove } from "./remove.mjs";
24
+ import { removeAll } from "./removeAll.mjs";
25
+ import { removeOr } from "./removeOr.mjs";
26
+ import { removeOrElse } from "./removeOrElse.mjs";
27
+ import { removeOrThrow } from "./removeOrThrow.mjs";
28
+ import { set } from "./set.mjs";
29
+
30
+ //#region src/Map/index.d.ts
31
+
32
+ declare namespace Map {
33
+ export { clone, compact, create, filter, forEach, get, getOr, getOrElse, getOrThrow, has, hasAll, hasAny, hasNone, is, isEmpty, isShallowEqual, map, mapEach, mapOr, mapOrElse, mapOrThrow, reject, remove, removeAll, removeOr, removeOrElse, removeOrThrow, set };
34
+ }
35
+ //#endregion
36
+ export { Map };
@@ -0,0 +1,63 @@
1
+ import { clone } from "./clone.mjs";
2
+ import { filter } from "./filter.mjs";
3
+ import { compact } from "./compact.mjs";
4
+ import { create } from "./create.mjs";
5
+ import { forEach } from "./forEach.mjs";
6
+ import { get } from "./get.mjs";
7
+ import { getOr } from "./getOr.mjs";
8
+ import { getOrElse } from "./getOrElse.mjs";
9
+ import { getOrThrow } from "./getOrThrow.mjs";
10
+ import { has } from "./has.mjs";
11
+ import { hasAll } from "./hasAll.mjs";
12
+ import { hasAny } from "./hasAny.mjs";
13
+ import { hasNone } from "./hasNone.mjs";
14
+ import { is } from "./is.mjs";
15
+ import { isEmpty } from "./isEmpty.mjs";
16
+ import { isShallowEqual } from "./isShallowEqual.mjs";
17
+ import { map } from "./map.mjs";
18
+ import { mapEach } from "./mapEach.mjs";
19
+ import { mapOr } from "./mapOr.mjs";
20
+ import { mapOrElse } from "./mapOrElse.mjs";
21
+ import { mapOrThrow } from "./mapOrThrow.mjs";
22
+ import { reject } from "./reject.mjs";
23
+ import { remove } from "./remove.mjs";
24
+ import { removeAll } from "./removeAll.mjs";
25
+ import { removeOr } from "./removeOr.mjs";
26
+ import { removeOrElse } from "./removeOrElse.mjs";
27
+ import { removeOrThrow } from "./removeOrThrow.mjs";
28
+ import { set } from "./set.mjs";
29
+
30
+ //#region src/Map/index.js
31
+ const Map = {
32
+ clone,
33
+ compact,
34
+ create,
35
+ filter,
36
+ forEach,
37
+ get,
38
+ getOr,
39
+ getOrElse,
40
+ getOrThrow,
41
+ has,
42
+ hasAll,
43
+ hasAny,
44
+ hasNone,
45
+ is,
46
+ isEmpty,
47
+ isShallowEqual,
48
+ map,
49
+ mapEach,
50
+ mapOr,
51
+ mapOrElse,
52
+ mapOrThrow,
53
+ reject,
54
+ remove,
55
+ removeAll,
56
+ removeOr,
57
+ removeOrElse,
58
+ removeOrThrow,
59
+ set
60
+ };
61
+
62
+ //#endregion
63
+ export { Map };
@@ -1,4 +1,4 @@
1
- import { MapMap } from "./internals/types.js";
1
+ import { MapMap } from "./internals/types.mjs";
2
2
 
3
3
  //#region src/Map/map.d.ts
4
4
 
@@ -1,4 +1,4 @@
1
- import { MapMap } from "./internals/types.js";
1
+ import { MapMap } from "./internals/types.mjs";
2
2
 
3
3
  //#region src/Map/mapEach.d.ts
4
4
 
@@ -1,4 +1,4 @@
1
- import { MapMap } from "./internals/types.js";
1
+ import { MapMap } from "./internals/types.mjs";
2
2
 
3
3
  //#region src/Map/mapOr.d.ts
4
4
 
@@ -1,4 +1,4 @@
1
- import { MapMap, OrElse } from "./internals/types.js";
1
+ import { MapMap, OrElse } from "./internals/types.mjs";
2
2
 
3
3
  //#region src/Map/mapOrElse.d.ts
4
4
 
@@ -1,4 +1,4 @@
1
- import { MapMap } from "./internals/types.js";
1
+ import { MapMap } from "./internals/types.mjs";
2
2
 
3
3
  //#region src/Map/mapOrThrow.d.ts
4
4
 
@@ -1,4 +1,4 @@
1
- import { MapGuard, MapPredicate } from "./internals/types.js";
1
+ import { MapGuard, MapPredicate } from "./internals/types.mjs";
2
2
 
3
3
  //#region src/Map/reject.d.ts
4
4
 
@@ -1,4 +1,4 @@
1
- import { OrElse } from "./internals/types.js";
1
+ import { OrElse } from "./internals/types.mjs";
2
2
 
3
3
  //#region src/Map/removeOrElse.d.ts
4
4
 
@@ -0,0 +1,2 @@
1
+ import { Map } from "./Map/index.mjs";
2
+ export { Map };
package/dist/index.mjs ADDED
@@ -0,0 +1,3 @@
1
+ import { Map } from "./Map/index.mjs";
2
+
3
+ export { Map };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@monstermann/map",
3
3
  "type": "module",
4
- "version": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "description": "Functional utilities for maps.",
6
6
  "author": "Michael Ostermann <michaelostermann@me.com>",
7
7
  "license": "MIT",
@@ -17,14 +17,14 @@
17
17
  "sideEffects": false,
18
18
  "exports": {
19
19
  ".": {
20
- "types": "./dist/index.d.ts",
21
- "import": "./dist/index.js"
20
+ "types": "./dist/index.d.mts",
21
+ "import": "./dist/index.mjs"
22
22
  },
23
23
  "./*": "./dist/*"
24
24
  },
25
- "main": "./dist/index.js",
26
- "module": "./dist/index.js",
27
- "types": "./dist/index.d.ts",
25
+ "main": "./dist/index.mjs",
26
+ "module": "./dist/index.mjs",
27
+ "types": "./dist/index.d.mts",
28
28
  "files": [
29
29
  "dist"
30
30
  ],
@@ -1,36 +0,0 @@
1
- import { clone } from "./clone.js";
2
- import { compact } from "./compact.js";
3
- import { create } from "./create.js";
4
- import { filter } from "./filter.js";
5
- import { forEach } from "./forEach.js";
6
- import { get } from "./get.js";
7
- import { getOr } from "./getOr.js";
8
- import { getOrElse } from "./getOrElse.js";
9
- import { getOrThrow } from "./getOrThrow.js";
10
- import { has } from "./has.js";
11
- import { hasAll } from "./hasAll.js";
12
- import { hasAny } from "./hasAny.js";
13
- import { hasNone } from "./hasNone.js";
14
- import { is } from "./is.js";
15
- import { isEmpty } from "./isEmpty.js";
16
- import { isShallowEqual } from "./isShallowEqual.js";
17
- import { map } from "./map.js";
18
- import { mapEach } from "./mapEach.js";
19
- import { mapOr } from "./mapOr.js";
20
- import { mapOrElse } from "./mapOrElse.js";
21
- import { mapOrThrow } from "./mapOrThrow.js";
22
- import { reject } from "./reject.js";
23
- import { remove } from "./remove.js";
24
- import { removeAll } from "./removeAll.js";
25
- import { removeOr } from "./removeOr.js";
26
- import { removeOrElse } from "./removeOrElse.js";
27
- import { removeOrThrow } from "./removeOrThrow.js";
28
- import { set } from "./set.js";
29
-
30
- //#region src/Map/index.d.ts
31
-
32
- declare namespace Map {
33
- export { clone, compact, create, filter, forEach, get, getOr, getOrElse, getOrThrow, has, hasAll, hasAny, hasNone, is, isEmpty, isShallowEqual, map, mapEach, mapOr, mapOrElse, mapOrThrow, reject, remove, removeAll, removeOr, removeOrElse, removeOrThrow, set };
34
- }
35
- //#endregion
36
- export { Map };
package/dist/Map/index.js DELETED
@@ -1,63 +0,0 @@
1
- import { clone } from "./clone.js";
2
- import { filter } from "./filter.js";
3
- import { compact } from "./compact.js";
4
- import { create } from "./create.js";
5
- import { forEach } from "./forEach.js";
6
- import { get } from "./get.js";
7
- import { getOr } from "./getOr.js";
8
- import { getOrElse } from "./getOrElse.js";
9
- import { getOrThrow } from "./getOrThrow.js";
10
- import { has } from "./has.js";
11
- import { hasAll } from "./hasAll.js";
12
- import { hasAny } from "./hasAny.js";
13
- import { hasNone } from "./hasNone.js";
14
- import { is } from "./is.js";
15
- import { isEmpty } from "./isEmpty.js";
16
- import { isShallowEqual } from "./isShallowEqual.js";
17
- import { map } from "./map.js";
18
- import { mapEach } from "./mapEach.js";
19
- import { mapOr } from "./mapOr.js";
20
- import { mapOrElse } from "./mapOrElse.js";
21
- import { mapOrThrow } from "./mapOrThrow.js";
22
- import { reject } from "./reject.js";
23
- import { remove } from "./remove.js";
24
- import { removeAll } from "./removeAll.js";
25
- import { removeOr } from "./removeOr.js";
26
- import { removeOrElse } from "./removeOrElse.js";
27
- import { removeOrThrow } from "./removeOrThrow.js";
28
- import { set } from "./set.js";
29
-
30
- //#region src/Map/index.js
31
- const Map = {
32
- clone,
33
- compact,
34
- create,
35
- filter,
36
- forEach,
37
- get,
38
- getOr,
39
- getOrElse,
40
- getOrThrow,
41
- has,
42
- hasAll,
43
- hasAny,
44
- hasNone,
45
- is,
46
- isEmpty,
47
- isShallowEqual,
48
- map,
49
- mapEach,
50
- mapOr,
51
- mapOrElse,
52
- mapOrThrow,
53
- reject,
54
- remove,
55
- removeAll,
56
- removeOr,
57
- removeOrElse,
58
- removeOrThrow,
59
- set
60
- };
61
-
62
- //#endregion
63
- export { Map };
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { Map } from "./Map/index.js";
2
- export { Map };
package/dist/index.js DELETED
@@ -1,3 +0,0 @@
1
- import { Map } from "./Map/index.js";
2
-
3
- export { Map };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes