@infra-blocks/zod-utils 0.3.0 → 0.4.0-alpha.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 (98) hide show
  1. package/README.md +150 -10
  2. package/lib/cjs/geojson/base.d.ts +8 -0
  3. package/lib/cjs/geojson/base.js +9 -0
  4. package/lib/cjs/geojson/base.js.map +1 -0
  5. package/lib/cjs/geojson/bounding-box.d.ts +5 -0
  6. package/lib/cjs/geojson/bounding-box.js +27 -0
  7. package/lib/cjs/geojson/bounding-box.js.map +1 -0
  8. package/lib/cjs/geojson/coordinate.d.ts +5 -0
  9. package/lib/cjs/geojson/coordinate.js +16 -0
  10. package/lib/cjs/geojson/coordinate.js.map +1 -0
  11. package/lib/cjs/geojson/feature-collection.d.ts +657 -0
  12. package/lib/cjs/geojson/feature-collection.js +15 -0
  13. package/lib/cjs/geojson/feature-collection.js.map +1 -0
  14. package/lib/cjs/geojson/feature.d.ts +397 -0
  15. package/lib/cjs/geojson/feature.js +18 -0
  16. package/lib/cjs/geojson/feature.js.map +1 -0
  17. package/lib/cjs/geojson/geojson.d.ts +1193 -0
  18. package/lib/cjs/geojson/geojson.js +13 -0
  19. package/lib/cjs/geojson/geojson.js.map +1 -0
  20. package/lib/cjs/geojson/geometry.d.ts +155 -0
  21. package/lib/cjs/geojson/geometry.js +33 -0
  22. package/lib/cjs/geojson/geometry.js.map +1 -0
  23. package/lib/cjs/geojson/index.d.ts +622 -0
  24. package/lib/cjs/geojson/index.js +34 -0
  25. package/lib/cjs/geojson/index.js.map +1 -0
  26. package/lib/cjs/geojson/line-string.d.ts +29 -0
  27. package/lib/cjs/geojson/line-string.js +15 -0
  28. package/lib/cjs/geojson/line-string.js.map +1 -0
  29. package/lib/cjs/geojson/multi-line-string.d.ts +29 -0
  30. package/lib/cjs/geojson/multi-line-string.js +15 -0
  31. package/lib/cjs/geojson/multi-line-string.js.map +1 -0
  32. package/lib/cjs/geojson/multi-point.d.ts +29 -0
  33. package/lib/cjs/geojson/multi-point.js +15 -0
  34. package/lib/cjs/geojson/multi-point.js.map +1 -0
  35. package/lib/cjs/geojson/multi-polygon.d.ts +29 -0
  36. package/lib/cjs/geojson/multi-polygon.js +15 -0
  37. package/lib/cjs/geojson/multi-polygon.js.map +1 -0
  38. package/lib/cjs/geojson/point.d.ts +29 -0
  39. package/lib/cjs/geojson/point.js +15 -0
  40. package/lib/cjs/geojson/point.js.map +1 -0
  41. package/lib/cjs/geojson/polygon.d.ts +29 -0
  42. package/lib/cjs/geojson/polygon.js +15 -0
  43. package/lib/cjs/geojson/polygon.js.map +1 -0
  44. package/lib/cjs/geojson/types.d.ts +12 -0
  45. package/lib/cjs/geojson/types.js +3 -0
  46. package/lib/cjs/geojson/types.js.map +1 -0
  47. package/lib/cjs/index.d.ts +608 -0
  48. package/lib/cjs/index.js +2 -0
  49. package/lib/cjs/index.js.map +1 -1
  50. package/lib/esm/geojson/base.d.ts +8 -0
  51. package/lib/esm/geojson/base.js +6 -0
  52. package/lib/esm/geojson/base.js.map +1 -0
  53. package/lib/esm/geojson/bounding-box.d.ts +5 -0
  54. package/lib/esm/geojson/bounding-box.js +23 -0
  55. package/lib/esm/geojson/bounding-box.js.map +1 -0
  56. package/lib/esm/geojson/coordinate.d.ts +5 -0
  57. package/lib/esm/geojson/coordinate.js +12 -0
  58. package/lib/esm/geojson/coordinate.js.map +1 -0
  59. package/lib/esm/geojson/feature-collection.d.ts +657 -0
  60. package/lib/esm/geojson/feature-collection.js +11 -0
  61. package/lib/esm/geojson/feature-collection.js.map +1 -0
  62. package/lib/esm/geojson/feature.d.ts +397 -0
  63. package/lib/esm/geojson/feature.js +14 -0
  64. package/lib/esm/geojson/feature.js.map +1 -0
  65. package/lib/esm/geojson/geojson.d.ts +1193 -0
  66. package/lib/esm/geojson/geojson.js +9 -0
  67. package/lib/esm/geojson/geojson.js.map +1 -0
  68. package/lib/esm/geojson/geometry.d.ts +155 -0
  69. package/lib/esm/geojson/geometry.js +28 -0
  70. package/lib/esm/geojson/geometry.js.map +1 -0
  71. package/lib/esm/geojson/index.d.ts +622 -0
  72. package/lib/esm/geojson/index.js +31 -0
  73. package/lib/esm/geojson/index.js.map +1 -0
  74. package/lib/esm/geojson/line-string.d.ts +29 -0
  75. package/lib/esm/geojson/line-string.js +11 -0
  76. package/lib/esm/geojson/line-string.js.map +1 -0
  77. package/lib/esm/geojson/multi-line-string.d.ts +29 -0
  78. package/lib/esm/geojson/multi-line-string.js +11 -0
  79. package/lib/esm/geojson/multi-line-string.js.map +1 -0
  80. package/lib/esm/geojson/multi-point.d.ts +29 -0
  81. package/lib/esm/geojson/multi-point.js +11 -0
  82. package/lib/esm/geojson/multi-point.js.map +1 -0
  83. package/lib/esm/geojson/multi-polygon.d.ts +29 -0
  84. package/lib/esm/geojson/multi-polygon.js +11 -0
  85. package/lib/esm/geojson/multi-polygon.js.map +1 -0
  86. package/lib/esm/geojson/point.d.ts +29 -0
  87. package/lib/esm/geojson/point.js +11 -0
  88. package/lib/esm/geojson/point.js.map +1 -0
  89. package/lib/esm/geojson/polygon.d.ts +29 -0
  90. package/lib/esm/geojson/polygon.js +11 -0
  91. package/lib/esm/geojson/polygon.js.map +1 -0
  92. package/lib/esm/geojson/types.d.ts +12 -0
  93. package/lib/esm/geojson/types.js +2 -0
  94. package/lib/esm/geojson/types.js.map +1 -0
  95. package/lib/esm/index.d.ts +608 -0
  96. package/lib/esm/index.js +2 -0
  97. package/lib/esm/index.js.map +1 -1
  98. package/package.json +8 -1
