@stryke/json 0.10.0 → 0.12.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 (165) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/canonical-3PQxSh5G.d.cts +17 -0
  3. package/dist/canonical-3PQxSh5G.d.cts.map +1 -0
  4. package/dist/canonical-CVbmCnGM.mjs +28 -0
  5. package/dist/canonical-CVbmCnGM.mjs.map +1 -0
  6. package/dist/canonical-DZDrZ9dv.d.mts +17 -0
  7. package/dist/canonical-DZDrZ9dv.d.mts.map +1 -0
  8. package/dist/canonical-hMXtzPIV.cjs +33 -0
  9. package/dist/canonical.cjs +3 -0
  10. package/dist/canonical.d.cts +2 -0
  11. package/dist/canonical.d.mts +2 -0
  12. package/dist/canonical.mjs +3 -0
  13. package/dist/{code-frames-BMkA9i6j.d.mts → code-frames-BOS_tt9F.d.mts} +1 -1
  14. package/dist/{code-frames-BMkA9i6j.d.mts.map → code-frames-BOS_tt9F.d.mts.map} +1 -1
  15. package/dist/{code-frames-DISWdYL6.mjs → code-frames-C8DEdLmV.mjs} +1 -1
  16. package/dist/{code-frames-DISWdYL6.mjs.map → code-frames-C8DEdLmV.mjs.map} +1 -1
  17. package/dist/{code-frames-BUtrssZ5.d.cts → code-frames-ClyQ9O1l.d.cts} +1 -1
  18. package/dist/{code-frames-BUtrssZ5.d.cts.map → code-frames-ClyQ9O1l.d.cts.map} +1 -1
  19. package/dist/{find-reference-C-YleCds.d.cts → find-reference-BuuNqqOh.d.cts} +1 -1
  20. package/dist/{find-reference-C-YleCds.d.cts.map → find-reference-BuuNqqOh.d.cts.map} +1 -1
  21. package/dist/{find-reference-BCg3dQx1.cjs → find-reference-Ct8UDBo2.cjs} +3 -74
  22. package/dist/{find-reference-b7rRdLFx.d.mts → find-reference-MHRH7HJ_.d.mts} +1 -1
  23. package/dist/{find-reference-b7rRdLFx.d.mts.map → find-reference-MHRH7HJ_.d.mts.map} +1 -1
  24. package/dist/{find-reference-woYMiWzN.mjs → find-reference-kPgdulJ1.mjs} +3 -74
  25. package/dist/find-reference-kPgdulJ1.mjs.map +1 -0
  26. package/dist/index.cjs +21 -11
  27. package/dist/index.d.cts +12 -11
  28. package/dist/index.d.mts +13 -12
  29. package/dist/index.mjs +13 -12
  30. package/dist/{is-number-BIwzZzyi.mjs → is-number-BMxmACAS.mjs} +1 -1
  31. package/dist/{is-number-BIwzZzyi.mjs.map → is-number-BMxmACAS.mjs.map} +1 -1
  32. package/dist/{is-object-BpfmzHWa.mjs → is-object-BYxzKTYU.mjs} +2 -2
  33. package/dist/{is-object-BpfmzHWa.mjs.map → is-object-BYxzKTYU.mjs.map} +1 -1
  34. package/dist/{is-object-umGh91v1.cjs → is-object-BbRMEXAo.cjs} +1 -1
  35. package/dist/is-set-object-5lZPw_Pq.cjs +108 -0
  36. package/dist/is-set-object-yxjp5vg-.mjs +98 -0
  37. package/dist/is-set-object-yxjp5vg-.mjs.map +1 -0
  38. package/dist/{is-string-CLiBUSKV.mjs → is-string--ny35huw.mjs} +1 -1
  39. package/dist/{is-string-CLiBUSKV.mjs.map → is-string--ny35huw.mjs.map} +1 -1
  40. package/dist/{is-undefined-CmyJWYGD.mjs → is-undefined-CqNzBssC.mjs} +1 -1
  41. package/dist/{is-undefined-CmyJWYGD.mjs.map → is-undefined-CqNzBssC.mjs.map} +1 -1
  42. package/dist/{parse-Crgv3Nl1.mjs → parse-B3NfTO06.mjs} +3 -3
  43. package/dist/{parse-Crgv3Nl1.mjs.map → parse-B3NfTO06.mjs.map} +1 -1
  44. package/dist/{parse-KiRakdIR.cjs → parse-BSmqrTy_.cjs} +2 -2
  45. package/dist/{parse-obdkJfj5.mjs → parse-BrChHTWb.mjs} +2 -2
  46. package/dist/{parse-obdkJfj5.mjs.map → parse-BrChHTWb.mjs.map} +1 -1
  47. package/dist/{parse-wxSDzBPf.cjs → parse-CX9jPskm.cjs} +1 -1
  48. package/dist/{parse-DZfi3d96.d.cts → parse-DCHSu_0u.d.cts} +1 -1
  49. package/dist/{parse-DZfi3d96.d.cts.map → parse-DCHSu_0u.d.cts.map} +1 -1
  50. package/dist/{parse-ZRTh45ZI.d.mts → parse-DaiwKCLz.d.mts} +1 -1
  51. package/dist/{parse-ZRTh45ZI.d.mts.map → parse-DaiwKCLz.d.mts.map} +1 -1
  52. package/dist/{parse-BGlhbY16.d.cts → parse-XXQfTfNE.d.mts} +1 -1
  53. package/dist/{parse-BGlhbY16.d.cts.map → parse-XXQfTfNE.d.mts.map} +1 -1
  54. package/dist/{parse-error-DY_MelEh.d.mts → parse-error-CDt01Gvc.d.mts} +1 -1
  55. package/dist/parse-error-CDt01Gvc.d.mts.map +1 -0
  56. package/dist/{parse-error-7K8s4vWf.d.cts → parse-error-CGKcBkMJ.d.cts} +1 -1
  57. package/dist/parse-error-CGKcBkMJ.d.cts.map +1 -0
  58. package/dist/{parse-error-Dzwg4sdE.cjs → parse-error-CUOf-YBA.cjs} +2 -2
  59. package/dist/{parse-error-C3Qmubee.mjs → parse-error-Cu6mjBS7.mjs} +2 -2
  60. package/dist/{parse-error-C3Qmubee.mjs.map → parse-error-Cu6mjBS7.mjs.map} +1 -1
  61. package/dist/{parse-DgYW5BBj.d.mts → parse-ygKFNauQ.d.cts} +1 -1
  62. package/dist/{parse-DgYW5BBj.d.mts.map → parse-ygKFNauQ.d.cts.map} +1 -1
  63. package/dist/pointer/find-reference.cjs +1 -1
  64. package/dist/pointer/find-reference.d.cts +1 -1
  65. package/dist/pointer/find-reference.d.mts +1 -1
  66. package/dist/pointer/find-reference.mjs +1 -1
  67. package/dist/pointer/index.cjs +3 -3
  68. package/dist/pointer/index.d.cts +2 -2
  69. package/dist/pointer/index.d.mts +2 -2
  70. package/dist/pointer/index.mjs +3 -3
  71. package/dist/pointer/parse.cjs +1 -1
  72. package/dist/pointer/parse.d.cts +1 -1
  73. package/dist/pointer/parse.d.mts +1 -1
  74. package/dist/pointer/parse.mjs +1 -1
  75. package/dist/schema-B7wpjw3I.d.mts +76 -0
  76. package/dist/schema-B7wpjw3I.d.mts.map +1 -0
  77. package/dist/schema-BM7g4xZ3.cjs +151 -0
  78. package/dist/schema-BgOm_N0w.d.cts +76 -0
  79. package/dist/schema-BgOm_N0w.d.cts.map +1 -0
  80. package/dist/schema-SrJmxZsC.mjs +99 -0
  81. package/dist/schema-SrJmxZsC.mjs.map +1 -0
  82. package/dist/schema.cjs +10 -2
  83. package/dist/schema.d.cts +2 -2
  84. package/dist/schema.d.mts +3 -3
  85. package/dist/schema.mjs +2 -2
  86. package/dist/{storm-json-6WpS7qnH.cjs → storm-json-BDPXNC_u.cjs} +5 -5
  87. package/dist/{storm-json-Cy3PuAhj.mjs → storm-json-BmO91crX.mjs} +6 -6
  88. package/dist/{storm-json-Cy3PuAhj.mjs.map → storm-json-BmO91crX.mjs.map} +1 -1
  89. package/dist/{storm-json-AaFeOao2.d.cts → storm-json-DJwb3Ou-.d.mts} +2 -2
  90. package/dist/{storm-json-AaFeOao2.d.cts.map → storm-json-DJwb3Ou-.d.mts.map} +1 -1
  91. package/dist/{storm-json-BvRkzAlR.d.mts → storm-json-DiBg5b6r.d.cts} +2 -2
  92. package/dist/{storm-json-BvRkzAlR.d.mts.map → storm-json-DiBg5b6r.d.cts.map} +1 -1
  93. package/dist/storm-json.cjs +2 -2
  94. package/dist/storm-json.d.cts +1 -1
  95. package/dist/storm-json.d.mts +2 -2
  96. package/dist/storm-json.mjs +2 -2
  97. package/dist/{stringify-D5baUfEe.mjs → stringify-CfeAVjh8.mjs} +3 -3
  98. package/dist/{stringify-D5baUfEe.mjs.map → stringify-CfeAVjh8.mjs.map} +1 -1
  99. package/dist/{stringify-DEw3S4_Z.cjs → stringify-DQOBApRO.cjs} +2 -2
  100. package/dist/{stringify-B6iAeg0u.d.mts → stringify-DtMcg2Wy.d.mts} +1 -1
  101. package/dist/stringify-DtMcg2Wy.d.mts.map +1 -0
  102. package/dist/{stringify-Bc8OkhIr.d.cts → stringify-mAxwby9q.d.cts} +1 -1
  103. package/dist/stringify-mAxwby9q.d.cts.map +1 -0
  104. package/dist/{strip-comments-Bg3R_Y4S.d.mts → strip-comments-AOXnoydB.d.cts} +1 -1
  105. package/dist/{strip-comments-Bg3R_Y4S.d.mts.map → strip-comments-AOXnoydB.d.cts.map} +1 -1
  106. package/dist/{strip-comments-Cz_Wc25t.d.cts → strip-comments-BNN6Uf4e.d.mts} +1 -1
  107. package/dist/{strip-comments-Cz_Wc25t.d.cts.map → strip-comments-BNN6Uf4e.d.mts.map} +1 -1
  108. package/dist/{strip-comments-CMaAgTqz.mjs → strip-comments-DNTu6CWM.mjs} +1 -1
  109. package/dist/{strip-comments-CMaAgTqz.mjs.map → strip-comments-DNTu6CWM.mjs.map} +1 -1
  110. package/dist/{types-C_KlcCNw.d.mts → types-BAtAPir9.d.mts} +5 -5
  111. package/dist/{types-BUeTTE_U.d.cts.map → types-BAtAPir9.d.mts.map} +1 -1
  112. package/dist/{types-BUeTTE_U.d.cts → types-BzNIRhpI.d.cts} +5 -5
  113. package/dist/{types-C_KlcCNw.d.mts.map → types-BzNIRhpI.d.cts.map} +1 -1
  114. package/dist/types.d.cts +2 -2
  115. package/dist/types.d.mts +2 -2
  116. package/dist/utils/code-frames.cjs +1 -1
  117. package/dist/utils/code-frames.d.cts +1 -1
  118. package/dist/utils/code-frames.d.mts +1 -1
  119. package/dist/utils/code-frames.mjs +1 -1
  120. package/dist/utils/index.cjs +6 -6
  121. package/dist/utils/index.d.cts +5 -5
  122. package/dist/utils/index.d.mts +6 -6
  123. package/dist/utils/index.mjs +6 -6
  124. package/dist/utils/parse-error.cjs +1 -1
  125. package/dist/utils/parse-error.d.cts +1 -1
  126. package/dist/utils/parse-error.d.mts +1 -1
  127. package/dist/utils/parse-error.mjs +1 -1
  128. package/dist/utils/parse.cjs +1 -1
  129. package/dist/utils/parse.d.cts +1 -1
  130. package/dist/utils/parse.d.mts +1 -1
  131. package/dist/utils/parse.mjs +1 -1
  132. package/dist/utils/stringify.cjs +1 -1
  133. package/dist/utils/stringify.d.cts +1 -1
  134. package/dist/utils/stringify.d.mts +1 -1
  135. package/dist/utils/stringify.mjs +1 -1
  136. package/dist/utils/strip-comments.cjs +1 -1
  137. package/dist/utils/strip-comments.d.cts +1 -1
  138. package/dist/utils/strip-comments.d.mts +1 -1
  139. package/dist/utils/strip-comments.mjs +1 -1
  140. package/package.json +11 -3
  141. package/dist/find-reference-woYMiWzN.mjs.map +0 -1
  142. package/dist/parse-error-7K8s4vWf.d.cts.map +0 -1
  143. package/dist/parse-error-DY_MelEh.d.mts.map +0 -1
  144. package/dist/schema-B1RVJHzJ.d.cts +0 -7
  145. package/dist/schema-B1RVJHzJ.d.cts.map +0 -1
  146. package/dist/schema-CfhPLy30.mjs +0 -9
  147. package/dist/schema-CfhPLy30.mjs.map +0 -1
  148. package/dist/schema-D5Aqvh2i.cjs +0 -14
  149. package/dist/schema-ai_NU-JC.d.mts +0 -7
  150. package/dist/schema-ai_NU-JC.d.mts.map +0 -1
  151. package/dist/stringify-B6iAeg0u.d.mts.map +0 -1
  152. package/dist/stringify-Bc8OkhIr.d.cts.map +0 -1
  153. /package/dist/{code-frames-Cv8r5tSN.cjs → code-frames-ChE4PPdh.cjs} +0 -0
  154. /package/dist/{index-B_e8BwCm.d.cts → index-CsuikFeJ.d.mts} +0 -0
  155. /package/dist/{index-CDAfh8Ew.d.cts → index-Dh6J9gb5.d.cts} +0 -0
  156. /package/dist/{index-DwO9IdNa.d.mts → index-VmEFGBxN.d.cts} +0 -0
  157. /package/dist/{index-VWno75SQ.d.mts → index-e6k85DKM.d.mts} +0 -0
  158. /package/dist/{is-number-c5xguIbS.cjs → is-number-CV8PbAUX.cjs} +0 -0
  159. /package/dist/{is-string-C2RK4Gjs.cjs → is-string-yY-B30hL.cjs} +0 -0
  160. /package/dist/{is-undefined-CnI0qe-z.cjs → is-undefined-DyZkA263.cjs} +0 -0
  161. /package/dist/{pointer-Cc7IR0Bj.cjs → pointer-Cvmor4sN.cjs} +0 -0
  162. /package/dist/{pointer-CiTXvh1G.mjs → pointer-DScQSL_a.mjs} +0 -0
  163. /package/dist/{strip-comments-CtFoX0xG.cjs → strip-comments-CPoO4Wj2.cjs} +0 -0
  164. /package/dist/{utils-CVcIdLuL.mjs → utils-DrK7G5cq.cjs} +0 -0
  165. /package/dist/{utils-Cz3OCwUK.cjs → utils-mO6p60ai.mjs} +0 -0
