@clementine-solutions/jane-io 1.0.3 → 1.0.5

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 (189) hide show
  1. package/LICENSE +191 -191
  2. package/README.md +132 -132
  3. package/dist/core/analysis/diff.js +2 -2
  4. package/dist/core/analysis/index.js +4 -4
  5. package/dist/core/analysis/replay.js +2 -2
  6. package/dist/core/analysis/telemetry.js +1 -1
  7. package/dist/core/boundary-rules/at-most-one.js +1 -1
  8. package/dist/core/boundary-rules/conditionally-required.js +1 -1
  9. package/dist/core/boundary-rules/date-range.js +1 -1
  10. package/dist/core/boundary-rules/index.js +7 -7
  11. package/dist/core/boundary-rules/mutually-exclusive.js +1 -1
  12. package/dist/core/boundary-rules/no-unknown-fields.js +1 -1
  13. package/dist/core/boundary-rules/require-all.js +1 -1
  14. package/dist/core/boundary-rules/require-one.js +1 -1
  15. package/dist/core/common/fluent.js +6 -6
  16. package/dist/core/common/index.js +5 -5
  17. package/dist/core/common/policy.js +1 -1
  18. package/dist/core/field-path/construct.js +1 -1
  19. package/dist/core/field-path/format.js +1 -1
  20. package/dist/core/field-path/index.js +4 -4
  21. package/dist/core/field-path/walk.js +1 -1
  22. package/dist/core/fluent-registry.js +4 -4
  23. package/dist/core/normalizers/array/compact-sparse-array.js +1 -1
  24. package/dist/core/normalizers/array/flatten-one-level.js +1 -1
  25. package/dist/core/normalizers/array/remove-empty-string-items.js +1 -1
  26. package/dist/core/normalizers/array/remove-null-items.js +1 -1
  27. package/dist/core/normalizers/array/remove-undefined-items.js +1 -1
  28. package/dist/core/normalizers/date/invalid-date-to-undefined.js +1 -1
  29. package/dist/core/normalizers/index.js +18 -18
  30. package/dist/core/normalizers/normalizer-register.js +1 -1
  31. package/dist/core/normalizers/number/infinity-to-undefined.js +1 -1
  32. package/dist/core/normalizers/number/nan-to-undefined.js +1 -1
  33. package/dist/core/normalizers/number/normalize-negative-zero.js +1 -1
  34. package/dist/core/normalizers/object/remove-empty-array-keys.js +1 -1
  35. package/dist/core/normalizers/object/remove-empty-object-keys.js +1 -1
  36. package/dist/core/normalizers/object/remove-empty-string-keys.js +1 -1
  37. package/dist/core/normalizers/object/remove-null-keys.js +1 -1
  38. package/dist/core/normalizers/object/remove-undefined-keys.js +1 -1
  39. package/dist/core/normalizers/string/collapse-whitespace.js +1 -1
  40. package/dist/core/normalizers/string/empty-to-undefined.js +1 -1
  41. package/dist/core/normalizers/string/trim.js +1 -1
  42. package/dist/core/parsers/index.js +12 -12
  43. package/dist/core/parsers/parse-array-string.js +1 -1
  44. package/dist/core/parsers/parse-bigint-string.js +1 -1
  45. package/dist/core/parsers/parse-binary-string.js +1 -1
  46. package/dist/core/parsers/parse-boolean-string.js +1 -1
  47. package/dist/core/parsers/parse-date-string.js +1 -1
  48. package/dist/core/parsers/parse-duration-string.js +1 -1
  49. package/dist/core/parsers/parse-hex-string.js +1 -1
  50. package/dist/core/parsers/parse-integer-string.js +1 -1
  51. package/dist/core/parsers/parse-json-string.js +1 -1
  52. package/dist/core/parsers/parse-numeric-string.js +1 -1
  53. package/dist/core/parsers/parse-object-string.js +1 -1
  54. package/dist/core/parsers/parse-octal-string.js +1 -1
  55. package/dist/core/parsers/parse-scientific-notation-string.js +1 -1
  56. package/dist/core/parsers/parse-url-string.js +1 -1
  57. package/dist/core/pipeline/boundary.js +2 -2
  58. package/dist/core/pipeline/contain.js +2 -2
  59. package/dist/core/pipeline/index.js +7 -7
  60. package/dist/core/pipeline/normalize.js +4 -4
  61. package/dist/core/pipeline/parse.js +1 -1
  62. package/dist/core/pipeline/pipeline.js +9 -9
  63. package/dist/core/pipeline/scan.js +5 -5
  64. package/dist/core/pipeline/validate.js +2 -2
  65. package/dist/core/scanners/any/scan-for-sentinels.js +2 -2
  66. package/dist/core/scanners/array/array-is-deep.js +1 -1
  67. package/dist/core/scanners/array/array-is-heterogenous.js +2 -2
  68. package/dist/core/scanners/array/array-is-large.js +1 -1
  69. package/dist/core/scanners/bigint/bigint-is-large.js +1 -1
  70. package/dist/core/scanners/bigint/bigint-not-safe.js +1 -1
  71. package/dist/core/scanners/date/date-is-before-epoch.js +1 -1
  72. package/dist/core/scanners/date/date-is-far-future.js +1 -1
  73. package/dist/core/scanners/date/date-is-invalid.js +1 -1
  74. package/dist/core/scanners/index.js +21 -21
  75. package/dist/core/scanners/number/number-is-infinite.js +1 -1
  76. package/dist/core/scanners/number/number-is-nan.js +1 -1
  77. package/dist/core/scanners/number/number-is-too-large.js +1 -1
  78. package/dist/core/scanners/number/number-is-unsafe-integer.js +1 -1
  79. package/dist/core/scanners/object/object-has-circular-references.js +1 -1
  80. package/dist/core/scanners/object/object-has-many-keys.js +1 -1
  81. package/dist/core/scanners/object/object-is-deep.js +2 -2
  82. package/dist/core/scanners/scanner-registry.js +1 -1
  83. package/dist/core/scanners/string/string-has-unsafe-unicode.js +1 -1
  84. package/dist/core/scanners/string/string-has-whitespace-edges.js +1 -1
  85. package/dist/core/scanners/string/string-is-long.js +1 -1
  86. package/dist/core/scanners/unknown/unknown-not-scannable.js +2 -2
  87. package/dist/core/validators/array/array-max-items.js +2 -2
  88. package/dist/core/validators/array/array-min-items.js +2 -2
  89. package/dist/core/validators/array/array.js +2 -2
  90. package/dist/core/validators/array/excludes.js +3 -3
  91. package/dist/core/validators/array/has-unique-items.js +2 -2
  92. package/dist/core/validators/array/includes.js +3 -3
  93. package/dist/core/validators/array/items-equal.js +2 -2
  94. package/dist/core/validators/array/no-empty-string-items.js +2 -2
  95. package/dist/core/validators/array/no-null-items.js +2 -2
  96. package/dist/core/validators/array/no-undefined-items.js +2 -2
  97. package/dist/core/validators/array/non-empty-array.js +2 -2
  98. package/dist/core/validators/array/not-sparse.js +2 -2
  99. package/dist/core/validators/bigint/bigint-equals.js +3 -3
  100. package/dist/core/validators/bigint/bigint-max.js +3 -3
  101. package/dist/core/validators/bigint/bigint-min.js +3 -3
  102. package/dist/core/validators/bigint/bigint-negative.js +3 -3
  103. package/dist/core/validators/bigint/bigint-non-negative.js +3 -3
  104. package/dist/core/validators/bigint/bigint-non-positive.js +3 -3
  105. package/dist/core/validators/bigint/bigint-positive.js +3 -3
  106. package/dist/core/validators/bigint/bigint-safe.js +3 -3
  107. package/dist/core/validators/bigint/bigint.js +2 -2
  108. package/dist/core/validators/boolean/boolean.js +2 -2
  109. package/dist/core/validators/boolean/is-false.js +2 -2
  110. package/dist/core/validators/boolean/is-true.js +2 -2
  111. package/dist/core/validators/common/is-country-code.js +3 -3
  112. package/dist/core/validators/common/is-currency-code.js +3 -3
  113. package/dist/core/validators/common/is-email-strict.js +3 -3
  114. package/dist/core/validators/common/is-email.js +3 -3
  115. package/dist/core/validators/common/is-ip.js +3 -3
  116. package/dist/core/validators/common/is-phone-strict.js +3 -3
  117. package/dist/core/validators/common/is-phone.js +3 -3
  118. package/dist/core/validators/common/is-port.js +2 -2
  119. package/dist/core/validators/common/is-postal-code.js +3 -3
  120. package/dist/core/validators/common/is-url.js +3 -3
  121. package/dist/core/validators/common/is-uuid.js +3 -3
  122. package/dist/core/validators/date/before-epoch.js +3 -3
  123. package/dist/core/validators/date/date-now-required.js +3 -3
  124. package/dist/core/validators/date/is-date.js +2 -2
  125. package/dist/core/validators/date/is-far-future.js +3 -3
  126. package/dist/core/validators/date/is-future.js +3 -3
  127. package/dist/core/validators/date/is-past.js +3 -3
  128. package/dist/core/validators/date/not-after.js +3 -3
  129. package/dist/core/validators/date/not-before.js +3 -3
  130. package/dist/core/validators/date/same-day.js +3 -3
  131. package/dist/core/validators/date/same-month.js +3 -3
  132. package/dist/core/validators/date/same-year.js +3 -3
  133. package/dist/core/validators/date/too-early.js +3 -3
  134. package/dist/core/validators/date/too-late.js +3 -3
  135. package/dist/core/validators/date/weekday.js +3 -3
  136. package/dist/core/validators/date/weekend.js +3 -3
  137. package/dist/core/validators/index.js +99 -99
  138. package/dist/core/validators/nullish/is-null-or-undefined.js +2 -2
  139. package/dist/core/validators/nullish/is-null.js +2 -2
  140. package/dist/core/validators/nullish/is-undefined.js +2 -2
  141. package/dist/core/validators/number/finite.js +3 -3
  142. package/dist/core/validators/number/integer.js +3 -3
  143. package/dist/core/validators/number/less-than.js +3 -3
  144. package/dist/core/validators/number/max.js +3 -3
  145. package/dist/core/validators/number/min.js +3 -3
  146. package/dist/core/validators/number/more-than.js +3 -3
  147. package/dist/core/validators/number/negative.js +3 -3
  148. package/dist/core/validators/number/non-negative.js +3 -3
  149. package/dist/core/validators/number/non-positive.js +3 -3
  150. package/dist/core/validators/number/number.js +2 -2
  151. package/dist/core/validators/number/positive.js +3 -3
  152. package/dist/core/validators/number/safe-integer.js +3 -3
  153. package/dist/core/validators/object/deep-equals.js +3 -3
  154. package/dist/core/validators/object/has-key.js +3 -3
  155. package/dist/core/validators/object/has-value.js +3 -3
  156. package/dist/core/validators/object/keys-equal.js +3 -3
  157. package/dist/core/validators/object/max-keys.js +3 -3
  158. package/dist/core/validators/object/min-keys.js +3 -3
  159. package/dist/core/validators/object/missing-key.js +3 -3
  160. package/dist/core/validators/object/no-empty-array-values.js +3 -3
  161. package/dist/core/validators/object/no-empty-object-values.js +3 -3
  162. package/dist/core/validators/object/no-null-values.js +3 -3
  163. package/dist/core/validators/object/no-undefined-values.js +3 -3
  164. package/dist/core/validators/object/non-empty-object.js +3 -3
  165. package/dist/core/validators/object/only-keys.js +3 -3
  166. package/dist/core/validators/object/plain-object.js +3 -3
  167. package/dist/core/validators/string/alpha-num.js +3 -3
  168. package/dist/core/validators/string/alpha.js +3 -3
  169. package/dist/core/validators/string/chars-equal.js +2 -2
  170. package/dist/core/validators/string/ends-with.js +3 -3
  171. package/dist/core/validators/string/is-ascii.js +3 -3
  172. package/dist/core/validators/string/is-printable.js +3 -3
  173. package/dist/core/validators/string/matches.js +3 -3
  174. package/dist/core/validators/string/max-length.js +2 -2
  175. package/dist/core/validators/string/min-length.js +2 -2
  176. package/dist/core/validators/string/no-lead-space.js +3 -3
  177. package/dist/core/validators/string/no-repeat-space.js +3 -3
  178. package/dist/core/validators/string/no-space.js +3 -3
  179. package/dist/core/validators/string/no-trail-space.js +3 -3
  180. package/dist/core/validators/string/non-empty.js +2 -2
  181. package/dist/core/validators/string/not-one-of.js +3 -3
  182. package/dist/core/validators/string/num-string.js +3 -3
  183. package/dist/core/validators/string/one-of.js +3 -3
  184. package/dist/core/validators/string/starts-with.js +3 -3
  185. package/dist/core/validators/string/string.js +2 -2
  186. package/dist/core/validators/string/trimmed.js +3 -3
  187. package/dist/index.d.ts +27 -27
  188. package/dist/index.js +2 -2
  189. package/package.json +3 -2
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { detectStructuralType } from '../../pipeline/scan';
13
- import { isPlainObject } from '../../common';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { detectStructuralType } from '../../pipeline/scan.js';
13
+ import { isPlainObject } from '../../common/index.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { isPlainObject } from '../../common';
13
- import { detectStructuralType } from '../../pipeline/scan';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { isPlainObject } from '../../common/index.js';
13
+ import { detectStructuralType } from '../../pipeline/scan.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { detectStructuralType } from '../../pipeline/scan';
13
- import { isPlainObject } from '../../common';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { detectStructuralType } from '../../pipeline/scan.js';
13
+ import { isPlainObject } from '../../common/index.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { detectStructuralType } from '../../pipeline/scan';
13
- import { isPlainObject } from '../../common';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { detectStructuralType } from '../../pipeline/scan.js';
13
+ import { isPlainObject } from '../../common/index.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { detectStructuralType } from '../../pipeline/scan';
13
- import { isPlainObject } from '../../common';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { detectStructuralType } from '../../pipeline/scan.js';
13
+ import { isPlainObject } from '../../common/index.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { detectStructuralType } from '../../pipeline/scan';
13
- import { isPlainObject } from '../../common';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { detectStructuralType } from '../../pipeline/scan.js';
13
+ import { isPlainObject } from '../../common/index.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { detectStructuralType } from '../../pipeline/scan';
13
- import { isPlainObject } from '../../common';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { detectStructuralType } from '../../pipeline/scan.js';
13
+ import { isPlainObject } from '../../common/index.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { detectStructuralType } from '../../pipeline/scan';
13
- import { isPlainObject } from '../../common';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { detectStructuralType } from '../../pipeline/scan.js';
13
+ import { isPlainObject } from '../../common/index.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -7,9 +7,9 @@
7
7
  * @see https://jane-io.com