package/lib/esm/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  import { json } from "./json/index.js";
2
+ import { geojson } from "./geojson/index.js";
2
3
  const zu = {
4
+ geojson,
3
5
  json,
4
6
  };
5
7
  export { zu };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAEvC,MAAM,EAAE,GAAG;IACT,IAAI;CACL,CAAC;AAEF,OAAO,EAAE,EAAE,EAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,MAAM,EAAE,GAAG;IACT,OAAO;IACP,IAAI;CACL,CAAC;AAEF,OAAO,EAAE,EAAE,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infra-blocks/zod-utils",
3
- "version": "0.3.0",
3
+ "version": "0.4.0-alpha.0",
4
4
  "description": "Extensions to the zod package.",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -15,6 +15,11 @@
15
15
  "import": "./lib/esm/json/types.js",
16
16
  "require": "./lib/cjs/json/types.js",
17
17
  "default": "./lib/esm/json/types.js"
18
+ },
19
+ "./geojson": {
20
+ "import": "./lib/esm/geojson/types.js",
21
+ "require": "./lib/cjs/geojson/types.js",
22
+ "default": "./lib/esm/geojson/types.js"
18
23
  }
19
24
  },
20
25
  "files": [
@@ -39,6 +44,7 @@
39
44
  },
40
45
  "devDependencies": {
41
46
  "@infra-blocks/test": "^0.3.1",
47
+ "@types/lodash": "^4.17.0",
42
48
  "@types/mocha": "^10.0.1",
43
49
  "@types/node": "^20.10.3",
44
50
  "@typescript-eslint/eslint-plugin": "^5.59.8",
@@ -48,6 +54,7 @@
48
54
  "eslint-config-prettier": "^8.8.0",
49
55
  "eslint-plugin-json-format": "^2.0.1",
50
56
  "eslint-plugin-prettier": "^4.2.1",
57
+ "lodash": "^4.17.21",
51
58
  "mocha": "^10.2.0",
52
59
  "prettier": "^2.8.8",
53
60
  "ts-node": "^10.9.1",