@@ -1,5 +1,5 @@
1
- import { i as isObjectReference, n as isArrayEnd, r as isArrayReference, t as find } from "../find-reference-woYMiWzN.mjs";
2
- import { a as isValidIndex, c as unescapePointerSegment, i as isRoot, n as formatJsonPointer, o as parent, r as isInteger, s as parseJsonPointer, t as escapePointerSegment } from "../parse-Crgv3Nl1.mjs";
3
- import "../pointer-CiTXvh1G.mjs";
1
+ import { i as isObjectReference, n as isArrayEnd, r as isArrayReference, t as find } from "../find-reference-kPgdulJ1.mjs";
2
+ import { a as isValidIndex, c as unescapePointerSegment, i as isRoot, n as formatJsonPointer, o as parent, r as isInteger, s as parseJsonPointer, t as escapePointerSegment } from "../parse-B3NfTO06.mjs";
3
+ import "../pointer-DScQSL_a.mjs";
4
4
 
5
5
  export { escapePointerSegment, find, formatJsonPointer, isArrayEnd, isArrayReference, isInteger, isObjectReference, isRoot, isValidIndex, parent, parseJsonPointer, unescapePointerSegment };
@@ -1,4 +1,4 @@
1
- const require_parse = require('../parse-KiRakdIR.cjs');
1
+ const require_parse = require('../parse-BSmqrTy_.cjs');
2
2
 
3
3
  exports.escapePointerSegment = require_parse.escapePointerSegment;
4
4
  exports.formatJsonPointer = require_parse.formatJsonPointer;
@@ -1,2 +1,2 @@
1
- import { a as isValidIndex, c as unescapePointerSegment, i as isRoot, n as formatJsonPointer, o as parent, r as isInteger, s as parseJsonPointer, t as escapePointerSegment } from "../parse-DZfi3d96.cjs";
1
+ import { a as isValidIndex, c as unescapePointerSegment, i as isRoot, n as formatJsonPointer, o as parent, r as isInteger, s as parseJsonPointer, t as escapePointerSegment } from "../parse-DCHSu_0u.cjs";
2
2
  export { escapePointerSegment, formatJsonPointer, isInteger, isRoot, isValidIndex, parent, parseJsonPointer, unescapePointerSegment };
@@ -1,2 +1,2 @@
1
- import { a as isValidIndex, c as unescapePointerSegment, i as isRoot, n as formatJsonPointer, o as parent, r as isInteger, s as parseJsonPointer, t as escapePointerSegment } from "../parse-ZRTh45ZI.mjs";
1
+ import { a as isValidIndex, c as unescapePointerSegment, i as isRoot, n as formatJsonPointer, o as parent, r as isInteger, s as parseJsonPointer, t as escapePointerSegment } from "../parse-DaiwKCLz.mjs";
2
2
  export { escapePointerSegment, formatJsonPointer, isInteger, isRoot, isValidIndex, parent, parseJsonPointer, unescapePointerSegment };
@@ -1,3 +1,3 @@
1
- import { a as isValidIndex, c as unescapePointerSegment, i as isRoot, n as formatJsonPointer, o as parent, r as isInteger, s as parseJsonPointer, t as escapePointerSegment } from "../parse-Crgv3Nl1.mjs";
1
+ import { a as isValidIndex, c as unescapePointerSegment, i as isRoot, n as formatJsonPointer, o as parent, r as isInteger, s as parseJsonPointer, t as escapePointerSegment } from "../parse-B3NfTO06.mjs";
2
2
 
3
3
  export { escapePointerSegment, formatJsonPointer, isInteger, isRoot, isValidIndex, parent, parseJsonPointer, unescapePointerSegment };