8
8
  * ----------------------------------------------------------------------------
9
9
  */
10
- import { validationEvent } from '../../pipeline';
11
- import { detectStructuralType } from '../../pipeline/scan';
12
- import { isPlainObject } from '../../common';
10
+ import { validationEvent } from '../../pipeline/index.js';
11
+ import { detectStructuralType } from '../../pipeline/scan.js';
12
+ import { isPlainObject } from '../../common/index.js';
13
13
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
14
14
  |* Implementation *|
15
15
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -7,9 +7,9 @@
7
7
  * @see https://jane-io.com
8
8
  * ----------------------------------------------------------------------------
9
9
  */
10
- import { validationEvent } from '../../pipeline';
11
- import { detectStructuralType } from '../../pipeline/scan';
12
- import { isPlainObject } from '../../common';
10
+ import { validationEvent } from '../../pipeline/index.js';
11
+ import { detectStructuralType } from '../../pipeline/scan.js';
12
+ import { isPlainObject } from '../../common/index.js';
13
13
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
14
14
  |* Implementation *|
15
15
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -7,9 +7,9 @@
7
7
  * @see https://jane-io.com
8
8
  * ----------------------------------------------------------------------------
9
9
  */
10
- import { validationEvent } from '../../pipeline';
11
- import { detectStructuralType } from '../../pipeline/scan';
12
- import { isPlainObject } from '../../common';
10
+ import { validationEvent } from '../../pipeline/index.js';
11
+ import { detectStructuralType } from '../../pipeline/scan.js';
12
+ import { isPlainObject } from '../../common/index.js';
13
13
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
14
14
  |* Implementation *|
