@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
@@ -28,4 +28,4 @@ const isNumber = (value) => {
28
28
 
29
29
  //#endregion
30
30
  export { getObjectTag as n, isNumber as t };
31
- //# sourceMappingURL=is-number-BIwzZzyi.mjs.map
31
+ //# sourceMappingURL=is-number-BMxmACAS.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-number-BIwzZzyi.mjs","names":[],"sources":["../../type-checks/src/get-object-tag.ts","../../type-checks/src/is-number.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\n/**\n * Gets the `toStringTag` of `obj`.\n *\n * @param value - The obj to query.\n * @returns Returns the `toStringTag`.\n */\nexport const getObjectTag = (value: unknown): string => {\n if (value == null) {\n return value === undefined ? \"[object Undefined]\" : \"[object Null]\";\n }\n return Object.prototype.toString.call(value);\n};\n","/* -------------------------------------------------------------------\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 { AnyNumber } from \"@stryke/types/base\";\nimport { getObjectTag } from \"./get-object-tag\";\n\n/**\n * Check if the provided value's type is `number`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `number`\n */\nexport const isNumber = (value: unknown): value is number => {\n try {\n return (\n value instanceof Number ||\n typeof value === \"number\" ||\n Number(value) === value\n );\n } catch {\n return false;\n }\n};\n\n/**\n * Check if the provided value's type is `AnyNumber`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `AnyNumber`\n */\nexport function isAnyNumber(value?: any): value is AnyNumber {\n return isNumber(value) || getObjectTag(value) === \"[object Number]\";\n}\n"],"mappings":";;;;;;;AAwBA,MAAa,gBAAgB,UAA2B;AACtD,KAAI,SAAS,KACX,QAAO,UAAU,SAAY,uBAAuB;AAEtD,QAAO,OAAO,UAAU,SAAS,KAAK,MAAM;;;;;;;;;;;ACD9C,MAAa,YAAY,UAAoC;AAC3D,KAAI;AACF,SACE,iBAAiB,UACjB,OAAO,UAAU,YACjB,OAAO,MAAM,KAAK;SAEd;AACN,SAAO"}
1
+ {"version":3,"file":"is-number-BMxmACAS.mjs","names":[],"sources":["../../type-checks/src/get-object-tag.ts","../../type-checks/src/is-number.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\n/**\n * Gets the `toStringTag` of `obj`.\n *\n * @param value - The obj to query.\n * @returns Returns the `toStringTag`.\n */\nexport const getObjectTag = (value: unknown): string => {\n if (value == null) {\n return value === undefined ? \"[object Undefined]\" : \"[object Null]\";\n }\n return Object.prototype.toString.call(value);\n};\n","/* -------------------------------------------------------------------\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 { AnyNumber } from \"@stryke/types/base\";\nimport { getObjectTag } from \"./get-object-tag\";\n\n/**\n * Check if the provided value's type is `number`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `number`\n */\nexport const isNumber = (value: unknown): value is number => {\n try {\n return (\n value instanceof Number ||\n typeof value === \"number\" ||\n Number(value) === value\n );\n } catch {\n return false;\n }\n};\n\n/**\n * Check if the provided value's type is `AnyNumber`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `AnyNumber`\n */\nexport function isAnyNumber(value?: any): value is AnyNumber {\n return isNumber(value) || getObjectTag(value) === \"[object Number]\";\n}\n"],"mappings":";;;;;;;AAwBA,MAAa,gBAAgB,UAA2B;AACtD,KAAI,SAAS,KACX,QAAO,UAAU,SAAY,uBAAuB;AAEtD,QAAO,OAAO,UAAU,SAAS,KAAK,MAAM;;;;;;;;;;;ACD9C,MAAa,YAAY,UAAoC;AAC3D,KAAI;AACF,SACE,iBAAiB,UACjB,OAAO,UAAU,YACjB,OAAO,MAAM,KAAK;SAEd;AACN,SAAO"}
@@ -1,4 +1,4 @@
1
- import { n as getObjectTag } from "./is-number-BIwzZzyi.mjs";
1
+ import { n as getObjectTag } from "./is-number-BMxmACAS.mjs";
2
2
 
3
3
  //#region ../type-checks/src/is-plain-object.ts
4
4
  /**
@@ -77,4 +77,4 @@ const isObject = (value) => {
77
77
 
78
78
  //#endregion
79
79
  export { isObject as t };
80
- //# sourceMappingURL=is-object-BpfmzHWa.mjs.map
80
+ //# sourceMappingURL=is-object-BYxzKTYU.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-object-BpfmzHWa.mjs","names":[],"sources":["../../type-checks/src/is-plain-object.ts","../../type-checks/src/is-object.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 { PlainObject } from \"@stryke/types/base\";\nimport { getObjectTag } from \"./get-object-tag\";\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @example\n * ```typescript\n * isObjectLike({})\n * // => true\n *\n * isObjectLike([1, 2, 3])\n * // => true\n *\n * isObjectLike(Function)\n * // => false\n *\n * isObjectLike(null)\n * // => false\n * ```\n *\n * @param value - The value to check.\n * @returns Returns `true` if `value` is object-like, else `false`.\n */\nexport const isObjectLike = (obj: unknown) => {\n return typeof obj === \"object\" && obj !== null;\n};\n\n/**\n * Checks if `obj` is a plain object, that is, an object created by the `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @example\n * ```typescript\n * function Foo() {\n * this.a = 1\n * }\n *\n * isPlainObject(new Foo)\n * // => false\n *\n * isPlainObject([1, 2, 3])\n * // => false\n *\n * isPlainObject({ 'x': 0, 'y': 0 })\n * // => true\n *\n * isPlainObject(Object.create(null))\n * // => true\n * ```\n *\n * @param obj - The value to check.\n * @returns Returns `true` if `obj` is a plain object, else `false`.\n */\nexport const isPlainObject = (obj: unknown): obj is PlainObject => {\n if (!isObjectLike(obj) || getObjectTag(obj) !== \"[object Object]\") {\n return false;\n }\n if (Object.getPrototypeOf(obj) === null) {\n return true;\n }\n let proto = obj;\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n return Object.getPrototypeOf(obj) === proto;\n};\n","/* -------------------------------------------------------------------\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\n/* eslint-disable ts/no-unsafe-function-type */\n/* eslint-disable ts/no-unsafe-call */\n\nimport type { NativeClass } from \"@stryke/types/base\";\nimport { isPlainObject } from \"./is-plain-object\";\n\n// Prepare\nconst isClassRegex = /^class\\s|^function\\s+[A-Z]/;\nconst isConventionalClassRegex = /^function\\s+[A-Z]/;\nconst isNativeClassRegex = /^class\\s/;\n\n/** Is ES6+ class */\nexport function isNativeClass(value?: any): value is NativeClass {\n // NOTE TO DEVELOPER: If any of this changes, isClass must also be updated\n return (\n typeof value === \"function\" && isNativeClassRegex.test(value.toString())\n );\n}\n\n/**\n * Check if the provided value's type is a conventional class\n *\n * @remarks\n * Is Conventional Class\n * Looks for function with capital first letter MyClass\n * First letter is the 9th character\n * If changed, isClass must also be updated\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is a conventional class\n */\nexport function isConventionalClass(value?: any): value is Function {\n return (\n typeof value === \"function\" &&\n isConventionalClassRegex.test(value.toString())\n );\n}\n\n/**\n * Check if the provided value's type is `Object`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `Object`\n */\nexport function isClass(value?: any): value is Function | NativeClass; // only guarantee of truth type, not of validity\nexport function isClass(value?: any): boolean {\n return typeof value === \"function\" && isClassRegex.test(value.toString());\n}\n\n/**\n * Check if the provided value's type is `Object`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `Object`\n */\nexport const isObject = (value: unknown): value is object => {\n try {\n return (\n typeof value === \"object\" ||\n (Boolean(value) && value?.constructor === Object) ||\n isPlainObject(value)\n );\n } catch {\n return false;\n }\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,MAAa,gBAAgB,QAAiB;AAC5C,QAAO,OAAO,QAAQ,YAAY,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4B5C,MAAa,iBAAiB,QAAqC;AACjE,KAAI,CAAC,aAAa,IAAI,IAAI,aAAa,IAAI,KAAK,kBAC9C,QAAO;AAET,KAAI,OAAO,eAAe,IAAI,KAAK,KACjC,QAAO;CAET,IAAI,QAAQ;AACZ,QAAO,OAAO,eAAe,MAAM,KAAK,KACtC,SAAQ,OAAO,eAAe,MAAM;AAEtC,QAAO,OAAO,eAAe,IAAI,KAAK;;;;;;;;;;;ACVxC,MAAa,YAAY,UAAoC;AAC3D,KAAI;AACF,SACE,OAAO,UAAU,YAChB,QAAQ,MAAM,IAAI,OAAO,gBAAgB,UAC1C,cAAc,MAAM;SAEhB;AACN,SAAO"}
1
+ {"version":3,"file":"is-object-BYxzKTYU.mjs","names":[],"sources":["../../type-checks/src/is-plain-object.ts","../../type-checks/src/is-object.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 { PlainObject } from \"@stryke/types/base\";\nimport { getObjectTag } from \"./get-object-tag\";\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @example\n * ```typescript\n * isObjectLike({})\n * // => true\n *\n * isObjectLike([1, 2, 3])\n * // => true\n *\n * isObjectLike(Function)\n * // => false\n *\n * isObjectLike(null)\n * // => false\n * ```\n *\n * @param value - The value to check.\n * @returns Returns `true` if `value` is object-like, else `false`.\n */\nexport const isObjectLike = (obj: unknown) => {\n return typeof obj === \"object\" && obj !== null;\n};\n\n/**\n * Checks if `obj` is a plain object, that is, an object created by the `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @example\n * ```typescript\n * function Foo() {\n * this.a = 1\n * }\n *\n * isPlainObject(new Foo)\n * // => false\n *\n * isPlainObject([1, 2, 3])\n * // => false\n *\n * isPlainObject({ 'x': 0, 'y': 0 })\n * // => true\n *\n * isPlainObject(Object.create(null))\n * // => true\n * ```\n *\n * @param obj - The value to check.\n * @returns Returns `true` if `obj` is a plain object, else `false`.\n */\nexport const isPlainObject = (obj: unknown): obj is PlainObject => {\n if (!isObjectLike(obj) || getObjectTag(obj) !== \"[object Object]\") {\n return false;\n }\n if (Object.getPrototypeOf(obj) === null) {\n return true;\n }\n let proto = obj;\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n return Object.getPrototypeOf(obj) === proto;\n};\n","/* -------------------------------------------------------------------\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\n/* eslint-disable ts/no-unsafe-function-type */\n/* eslint-disable ts/no-unsafe-call */\n\nimport type { NativeClass } from \"@stryke/types/base\";\nimport { isPlainObject } from \"./is-plain-object\";\n\n// Prepare\nconst isClassRegex = /^class\\s|^function\\s+[A-Z]/;\nconst isConventionalClassRegex = /^function\\s+[A-Z]/;\nconst isNativeClassRegex = /^class\\s/;\n\n/** Is ES6+ class */\nexport function isNativeClass(value?: any): value is NativeClass {\n // NOTE TO DEVELOPER: If any of this changes, isClass must also be updated\n return (\n typeof value === \"function\" && isNativeClassRegex.test(value.toString())\n );\n}\n\n/**\n * Check if the provided value's type is a conventional class\n *\n * @remarks\n * Is Conventional Class\n * Looks for function with capital first letter MyClass\n * First letter is the 9th character\n * If changed, isClass must also be updated\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is a conventional class\n */\nexport function isConventionalClass(value?: any): value is Function {\n return (\n typeof value === \"function\" &&\n isConventionalClassRegex.test(value.toString())\n );\n}\n\n/**\n * Check if the provided value's type is `Object`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `Object`\n */\nexport function isClass(value?: any): value is Function | NativeClass; // only guarantee of truth type, not of validity\nexport function isClass(value?: any): boolean {\n return typeof value === \"function\" && isClassRegex.test(value.toString());\n}\n\n/**\n * Check if the provided value's type is `Object`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `Object`\n */\nexport const isObject = (value: unknown): value is object => {\n try {\n return (\n typeof value === \"object\" ||\n (Boolean(value) && value?.constructor === Object) ||\n isPlainObject(value)\n );\n } catch {\n return false;\n }\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,MAAa,gBAAgB,QAAiB;AAC5C,QAAO,OAAO,QAAQ,YAAY,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4B5C,MAAa,iBAAiB,QAAqC;AACjE,KAAI,CAAC,aAAa,IAAI,IAAI,aAAa,IAAI,KAAK,kBAC9C,QAAO;AAET,KAAI,OAAO,eAAe,IAAI,KAAK,KACjC,QAAO;CAET,IAAI,QAAQ;AACZ,QAAO,OAAO,eAAe,MAAM,KAAK,KACtC,SAAQ,OAAO,eAAe,MAAM;AAEtC,QAAO,OAAO,eAAe,IAAI,KAAK;;;;;;;;;;;ACVxC,MAAa,YAAY,UAAoC;AAC3D,KAAI;AACF,SACE,OAAO,UAAU,YAChB,QAAQ,MAAM,IAAI,OAAO,gBAAgB,UAC1C,cAAc,MAAM;SAEhB;AACN,SAAO"}
@@ -1,4 +1,4 @@
1
- const require_is_number = require('./is-number-c5xguIbS.cjs');
1
+ const require_is_number = require('./is-number-CV8PbAUX.cjs');
2
2
 
3
3
  //#region ../type-checks/src/is-plain-object.ts
4
4
  /**
@@ -0,0 +1,108 @@
1
+ const require_is_number = require('./is-number-CV8PbAUX.cjs');
2
+ const require_is_object = require('./is-object-BbRMEXAo.cjs');
3
+ const require_is_undefined = require('./is-undefined-DyZkA263.cjs');
4
+
5
+ //#region ../type-checks/src/is-function.ts
6
+ function isSyncFunction(value) {
7
+ return require_is_number.getObjectTag(value) === "[object Function]";
8
+ }
9
+ function isAsyncFunction(value) {
10
+ return require_is_number.getObjectTag(value) === "[object AsyncFunction]";
11
+ }
12
+ /**
13
+ * Check if the provided value's type is `Function`
14
+ *
15
+ * @param value - The value to type check
16
+ * @returns An indicator specifying if the value provided is of type `Function`
17
+ */
18
+ const isFunction = (value) => {
19
+ try {
20
+ return value instanceof Function || typeof value === "function" || Boolean(value?.constructor && value?.call && value?.apply) || isSyncFunction(value) || isAsyncFunction(value);
21
+ } catch {
22
+ return false;
23
+ }
24
+ };
25
+
26
+ //#endregion
27
+ //#region ../type-checks/src/is-null.ts
28
+ const isNull = (value) => {
29
+ try {
30
+ return value === null;
31
+ } catch {
32
+ return false;
33
+ }
34
+ };
35
+
36
+ //#endregion
37
+ //#region ../type-checks/src/is-empty.ts
38
+ /**
39
+ * Check if the provided value's type is `null` or `undefined`
40
+ *
41
+ * @param value - The value to type check
42
+ * @returns An indicator specifying if the value provided is of type `null` or `undefined`
43
+ */
44
+ const isEmpty = (value) => {
45
+ try {
46
+ return require_is_undefined.isUndefined(value) || isNull(value);
47
+ } catch {
48
+ return false;
49
+ }
50
+ };
51
+
52
+ //#endregion
53
+ //#region ../type-checks/src/is-set.ts
54
+ /**
55
+ * The inverse of the `isEmpty` function
56
+ *
57
+ * @param value - The value to type check
58
+ * @returns An indicator specifying if the value provided is **NOT** of type `null` or `undefined`
59
+ */
60
+ const isSet = (value) => {
61
+ try {
62
+ return !isEmpty(value);
63
+ } catch {
64
+ return false;
65
+ }
66
+ };
67
+
68
+ //#endregion
69
+ //#region ../type-checks/src/is-non-null-object.ts
70
+ /**
71
+ * Check if the provided value's type is `Object` and is not `null` or `undefined`
72
+ *
73
+ * @param value - The value to type check
74
+ * @returns An indicator specifying if the value provided is of type `Object` and is not `null` or `undefined`
75
+ */
76
+ const isNonNullObject = (value) => {
77
+ return isSet(value) && require_is_object.isObject(value);
78
+ };
79
+
80
+ //#endregion
81
+ //#region ../type-checks/src/is-set-object.ts
82
+ /**
83
+ * Check if the provided value's type is an object with some fields set
84
+ *
85
+ * @param value - The value to type check
86
+ * @returns An indicator specifying if the value provided is an object with some fields se
87
+ */
88
+ const isSetObject = (value) => {
89
+ try {
90
+ return isNonNullObject(value) && Object.keys(value).length > 0;
91
+ } catch {
92
+ return false;
93
+ }
94
+ };
95
+
96
+ //#endregion
97
+ Object.defineProperty(exports, 'isFunction', {
98
+ enumerable: true,
99
+ get: function () {
100
+ return isFunction;
101
+ }
102
+ });
103
+ Object.defineProperty(exports, 'isSetObject', {
104
+ enumerable: true,
105
+ get: function () {
106
+ return isSetObject;
107
+ }
108
+ });
@@ -0,0 +1,98 @@
1
+ import { n as getObjectTag } from "./is-number-BMxmACAS.mjs";
2
+ import { t as isObject } from "./is-object-BYxzKTYU.mjs";
3
+ import { t as isUndefined } from "./is-undefined-CqNzBssC.mjs";
4
+
5
+ //#region ../type-checks/src/is-function.ts
6
+ function isSyncFunction(value) {
7
+ return getObjectTag(value) === "[object Function]";
8
+ }
9
+ function isAsyncFunction(value) {
10
+ return getObjectTag(value) === "[object AsyncFunction]";
11
+ }
12
+ /**
13
+ * Check if the provided value's type is `Function`
14
+ *
15
+ * @param value - The value to type check
16
+ * @returns An indicator specifying if the value provided is of type `Function`
17
+ */
18
+ const isFunction = (value) => {
19
+ try {
20
+ return value instanceof Function || typeof value === "function" || Boolean(value?.constructor && value?.call && value?.apply) || isSyncFunction(value) || isAsyncFunction(value);
21
+ } catch {
22
+ return false;
23
+ }
24
+ };
25
+
26
+ //#endregion
27
+ //#region ../type-checks/src/is-null.ts
28
+ const isNull = (value) => {
29
+ try {
30
+ return value === null;
31
+ } catch {
32
+ return false;
33
+ }
34
+ };
35
+
36
+ //#endregion
37
+ //#region ../type-checks/src/is-empty.ts
38
+ /**
39
+ * Check if the provided value's type is `null` or `undefined`
40
+ *
41
+ * @param value - The value to type check
42
+ * @returns An indicator specifying if the value provided is of type `null` or `undefined`
43
+ */
44
+ const isEmpty = (value) => {
45
+ try {
46
+ return isUndefined(value) || isNull(value);
47
+ } catch {
48
+ return false;
49
+ }
50
+ };
51
+
52
+ //#endregion
53
+ //#region ../type-checks/src/is-set.ts
54
+ /**
55
+ * The inverse of the `isEmpty` function
56
+ *
57
+ * @param value - The value to type check
58
+ * @returns An indicator specifying if the value provided is **NOT** of type `null` or `undefined`
59
+ */
60
+ const isSet = (value) => {
61
+ try {
62
+ return !isEmpty(value);
63
+ } catch {
64
+ return false;
65
+ }
66
+ };
67
+
68
+ //#endregion
69
+ //#region ../type-checks/src/is-non-null-object.ts
70
+ /**
71
+ * Check if the provided value's type is `Object` and is not `null` or `undefined`
72
+ *
73
+ * @param value - The value to type check
74
+ * @returns An indicator specifying if the value provided is of type `Object` and is not `null` or `undefined`
75
+ */
76
+ const isNonNullObject = (value) => {
77
+ return isSet(value) && isObject(value);
78
+ };
79
+
80
+ //#endregion
81
+ //#region ../type-checks/src/is-set-object.ts
82
+ /**
83
+ * Check if the provided value's type is an object with some fields set
84
+ *
85
+ * @param value - The value to type check
86
+ * @returns An indicator specifying if the value provided is an object with some fields se
87
+ */
88
+ const isSetObject = (value) => {
89
+ try {
90
+ return isNonNullObject(value) && Object.keys(value).length > 0;
91
+ } catch {
92
+ return false;
93
+ }
94
+ };
95
+
96
+ //#endregion
97
+ export { isFunction as n, isSetObject as t };
98
+ //# sourceMappingURL=is-set-object-yxjp5vg-.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-set-object-yxjp5vg-.mjs","names":[],"sources":["../../type-checks/src/is-function.ts","../../type-checks/src/is-null.ts","../../type-checks/src/is-empty.ts","../../type-checks/src/is-set.ts","../../type-checks/src/is-non-null-object.ts","../../type-checks/src/is-set-object.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 { AnyFunction } from \"@stryke/types/base\";\nimport { getObjectTag } from \"./get-object-tag\";\n\nexport function isSyncFunction(value?: any): value is AnyFunction {\n return getObjectTag(value) === \"[object Function]\";\n}\n\nexport function isAsyncFunction(value?: any): value is AnyFunction {\n return getObjectTag(value) === \"[object AsyncFunction]\";\n}\n\n/**\n * Check if the provided value's type is `Function`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `Function`\n */\nexport const isFunction = (value: unknown): value is AnyFunction => {\n try {\n return (\n value instanceof Function ||\n typeof value === \"function\" ||\n Boolean(\n value?.constructor && (value as any)?.call && (value as any)?.apply\n ) ||\n isSyncFunction(value) ||\n isAsyncFunction(value)\n );\n } catch {\n return false;\n }\n};\n","/* -------------------------------------------------------------------\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\nexport const isNull = (value: unknown): value is null => {\n try {\n return value === null;\n } catch {\n return false;\n }\n};\n","/* -------------------------------------------------------------------\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 { isDate } from \"./is-date\";\nimport { isFunction } from \"./is-function\";\nimport { isNull } from \"./is-null\";\nimport { isNumber } from \"./is-number\";\nimport { isSymbol } from \"./is-symbol\";\nimport { isUndefined } from \"./is-undefined\";\n\n/**\n * Check if the provided value's type is `null` or `undefined`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `null` or `undefined`\n */\nexport const isEmpty = (value: unknown) => {\n try {\n return isUndefined(value) || isNull(value);\n } catch {\n return false;\n }\n};\n\nexport const isEmptyAnything = (value: any) => {\n if (value === true || value === false) return true;\n if (value === null || value === undefined) return true;\n if (isNumber(value)) return value === 0;\n if (isDate(value)) return Number.isNaN(value.getTime());\n if (isFunction(value)) return false;\n if (isSymbol(value)) return false;\n const { length } = value;\n if (isNumber(length)) return length === 0;\n const { size } = value;\n if (isNumber(size)) return size === 0;\n const keys = Object.keys(value).length;\n\n return keys === 0;\n};\n","/* -------------------------------------------------------------------\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 { isEmpty } from \"./is-empty\";\n\n/**\n * The inverse of the `isEmpty` function\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is **NOT** of type `null` or `undefined`\n */\nexport const isSet = (value: unknown): value is NonNullable<unknown> => {\n try {\n return !isEmpty(value);\n } catch {\n return false;\n }\n};\n","/* -------------------------------------------------------------------\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 { isObject } from \"./is-object\";\nimport { isSet } from \"./is-set\";\n\n/**\n * Check if the provided value's type is `Object` and is not `null` or `undefined`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `Object` and is not `null` or `undefined`\n */\nexport const isNonNullObject = (value: any): value is NonNullable<object> => {\n return isSet(value) && isObject(value);\n};\n","/* -------------------------------------------------------------------\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 { isNonNullObject } from \"./is-non-null-object\";\n\n/**\n * Check if the provided value's type is an object with some fields set\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is an object with some fields se\n */\nexport const isSetObject = (value: unknown): value is NonNullable<object> => {\n try {\n return isNonNullObject(value) && Object.keys(value).length > 0;\n } catch {\n return false;\n }\n};\n"],"mappings":";;;;;AAqBA,SAAgB,eAAe,OAAmC;AAChE,QAAO,aAAa,MAAM,KAAK;;AAGjC,SAAgB,gBAAgB,OAAmC;AACjE,QAAO,aAAa,MAAM,KAAK;;;;;;;;AASjC,MAAa,cAAc,UAAyC;AAClE,KAAI;AACF,SACE,iBAAiB,YACjB,OAAO,UAAU,cACjB,QACE,OAAO,eAAgB,OAAe,QAAS,OAAe,MAC/D,IACD,eAAe,MAAM,IACrB,gBAAgB,MAAM;SAElB;AACN,SAAO;;;;;;AC7BX,MAAa,UAAU,UAAkC;AACvD,KAAI;AACF,SAAO,UAAU;SACX;AACN,SAAO;;;;;;;;;;;;ACSX,MAAa,WAAW,UAAmB;AACzC,KAAI;AACF,SAAO,YAAY,MAAM,IAAI,OAAO,MAAM;SACpC;AACN,SAAO;;;;;;;;;;;;ACTX,MAAa,SAAS,UAAkD;AACtE,KAAI;AACF,SAAO,CAAC,QAAQ,MAAM;SAChB;AACN,SAAO;;;;;;;;;;;;ACHX,MAAa,mBAAmB,UAA6C;AAC3E,QAAO,MAAM,MAAM,IAAI,SAAS,MAAM;;;;;;;;;;;ACFxC,MAAa,eAAe,UAAiD;AAC3E,KAAI;AACF,SAAO,gBAAgB,MAAM,IAAI,OAAO,KAAK,MAAM,CAAC,SAAS;SACvD;AACN,SAAO"}
@@ -9,4 +9,4 @@ const isString = (value) => {
9
9
 
10
10
  //#endregion
11
11
  export { isString as t };
12
- //# sourceMappingURL=is-string-CLiBUSKV.mjs.map
12
+ //# sourceMappingURL=is-string--ny35huw.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-string-CLiBUSKV.mjs","names":[],"sources":["../../type-checks/src/is-string.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\nexport const isString = (value: unknown): value is string => {\n try {\n return typeof value === \"string\";\n } catch {\n return false;\n }\n};\n"],"mappings":";AAkBA,MAAa,YAAY,UAAoC;AAC3D,KAAI;AACF,SAAO,OAAO,UAAU;SAClB;AACN,SAAO"}
1
+ {"version":3,"file":"is-string--ny35huw.mjs","names":[],"sources":["../../type-checks/src/is-string.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\nexport const isString = (value: unknown): value is string => {\n try {\n return typeof value === \"string\";\n } catch {\n return false;\n }\n};\n"],"mappings":";AAkBA,MAAa,YAAY,UAAoC;AAC3D,KAAI;AACF,SAAO,OAAO,UAAU;SAClB;AACN,SAAO"}
@@ -5,4 +5,4 @@ const isUndefined = (value) => {
5
5
 
6
6
  //#endregion
7
7
  export { isUndefined as t };
8
- //# sourceMappingURL=is-undefined-CmyJWYGD.mjs.map
8
+ //# sourceMappingURL=is-undefined-CqNzBssC.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-undefined-CmyJWYGD.mjs","names":[],"sources":["../../type-checks/src/is-undefined.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\nexport const isUndefined = (value: unknown): value is undefined => {\n return value === undefined;\n};\n"],"mappings":";AAkBA,MAAa,eAAe,UAAuC;AACjE,QAAO,UAAU"}
1
+ {"version":3,"file":"is-undefined-CqNzBssC.mjs","names":[],"sources":["../../type-checks/src/is-undefined.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\nexport const isUndefined = (value: unknown): value is undefined => {\n return value === undefined;\n};\n"],"mappings":";AAkBA,MAAa,eAAe,UAAuC;AACjE,QAAO,UAAU"}
@@ -1,5 +1,5 @@
1
- import { t as isNumber } from "./is-number-BIwzZzyi.mjs";
2
- import { t as isString } from "./is-string-CLiBUSKV.mjs";
1
+ import { t as isNumber } from "./is-number-BMxmACAS.mjs";
2
+ import { t as isString } from "./is-string--ny35huw.mjs";
3
3
 
4
4
  //#region src/pointer/parse.ts
5
5
  const TILDE_ONE = /~1/g;
@@ -78,4 +78,4 @@ const isInteger = (str) => {
78
78
 
79
79
  //#endregion
80
80
  export { isValidIndex as a, unescapePointerSegment as c, isRoot as i, formatJsonPointer as n, parent as o, isInteger as r, parseJsonPointer as s, escapePointerSegment as t };
81
- //# sourceMappingURL=parse-Crgv3Nl1.mjs.map
81
+ //# sourceMappingURL=parse-B3NfTO06.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"parse-Crgv3Nl1.mjs","names":["charCode: any"],"sources":["../src/pointer/parse.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 { isNumber } from \"@stryke/type-checks/is-number\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport type { JsonPointerPath } from \"@stryke/types/json\";\n\nconst TILDE_ONE = /~1/g;\nconst TILDE_ZERO = /~0/g;\nconst TILDE = /~/g;\nconst FORWARD_SLASH = /\\//g;\n\n/**\n * Escapes a JSON pointer path segment.\n *\n * @param segment - JSON pointer path segment.\n * @returns Escaped JSON pointer path segment.\n */\nexport function escapePointerSegment(segment: string): string {\n if (!segment.includes(\"/\") && !segment.includes(\"~\")) {\n return segment;\n }\n\n return segment.replace(TILDE, \"~0\").replace(FORWARD_SLASH, \"~1\");\n}\n\n/**\n * Unescapes a JSON pointer path segment.\n *\n * @param segment - JSON pointer path segment.\n * @returns Unescaped JSON pointer path segment.\n */\nexport function unescapePointerSegment(segment: string): string {\n if (!segment.includes(\"~\")) {\n return segment;\n }\n\n return segment.replace(TILDE_ONE, \"/\").replace(TILDE_ZERO, \"~\");\n}\n\n/**\n * Convert JSON pointer like \"/foo/bar\" to array like [\"\", \"foo\", \"bar\"], while\n * also un-escaping reserved characters.\n */\nexport function parseJsonPointer(pointer: string): JsonPointerPath {\n if (!pointer) return [];\n // TODO: Performance of this line can be improved: (1) don't use .split(); (2) don't use .map().\n return pointer\n .slice(1)\n .split(\"/\")\n .map(segment => unescapePointerSegment(segment));\n}\n\n/**\n * Escape and format a path array like [\"\", \"foo\", \"bar\"] to JSON pointer\n * like \"/foo/bar\".\n */\nexport function formatJsonPointer(path: JsonPointerPath): string {\n // eslint-disable-next-line ts/no-use-before-define\n if (isRoot(path)) {\n return \"\";\n }\n\n return `/${path.map(segment => escapePointerSegment(String(segment))).join(\"/\")}`;\n}\n\n/**\n * Returns true if JSON Pointer points to root value, false otherwise.\n */\nexport const isRoot = (path: string | number | JsonPointerPath): boolean =>\n isString(path)\n ? path === \"\"\n : isNumber(path)\n ? path === 0\n : Array.isArray(path) && path.length === 0;\n\n/**\n * Returns parent path, e.g. for ['foo', 'bar', 'baz'] returns ['foo', 'bar'].\n */\nexport function parent(path: JsonPointerPath): JsonPointerPath {\n if (path.length === 0) {\n throw new Error(\"NO_PARENT\");\n }\n\n return path.slice(0, -1);\n}\n\n/**\n * Check if path component can be a valid array index.\n */\nexport function isValidIndex(index: string | number): boolean {\n if (isNumber(index)) {\n return true;\n }\n\n const n = Number.parseInt(index, 10);\n\n return String(n) === index && n >= 0;\n}\n\nexport const isInteger = (str: string): boolean => {\n const len = str.length;\n let i = 0;\n let charCode: any;\n while (i < len) {\n charCode = str.codePointAt(i);\n if (charCode >= 48 && charCode <= 57) {\n i++;\n continue;\n }\n return false;\n }\n return true;\n};\n"],"mappings":";;;;AAsBA,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,QAAQ;AACd,MAAM,gBAAgB;;;;;;;AAQtB,SAAgB,qBAAqB,SAAyB;AAC5D,KAAI,CAAC,QAAQ,SAAS,IAAI,IAAI,CAAC,QAAQ,SAAS,IAAI,CAClD,QAAO;AAGT,QAAO,QAAQ,QAAQ,OAAO,KAAK,CAAC,QAAQ,eAAe,KAAK;;;;;;;;AASlE,SAAgB,uBAAuB,SAAyB;AAC9D,KAAI,CAAC,QAAQ,SAAS,IAAI,CACxB,QAAO;AAGT,QAAO,QAAQ,QAAQ,WAAW,IAAI,CAAC,QAAQ,YAAY,IAAI;;;;;;AAOjE,SAAgB,iBAAiB,SAAkC;AACjE,KAAI,CAAC,QAAS,QAAO,EAAE;AAEvB,QAAO,QACJ,MAAM,EAAE,CACR,MAAM,IAAI,CACV,KAAI,YAAW,uBAAuB,QAAQ,CAAC;;;;;;AAOpD,SAAgB,kBAAkB,MAA+B;AAE/D,KAAI,OAAO,KAAK,CACd,QAAO;AAGT,QAAO,IAAI,KAAK,KAAI,YAAW,qBAAqB,OAAO,QAAQ,CAAC,CAAC,CAAC,KAAK,IAAI;;;;;AAMjF,MAAa,UAAU,SACrB,SAAS,KAAK,GACV,SAAS,KACT,SAAS,KAAK,GACZ,SAAS,IACT,MAAM,QAAQ,KAAK,IAAI,KAAK,WAAW;;;;AAK/C,SAAgB,OAAO,MAAwC;AAC7D,KAAI,KAAK,WAAW,EAClB,OAAM,IAAI,MAAM,YAAY;AAG9B,QAAO,KAAK,MAAM,GAAG,GAAG;;;;;AAM1B,SAAgB,aAAa,OAAiC;AAC5D,KAAI,SAAS,MAAM,CACjB,QAAO;CAGT,MAAM,IAAI,OAAO,SAAS,OAAO,GAAG;AAEpC,QAAO,OAAO,EAAE,KAAK,SAAS,KAAK;;AAGrC,MAAa,aAAa,QAAyB;CACjD,MAAM,MAAM,IAAI;CAChB,IAAI,IAAI;CACR,IAAIA;AACJ,QAAO,IAAI,KAAK;AACd,aAAW,IAAI,YAAY,EAAE;AAC7B,MAAI,YAAY,MAAM,YAAY,IAAI;AACpC;AACA;;AAEF,SAAO;;AAET,QAAO"}
1
+ {"version":3,"file":"parse-B3NfTO06.mjs","names":["charCode: any"],"sources":["../src/pointer/parse.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 { isNumber } from \"@stryke/type-checks/is-number\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport type { JsonPointerPath } from \"@stryke/types/json\";\n\nconst TILDE_ONE = /~1/g;\nconst TILDE_ZERO = /~0/g;\nconst TILDE = /~/g;\nconst FORWARD_SLASH = /\\//g;\n\n/**\n * Escapes a JSON pointer path segment.\n *\n * @param segment - JSON pointer path segment.\n * @returns Escaped JSON pointer path segment.\n */\nexport function escapePointerSegment(segment: string): string {\n if (!segment.includes(\"/\") && !segment.includes(\"~\")) {\n return segment;\n }\n\n return segment.replace(TILDE, \"~0\").replace(FORWARD_SLASH, \"~1\");\n}\n\n/**\n * Unescapes a JSON pointer path segment.\n *\n * @param segment - JSON pointer path segment.\n * @returns Unescaped JSON pointer path segment.\n */\nexport function unescapePointerSegment(segment: string): string {\n if (!segment.includes(\"~\")) {\n return segment;\n }\n\n return segment.replace(TILDE_ONE, \"/\").replace(TILDE_ZERO, \"~\");\n}\n\n/**\n * Convert JSON pointer like \"/foo/bar\" to array like [\"\", \"foo\", \"bar\"], while\n * also un-escaping reserved characters.\n */\nexport function parseJsonPointer(pointer: string): JsonPointerPath {\n if (!pointer) return [];\n // TODO: Performance of this line can be improved: (1) don't use .split(); (2) don't use .map().\n return pointer\n .slice(1)\n .split(\"/\")\n .map(segment => unescapePointerSegment(segment));\n}\n\n/**\n * Escape and format a path array like [\"\", \"foo\", \"bar\"] to JSON pointer\n * like \"/foo/bar\".\n */\nexport function formatJsonPointer(path: JsonPointerPath): string {\n // eslint-disable-next-line ts/no-use-before-define\n if (isRoot(path)) {\n return \"\";\n }\n\n return `/${path.map(segment => escapePointerSegment(String(segment))).join(\"/\")}`;\n}\n\n/**\n * Returns true if JSON Pointer points to root value, false otherwise.\n */\nexport const isRoot = (path: string | number | JsonPointerPath): boolean =>\n isString(path)\n ? path === \"\"\n : isNumber(path)\n ? path === 0\n : Array.isArray(path) && path.length === 0;\n\n/**\n * Returns parent path, e.g. for ['foo', 'bar', 'baz'] returns ['foo', 'bar'].\n */\nexport function parent(path: JsonPointerPath): JsonPointerPath {\n if (path.length === 0) {\n throw new Error(\"NO_PARENT\");\n }\n\n return path.slice(0, -1);\n}\n\n/**\n * Check if path component can be a valid array index.\n */\nexport function isValidIndex(index: string | number): boolean {\n if (isNumber(index)) {\n return true;\n }\n\n const n = Number.parseInt(index, 10);\n\n return String(n) === index && n >= 0;\n}\n\nexport const isInteger = (str: string): boolean => {\n const len = str.length;\n let i = 0;\n let charCode: any;\n while (i < len) {\n charCode = str.codePointAt(i);\n if (charCode >= 48 && charCode <= 57) {\n i++;\n continue;\n }\n return false;\n }\n return true;\n};\n"],"mappings":";;;;AAsBA,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,QAAQ;AACd,MAAM,gBAAgB;;;;;;;AAQtB,SAAgB,qBAAqB,SAAyB;AAC5D,KAAI,CAAC,QAAQ,SAAS,IAAI,IAAI,CAAC,QAAQ,SAAS,IAAI,CAClD,QAAO;AAGT,QAAO,QAAQ,QAAQ,OAAO,KAAK,CAAC,QAAQ,eAAe,KAAK;;;;;;;;AASlE,SAAgB,uBAAuB,SAAyB;AAC9D,KAAI,CAAC,QAAQ,SAAS,IAAI,CACxB,QAAO;AAGT,QAAO,QAAQ,QAAQ,WAAW,IAAI,CAAC,QAAQ,YAAY,IAAI;;;;;;AAOjE,SAAgB,iBAAiB,SAAkC;AACjE,KAAI,CAAC,QAAS,QAAO,EAAE;AAEvB,QAAO,QACJ,MAAM,EAAE,CACR,MAAM,IAAI,CACV,KAAI,YAAW,uBAAuB,QAAQ,CAAC;;;;;;AAOpD,SAAgB,kBAAkB,MAA+B;AAE/D,KAAI,OAAO,KAAK,CACd,QAAO;AAGT,QAAO,IAAI,KAAK,KAAI,YAAW,qBAAqB,OAAO,QAAQ,CAAC,CAAC,CAAC,KAAK,IAAI;;;;;AAMjF,MAAa,UAAU,SACrB,SAAS,KAAK,GACV,SAAS,KACT,SAAS,KAAK,GACZ,SAAS,IACT,MAAM,QAAQ,KAAK,IAAI,KAAK,WAAW;;;;AAK/C,SAAgB,OAAO,MAAwC;AAC7D,KAAI,KAAK,WAAW,EAClB,OAAM,IAAI,MAAM,YAAY;AAG9B,QAAO,KAAK,MAAM,GAAG,GAAG;;;;;AAM1B,SAAgB,aAAa,OAAiC;AAC5D,KAAI,SAAS,MAAM,CACjB,QAAO;CAGT,MAAM,IAAI,OAAO,SAAS,OAAO,GAAG;AAEpC,QAAO,OAAO,EAAE,KAAK,SAAS,KAAK;;AAGrC,MAAa,aAAa,QAAyB;CACjD,MAAM,MAAM,IAAI;CAChB,IAAI,IAAI;CACR,IAAIA;AACJ,QAAO,IAAI,KAAK;AACd,aAAW,IAAI,YAAY,EAAE;AAC7B,MAAI,YAAY,MAAM,YAAY,IAAI;AACpC;AACA;;AAEF,SAAO;;AAET,QAAO"}
@@ -1,5 +1,5 @@
1
- const require_is_number = require('./is-number-c5xguIbS.cjs');
2
- const require_is_string = require('./is-string-C2RK4Gjs.cjs');
1
+ const require_is_number = require('./is-number-CV8PbAUX.cjs');
2
+ const require_is_string = require('./is-string-yY-B30hL.cjs');
3
3
 
4
4
  //#region src/pointer/parse.ts
5
5
  const TILDE_ONE = /~1/g;
@@ -1,4 +1,4 @@
1
- import { t as stripComments } from "./strip-comments-CMaAgTqz.mjs";
1
+ import { t as stripComments } from "./strip-comments-DNTu6CWM.mjs";
2
2
 
3
3
  //#region src/utils/parse.ts
4
4
  const suspectProtoRx = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/;
@@ -49,4 +49,4 @@ function safeParse(value, options = {}) {
49
49
 
50
50
  //#endregion
51
51
  export { safeParse as n, parse as t };
52
- //# sourceMappingURL=parse-obdkJfj5.mjs.map
52
+ //# sourceMappingURL=parse-BrChHTWb.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"parse-obdkJfj5.mjs","names":[],"sources":["../src/utils/parse.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 { stripComments } from \"./strip-comments\";\n\n// https://github.com/fastify/secure-json-parse\n// https://github.com/hapijs/bourne\nconst suspectProtoRx =\n /\"(?:_|\\\\u0{2}5[Ff]){2}(?:p|\\\\u0{2}70)(?:r|\\\\u0{2}72)(?:o|\\\\u0{2}6[Ff])(?:t|\\\\u0{2}74)(?:o|\\\\u0{2}6[Ff])(?:_|\\\\u0{2}5[Ff]){2}\"\\s*:/;\nconst suspectConstructorRx =\n /\"(?:c|\\\\u0063)(?:o|\\\\u006[Ff])(?:n|\\\\u006[Ee])(?:s|\\\\u0073)(?:t|\\\\u0074)(?:r|\\\\u0072)(?:u|\\\\u0075)(?:c|\\\\u0063)(?:t|\\\\u0074)(?:o|\\\\u006[Ff])(?:r|\\\\u0072)\"\\s*:/;\n\nconst JsonSigRx = /^\\s*[\"[{]|^\\s*-?\\d{1,16}(?:\\.\\d{1,17})?(?:E[+-]?\\d+)?\\s*$/i;\n\nfunction jsonParseTransform(key: string, value: any): any {\n if (\n key === \"__proto__\" ||\n (key === \"constructor\" &&\n value &&\n typeof value === \"object\" &&\n \"prototype\" in value)\n ) {\n // eslint-disable-next-line no-console\n console.warn(`Dropping \"${key}\" key to prevent prototype pollution.`);\n return;\n }\n return value;\n}\n\nexport interface Options {\n strict?: boolean;\n}\n\nexport function parse<T = unknown>(value: any, options: Options = {}): T {\n if (typeof value !== \"string\") {\n return value;\n }\n\n let stripped = stripComments(value);\n\n if (\n stripped[0] === '\"' &&\n stripped[stripped.length - 1] === '\"' &&\n !stripped.includes(\"\\\\\")\n ) {\n return stripped.slice(1, -1) as T;\n }\n\n stripped = stripped.trim();\n\n if (stripped.length <= 9) {\n switch (stripped.toLowerCase()) {\n case \"true\": {\n return true as T;\n }\n case \"false\": {\n return false as T;\n }\n case \"undefined\": {\n return undefined as T;\n }\n case \"null\": {\n return null as T;\n }\n case \"nan\": {\n return Number.NaN as T;\n }\n case \"infinity\": {\n return Number.POSITIVE_INFINITY as T;\n }\n case \"-infinity\": {\n return Number.NEGATIVE_INFINITY as T;\n }\n }\n }\n\n if (!JsonSigRx.test(stripped)) {\n if (options.strict) {\n throw new Error(\"Invalid JSON\");\n }\n return stripped as T;\n }\n\n try {\n if (suspectProtoRx.test(stripped) || suspectConstructorRx.test(stripped)) {\n if (options.strict) {\n throw new Error(\"Possible prototype pollution\");\n }\n return JSON.parse(stripped, jsonParseTransform);\n }\n\n return JSON.parse(stripped);\n } catch (error) {\n if (options.strict) {\n throw error;\n }\n return value as T;\n }\n}\n\nexport function safeParse<T = unknown>(value: any, options: Options = {}): T {\n return parse<T>(value, { ...options, strict: true });\n}\n"],"mappings":";;;AAsBA,MAAM,iBACJ;AACF,MAAM,uBACJ;AAEF,MAAM,YAAY;AAElB,SAAS,mBAAmB,KAAa,OAAiB;AACxD,KACE,QAAQ,eACP,QAAQ,iBACP,SACA,OAAO,UAAU,YACjB,eAAe,OACjB;AAEA,UAAQ,KAAK,aAAa,IAAI,uCAAuC;AACrE;;AAEF,QAAO;;AAOT,SAAgB,MAAmB,OAAY,UAAmB,EAAE,EAAK;AACvE,KAAI,OAAO,UAAU,SACnB,QAAO;CAGT,IAAI,WAAW,cAAc,MAAM;AAEnC,KACE,SAAS,OAAO,QAChB,SAAS,SAAS,SAAS,OAAO,QAClC,CAAC,SAAS,SAAS,KAAK,CAExB,QAAO,SAAS,MAAM,GAAG,GAAG;AAG9B,YAAW,SAAS,MAAM;AAE1B,KAAI,SAAS,UAAU,EACrB,SAAQ,SAAS,aAAa,EAA9B;EACE,KAAK,OACH,QAAO;EAET,KAAK,QACH,QAAO;EAET,KAAK,YACH;EAEF,KAAK,OACH,QAAO;EAET,KAAK,MACH,QAAO;EAET,KAAK,WACH,QAAO,OAAO;EAEhB,KAAK,YACH,QAAO,OAAO;;AAKpB,KAAI,CAAC,UAAU,KAAK,SAAS,EAAE;AAC7B,MAAI,QAAQ,OACV,OAAM,IAAI,MAAM,eAAe;AAEjC,SAAO;;AAGT,KAAI;AACF,MAAI,eAAe,KAAK,SAAS,IAAI,qBAAqB,KAAK,SAAS,EAAE;AACxE,OAAI,QAAQ,OACV,OAAM,IAAI,MAAM,+BAA+B;AAEjD,UAAO,KAAK,MAAM,UAAU,mBAAmB;;AAGjD,SAAO,KAAK,MAAM,SAAS;UACpB,OAAO;AACd,MAAI,QAAQ,OACV,OAAM;AAER,SAAO;;;AAIX,SAAgB,UAAuB,OAAY,UAAmB,EAAE,EAAK;AAC3E,QAAO,MAAS,OAAO;EAAE,GAAG;EAAS,QAAQ;EAAM,CAAC"}
1
+ {"version":3,"file":"parse-BrChHTWb.mjs","names":[],"sources":["../src/utils/parse.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 { stripComments } from \"./strip-comments\";\n\n// https://github.com/fastify/secure-json-parse\n// https://github.com/hapijs/bourne\nconst suspectProtoRx =\n /\"(?:_|\\\\u0{2}5[Ff]){2}(?:p|\\\\u0{2}70)(?:r|\\\\u0{2}72)(?:o|\\\\u0{2}6[Ff])(?:t|\\\\u0{2}74)(?:o|\\\\u0{2}6[Ff])(?:_|\\\\u0{2}5[Ff]){2}\"\\s*:/;\nconst suspectConstructorRx =\n /\"(?:c|\\\\u0063)(?:o|\\\\u006[Ff])(?:n|\\\\u006[Ee])(?:s|\\\\u0073)(?:t|\\\\u0074)(?:r|\\\\u0072)(?:u|\\\\u0075)(?:c|\\\\u0063)(?:t|\\\\u0074)(?:o|\\\\u006[Ff])(?:r|\\\\u0072)\"\\s*:/;\n\nconst JsonSigRx = /^\\s*[\"[{]|^\\s*-?\\d{1,16}(?:\\.\\d{1,17})?(?:E[+-]?\\d+)?\\s*$/i;\n\nfunction jsonParseTransform(key: string, value: any): any {\n if (\n key === \"__proto__\" ||\n (key === \"constructor\" &&\n value &&\n typeof value === \"object\" &&\n \"prototype\" in value)\n ) {\n // eslint-disable-next-line no-console\n console.warn(`Dropping \"${key}\" key to prevent prototype pollution.`);\n return;\n }\n return value;\n}\n\nexport interface Options {\n strict?: boolean;\n}\n\nexport function parse<T = unknown>(value: any, options: Options = {}): T {\n if (typeof value !== \"string\") {\n return value;\n }\n\n let stripped = stripComments(value);\n\n if (\n stripped[0] === '\"' &&\n stripped[stripped.length - 1] === '\"' &&\n !stripped.includes(\"\\\\\")\n ) {\n return stripped.slice(1, -1) as T;\n }\n\n stripped = stripped.trim();\n\n if (stripped.length <= 9) {\n switch (stripped.toLowerCase()) {\n case \"true\": {\n return true as T;\n }\n case \"false\": {\n return false as T;\n }\n case \"undefined\": {\n return undefined as T;\n }\n case \"null\": {\n return null as T;\n }\n case \"nan\": {\n return Number.NaN as T;\n }\n case \"infinity\": {\n return Number.POSITIVE_INFINITY as T;\n }\n case \"-infinity\": {\n return Number.NEGATIVE_INFINITY as T;\n }\n }\n }\n\n if (!JsonSigRx.test(stripped)) {\n if (options.strict) {\n throw new Error(\"Invalid JSON\");\n }\n return stripped as T;\n }\n\n try {\n if (suspectProtoRx.test(stripped) || suspectConstructorRx.test(stripped)) {\n if (options.strict) {\n throw new Error(\"Possible prototype pollution\");\n }\n return JSON.parse(stripped, jsonParseTransform);\n }\n\n return JSON.parse(stripped);\n } catch (error) {\n if (options.strict) {\n throw error;\n }\n return value as T;\n }\n}\n\nexport function safeParse<T = unknown>(value: any, options: Options = {}): T {\n return parse<T>(value, { ...options, strict: true });\n}\n"],"mappings":";;;AAsBA,MAAM,iBACJ;AACF,MAAM,uBACJ;AAEF,MAAM,YAAY;AAElB,SAAS,mBAAmB,KAAa,OAAiB;AACxD,KACE,QAAQ,eACP,QAAQ,iBACP,SACA,OAAO,UAAU,YACjB,eAAe,OACjB;AAEA,UAAQ,KAAK,aAAa,IAAI,uCAAuC;AACrE;;AAEF,QAAO;;AAOT,SAAgB,MAAmB,OAAY,UAAmB,EAAE,EAAK;AACvE,KAAI,OAAO,UAAU,SACnB,QAAO;CAGT,IAAI,WAAW,cAAc,MAAM;AAEnC,KACE,SAAS,OAAO,QAChB,SAAS,SAAS,SAAS,OAAO,QAClC,CAAC,SAAS,SAAS,KAAK,CAExB,QAAO,SAAS,MAAM,GAAG,GAAG;AAG9B,YAAW,SAAS,MAAM;AAE1B,KAAI,SAAS,UAAU,EACrB,SAAQ,SAAS,aAAa,EAA9B;EACE,KAAK,OACH,QAAO;EAET,KAAK,QACH,QAAO;EAET,KAAK,YACH;EAEF,KAAK,OACH,QAAO;EAET,KAAK,MACH,QAAO;EAET,KAAK,WACH,QAAO,OAAO;EAEhB,KAAK,YACH,QAAO,OAAO;;AAKpB,KAAI,CAAC,UAAU,KAAK,SAAS,EAAE;AAC7B,MAAI,QAAQ,OACV,OAAM,IAAI,MAAM,eAAe;AAEjC,SAAO;;AAGT,KAAI;AACF,MAAI,eAAe,KAAK,SAAS,IAAI,qBAAqB,KAAK,SAAS,EAAE;AACxE,OAAI,QAAQ,OACV,OAAM,IAAI,MAAM,+BAA+B;AAEjD,UAAO,KAAK,MAAM,UAAU,mBAAmB;;AAGjD,SAAO,KAAK,MAAM,SAAS;UACpB,OAAO;AACd,MAAI,QAAQ,OACV,OAAM;AAER,SAAO;;;AAIX,SAAgB,UAAuB,OAAY,UAAmB,EAAE,EAAK;AAC3E,QAAO,MAAS,OAAO;EAAE,GAAG;EAAS,QAAQ;EAAM,CAAC"}
@@ -1,4 +1,4 @@
1
- const require_strip_comments = require('./strip-comments-CtFoX0xG.cjs');
1
+ const require_strip_comments = require('./strip-comments-CPoO4Wj2.cjs');
2
2
 
3
3
  //#region src/utils/parse.ts
4
4
  const suspectProtoRx = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/;
@@ -48,4 +48,4 @@ declare function isValidIndex(index: string | number): boolean;
48
48
  declare const isInteger: (str: string) => boolean;
49
49
  //#endregion
50
50
  export { isValidIndex as a, unescapePointerSegment as c, isRoot as i, formatJsonPointer as n, parent as o, isInteger as r, parseJsonPointer as s, escapePointerSegment as t };
51
- //# sourceMappingURL=parse-DZfi3d96.d.cts.map
51
+ //# sourceMappingURL=parse-DCHSu_0u.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parse-DZfi3d96.d.cts","names":[],"sources":["../../types/src/json.ts","../src/pointer/parse.ts"],"sourcesContent":[],"mappings":";;;;;;;;KA6CY,eAAA;;;AAAZ;;;;ACZA;AAcA;AAYgB,iBA1BA,oBAAA,CA0BmC,OAAe,EAAA,MAAA,CAAA,EAAA,MAAA;AAalE;AAYA;AAUA;AAWA;AAUA;;iBApEgB,sBAAA;;;;;iBAYA,gBAAA,mBAAmC;;;;;iBAanC,iBAAA,OAAwB;;;;cAY3B,iCAAkC;;;;iBAU/B,MAAA,OAAa,kBAAkB;;;;iBAW/B,YAAA;cAUH"}
1
+ {"version":3,"file":"parse-DCHSu_0u.d.cts","names":[],"sources":["../../types/src/json.ts","../src/pointer/parse.ts"],"sourcesContent":[],"mappings":";;;;;;;;KA6CY,eAAA;;;AAAZ;;;;ACZA;AAcA;AAYgB,iBA1BA,oBAAA,CA0BmC,OAAe,EAAA,MAAA,CAAA,EAAA,MAAA;AAalE;AAYA;AAUA;AAWA;AAUA;;iBApEgB,sBAAA;;;;;iBAYA,gBAAA,mBAAmC;;;;;iBAanC,iBAAA,OAAwB;;;;cAY3B,iCAAkC;;;;iBAU/B,MAAA,OAAa,kBAAkB;;;;iBAW/B,YAAA;cAUH"}
@@ -48,4 +48,4 @@ declare function isValidIndex(index: string | number): boolean;
48
48
  declare const isInteger: (str: string) => boolean;
49
49
  //#endregion
50
50
  export { isValidIndex as a, unescapePointerSegment as c, isRoot as i, formatJsonPointer as n, parent as o, isInteger as r, parseJsonPointer as s, escapePointerSegment as t };
51
- //# sourceMappingURL=parse-ZRTh45ZI.d.mts.map
51
+ //# sourceMappingURL=parse-DaiwKCLz.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parse-ZRTh45ZI.d.mts","names":[],"sources":["../../types/src/json.ts","../src/pointer/parse.ts"],"sourcesContent":[],"mappings":";;;;;;;;KA6CY,eAAA;;;AAAZ;;;;ACZA;AAcA;AAYgB,iBA1BA,oBAAA,CA0BmC,OAAe,EAAA,MAAA,CAAA,EAAA,MAAA;AAalE;AAYA;AAUA;AAWA;AAUA;;iBApEgB,sBAAA;;;;;iBAYA,gBAAA,mBAAmC;;;;;iBAanC,iBAAA,OAAwB;;;;cAY3B,iCAAkC;;;;iBAU/B,MAAA,OAAa,kBAAkB;;;;iBAW/B,YAAA;cAUH"}
1
+ {"version":3,"file":"parse-DaiwKCLz.d.mts","names":[],"sources":["../../types/src/json.ts","../src/pointer/parse.ts"],"sourcesContent":[],"mappings":";;;;;;;;KA6CY,eAAA;;;AAAZ;;;;ACZA;AAcA;AAYgB,iBA1BA,oBAAA,CA0BmC,OAAe,EAAA,MAAA,CAAA,EAAA,MAAA;AAalE;AAYA;AAUA;AAWA;AAUA;;iBApEgB,sBAAA;;;;;iBAYA,gBAAA,mBAAmC;;;;;iBAanC,iBAAA,OAAwB;;;;cAY3B,iCAAkC;;;;iBAU/B,MAAA,OAAa,kBAAkB;;;;iBAW/B,YAAA;cAUH"}
@@ -6,4 +6,4 @@ declare function parse<T = unknown>(value: any, options?: Options): T;
6
6
  declare function safeParse<T = unknown>(value: any, options?: Options): T;
7
7
  //#endregion
8
8
  export { parse as n, safeParse as r, Options as t };
9
- //# sourceMappingURL=parse-BGlhbY16.d.cts.map
9
+ //# sourceMappingURL=parse-XXQfTfNE.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parse-BGlhbY16.d.cts","names":[],"sources":["../src/utils/parse.ts"],"sourcesContent":[],"mappings":";UA4CiB,OAAA;EAAA,MAAA,CAAA,EAAA,OAAO;AAIxB;AAmEgB,iBAnEA,KAmE4C,CAAA,IAAA,OAAgB,CAAA,CAAA,KAAA,EAAA,GAAA,EAAA,OAAA,CAAA,EAnEpB,OAmEoB,CAAA,EAnEL,CAmEK;iBAA5D,6CAA4C,UAAe"}
1
+ {"version":3,"file":"parse-XXQfTfNE.d.mts","names":[],"sources":["../src/utils/parse.ts"],"sourcesContent":[],"mappings":";UA4CiB,OAAA;EAAA,MAAA,CAAA,EAAA,OAAO;AAIxB;AAmEgB,iBAnEA,KAmE4C,CAAA,IAAA,OAAgB,CAAA,CAAA,KAAA,EAAA,GAAA,EAAA,OAAA,CAAA,EAnEpB,OAmEoB,CAAA,EAnEL,CAmEK;iBAA5D,6CAA4C,UAAe"}
@@ -12,4 +12,4 @@ import { ParseError } from "jsonc-parser";
12
12
  declare function formatParseError(input: string, parseError: ParseError): string;
13
13
  //#endregion
14
14
  export { formatParseError as t };
15
- //# sourceMappingURL=parse-error-DY_MelEh.d.mts.map
15
+ //# sourceMappingURL=parse-error-CDt01Gvc.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-error-CDt01Gvc.d.mts","names":[],"sources":["../src/utils/parse-error.ts"],"sourcesContent":[],"mappings":";;;;;;AA8BA;;;;;iBAAgB,gBAAA,4BAA4C"}
@@ -12,4 +12,4 @@ import { ParseError } from "jsonc-parser";
12
12
  declare function formatParseError(input: string, parseError: ParseError): string;
13
13
  //#endregion
14
14
  export { formatParseError as t };
15
- //# sourceMappingURL=parse-error-7K8s4vWf.d.cts.map
15
+ //# sourceMappingURL=parse-error-CGKcBkMJ.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-error-CGKcBkMJ.d.cts","names":[],"sources":["../src/utils/parse-error.ts"],"sourcesContent":[],"mappings":";;;;;;AA8BA;;;;;iBAAgB,gBAAA,4BAA4C"}
@@ -1,5 +1,5 @@
1
- const require_storm_json = require('./storm-json-6WpS7qnH.cjs');
2
- const require_code_frames = require('./code-frames-Cv8r5tSN.cjs');
1
+ const require_storm_json = require('./storm-json-BDPXNC_u.cjs');
2
+ const require_code_frames = require('./code-frames-ChE4PPdh.cjs');
3
3
  let jsonc_parser = require("jsonc-parser");
4
4
  let lines_and_columns = require("lines-and-columns");
5
5
 
@@ -1,4 +1,4 @@
1
- import { t as codeFrameColumns } from "./code-frames-DISWdYL6.mjs";
1
+ import { t as codeFrameColumns } from "./code-frames-C8DEdLmV.mjs";
2
2
  import { printParseErrorCode } from "jsonc-parser";
3
3
  import { LinesAndColumns } from "lines-and-columns";
4
4
 
@@ -31,4 +31,4 @@ function formatParseError(input, parseError) {
31
31
 
32
32
  //#endregion
33
33
  export { formatParseError as t };
34
- //# sourceMappingURL=parse-error-C3Qmubee.mjs.map
34
+ //# sourceMappingURL=parse-error-Cu6mjBS7.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"parse-error-C3Qmubee.mjs","names":[],"sources":["../src/utils/parse-error.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 { printParseErrorCode } from \"jsonc-parser\";\nimport { LinesAndColumns } from \"lines-and-columns\";\nimport { codeFrameColumns } from \"./code-frames\";\n\n/**\n * Nicely formats a JSON error with context\n *\n * @param input - JSON content as string\n * @param parseError - jsonc ParseError\n * @returns Formatted error message with context\n */\nexport function formatParseError(input: string, parseError: ParseError) {\n const { error, offset, length } = parseError;\n const result = new LinesAndColumns(input).locationForIndex(offset);\n let line = result?.line ?? 0;\n let column = result?.column ?? 0;\n\n line++;\n column++;\n\n return `${printParseErrorCode(error)} in JSON at ${line}:${column}\\n${codeFrameColumns(\n input,\n {\n start: {\n line,\n column\n },\n end: {\n line,\n column: column + length\n }\n }\n )}\\n`;\n}\n"],"mappings":";;;;;;;;;;;;AA8BA,SAAgB,iBAAiB,OAAe,YAAwB;CACtE,MAAM,EAAE,OAAO,QAAQ,WAAW;CAClC,MAAM,SAAS,IAAI,gBAAgB,MAAM,CAAC,iBAAiB,OAAO;CAClE,IAAI,OAAO,QAAQ,QAAQ;CAC3B,IAAI,SAAS,QAAQ,UAAU;AAE/B;AACA;AAEA,QAAO,GAAG,oBAAoB,MAAM,CAAC,cAAc,KAAK,GAAG,OAAO,IAAI,iBACpE,OACA;EACE,OAAO;GACL;GACA;GACD;EACD,KAAK;GACH;GACA,QAAQ,SAAS;GAClB;EACF,CACF,CAAC"}
1
+ {"version":3,"file":"parse-error-Cu6mjBS7.mjs","names":[],"sources":["../src/utils/parse-error.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 { printParseErrorCode } from \"jsonc-parser\";\nimport { LinesAndColumns } from \"lines-and-columns\";\nimport { codeFrameColumns } from \"./code-frames\";\n\n/**\n * Nicely formats a JSON error with context\n *\n * @param input - JSON content as string\n * @param parseError - jsonc ParseError\n * @returns Formatted error message with context\n */\nexport function formatParseError(input: string, parseError: ParseError) {\n const { error, offset, length } = parseError;\n const result = new LinesAndColumns(input).locationForIndex(offset);\n let line = result?.line ?? 0;\n let column = result?.column ?? 0;\n\n line++;\n column++;\n\n return `${printParseErrorCode(error)} in JSON at ${line}:${column}\\n${codeFrameColumns(\n input,\n {\n start: {\n line,\n column\n },\n end: {\n line,\n column: column + length\n }\n }\n )}\\n`;\n}\n"],"mappings":";;;;;;;;;;;;AA8BA,SAAgB,iBAAiB,OAAe,YAAwB;CACtE,MAAM,EAAE,OAAO,QAAQ,WAAW;CAClC,MAAM,SAAS,IAAI,gBAAgB,MAAM,CAAC,iBAAiB,OAAO;CAClE,IAAI,OAAO,QAAQ,QAAQ;CAC3B,IAAI,SAAS,QAAQ,UAAU;AAE/B;AACA;AAEA,QAAO,GAAG,oBAAoB,MAAM,CAAC,cAAc,KAAK,GAAG,OAAO,IAAI,iBACpE,OACA;EACE,OAAO;GACL;GACA;GACD;EACD,KAAK;GACH;GACA,QAAQ,SAAS;GAClB;EACF,CACF,CAAC"}
@@ -6,4 +6,4 @@ declare function parse<T = unknown>(value: any, options?: Options): T;
6
6
  declare function safeParse<T = unknown>(value: any, options?: Options): T;
7
7
  //#endregion
8
8
  export { parse as n, safeParse as r, Options as t };
9
- //# sourceMappingURL=parse-DgYW5BBj.d.mts.map
9
+ //# sourceMappingURL=parse-ygKFNauQ.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parse-DgYW5BBj.d.mts","names":[],"sources":["../src/utils/parse.ts"],"sourcesContent":[],"mappings":";UA4CiB,OAAA;EAAA,MAAA,CAAA,EAAA,OAAO;AAIxB;AAmEgB,iBAnEA,KAmE4C,CAAA,IAAA,OAAgB,CAAA,CAAA,KAAA,EAAA,GAAA,EAAA,OAAA,CAAA,EAnEpB,OAmEoB,CAAA,EAnEL,CAmEK;iBAA5D,6CAA4C,UAAe"}
1
+ {"version":3,"file":"parse-ygKFNauQ.d.cts","names":[],"sources":["../src/utils/parse.ts"],"sourcesContent":[],"mappings":";UA4CiB,OAAA;EAAA,MAAA,CAAA,EAAA,OAAO;AAIxB;AAmEgB,iBAnEA,KAmE4C,CAAA,IAAA,OAAgB,CAAA,CAAA,KAAA,EAAA,GAAA,EAAA,OAAA,CAAA,EAnEpB,OAmEoB,CAAA,EAnEL,CAmEK;iBAA5D,6CAA4C,UAAe"}
@@ -1,4 +1,4 @@
1
- const require_find_reference = require('../find-reference-BCg3dQx1.cjs');
1
+ const require_find_reference = require('../find-reference-Ct8UDBo2.cjs');
2
2
 
3
3
  exports.find = require_find_reference.find;
4
4
  exports.isArrayEnd = require_find_reference.isArrayEnd;
@@ -1,2 +1,2 @@
1
- import { a as isArrayEnd, i as find, n as ObjectReference, o as isArrayReference, r as Reference, s as isObjectReference, t as ArrayReference } from "../find-reference-C-YleCds.cjs";
1
+ import { a as isArrayEnd, i as find, n as ObjectReference, o as isArrayReference, r as Reference, s as isObjectReference, t as ArrayReference } from "../find-reference-BuuNqqOh.cjs";
2
2
  export { ArrayReference, ObjectReference, Reference, find, isArrayEnd, isArrayReference, isObjectReference };
@@ -1,2 +1,2 @@
1
- import { a as isArrayEnd, i as find, n as ObjectReference, o as isArrayReference, r as Reference, s as isObjectReference, t as ArrayReference } from "../find-reference-b7rRdLFx.mjs";
1
+ import { a as isArrayEnd, i as find, n as ObjectReference, o as isArrayReference, r as Reference, s as isObjectReference, t as ArrayReference } from "../find-reference-MHRH7HJ_.mjs";
2
2
  export { ArrayReference, ObjectReference, Reference, find, isArrayEnd, isArrayReference, isObjectReference };
@@ -1,3 +1,3 @@
1
- import { i as isObjectReference, n as isArrayEnd, r as isArrayReference, t as find } from "../find-reference-woYMiWzN.mjs";
1
+ import { i as isObjectReference, n as isArrayEnd, r as isArrayReference, t as find } from "../find-reference-kPgdulJ1.mjs";
2
2
 
3
3
  export { find, isArrayEnd, isArrayReference, isObjectReference };
@@ -1,6 +1,6 @@
1
- const require_find_reference = require('../find-reference-BCg3dQx1.cjs');
2
- const require_parse = require('../parse-KiRakdIR.cjs');
3
- require('../pointer-Cc7IR0Bj.cjs');
1
+ const require_find_reference = require('../find-reference-Ct8UDBo2.cjs');
2
+ const require_parse = require('../parse-BSmqrTy_.cjs');
3
+ require('../pointer-Cvmor4sN.cjs');
4
4
 
5
5
  exports.escapePointerSegment = require_parse.escapePointerSegment;
6
6
  exports.find = require_find_reference.find;
@@ -1,3 +1,3 @@
1
- import { a as isArrayEnd, i as find, n as ObjectReference, o as isArrayReference, r as Reference, s as isObjectReference, t as ArrayReference } from "../find-reference-C-YleCds.cjs";
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-DZfi3d96.cjs";
1
+ import { a as isArrayEnd, i as find, n as ObjectReference, o as isArrayReference, r as Reference, s as isObjectReference, t as ArrayReference } from "../find-reference-BuuNqqOh.cjs";
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-DCHSu_0u.cjs";
3
3
  export { ArrayReference, ObjectReference, Reference, escapePointerSegment, find, formatJsonPointer, isArrayEnd, isArrayReference, isInteger, isObjectReference, isRoot, isValidIndex, parent, parseJsonPointer, unescapePointerSegment };
@@ -1,3 +1,3 @@
1
- import { a as isArrayEnd, i as find, n as ObjectReference, o as isArrayReference, r as Reference, s as isObjectReference, t as ArrayReference } from "../find-reference-b7rRdLFx.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-ZRTh45ZI.mjs";
1
+ import { a as isArrayEnd, i as find, n as ObjectReference, o as isArrayReference, r as Reference, s as isObjectReference, t as ArrayReference } from "../find-reference-MHRH7HJ_.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-DaiwKCLz.mjs";
3
3
  export { ArrayReference, ObjectReference, Reference, escapePointerSegment, find, formatJsonPointer, isArrayEnd, isArrayReference, isInteger, isObjectReference, isRoot, isValidIndex, parent, parseJsonPointer, unescapePointerSegment };