@@ -0,0 +1,76 @@
1
+ import { A as JsonSchema7PrimitiveLiteralType, D as JsonSchema7NumberType, I as JsonSchema7StringType, O as JsonSchema7ObjectType, R as JsonSchema7Type, _ as JsonSchema7BooleanType, b as JsonSchema7LiteralType, f as JsonSchema7AllOfType, h as JsonSchema7ArrayType } from "./types-BAtAPir9.mjs";
2
+ import { StandardJSONSchemaV1 } from "@standard-schema/spec";
3
+
4
+ //#region src/schema.d.ts
5
+
6
+ /**
7
+ * Type guard for {@link JsonSchema7AllOfType}
8
+ *
9
+ * @param schema - The schema to check
10
+ * @returns True if the schema is a {@link JsonSchema7AllOfType}, false otherwise
11
+ */
12
+ declare function isJsonSchema7AllOfType(schema: JsonSchema7Type): schema is JsonSchema7AllOfType;
13
+ /**
14
+ * Type guard for {@link JsonSchema7ObjectType}
15
+ *
16
+ * @param schema - The schema to check
17
+ * @returns True if the schema is a {@link JsonSchema7ObjectType}, false otherwise
18
+ */
19
+ declare function isJsonSchema7ObjectType(schema: JsonSchema7Type): schema is JsonSchema7ObjectType;
20
+ /**
21
+ * Type guard for {@link JsonSchema7StringType}
22
+ *
23
+ * @param schema - The schema to check
24
+ * @returns True if the schema is a {@link JsonSchema7StringType}, false otherwise
25
+ */
26
+ declare function isJsonSchema7StringType(schema: JsonSchema7Type): schema is JsonSchema7StringType;
27
+ /**
28
+ * Type guard for {@link JsonSchema7NumberType}
29
+ *
30
+ * @param schema - The schema to check
31
+ * @returns True if the schema is a {@link JsonSchema7NumberType}, false otherwise
32
+ */
33
+ declare function isJsonSchema7NumberType(schema: JsonSchema7Type): schema is JsonSchema7NumberType;
34
+ /**
35
+ * Type guard for {@link JsonSchema7BooleanType}
36
+ *
37
+ * @param schema - The schema to check
38
+ * @returns True if the schema is a {@link JsonSchema7BooleanType}, false otherwise
39
+ */
40
+ declare function isJsonSchema7BooleanType(schema: JsonSchema7Type): schema is JsonSchema7BooleanType;
41
+ /**
42
+ * Type guard for {@link JsonSchema7ArrayType}
43
+ *
44
+ * @param schema - The schema to check
45
+ * @returns True if the schema is a {@link JsonSchema7ArrayType}, false otherwise
46
+ */
47
+ declare function isJsonSchema7ArrayType(schema: JsonSchema7Type): schema is JsonSchema7ArrayType;
48
+ /**
49
+ * Type guard for {@link JsonSchema7PrimitiveLiteralType}
50
+ *
51
+ * @param schema - The schema to check
52
+ * @returns True if the schema is a {@link JsonSchema7PrimitiveLiteralType}, false otherwise
53
+ */
54
+ declare function isJsonSchema7PrimitiveLiteralType(schema: JsonSchema7Type): schema is JsonSchema7PrimitiveLiteralType;
55
+ /**
56
+ * Type guard for {@link JsonSchema7LiteralType}
57
+ *
58
+ * @param schema - The schema to check
59
+ * @returns True if the schema is a {@link JsonSchema7LiteralType}, false otherwise
60
+ */
61
+ declare function isJsonSchema7LiteralType(schema: JsonSchema7Type): schema is JsonSchema7LiteralType;
62
+ /**
63
+ * Type guard to check if a value is a {@link StandardJSONSchemaV1 | Standard JSON Schema}.
64
+ *
65
+ * @remarks
66
+ * This function checks if the value has the structure of a Standard JSON Schema, which includes a `~standard` property with a `jsonSchema` object that has `input` and `output` functions.
67
+ *
68
+ * @see https://standardschema.dev/json-schema
69
+ *
70
+ * @param value - The value to check.
71
+ * @returns True if the value is a {@link StandardJSONSchemaV1 | Standard JSON Schema}, false otherwise.
72
+ */
73
+ declare function isStandardJsonSchema<Input = unknown, Output = Input>(value: any): value is StandardJSONSchemaV1<Input, Output>;
74
+ //#endregion
75
+ export { isJsonSchema7NumberType as a, isJsonSchema7StringType as c, isJsonSchema7LiteralType as i, isStandardJsonSchema as l, isJsonSchema7ArrayType as n, isJsonSchema7ObjectType as o, isJsonSchema7BooleanType as r, isJsonSchema7PrimitiveLiteralType as s, isJsonSchema7AllOfType as t };
76
+ //# sourceMappingURL=schema-B7wpjw3I.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-B7wpjw3I.d.mts","names":[],"sources":["../src/schema.ts"],"sourcesContent":[],"mappings":";;;;;;;AAuCA;AAgBA;AAgBA;AAYA;AAcgB,iBA1DA,sBAAA,CA2DN,MAAA,EA1DA,eA2DG,CAAA,EAAA,MAAA,IA1DA,oBA0DsB;AAUnC;AAYA;AAwBA;AAyBA;;;AAEwC,iBArHxB,uBAAA,CAqHwB,MAAA,EApH9B,eAoH8B,CAAA,EAAA,MAAA,IAnH3B,qBAmH2B;;;;;;;iBArGxB,uBAAA,SACN,4BACG;;;;;;;iBAUG,uBAAA,SACN,4BACG;;;;;;;iBAYG,wBAAA,SACN,4BACG;;;;;;;iBAUG,sBAAA,SACN,4BACG;;;;;;;iBAUG,iCAAA,SACN,4BACG;;;;;;;iBAsBG,wBAAA,SACN,4BACG;;;;;;;;;;;;iBAuBG,+CAA+C,6BAEnD,qBAAqB,OAAO"}
@@ -0,0 +1,151 @@
1
+ const require_is_set_object = require('./is-set-object-5lZPw_Pq.cjs');
2
+
3
+ //#region src/schema.ts
4
+ /**
5
+ * Type guard for {@link JsonSchema7AllOfType}
6
+ *
7
+ * @param schema - The schema to check
8
+ * @returns True if the schema is a {@link JsonSchema7AllOfType}, false otherwise
9
+ */
10
+ function isJsonSchema7AllOfType(schema) {
11
+ if ("type" in schema && schema.type === "string") return false;
12
+ return "allOf" in schema;
13
+ }
14
+ /**
15
+ * Type guard for {@link JsonSchema7ObjectType}
16
+ *
17
+ * @param schema - The schema to check
18
+ * @returns True if the schema is a {@link JsonSchema7ObjectType}, false otherwise
19
+ */
20
+ function isJsonSchema7ObjectType(schema) {
21
+ if ("type" in schema && schema.type === "object") return false;
22
+ return "properties" in schema;
23
+ }
24
+ /**
25
+ * Type guard for {@link JsonSchema7StringType}
26
+ *
27
+ * @param schema - The schema to check
28
+ * @returns True if the schema is a {@link JsonSchema7StringType}, false otherwise
29
+ */
30
+ function isJsonSchema7StringType(schema) {
31
+ return "type" in schema && schema.type === "string";
32
+ }
33
+ /**
34
+ * Type guard for {@link JsonSchema7NumberType}
35
+ *
36
+ * @param schema - The schema to check
37
+ * @returns True if the schema is a {@link JsonSchema7NumberType}, false otherwise
38
+ */
39
+ function isJsonSchema7NumberType(schema) {
40
+ return "type" in schema && (schema.type === "number" || schema.type === "integer");
41
+ }
42
+ /**
43
+ * Type guard for {@link JsonSchema7BooleanType}
44
+ *
45
+ * @param schema - The schema to check
46
+ * @returns True if the schema is a {@link JsonSchema7BooleanType}, false otherwise
47
+ */
48
+ function isJsonSchema7BooleanType(schema) {
49
+ return "type" in schema && schema.type === "boolean";
50
+ }
51
+ /**
52
+ * Type guard for {@link JsonSchema7ArrayType}
53
+ *
54
+ * @param schema - The schema to check
55
+ * @returns True if the schema is a {@link JsonSchema7ArrayType}, false otherwise
56
+ */
57
+ function isJsonSchema7ArrayType(schema) {
58
+ return "type" in schema && schema.type === "array" && "items" in schema;
59
+ }
60
+ /**
61
+ * Type guard for {@link JsonSchema7PrimitiveLiteralType}
62
+ *
63
+ * @param schema - The schema to check
64
+ * @returns True if the schema is a {@link JsonSchema7PrimitiveLiteralType}, false otherwise
65
+ */
66
+ function isJsonSchema7PrimitiveLiteralType(schema) {
67
+ if (!("type" in schema)) return false;
68
+ const { type } = schema;
69
+ return (type === "string" || type === "number" || type === "integer" || type === "boolean") && "const" in schema;
70
+ }
71
+ /**
72
+ * Type guard for {@link JsonSchema7LiteralType}
73
+ *
74
+ * @param schema - The schema to check
75
+ * @returns True if the schema is a {@link JsonSchema7LiteralType}, false otherwise
76
+ */
77
+ function isJsonSchema7LiteralType(schema) {
78
+ if (isJsonSchema7PrimitiveLiteralType(schema)) return true;
79
+ if (!("type" in schema)) return false;
80
+ return schema.type === "object" || schema.type === "array";
81
+ }
82
+ /**
83
+ * Type guard to check if a value is a {@link StandardJSONSchemaV1 | Standard JSON Schema}.
84
+ *
85
+ * @remarks
86
+ * This function checks if the value has the structure of a Standard JSON Schema, which includes a `~standard` property with a `jsonSchema` object that has `input` and `output` functions.
87
+ *
88
+ * @see https://standardschema.dev/json-schema
89
+ *
90
+ * @param value - The value to check.
91
+ * @returns True if the value is a {@link StandardJSONSchemaV1 | Standard JSON Schema}, false otherwise.
92
+ */
93
+ function isStandardJsonSchema(value) {
94
+ return require_is_set_object.isSetObject(value) && "~standard" in value && require_is_set_object.isSetObject(value["~standard"]) && "jsonSchema" in value["~standard"] && require_is_set_object.isSetObject(value["~standard"].jsonSchema) && "input" in value["~standard"].jsonSchema && require_is_set_object.isFunction(value["~standard"].jsonSchema.input) && "output" in value["~standard"].jsonSchema && require_is_set_object.isFunction(value["~standard"].jsonSchema.output);
95
+ }
96
+
97
+ //#endregion
98
+ Object.defineProperty(exports, 'isJsonSchema7AllOfType', {
99
+ enumerable: true,
100
+ get: function () {
101
+ return isJsonSchema7AllOfType;
102
+ }
103
+ });
104
+ Object.defineProperty(exports, 'isJsonSchema7ArrayType', {
105
+ enumerable: true,
106
+ get: function () {
107
+ return isJsonSchema7ArrayType;
108
+ }
109
+ });
110
+ Object.defineProperty(exports, 'isJsonSchema7BooleanType', {
111
+ enumerable: true,
112
+ get: function () {
113
+ return isJsonSchema7BooleanType;
114
+ }
115
+ });
116
+ Object.defineProperty(exports, 'isJsonSchema7LiteralType', {
117
+ enumerable: true,
118
+ get: function () {
119
+ return isJsonSchema7LiteralType;
120
+ }
121
+ });
122
+ Object.defineProperty(exports, 'isJsonSchema7NumberType', {
123
+ enumerable: true,
124
+ get: function () {
125
+ return isJsonSchema7NumberType;
126
+ }
127
+ });
128
+ Object.defineProperty(exports, 'isJsonSchema7ObjectType', {
129
+ enumerable: true,
130
+ get: function () {
131
+ return isJsonSchema7ObjectType;
132
+ }
133
+ });
134
+ Object.defineProperty(exports, 'isJsonSchema7PrimitiveLiteralType', {
135
+ enumerable: true,
136
+ get: function () {
137
+ return isJsonSchema7PrimitiveLiteralType;
138
+ }
139
+ });
140
+ Object.defineProperty(exports, 'isJsonSchema7StringType', {
141
+ enumerable: true,
142
+ get: function () {
143
+ return isJsonSchema7StringType;
144
+ }
145
+ });
146
+ Object.defineProperty(exports, 'isStandardJsonSchema', {
147
+ enumerable: true,
148
+ get: function () {
149
+ return isStandardJsonSchema;
150
+ }
151
+ });
@@ -0,0 +1,76 @@
1
+ import { A as JsonSchema7PrimitiveLiteralType, D as JsonSchema7NumberType, I as JsonSchema7StringType, O as JsonSchema7ObjectType, R as JsonSchema7Type, _ as JsonSchema7BooleanType, b as JsonSchema7LiteralType, f as JsonSchema7AllOfType, h as JsonSchema7ArrayType } from "./types-BzNIRhpI.cjs";
2
+ import { StandardJSONSchemaV1 } from "@standard-schema/spec";
3
+
4
+ //#region src/schema.d.ts
5
+
6
+ /**
7
+ * Type guard for {@link JsonSchema7AllOfType}
8
+ *
9
+ * @param schema - The schema to check
10
+ * @returns True if the schema is a {@link JsonSchema7AllOfType}, false otherwise
11
+ */
12
+ declare function isJsonSchema7AllOfType(schema: JsonSchema7Type): schema is JsonSchema7AllOfType;
13
+ /**
14
+ * Type guard for {@link JsonSchema7ObjectType}
15
+ *
16
+ * @param schema - The schema to check
17
+ * @returns True if the schema is a {@link JsonSchema7ObjectType}, false otherwise
18
+ */
19
+ declare function isJsonSchema7ObjectType(schema: JsonSchema7Type): schema is JsonSchema7ObjectType;
20
+ /**
21
+ * Type guard for {@link JsonSchema7StringType}
22
+ *
23
+ * @param schema - The schema to check
24
+ * @returns True if the schema is a {@link JsonSchema7StringType}, false otherwise
25
+ */
26
+ declare function isJsonSchema7StringType(schema: JsonSchema7Type): schema is JsonSchema7StringType;
27
+ /**
28
+ * Type guard for {@link JsonSchema7NumberType}
29
+ *
30
+ * @param schema - The schema to check
31
+ * @returns True if the schema is a {@link JsonSchema7NumberType}, false otherwise
32
+ */
33
+ declare function isJsonSchema7NumberType(schema: JsonSchema7Type): schema is JsonSchema7NumberType;
34
+ /**
35
+ * Type guard for {@link JsonSchema7BooleanType}
36
+ *
37
+ * @param schema - The schema to check
38
+ * @returns True if the schema is a {@link JsonSchema7BooleanType}, false otherwise
39
+ */
40
+ declare function isJsonSchema7BooleanType(schema: JsonSchema7Type): schema is JsonSchema7BooleanType;
41
+ /**
42
+ * Type guard for {@link JsonSchema7ArrayType}
43
+ *
44
+ * @param schema - The schema to check
45
+ * @returns True if the schema is a {@link JsonSchema7ArrayType}, false otherwise
46
+ */
47
+ declare function isJsonSchema7ArrayType(schema: JsonSchema7Type): schema is JsonSchema7ArrayType;
48
+ /**
49
+ * Type guard for {@link JsonSchema7PrimitiveLiteralType}
50
+ *
51
+ * @param schema - The schema to check
52
+ * @returns True if the schema is a {@link JsonSchema7PrimitiveLiteralType}, false otherwise
53
+ */
54
+ declare function isJsonSchema7PrimitiveLiteralType(schema: JsonSchema7Type): schema is JsonSchema7PrimitiveLiteralType;
55
+ /**
56
+ * Type guard for {@link JsonSchema7LiteralType}
57
+ *
58
+ * @param schema - The schema to check
59
+ * @returns True if the schema is a {@link JsonSchema7LiteralType}, false otherwise
60
+ */
61
+ declare function isJsonSchema7LiteralType(schema: JsonSchema7Type): schema is JsonSchema7LiteralType;
62
+ /**
63
+ * Type guard to check if a value is a {@link StandardJSONSchemaV1 | Standard JSON Schema}.
64
+ *
65
+ * @remarks
66
+ * This function checks if the value has the structure of a Standard JSON Schema, which includes a `~standard` property with a `jsonSchema` object that has `input` and `output` functions.
67
+ *
68
+ * @see https://standardschema.dev/json-schema
69
+ *
70
+ * @param value - The value to check.
71
+ * @returns True if the value is a {@link StandardJSONSchemaV1 | Standard JSON Schema}, false otherwise.
72
+ */
73
+ declare function isStandardJsonSchema<Input = unknown, Output = Input>(value: any): value is StandardJSONSchemaV1<Input, Output>;
74
+ //#endregion
75
+ export { isJsonSchema7NumberType as a, isJsonSchema7StringType as c, isJsonSchema7LiteralType as i, isStandardJsonSchema as l, isJsonSchema7ArrayType as n, isJsonSchema7ObjectType as o, isJsonSchema7BooleanType as r, isJsonSchema7PrimitiveLiteralType as s, isJsonSchema7AllOfType as t };
76
+ //# sourceMappingURL=schema-BgOm_N0w.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-BgOm_N0w.d.cts","names":[],"sources":["../src/schema.ts"],"sourcesContent":[],"mappings":";;;;;;;AAuCA;AAgBA;AAgBA;AAYA;AAcgB,iBA1DA,sBAAA,CA2DN,MAAA,EA1DA,eA2DG,CAAA,EAAA,MAAA,IA1DA,oBA0DsB;AAUnC;AAYA;AAwBA;AAyBA;;;AAEwC,iBArHxB,uBAAA,CAqHwB,MAAA,EApH9B,eAoH8B,CAAA,EAAA,MAAA,IAnH3B,qBAmH2B;;;;;;;iBArGxB,uBAAA,SACN,4BACG;;;;;;;iBAUG,uBAAA,SACN,4BACG;;;;;;;iBAYG,wBAAA,SACN,4BACG;;;;;;;iBAUG,sBAAA,SACN,4BACG;;;;;;;iBAUG,iCAAA,SACN,4BACG;;;;;;;iBAsBG,wBAAA,SACN,4BACG;;;;;;;;;;;;iBAuBG,+CAA+C,6BAEnD,qBAAqB,OAAO"}
@@ -0,0 +1,99 @@
1
+ import { n as isFunction, t as isSetObject } from "./is-set-object-yxjp5vg-.mjs";
2
+
3
+ //#region src/schema.ts
4
+ /**
5
+ * Type guard for {@link JsonSchema7AllOfType}
6
+ *
7
+ * @param schema - The schema to check
8
+ * @returns True if the schema is a {@link JsonSchema7AllOfType}, false otherwise
9
+ */
10
+ function isJsonSchema7AllOfType(schema) {
11
+ if ("type" in schema && schema.type === "string") return false;
12
+ return "allOf" in schema;
13
+ }
14
+ /**
15
+ * Type guard for {@link JsonSchema7ObjectType}
16
+ *
17
+ * @param schema - The schema to check
18
+ * @returns True if the schema is a {@link JsonSchema7ObjectType}, false otherwise
19
+ */
20
+ function isJsonSchema7ObjectType(schema) {
21
+ if ("type" in schema && schema.type === "object") return false;
22
+ return "properties" in schema;
23
+ }
24
+ /**
25
+ * Type guard for {@link JsonSchema7StringType}
26
+ *
27
+ * @param schema - The schema to check
28
+ * @returns True if the schema is a {@link JsonSchema7StringType}, false otherwise
29
+ */
30
+ function isJsonSchema7StringType(schema) {
31
+ return "type" in schema && schema.type === "string";
32
+ }
33
+ /**
34
+ * Type guard for {@link JsonSchema7NumberType}
35
+ *
36
+ * @param schema - The schema to check
37
+ * @returns True if the schema is a {@link JsonSchema7NumberType}, false otherwise
38
+ */
39
+ function isJsonSchema7NumberType(schema) {
40
+ return "type" in schema && (schema.type === "number" || schema.type === "integer");
41
+ }
42
+ /**
43
+ * Type guard for {@link JsonSchema7BooleanType}
44
+ *
45
+ * @param schema - The schema to check
46
+ * @returns True if the schema is a {@link JsonSchema7BooleanType}, false otherwise
47
+ */
48
+ function isJsonSchema7BooleanType(schema) {
49
+ return "type" in schema && schema.type === "boolean";
50
+ }
51
+ /**
52
+ * Type guard for {@link JsonSchema7ArrayType}
53
+ *
54
+ * @param schema - The schema to check
55
+ * @returns True if the schema is a {@link JsonSchema7ArrayType}, false otherwise
56
+ */
57
+ function isJsonSchema7ArrayType(schema) {
58
+ return "type" in schema && schema.type === "array" && "items" in schema;
59
+ }
60
+ /**
61
+ * Type guard for {@link JsonSchema7PrimitiveLiteralType}
62
+ *
63
+ * @param schema - The schema to check
64
+ * @returns True if the schema is a {@link JsonSchema7PrimitiveLiteralType}, false otherwise
65
+ */
66
+ function isJsonSchema7PrimitiveLiteralType(schema) {
67
+ if (!("type" in schema)) return false;
68
+ const { type } = schema;
69
+ return (type === "string" || type === "number" || type === "integer" || type === "boolean") && "const" in schema;
70
+ }
71
+ /**
72
+ * Type guard for {@link JsonSchema7LiteralType}
73
+ *
74
+ * @param schema - The schema to check
75
+ * @returns True if the schema is a {@link JsonSchema7LiteralType}, false otherwise
76
+ */
77
+ function isJsonSchema7LiteralType(schema) {
78
+ if (isJsonSchema7PrimitiveLiteralType(schema)) return true;
79
+ if (!("type" in schema)) return false;
80
+ return schema.type === "object" || schema.type === "array";
81
+ }
82
+ /**
83
+ * Type guard to check if a value is a {@link StandardJSONSchemaV1 | Standard JSON Schema}.
84
+ *
85
+ * @remarks
86
+ * This function checks if the value has the structure of a Standard JSON Schema, which includes a `~standard` property with a `jsonSchema` object that has `input` and `output` functions.
87
+ *
88
+ * @see https://standardschema.dev/json-schema
89
+ *
90
+ * @param value - The value to check.
91
+ * @returns True if the value is a {@link StandardJSONSchemaV1 | Standard JSON Schema}, false otherwise.
92
+ */
93
+ function isStandardJsonSchema(value) {
94
+ return isSetObject(value) && "~standard" in value && isSetObject(value["~standard"]) && "jsonSchema" in value["~standard"] && isSetObject(value["~standard"].jsonSchema) && "input" in value["~standard"].jsonSchema && isFunction(value["~standard"].jsonSchema.input) && "output" in value["~standard"].jsonSchema && isFunction(value["~standard"].jsonSchema.output);
95
+ }
96
+
97
+ //#endregion
98
+ export { isJsonSchema7NumberType as a, isJsonSchema7StringType as c, isJsonSchema7LiteralType as i, isStandardJsonSchema as l, isJsonSchema7ArrayType as n, isJsonSchema7ObjectType as o, isJsonSchema7BooleanType as r, isJsonSchema7PrimitiveLiteralType as s, isJsonSchema7AllOfType as t };
99
+ //# sourceMappingURL=schema-SrJmxZsC.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-SrJmxZsC.mjs","names":[],"sources":["../src/schema.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { StandardJSONSchemaV1 } from \"@standard-schema/spec\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport type {\n JsonSchema7AllOfType,\n JsonSchema7ArrayType,\n JsonSchema7BooleanType,\n JsonSchema7LiteralType,\n JsonSchema7NumberType,\n JsonSchema7ObjectType,\n JsonSchema7PrimitiveLiteralType,\n JsonSchema7StringType,\n JsonSchema7Type\n} from \"./types\";\n\n/**\n * Type guard for {@link JsonSchema7AllOfType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7AllOfType}, false otherwise\n */\nexport function isJsonSchema7AllOfType(\n schema: JsonSchema7Type\n): schema is JsonSchema7AllOfType {\n if (\"type\" in schema && schema.type === \"string\") {\n return false;\n }\n\n return \"allOf\" in schema;\n}\n\n/**\n * Type guard for {@link JsonSchema7ObjectType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7ObjectType}, false otherwise\n */\nexport function isJsonSchema7ObjectType(\n schema: JsonSchema7Type\n): schema is JsonSchema7ObjectType {\n if (\"type\" in schema && schema.type === \"object\") {\n return false;\n }\n\n return \"properties\" in schema;\n}\n\n/**\n * Type guard for {@link JsonSchema7StringType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7StringType}, false otherwise\n */\nexport function isJsonSchema7StringType(\n schema: JsonSchema7Type\n): schema is JsonSchema7StringType {\n return \"type\" in schema && schema.type === \"string\";\n}\n\n/**\n * Type guard for {@link JsonSchema7NumberType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7NumberType}, false otherwise\n */\nexport function isJsonSchema7NumberType(\n schema: JsonSchema7Type\n): schema is JsonSchema7NumberType {\n return (\n \"type\" in schema && (schema.type === \"number\" || schema.type === \"integer\")\n );\n}\n\n/**\n * Type guard for {@link JsonSchema7BooleanType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7BooleanType}, false otherwise\n */\nexport function isJsonSchema7BooleanType(\n schema: JsonSchema7Type\n): schema is JsonSchema7BooleanType {\n return \"type\" in schema && schema.type === \"boolean\";\n}\n\n/**\n * Type guard for {@link JsonSchema7ArrayType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7ArrayType}, false otherwise\n */\nexport function isJsonSchema7ArrayType(\n schema: JsonSchema7Type\n): schema is JsonSchema7ArrayType {\n return \"type\" in schema && schema.type === \"array\" && \"items\" in schema;\n}\n\n/**\n * Type guard for {@link JsonSchema7PrimitiveLiteralType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7PrimitiveLiteralType}, false otherwise\n */\nexport function isJsonSchema7PrimitiveLiteralType(\n schema: JsonSchema7Type\n): schema is JsonSchema7PrimitiveLiteralType {\n if (!(\"type\" in schema)) {\n return false;\n }\n\n const { type } = schema;\n\n return (\n (type === \"string\" ||\n type === \"number\" ||\n type === \"integer\" ||\n type === \"boolean\") &&\n \"const\" in schema\n );\n}\n\n/**\n * Type guard for {@link JsonSchema7LiteralType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7LiteralType}, false otherwise\n */\nexport function isJsonSchema7LiteralType(\n schema: JsonSchema7Type\n): schema is JsonSchema7LiteralType {\n if (isJsonSchema7PrimitiveLiteralType(schema)) {\n return true;\n }\n\n if (!(\"type\" in schema)) {\n return false;\n }\n\n return schema.type === \"object\" || schema.type === \"array\";\n}\n\n/**\n * Type guard to check if a value is a {@link StandardJSONSchemaV1 | Standard JSON Schema}.\n *\n * @remarks\n * This function checks if the value has the structure of a Standard JSON Schema, which includes a `~standard` property with a `jsonSchema` object that has `input` and `output` functions.\n *\n * @see https://standardschema.dev/json-schema\n *\n * @param value - The value to check.\n * @returns True if the value is a {@link StandardJSONSchemaV1 | Standard JSON Schema}, false otherwise.\n */\nexport function isStandardJsonSchema<Input = unknown, Output = Input>(\n value: any\n): value is StandardJSONSchemaV1<Input, Output> {\n return (\n isSetObject(value) &&\n \"~standard\" in value &&\n isSetObject(value[\"~standard\"]) &&\n \"jsonSchema\" in value[\"~standard\"] &&\n isSetObject(value[\"~standard\"].jsonSchema) &&\n \"input\" in value[\"~standard\"].jsonSchema &&\n isFunction(value[\"~standard\"].jsonSchema.input) &&\n \"output\" in value[\"~standard\"].jsonSchema &&\n isFunction(value[\"~standard\"].jsonSchema.output)\n );\n}\n"],"mappings":";;;;;;;;;AAuCA,SAAgB,uBACd,QACgC;AAChC,KAAI,UAAU,UAAU,OAAO,SAAS,SACtC,QAAO;AAGT,QAAO,WAAW;;;;;;;;AASpB,SAAgB,wBACd,QACiC;AACjC,KAAI,UAAU,UAAU,OAAO,SAAS,SACtC,QAAO;AAGT,QAAO,gBAAgB;;;;;;;;AASzB,SAAgB,wBACd,QACiC;AACjC,QAAO,UAAU,UAAU,OAAO,SAAS;;;;;;;;AAS7C,SAAgB,wBACd,QACiC;AACjC,QACE,UAAU,WAAW,OAAO,SAAS,YAAY,OAAO,SAAS;;;;;;;;AAUrE,SAAgB,yBACd,QACkC;AAClC,QAAO,UAAU,UAAU,OAAO,SAAS;;;;;;;;AAS7C,SAAgB,uBACd,QACgC;AAChC,QAAO,UAAU,UAAU,OAAO,SAAS,WAAW,WAAW;;;;;;;;AASnE,SAAgB,kCACd,QAC2C;AAC3C,KAAI,EAAE,UAAU,QACd,QAAO;CAGT,MAAM,EAAE,SAAS;AAEjB,SACG,SAAS,YACR,SAAS,YACT,SAAS,aACT,SAAS,cACX,WAAW;;;;;;;;AAUf,SAAgB,yBACd,QACkC;AAClC,KAAI,kCAAkC,OAAO,CAC3C,QAAO;AAGT,KAAI,EAAE,UAAU,QACd,QAAO;AAGT,QAAO,OAAO,SAAS,YAAY,OAAO,SAAS;;;;;;;;;;;;;AAcrD,SAAgB,qBACd,OAC8C;AAC9C,QACE,YAAY,MAAM,IAClB,eAAe,SACf,YAAY,MAAM,aAAa,IAC/B,gBAAgB,MAAM,gBACtB,YAAY,MAAM,aAAa,WAAW,IAC1C,WAAW,MAAM,aAAa,cAC9B,WAAW,MAAM,aAAa,WAAW,MAAM,IAC/C,YAAY,MAAM,aAAa,cAC/B,WAAW,MAAM,aAAa,WAAW,OAAO"}
package/dist/schema.cjs CHANGED
@@ -1,3 +1,11 @@
1
- const require_schema = require('./schema-D5Aqvh2i.cjs');
1
+ const require_schema = require('./schema-BM7g4xZ3.cjs');
2
2
 