15
15
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { detectStructuralType } from '../../pipeline/scan';
13
- import { safeStringify } from '../../common';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { detectStructuralType } from '../../pipeline/scan.js';
13
+ import { safeStringify } from '../../common/index.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { safeStringify } from '../../common';
13
- import { detectStructuralType } from '../../pipeline/scan';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { safeStringify } from '../../common/index.js';
13
+ import { detectStructuralType } from '../../pipeline/scan.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,8 +8,8 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { detectStructuralType } from '../../pipeline/scan';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { detectStructuralType } from '../../pipeline/scan.js';
13
13
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
14
14
  |* Implementation *|
15
15
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { detectStructuralType } from '../../pipeline/scan';
13
- import { safeStringify } from '../../common';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { detectStructuralType } from '../../pipeline/scan.js';
13
+ import { safeStringify } from '../../common/index.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { detectStructuralType } from '../../pipeline/scan';
13
- import { safeStringify } from '../../common';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { detectStructuralType } from '../../pipeline/scan.js';
13
+ import { safeStringify } from '../../common/index.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { detectStructuralType } from '../../pipeline/scan';
13
- import { safeStringify } from '../../common';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { detectStructuralType } from '../../pipeline/scan.js';
13
+ import { safeStringify } from '../../common/index.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { detectStructuralType } from '../../pipeline/scan';
13
- import { safeStringify } from '../../common';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { detectStructuralType } from '../../pipeline/scan.js';
13
+ import { safeStringify } from '../../common/index.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,8 +8,8 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { detectStructuralType } from '../../pipeline/scan';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { detectStructuralType } from '../../pipeline/scan.js';
13
13
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
14
14
  |* Implementation *|
15
15
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,8 +8,8 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { detectStructuralType } from '../../pipeline/scan';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { detectStructuralType } from '../../pipeline/scan.js';
13
13
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
14
14
  |* Implementation *|
15
15
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { safeStringify } from '../../common';
13
- import { detectStructuralType } from '../../pipeline/scan';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { safeStringify } from '../../common/index.js';
13
+ import { detectStructuralType } from '../../pipeline/scan.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { safeStringify } from '../../common';
13
- import { detectStructuralType } from '../../pipeline/scan';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { safeStringify } from '../../common/index.js';
13
+ import { detectStructuralType } from '../../pipeline/scan.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { safeStringify } from '../../common';
13
- import { detectStructuralType } from '../../pipeline/scan';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { safeStringify } from '../../common/index.js';
13
+ import { detectStructuralType } from '../../pipeline/scan.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { safeStringify } from '../../common';
13
- import { detectStructuralType } from '../../pipeline/scan';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { safeStringify } from '../../common/index.js';
13
+ import { detectStructuralType } from '../../pipeline/scan.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -7,8 +7,8 @@
7
7
  * @see https://jane-io.com
8
8
  * ----------------------------------------------------------------------------
9
9
  */
10
- import { validationEvent } from '../../pipeline';
11
- import { detectStructuralType } from '../../pipeline/scan';
10
+ import { validationEvent } from '../../pipeline/index.js';
11
+ import { detectStructuralType } from '../../pipeline/scan.js';
12
12
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
13
13
  |* Implementation *|