3
- exports.isJsonSchema7AllOfType = require_schema.isJsonSchema7AllOfType;
3
+ exports.isJsonSchema7AllOfType = require_schema.isJsonSchema7AllOfType;
4
+ exports.isJsonSchema7ArrayType = require_schema.isJsonSchema7ArrayType;
5
+ exports.isJsonSchema7BooleanType = require_schema.isJsonSchema7BooleanType;
6
+ exports.isJsonSchema7LiteralType = require_schema.isJsonSchema7LiteralType;
7
+ exports.isJsonSchema7NumberType = require_schema.isJsonSchema7NumberType;
8
+ exports.isJsonSchema7ObjectType = require_schema.isJsonSchema7ObjectType;
9
+ exports.isJsonSchema7PrimitiveLiteralType = require_schema.isJsonSchema7PrimitiveLiteralType;
10
+ exports.isJsonSchema7StringType = require_schema.isJsonSchema7StringType;
11
+ exports.isStandardJsonSchema = require_schema.isStandardJsonSchema;
package/dist/schema.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as isJsonSchema7AllOfType } from "./schema-B1RVJHzJ.cjs";
2
- export { isJsonSchema7AllOfType };
1
+ import { a as isJsonSchema7NumberType, c as isJsonSchema7StringType, i as isJsonSchema7LiteralType, l as isStandardJsonSchema, n as isJsonSchema7ArrayType, o as isJsonSchema7ObjectType, r as isJsonSchema7BooleanType, s as isJsonSchema7PrimitiveLiteralType, t as isJsonSchema7AllOfType } from "./schema-BgOm_N0w.cjs";
2
+ export { isJsonSchema7AllOfType, isJsonSchema7ArrayType, isJsonSchema7BooleanType, isJsonSchema7LiteralType, isJsonSchema7NumberType, isJsonSchema7ObjectType, isJsonSchema7PrimitiveLiteralType, isJsonSchema7StringType, isStandardJsonSchema };
package/dist/schema.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import "./types-C_KlcCNw.mjs";
2
- import { t as isJsonSchema7AllOfType } from "./schema-ai_NU-JC.mjs";
3
- export { isJsonSchema7AllOfType };
1
+ import "./types-BAtAPir9.mjs";
2
+ import { a as isJsonSchema7NumberType, c as isJsonSchema7StringType, i as isJsonSchema7LiteralType, l as isStandardJsonSchema, n as isJsonSchema7ArrayType, o as isJsonSchema7ObjectType, r as isJsonSchema7BooleanType, s as isJsonSchema7PrimitiveLiteralType, t as isJsonSchema7AllOfType } from "./schema-B7wpjw3I.mjs";
3
+ export { isJsonSchema7AllOfType, isJsonSchema7ArrayType, isJsonSchema7BooleanType, isJsonSchema7LiteralType, isJsonSchema7NumberType, isJsonSchema7ObjectType, isJsonSchema7PrimitiveLiteralType, isJsonSchema7StringType, isStandardJsonSchema };
package/dist/schema.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { t as isJsonSchema7AllOfType } from "./schema-CfhPLy30.mjs";
1
+ import { a as isJsonSchema7NumberType, c as isJsonSchema7StringType, i as isJsonSchema7LiteralType, l as isStandardJsonSchema, n as isJsonSchema7ArrayType, o as isJsonSchema7ObjectType, r as isJsonSchema7BooleanType, s as isJsonSchema7PrimitiveLiteralType, t as isJsonSchema7AllOfType } from "./schema-SrJmxZsC.mjs";
2
2
 