14
14
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { safeStringify } from '../../common';
13
- import { detectStructuralType } from '../../pipeline/scan';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { safeStringify } from '../../common/index.js';
13
+ import { detectStructuralType } from '../../pipeline/scan.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { detectStructuralType } from '../../pipeline/scan';
13
- import { safeStringify } from '../../common';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { detectStructuralType } from '../../pipeline/scan.js';
13
+ import { safeStringify } from '../../common/index.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { detectStructuralType } from '../../pipeline/scan';
13
- import { safeStringify } from '../../common';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { detectStructuralType } from '../../pipeline/scan.js';
13
+ import { safeStringify } from '../../common/index.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { detectStructuralType } from '../../pipeline/scan';
13
- import { safeStringify } from '../../common';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { detectStructuralType } from '../../pipeline/scan.js';
13
+ import { safeStringify } from '../../common/index.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -7,8 +7,8 @@
7
7
  * @see https://jane-io.com
8
8
  * ----------------------------------------------------------------------------
9
9
  */
10
- import { validationEvent } from '../../pipeline';
11
- import { detectStructuralType } from '../../pipeline/scan';
10
+ import { validationEvent } from '../../pipeline/index.js';
11
+ import { detectStructuralType } from '../../pipeline/scan.js';
12
12
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
13
13
  |* Implementation *|
14
14
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
@@ -8,9 +8,9 @@
8
8
  * @see https://jane-io.com
9
9
  * ----------------------------------------------------------------------------
10
10
  */
11
- import { validationEvent } from '../../pipeline';
12
- import { safeStringify } from '../../common';
13
- import { detectStructuralType } from '../../pipeline/scan';
11
+ import { validationEvent } from '../../pipeline/index.js';
12
+ import { safeStringify } from '../../common/index.js';
13
+ import { detectStructuralType } from '../../pipeline/scan.js';
14
14
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
15
15
  |* Implementation *|
16
16
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
package/dist/index.d.ts CHANGED
@@ -16,68 +16,68 @@
16
16
  * policy configuration.
17
17
  */
18
18
  export declare const jane: {
19
- value(raw: unknown, path?: import("./core/shapes").FieldPath, options?: {
19
+ value(raw: unknown, path?: import("./core/shapes/field-path.js").FieldPath, options?: {
20
20
  inputName?: string;
21
- }): import("./core/shapes").PublicPipeline;
22
- boundary<TShape extends Record<string, import("./core/shapes").PublicPipeline>>(shape: TShape): Promise<{
23
- policy: import("./core/shapes").Policy;
21
+ }): import("./core/shapes/public.js").PublicPipeline;
22
+ boundary<TShape extends Record<string, import("./core/shapes/public.js").PublicPipeline>>(shape: TShape): Promise<{
23
+ policy: import("./core/shapes/policy.js").Policy;
24
24
  ok: boolean;
25
- issues?: readonly import("./core/shapes").JaneEvent[];
26
- events?: readonly import("./core/shapes").JaneEvent[];
25
+ issues?: readonly import("./core/shapes/events.js").JaneEvent[];
26
+ events?: readonly import("./core/shapes/events.js").JaneEvent[];
27
27
  values?: Record<string, unknown> | undefined;
28
- fields: Record<string, import("./core/shapes").JaneResult<unknown>>;
28
+ fields: Record<string, import("./core/shapes/public.js").JaneResult<unknown>>;
29
29
  metadata: {
30
30
  runId?: string;
31
31
  startedAt?: string;
32
32
  finishedAt?: string;
33
33
  durationMs?: number;
34
- fields: Record<string, import("./core/shapes").FieldMetadata>;
34
+ fields: Record<string, import("./core/shapes/pipeline.js").FieldMetadata>;
35
35
  };
36
36
  }>;
37
- withPolicy(input: import("./core/shapes").PolicyInput): /*elided*/ any;
38
- strictBoundary<TShape extends Record<string, import("./core/shapes").PublicPipeline>>(shape: TShape): Promise<{
39
- policy: import("./core/shapes").Policy;
37
+ withPolicy(input: import("./core/shapes/policy.js").PolicyInput): /*elided*/ any;
38
+ strictBoundary<TShape extends Record<string, import("./core/shapes/public.js").PublicPipeline>>(shape: TShape): Promise<{
39
+ policy: import("./core/shapes/policy.js").Policy;
40
40
  ok: boolean;
41
- issues?: readonly import("./core/shapes").JaneEvent[];
42
- events?: readonly import("./core/shapes").JaneEvent[];
41
+ issues?: readonly import("./core/shapes/events.js").JaneEvent[];
42
+ events?: readonly import("./core/shapes/events.js").JaneEvent[];
43
43
  values?: Record<string, unknown> | undefined;
44
- fields: Record<string, import("./core/shapes").JaneResult<unknown>>;
44
+ fields: Record<string, import("./core/shapes/public.js").JaneResult<unknown>>;
45
45
  metadata: {
46
46
  runId?: string;
47
47
  startedAt?: string;
48
48
  finishedAt?: string;
49
49
  durationMs?: number;
50
- fields: Record<string, import("./core/shapes").FieldMetadata>;
50
+ fields: Record<string, import("./core/shapes/pipeline.js").FieldMetadata>;
51
51
  };
52
52
  }>;
53
- laxBoundary<TShape extends Record<string, import("./core/shapes").PublicPipeline>>(shape: TShape): Promise<{
54
- policy: import("./core/shapes").Policy;
53
+ laxBoundary<TShape extends Record<string, import("./core/shapes/public.js").PublicPipeline>>(shape: TShape): Promise<{
54
+ policy: import("./core/shapes/policy.js").Policy;
55
55
  ok: boolean;
56
- issues?: readonly import("./core/shapes").JaneEvent[];
57
- events?: readonly import("./core/shapes").JaneEvent[];
56
+ issues?: readonly import("./core/shapes/events.js").JaneEvent[];
57
+ events?: readonly import("./core/shapes/events.js").JaneEvent[];
58
58
  values?: Record<string, unknown> | undefined;
59
- fields: Record<string, import("./core/shapes").JaneResult<unknown>>;
59
+ fields: Record<string, import("./core/shapes/public.js").JaneResult<unknown>>;
60
60
  metadata: {
61
61
  runId?: string;
62
62
  startedAt?: string;
63
63
  finishedAt?: string;
64
64
  durationMs?: number;
65
- fields: Record<string, import("./core/shapes").FieldMetadata>;
65
+ fields: Record<string, import("./core/shapes/pipeline.js").FieldMetadata>;
66
66
  };
67
67
  }>;
68
- defaultBoundary<TShape extends Record<string, import("./core/shapes").PublicPipeline>>(shape: TShape): Promise<{
69
- policy: import("./core/shapes").Policy;
68
+ defaultBoundary<TShape extends Record<string, import("./core/shapes/public.js").PublicPipeline>>(shape: TShape): Promise<{
69
+ policy: import("./core/shapes/policy.js").Policy;
70
70
  ok: boolean;
71
- issues?: readonly import("./core/shapes").JaneEvent[];
72
- events?: readonly import("./core/shapes").JaneEvent[];
71
+ issues?: readonly import("./core/shapes/events.js").JaneEvent[];
72
+ events?: readonly import("./core/shapes/events.js").JaneEvent[];
73
73
  values?: Record<string, unknown> | undefined;
74
- fields: Record<string, import("./core/shapes").JaneResult<unknown>>;
74
+ fields: Record<string, import("./core/shapes/public.js").JaneResult<unknown>>;
75
75
  metadata: {
76
76
  runId?: string;
77
77
  startedAt?: string;
78
78
  finishedAt?: string;
79
79
  durationMs?: number;
80
- fields: Record<string, import("./core/shapes").FieldMetadata>;
80
+ fields: Record<string, import("./core/shapes/pipeline.js").FieldMetadata>;
81
81
  };
82
82
  }>;
83
83
  };
package/dist/index.js CHANGED
@@ -11,8 +11,8 @@
11
11
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
12
12
  |* Internal Modules *|
13
13
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
14
- import { createJane } from './core/common/index';
15
- import { defaultPolicy } from './core/common/policy';
14
+ import { createJane } from './core/common/index.js';
15
+ import { defaultPolicy } from './core/common/policy.js';
16
16
  /* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
17
17
  |* Jane *|
18
18
  \* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
package/package.json CHANGED
@@ -41,7 +41,8 @@
41
41
  "test": "vitest",
42
42
  "test:ci": "vitest --coverage",
43
43
  "docs": "mkdocs serve",
44
- "build": "tsc -p tsconfig.json",
44
+ "build": "tsc -p tsconfig.json && npm run postbuild",
45
+ "postbuild": "node fix-imports.cjs",
45
46
  "release": "semantic-release"
46
47
  },
47
48
  "devDependencies": {
@@ -108,5 +109,5 @@
108
109
  "access": "public",
109
110
  "registry": "https://registry.npmjs.org/"
110
111
  },
111
- "version": "1.0.3"
112
+ "version": "1.0.5"
112
113
  }