3
- export { isJsonSchema7AllOfType };
3
+ export { isJsonSchema7AllOfType, isJsonSchema7ArrayType, isJsonSchema7BooleanType, isJsonSchema7LiteralType, isJsonSchema7NumberType, isJsonSchema7ObjectType, isJsonSchema7PrimitiveLiteralType, isJsonSchema7StringType, isStandardJsonSchema };
@@ -25,11 +25,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
25
25
  }) : target, mod));
26
26
 
27
27
  //#endregion
28
- const require_is_object = require('./is-object-umGh91v1.cjs');
29
- const require_is_string = require('./is-string-C2RK4Gjs.cjs');
30
- const require_parse = require('./parse-wxSDzBPf.cjs');
31
- const require_parse_error = require('./parse-error-Dzwg4sdE.cjs');
32
- const require_stringify = require('./stringify-DEw3S4_Z.cjs');
28
+ const require_is_object = require('./is-object-BbRMEXAo.cjs');
29
+ const require_is_string = require('./is-string-yY-B30hL.cjs');
30
+ const require_parse = require('./parse-CX9jPskm.cjs');
31
+ const require_parse_error = require('./parse-error-CUOf-YBA.cjs');
32
+ const require_stringify = require('./stringify-DQOBApRO.cjs');
33
33
  let jsonc_parser = require("jsonc-parser");
34
34
  let node_buffer = require("node:buffer");
35
35
  let superjson = require("superjson");
@@ -1,8 +1,8 @@
1
- import { t as isObject } from "./is-object-BpfmzHWa.mjs";
2
- import { t as isString } from "./is-string-CLiBUSKV.mjs";
3
- import { t as parse$1 } from "./parse-obdkJfj5.mjs";
4
- import { t as formatParseError } from "./parse-error-C3Qmubee.mjs";
5
- import { n as stringify } from "./stringify-D5baUfEe.mjs";
1
+ import { t as isObject } from "./is-object-BYxzKTYU.mjs";
2
+ import { t as isString } from "./is-string--ny35huw.mjs";
3
+ import { t as parse$1 } from "./parse-BrChHTWb.mjs";
4
+ import { t as formatParseError } from "./parse-error-Cu6mjBS7.mjs";
5
+ import { n as stringify } from "./stringify-CfeAVjh8.mjs";
6
6
  import { parse } from "jsonc-parser";
7
7
  import { Buffer } from "node:buffer";
8
8
  import SuperJSON from "superjson";
@@ -113,4 +113,4 @@ StormJSON.instance.registerCustom({
113
113
 
114
114
  //#endregion
115
115
  export { StormJSON as t };
116
- //# sourceMappingURL=storm-json-Cy3PuAhj.mjs.map
116
+ //# sourceMappingURL=storm-json-BmO91crX.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"storm-json-Cy3PuAhj.mjs","names":["#instance","parseValue","stringifyValue","errors: ParseError[]"],"sources":["../src/storm-json.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { ParseError } from \"jsonc-parser\";\nimport type {\n Class,\n JsonParseOptions,\n JsonParserResult,\n JsonSerializeOptions,\n JsonValue\n} from \"./types\";\n// import { Decimal } from \"decimal.js\";\nimport { isObject } from \"@stryke/type-checks/is-object\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport { parse } from \"jsonc-parser\";\nimport { Buffer } from \"node:buffer\";\nimport SuperJSON from \"superjson\";\nimport { parse as parseValue } from \"./utils/parse\";\nimport { formatParseError } from \"./utils/parse-error\";\nimport { stringify as stringifyValue } from \"./utils/stringify\";\n\n/**\n * A static JSON parser class used by Storm Software to serialize and deserialize JSON data\n *\n * @remarks\n * This class uses the [SuperJSON](https://github.com/blitz-js/superjson) library under the hood.\n */\nexport class StormJSON extends SuperJSON {\n static #instance: StormJSON;\n\n public static get instance(): StormJSON {\n if (!StormJSON.#instance) {\n StormJSON.#instance = new StormJSON();\n }\n\n return StormJSON.#instance;\n }\n\n /**\n * Deserialize the given value with superjson using the given metadata\n */\n public static override deserialize<TData = unknown>(\n payload: JsonParserResult\n ): TData {\n return StormJSON.instance.deserialize(payload);\n }\n\n /**\n * Serialize the given value with superjson\n */\n public static override serialize(object: JsonValue): JsonParserResult {\n return StormJSON.instance.serialize(object);\n }\n\n /**\n * Parse the given string value with superjson using the given metadata\n *\n * @param value - The string value to parse\n * @returns The parsed data\n */\n public static override parse<TData = unknown>(value: string): TData {\n return parseValue(value);\n }\n\n /**\n * Serializes the given data to a JSON string.\n * By default the JSON string is formatted with a 2 space indentation to be easy readable.\n *\n * @param value - Object which should be serialized to JSON\n * @param options - JSON serialize options\n * @returns the formatted JSON representation of the object\n */\n public static override stringify<T>(\n value: T,\n options?: JsonSerializeOptions\n ): string {\n const customTransformer =\n StormJSON.instance.customTransformerRegistry.findApplicable(value);\n\n let result = value;\n if (customTransformer && customTransformer.isApplicable(value)) {\n result = customTransformer.serialize(result) as T;\n }\n\n return stringifyValue(result, options?.spaces ?? 2);\n }\n\n /**\n * Parses the given JSON string and returns the object the JSON content represents.\n * By default javascript-style comments and trailing commas are allowed.\n *\n * @param strData - JSON content as string\n * @param options - JSON parse options\n * @returns Object the JSON content represents\n */\n public static parseJson<TData = unknown>(\n strData: string,\n options?: JsonParseOptions\n ): TData {\n try {\n if (options?.expectComments === false) {\n return StormJSON.instance.parse(strData);\n }\n } catch {\n // Do nothing\n }\n\n const errors: ParseError[] = [];\n const opts = {\n allowTrailingComma: true,\n ...options\n };\n const result = parse(strData, errors, opts) as TData;\n\n if (errors.length > 0 && errors[0]) {\n throw new Error(formatParseError(strData, errors[0]));\n }\n\n return result;\n }\n\n /**\n * Register a custom schema with superjson\n *\n * @param name - The name of the schema\n * @param serialize - The function to serialize the schema\n * @param deserialize - The function to deserialize the schema\n * @param isApplicable - The function to check if the schema is applicable\n */\n public static register<\n TData = any,\n TJsonObject extends JsonValue = JsonValue\n >(\n name: string,\n serialize: (data: TData) => TJsonObject,\n deserialize: (json: TJsonObject) => TData,\n isApplicable: (data: any) => data is TData\n ) {\n StormJSON.instance.registerCustom<TData, TJsonObject>(\n {\n isApplicable,\n serialize,\n deserialize\n },\n name\n );\n }\n\n /**\n * Register a class with superjson\n *\n * @param classConstructor - The class constructor to register\n */\n public static override registerClass(\n classConstructor: Class,\n options?: { identifier?: string; allowProps?: string[] } | string\n ) {\n StormJSON.instance.registerClass(classConstructor, {\n identifier: isString(options)\n ? options\n : options?.identifier || classConstructor.name,\n allowProps:\n options &&\n isObject(options) &&\n options?.allowProps &&\n Array.isArray(options.allowProps)\n ? options.allowProps\n : [\"__typename\"]\n });\n }\n\n private constructor() {\n super({ dedupe: true });\n }\n}\n\nStormJSON.instance.registerCustom<Buffer, string>(\n {\n isApplicable: (v): v is Buffer =>\n typeof Buffer.isBuffer === \"function\" && Buffer.isBuffer(v),\n serialize: v => v.toString(\"base64\"),\n deserialize: v => Buffer.from(v, \"base64\")\n },\n \"Bytes\"\n);\n"],"mappings":";;;;;;;;;;;;;;;;AA0CA,IAAa,YAAb,MAAa,kBAAkB,UAAU;CACvC,QAAOA;CAEP,WAAkB,WAAsB;AACtC,MAAI,CAAC,WAAUA,SACb,YAAUA,WAAY,IAAI,WAAW;AAGvC,SAAO,WAAUA;;;;;CAMnB,OAAuB,YACrB,SACO;AACP,SAAO,UAAU,SAAS,YAAY,QAAQ;;;;;CAMhD,OAAuB,UAAU,QAAqC;AACpE,SAAO,UAAU,SAAS,UAAU,OAAO;;;;;;;;CAS7C,OAAuB,MAAuB,OAAsB;AAClE,SAAOC,QAAW,MAAM;;;;;;;;;;CAW1B,OAAuB,UACrB,OACA,SACQ;EACR,MAAM,oBACJ,UAAU,SAAS,0BAA0B,eAAe,MAAM;EAEpE,IAAI,SAAS;AACb,MAAI,qBAAqB,kBAAkB,aAAa,MAAM,CAC5D,UAAS,kBAAkB,UAAU,OAAO;AAG9C,SAAOC,UAAe,QAAQ,SAAS,UAAU,EAAE;;;;;;;;;;CAWrD,OAAc,UACZ,SACA,SACO;AACP,MAAI;AACF,OAAI,SAAS,mBAAmB,MAC9B,QAAO,UAAU,SAAS,MAAM,QAAQ;UAEpC;EAIR,MAAMC,SAAuB,EAAE;EAK/B,MAAM,SAAS,MAAM,SAAS,QAJjB;GACX,oBAAoB;GACpB,GAAG;GACJ,CAC0C;AAE3C,MAAI,OAAO,SAAS,KAAK,OAAO,GAC9B,OAAM,IAAI,MAAM,iBAAiB,SAAS,OAAO,GAAG,CAAC;AAGvD,SAAO;;;;;;;;;;CAWT,OAAc,SAIZ,MACA,WACA,aACA,cACA;AACA,YAAU,SAAS,eACjB;GACE;GACA;GACA;GACD,EACD,KACD;;;;;;;CAQH,OAAuB,cACrB,kBACA,SACA;AACA,YAAU,SAAS,cAAc,kBAAkB;GACjD,YAAY,SAAS,QAAQ,GACzB,UACA,SAAS,cAAc,iBAAiB;GAC5C,YACE,WACA,SAAS,QAAQ,IACjB,SAAS,cACT,MAAM,QAAQ,QAAQ,WAAW,GAC7B,QAAQ,aACR,CAAC,aAAa;GACrB,CAAC;;CAGJ,AAAQ,cAAc;AACpB,QAAM,EAAE,QAAQ,MAAM,CAAC;;;AAI3B,UAAU,SAAS,eACjB;CACE,eAAe,MACb,OAAO,OAAO,aAAa,cAAc,OAAO,SAAS,EAAE;CAC7D,YAAW,MAAK,EAAE,SAAS,SAAS;CACpC,cAAa,MAAK,OAAO,KAAK,GAAG,SAAS;CAC3C,EACD,QACD"}
1
+ {"version":3,"file":"storm-json-BmO91crX.mjs","names":["#instance","parseValue","stringifyValue","errors: ParseError[]"],"sources":["../src/storm-json.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { ParseError } from \"jsonc-parser\";\nimport type {\n Class,\n JsonParseOptions,\n JsonParserResult,\n JsonSerializeOptions,\n JsonValue\n} from \"./types\";\n// import { Decimal } from \"decimal.js\";\nimport { isObject } from \"@stryke/type-checks/is-object\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport { parse } from \"jsonc-parser\";\nimport { Buffer } from \"node:buffer\";\nimport SuperJSON from \"superjson\";\nimport { parse as parseValue } from \"./utils/parse\";\nimport { formatParseError } from \"./utils/parse-error\";\nimport { stringify as stringifyValue } from \"./utils/stringify\";\n\n/**\n * A static JSON parser class used by Storm Software to serialize and deserialize JSON data\n *\n * @remarks\n * This class uses the [SuperJSON](https://github.com/blitz-js/superjson) library under the hood.\n */\nexport class StormJSON extends SuperJSON {\n static #instance: StormJSON;\n\n public static get instance(): StormJSON {\n if (!StormJSON.#instance) {\n StormJSON.#instance = new StormJSON();\n }\n\n return StormJSON.#instance;\n }\n\n /**\n * Deserialize the given value with superjson using the given metadata\n */\n public static override deserialize<TData = unknown>(\n payload: JsonParserResult\n ): TData {\n return StormJSON.instance.deserialize(payload);\n }\n\n /**\n * Serialize the given value with superjson\n */\n public static override serialize(object: JsonValue): JsonParserResult {\n return StormJSON.instance.serialize(object);\n }\n\n /**\n * Parse the given string value with superjson using the given metadata\n *\n * @param value - The string value to parse\n * @returns The parsed data\n */\n public static override parse<TData = unknown>(value: string): TData {\n return parseValue(value);\n }\n\n /**\n * Serializes the given data to a JSON string.\n * By default the JSON string is formatted with a 2 space indentation to be easy readable.\n *\n * @param value - Object which should be serialized to JSON\n * @param options - JSON serialize options\n * @returns the formatted JSON representation of the object\n */\n public static override stringify<T>(\n value: T,\n options?: JsonSerializeOptions\n ): string {\n const customTransformer =\n StormJSON.instance.customTransformerRegistry.findApplicable(value);\n\n let result = value;\n if (customTransformer && customTransformer.isApplicable(value)) {\n result = customTransformer.serialize(result) as T;\n }\n\n return stringifyValue(result, options?.spaces ?? 2);\n }\n\n /**\n * Parses the given JSON string and returns the object the JSON content represents.\n * By default javascript-style comments and trailing commas are allowed.\n *\n * @param strData - JSON content as string\n * @param options - JSON parse options\n * @returns Object the JSON content represents\n */\n public static parseJson<TData = unknown>(\n strData: string,\n options?: JsonParseOptions\n ): TData {\n try {\n if (options?.expectComments === false) {\n return StormJSON.instance.parse(strData);\n }\n } catch {\n // Do nothing\n }\n\n const errors: ParseError[] = [];\n const opts = {\n allowTrailingComma: true,\n ...options\n };\n const result = parse(strData, errors, opts) as TData;\n\n if (errors.length > 0 && errors[0]) {\n throw new Error(formatParseError(strData, errors[0]));\n }\n\n return result;\n }\n\n /**\n * Register a custom schema with superjson\n *\n * @param name - The name of the schema\n * @param serialize - The function to serialize the schema\n * @param deserialize - The function to deserialize the schema\n * @param isApplicable - The function to check if the schema is applicable\n */\n public static register<\n TData = any,\n TJsonObject extends JsonValue = JsonValue\n >(\n name: string,\n serialize: (data: TData) => TJsonObject,\n deserialize: (json: TJsonObject) => TData,\n isApplicable: (data: any) => data is TData\n ) {\n StormJSON.instance.registerCustom<TData, TJsonObject>(\n {\n isApplicable,\n serialize,\n deserialize\n },\n name\n );\n }\n\n /**\n * Register a class with superjson\n *\n * @param classConstructor - The class constructor to register\n */\n public static override registerClass(\n classConstructor: Class,\n options?: { identifier?: string; allowProps?: string[] } | string\n ) {\n StormJSON.instance.registerClass(classConstructor, {\n identifier: isString(options)\n ? options\n : options?.identifier || classConstructor.name,\n allowProps:\n options &&\n isObject(options) &&\n options?.allowProps &&\n Array.isArray(options.allowProps)\n ? options.allowProps\n : [\"__typename\"]\n });\n }\n\n private constructor() {\n super({ dedupe: true });\n }\n}\n\nStormJSON.instance.registerCustom<Buffer, string>(\n {\n isApplicable: (v): v is Buffer =>\n typeof Buffer.isBuffer === \"function\" && Buffer.isBuffer(v),\n serialize: v => v.toString(\"base64\"),\n deserialize: v => Buffer.from(v, \"base64\")\n },\n \"Bytes\"\n);\n"],"mappings":";;;;;;;;;;;;;;;;AA0CA,IAAa,YAAb,MAAa,kBAAkB,UAAU;CACvC,QAAOA;CAEP,WAAkB,WAAsB;AACtC,MAAI,CAAC,WAAUA,SACb,YAAUA,WAAY,IAAI,WAAW;AAGvC,SAAO,WAAUA;;;;;CAMnB,OAAuB,YACrB,SACO;AACP,SAAO,UAAU,SAAS,YAAY,QAAQ;;;;;CAMhD,OAAuB,UAAU,QAAqC;AACpE,SAAO,UAAU,SAAS,UAAU,OAAO;;;;;;;;CAS7C,OAAuB,MAAuB,OAAsB;AAClE,SAAOC,QAAW,MAAM;;;;;;;;;;CAW1B,OAAuB,UACrB,OACA,SACQ;EACR,MAAM,oBACJ,UAAU,SAAS,0BAA0B,eAAe,MAAM;EAEpE,IAAI,SAAS;AACb,MAAI,qBAAqB,kBAAkB,aAAa,MAAM,CAC5D,UAAS,kBAAkB,UAAU,OAAO;AAG9C,SAAOC,UAAe,QAAQ,SAAS,UAAU,EAAE;;;;;;;;;;CAWrD,OAAc,UACZ,SACA,SACO;AACP,MAAI;AACF,OAAI,SAAS,mBAAmB,MAC9B,QAAO,UAAU,SAAS,MAAM,QAAQ;UAEpC;EAIR,MAAMC,SAAuB,EAAE;EAK/B,MAAM,SAAS,MAAM,SAAS,QAJjB;GACX,oBAAoB;GACpB,GAAG;GACJ,CAC0C;AAE3C,MAAI,OAAO,SAAS,KAAK,OAAO,GAC9B,OAAM,IAAI,MAAM,iBAAiB,SAAS,OAAO,GAAG,CAAC;AAGvD,SAAO;;;;;;;;;;CAWT,OAAc,SAIZ,MACA,WACA,aACA,cACA;AACA,YAAU,SAAS,eACjB;GACE;GACA;GACA;GACD,EACD,KACD;;;;;;;CAQH,OAAuB,cACrB,kBACA,SACA;AACA,YAAU,SAAS,cAAc,kBAAkB;GACjD,YAAY,SAAS,QAAQ,GACzB,UACA,SAAS,cAAc,iBAAiB;GAC5C,YACE,WACA,SAAS,QAAQ,IACjB,SAAS,cACT,MAAM,QAAQ,QAAQ,WAAW,GAC7B,QAAQ,aACR,CAAC,aAAa;GACrB,CAAC;;CAGJ,AAAQ,cAAc;AACpB,QAAM,EAAE,QAAQ,MAAM,CAAC;;;AAI3B,UAAU,SAAS,eACjB;CACE,eAAe,MACb,OAAO,OAAO,aAAa,cAAc,OAAO,SAAS,EAAE;CAC7D,YAAW,MAAK,EAAE,SAAS,SAAS;CACpC,cAAa,MAAK,OAAO,KAAK,GAAG,SAAS;CAC3C,EACD,QACD"}
@@ -1,4 +1,4 @@
1
- import { H as JsonSerializeOptions, U as JsonValue, d as JsonParserResult, l as JsonParseOptions, t as Class } from "./types-BUeTTE_U.cjs";
1
+ import { U as JsonSerializeOptions, W as JsonValue, d as JsonParserResult, l as JsonParseOptions, t as Class } from "./types-BAtAPir9.mjs";
2
2
  import SuperJSON from "superjson";
3
3
 
4
4
  //#region src/storm-json.d.ts
@@ -67,4 +67,4 @@ declare class StormJSON extends SuperJSON {
67
67
  }
68
68
  //#endregion
69
69
  export { StormJSON as t };
70
- //# sourceMappingURL=storm-json-AaFeOao2.d.cts.map
70
+ //# sourceMappingURL=storm-json-DJwb3Ou-.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"storm-json-AaFeOao2.d.cts","names":[],"sources":["../src/storm-json.ts"],"sourcesContent":[],"mappings":";;;;;;;AA0CA;;;;AAuB2C,cAvB9B,SAAA,SAAkB,SAAA,CAuBY;EAAY,CAAA,OAAA;EAUS,WAAA,QAAA,CAAA,CAAA,EA9BhC,SA8BgC;EAarD;;;EAyBN,OAAA,WAAA,CAAA,QAAA,OAAA,CAAA,CAAA,OAAA,EAxDQ,gBAwDR,CAAA,EAvDA,KAuDA;EAiCmB;;;EAGQ,OAAA,SAAA,CAAA,MAAA,EApFW,SAoFX,CAAA,EApFuB,gBAoFvB;EACR;;;;;;gDA3EwC;;;;;;;;;6BAarD,aACG;;;;;;;;;+DAuBA,mBACT;;;;;;;;;mDAiCmB,YAAY,2CAGd,UAAU,iCACR,gBAAgB,4CACC;;;;;;yCAkBnB"}
1
+ {"version":3,"file":"storm-json-DJwb3Ou-.d.mts","names":[],"sources":["../src/storm-json.ts"],"sourcesContent":[],"mappings":";;;;;;;AA0CA;;;;AAuB2C,cAvB9B,SAAA,SAAkB,SAAA,CAuBY;EAAY,CAAA,OAAA;EAUS,WAAA,QAAA,CAAA,CAAA,EA9BhC,SA8BgC;EAarD;;;EAyBN,OAAA,WAAA,CAAA,QAAA,OAAA,CAAA,CAAA,OAAA,EAxDQ,gBAwDR,CAAA,EAvDA,KAuDA;EAiCmB;;;EAGQ,OAAA,SAAA,CAAA,MAAA,EApFW,SAoFX,CAAA,EApFuB,gBAoFvB;EACR;;;;;;gDA3EwC;;;;;;;;;6BAarD,aACG;;;;;;;;;+DAuBA,mBACT;;;;;;;;;mDAiCmB,YAAY,2CAGd,UAAU,iCACR,gBAAgB,4CACC;;;;;;yCAkBnB"}
@@ -1,4 +1,4 @@
1
- import { H as JsonSerializeOptions, U as JsonValue, d as JsonParserResult, l as JsonParseOptions, t as Class } from "./types-C_KlcCNw.mjs";
1
+ import { U as JsonSerializeOptions, W as JsonValue, d as JsonParserResult, l as JsonParseOptions, t as Class } from "./types-BzNIRhpI.cjs";
2
2
  import SuperJSON from "superjson";
3
3
 
4
4
  //#region src/storm-json.d.ts
@@ -67,4 +67,4 @@ declare class StormJSON extends SuperJSON {
67
67
  }
68
68
  //#endregion
69
69
  export { StormJSON as t };
70
- //# sourceMappingURL=storm-json-BvRkzAlR.d.mts.map
70
+ //# sourceMappingURL=storm-json-DiBg5b6r.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"storm-json-BvRkzAlR.d.mts","names":[],"sources":["../src/storm-json.ts"],"sourcesContent":[],"mappings":";;;;;;;AA0CA;;;;AAuB2C,cAvB9B,SAAA,SAAkB,SAAA,CAuBY;EAAY,CAAA,OAAA;EAUS,WAAA,QAAA,CAAA,CAAA,EA9BhC,SA8BgC;EAarD;;;EAyBN,OAAA,WAAA,CAAA,QAAA,OAAA,CAAA,CAAA,OAAA,EAxDQ,gBAwDR,CAAA,EAvDA,KAuDA;EAiCmB;;;EAGQ,OAAA,SAAA,CAAA,MAAA,EApFW,SAoFX,CAAA,EApFuB,gBAoFvB;EACR;;;;;;gDA3EwC;;;;;;;;;6BAarD,aACG;;;;;;;;;+DAuBA,mBACT;;;;;;;;;mDAiCmB,YAAY,2CAGd,UAAU,iCACR,gBAAgB,4CACC;;;;;;yCAkBnB"}
1
+ {"version":3,"file":"storm-json-DiBg5b6r.d.cts","names":[],"sources":["../src/storm-json.ts"],"sourcesContent":[],"mappings":";;;;;;;AA0CA;;;;AAuB2C,cAvB9B,SAAA,SAAkB,SAAA,CAuBY;EAAY,CAAA,OAAA;EAUS,WAAA,QAAA,CAAA,CAAA,EA9BhC,SA8BgC;EAarD;;;EAyBN,OAAA,WAAA,CAAA,QAAA,OAAA,CAAA,CAAA,OAAA,EAxDQ,gBAwDR,CAAA,EAvDA,KAuDA;EAiCmB;;;EAGQ,OAAA,SAAA,CAAA,MAAA,EApFW,SAoFX,CAAA,EApFuB,gBAoFvB;EACR;;;;;;gDA3EwC;;;;;;;;;6BAarD,aACG;;;;;;;;;+DAuBA,mBACT;;;;;;;;;mDAiCmB,YAAY,2CAGd,UAAU,iCACR,gBAAgB,4CACC;;;;;;yCAkBnB"}
@@ -1,4 +1,4 @@
1
- const require_storm_json = require('./storm-json-6WpS7qnH.cjs');
2
- require('./parse-error-Dzwg4sdE.cjs');
1
+ const require_storm_json = require('./storm-json-BDPXNC_u.cjs');
2
+ require('./parse-error-CUOf-YBA.cjs');
3
3
 
4
4
  exports.StormJSON = require_storm_json.StormJSON;
@@ -1,2 +1,2 @@
1
- import { t as StormJSON } from "./storm-json-AaFeOao2.cjs";
1
+ import { t as StormJSON } from "./storm-json-DiBg5b6r.cjs";
2
2
  export { StormJSON };