toolcraft 0.0.109 → 0.0.111

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 (533) hide show
  1. package/composition.json +27 -2
  2. package/dist/composition.json +27 -2
  3. package/node_modules/ajv/.runkit_example.js +23 -0
  4. package/node_modules/ajv/LICENSE +22 -0
  5. package/node_modules/ajv/README.md +207 -0
  6. package/node_modules/ajv/dist/2019.d.ts +19 -0
  7. package/node_modules/ajv/dist/2019.js +61 -0
  8. package/node_modules/ajv/dist/2019.js.map +1 -0
  9. package/node_modules/ajv/dist/2020.d.ts +19 -0
  10. package/node_modules/ajv/dist/2020.js +55 -0
  11. package/node_modules/ajv/dist/2020.js.map +1 -0
  12. package/node_modules/ajv/dist/ajv.d.ts +18 -0
  13. package/node_modules/ajv/dist/ajv.js +50 -0
  14. package/node_modules/ajv/dist/ajv.js.map +1 -0
  15. package/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
  16. package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
  17. package/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
  18. package/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
  19. package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  20. package/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
  21. package/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
  22. package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  23. package/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
  24. package/node_modules/ajv/dist/compile/errors.d.ts +13 -0
  25. package/node_modules/ajv/dist/compile/errors.js +123 -0
  26. package/node_modules/ajv/dist/compile/errors.js.map +1 -0
  27. package/node_modules/ajv/dist/compile/index.d.ts +80 -0
  28. package/node_modules/ajv/dist/compile/index.js +242 -0
  29. package/node_modules/ajv/dist/compile/index.js.map +1 -0
  30. package/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
  31. package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
  32. package/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
  33. package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
  34. package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
  35. package/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
  36. package/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
  37. package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  38. package/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
  39. package/node_modules/ajv/dist/compile/names.d.ts +20 -0
  40. package/node_modules/ajv/dist/compile/names.js +28 -0
  41. package/node_modules/ajv/dist/compile/names.js.map +1 -0
  42. package/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
  43. package/node_modules/ajv/dist/compile/ref_error.js +12 -0
  44. package/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
  45. package/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
  46. package/node_modules/ajv/dist/compile/resolve.js +155 -0
  47. package/node_modules/ajv/dist/compile/resolve.js.map +1 -0
  48. package/node_modules/ajv/dist/compile/rules.d.ts +28 -0
  49. package/node_modules/ajv/dist/compile/rules.js +26 -0
  50. package/node_modules/ajv/dist/compile/rules.js.map +1 -0
  51. package/node_modules/ajv/dist/compile/util.d.ts +40 -0
  52. package/node_modules/ajv/dist/compile/util.js +178 -0
  53. package/node_modules/ajv/dist/compile/util.js.map +1 -0
  54. package/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
  55. package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  56. package/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
  57. package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
  58. package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  59. package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
  60. package/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
  61. package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
  62. package/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
  63. package/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
  64. package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  65. package/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
  66. package/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
  67. package/node_modules/ajv/dist/compile/validate/index.js +520 -0
  68. package/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
  69. package/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
  70. package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  71. package/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
  72. package/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
  73. package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  74. package/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
  75. package/node_modules/ajv/dist/core.d.ts +174 -0
  76. package/node_modules/ajv/dist/core.js +618 -0
  77. package/node_modules/ajv/dist/core.js.map +1 -0
  78. package/node_modules/ajv/dist/jtd.d.ts +47 -0
  79. package/node_modules/ajv/dist/jtd.js +72 -0
  80. package/node_modules/ajv/dist/jtd.js.map +1 -0
  81. package/node_modules/ajv/dist/refs/data.json +13 -0
  82. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
  83. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  84. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
  85. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  86. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  87. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  88. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  89. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  90. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  91. package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  92. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
  93. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  94. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
  95. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  96. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  97. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  98. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  99. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  100. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  101. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  102. package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  103. package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  104. package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  105. package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  106. package/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
  107. package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  108. package/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
  109. package/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
  110. package/node_modules/ajv/dist/runtime/equal.js +7 -0
  111. package/node_modules/ajv/dist/runtime/equal.js.map +1 -0
  112. package/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
  113. package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
  114. package/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
  115. package/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
  116. package/node_modules/ajv/dist/runtime/quote.js +30 -0
  117. package/node_modules/ajv/dist/runtime/quote.js.map +1 -0
  118. package/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
  119. package/node_modules/ajv/dist/runtime/re2.js +6 -0
  120. package/node_modules/ajv/dist/runtime/re2.js.map +1 -0
  121. package/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
  122. package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
  123. package/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
  124. package/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
  125. package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  126. package/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
  127. package/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
  128. package/node_modules/ajv/dist/runtime/uri.js +6 -0
  129. package/node_modules/ajv/dist/runtime/uri.js.map +1 -0
  130. package/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
  131. package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  132. package/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
  133. package/node_modules/ajv/dist/standalone/index.d.ts +6 -0
  134. package/node_modules/ajv/dist/standalone/index.js +90 -0
  135. package/node_modules/ajv/dist/standalone/index.js.map +1 -0
  136. package/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
  137. package/node_modules/ajv/dist/standalone/instance.js +35 -0
  138. package/node_modules/ajv/dist/standalone/instance.js.map +1 -0
  139. package/node_modules/ajv/dist/types/index.d.ts +183 -0
  140. package/node_modules/ajv/dist/types/index.js +3 -0
  141. package/node_modules/ajv/dist/types/index.js.map +1 -0
  142. package/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
  143. package/node_modules/ajv/dist/types/json-schema.js +3 -0
  144. package/node_modules/ajv/dist/types/json-schema.js.map +1 -0
  145. package/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
  146. package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  147. package/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
  148. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
  149. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  150. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
  151. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
  152. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  153. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
  154. package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
  155. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  156. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
  157. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
  158. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  159. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
  160. package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
  161. package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  162. package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
  163. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
  164. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  165. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
  166. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
  167. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  168. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
  169. package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
  170. package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  171. package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
  172. package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
  173. package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  174. package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
  175. package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
  176. package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  177. package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
  178. package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
  179. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  180. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
  181. package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
  182. package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  183. package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
  184. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
  185. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  186. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
  187. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
  188. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  189. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
  190. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
  191. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  192. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
  193. package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
  194. package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  195. package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
  196. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
  197. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  198. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
  199. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
  200. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  201. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
  202. package/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
  203. package/node_modules/ajv/dist/vocabularies/code.js +131 -0
  204. package/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
  205. package/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
  206. package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  207. package/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
  208. package/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
  209. package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  210. package/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
  211. package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
  212. package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  213. package/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
  214. package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
  215. package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
  216. package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
  217. package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
  218. package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  219. package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
  220. package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
  221. package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
  222. package/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
  223. package/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
  224. package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  225. package/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
  226. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
  227. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  228. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
  229. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
  230. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  231. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
  232. package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
  233. package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
  234. package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
  235. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
  236. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  237. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
  238. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
  239. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  240. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
  241. package/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
  242. package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  243. package/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
  244. package/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
  245. package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  246. package/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
  247. package/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
  248. package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  249. package/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
  250. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
  251. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
  252. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
  253. package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
  254. package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
  255. package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
  256. package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
  257. package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
  258. package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
  259. package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
  260. package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
  261. package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
  262. package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
  263. package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
  264. package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
  265. package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
  266. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  267. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
  268. package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
  269. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  270. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
  271. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
  272. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
  273. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
  274. package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
  275. package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
  276. package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
  277. package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
  278. package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
  279. package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
  280. package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
  281. package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
  282. package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
  283. package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
  284. package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
  285. package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
  286. package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
  287. package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
  288. package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
  289. package/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
  290. package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  291. package/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
  292. package/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
  293. package/node_modules/ajv/dist/vocabularies/next.js +8 -0
  294. package/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
  295. package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
  296. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  297. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
  298. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
  299. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  300. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
  301. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
  302. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
  303. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
  304. package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
  305. package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  306. package/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
  307. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
  308. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  309. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
  310. package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
  311. package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
  312. package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
  313. package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
  314. package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  315. package/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
  316. package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
  317. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  318. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
  319. package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
  320. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  321. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
  322. package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
  323. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  324. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
  325. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
  326. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  327. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
  328. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
  329. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  330. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
  331. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
  332. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  333. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
  334. package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
  335. package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
  336. package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
  337. package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
  338. package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  339. package/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
  340. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
  341. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  342. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
  343. package/node_modules/ajv/lib/2019.ts +81 -0
  344. package/node_modules/ajv/lib/2020.ts +75 -0
  345. package/node_modules/ajv/lib/ajv.ts +70 -0
  346. package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
  347. package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
  348. package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  349. package/node_modules/ajv/lib/compile/errors.ts +184 -0
  350. package/node_modules/ajv/lib/compile/index.ts +324 -0
  351. package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
  352. package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
  353. package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  354. package/node_modules/ajv/lib/compile/names.ts +27 -0
  355. package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
  356. package/node_modules/ajv/lib/compile/resolve.ts +149 -0
  357. package/node_modules/ajv/lib/compile/rules.ts +50 -0
  358. package/node_modules/ajv/lib/compile/util.ts +213 -0
  359. package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  360. package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  361. package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
  362. package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  363. package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
  364. package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
  365. package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
  366. package/node_modules/ajv/lib/core.ts +892 -0
  367. package/node_modules/ajv/lib/jtd.ts +132 -0
  368. package/node_modules/ajv/lib/refs/data.json +13 -0
  369. package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  370. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  371. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  372. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  373. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  374. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  375. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  376. package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  377. package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
  378. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
  379. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
  380. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
  381. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  382. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  383. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  384. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
  385. package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
  386. package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  387. package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  388. package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  389. package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  390. package/node_modules/ajv/lib/runtime/equal.ts +7 -0
  391. package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
  392. package/node_modules/ajv/lib/runtime/quote.ts +31 -0
  393. package/node_modules/ajv/lib/runtime/re2.ts +6 -0
  394. package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
  395. package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
  396. package/node_modules/ajv/lib/runtime/uri.ts +6 -0
  397. package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
  398. package/node_modules/ajv/lib/standalone/index.ts +100 -0
  399. package/node_modules/ajv/lib/standalone/instance.ts +36 -0
  400. package/node_modules/ajv/lib/types/index.ts +244 -0
  401. package/node_modules/ajv/lib/types/json-schema.ts +187 -0
  402. package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
  403. package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
  404. package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  405. package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  406. package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
  407. package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
  408. package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  409. package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  410. package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
  411. package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
  412. package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
  413. package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
  414. package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
  415. package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
  416. package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
  417. package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
  418. package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  419. package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  420. package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  421. package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
  422. package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  423. package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  424. package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
  425. package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
  426. package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
  427. package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
  428. package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  429. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
  430. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  431. package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  432. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  433. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  434. package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
  435. package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
  436. package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  437. package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
  438. package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
  439. package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
  440. package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
  441. package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
  442. package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  443. package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
  444. package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
  445. package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
  446. package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
  447. package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
  448. package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
  449. package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
  450. package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  451. package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  452. package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  453. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
  454. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
  455. package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
  456. package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  457. package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
  458. package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  459. package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  460. package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  461. package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
  462. package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  463. package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  464. package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  465. package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
  466. package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  467. package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
  468. package/node_modules/ajv/package.json +126 -0
  469. package/node_modules/fast-deep-equal/LICENSE +21 -0
  470. package/node_modules/fast-deep-equal/README.md +96 -0
  471. package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
  472. package/node_modules/fast-deep-equal/es6/index.js +72 -0
  473. package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
  474. package/node_modules/fast-deep-equal/es6/react.js +79 -0
  475. package/node_modules/fast-deep-equal/index.d.ts +4 -0
  476. package/node_modules/fast-deep-equal/index.js +46 -0
  477. package/node_modules/fast-deep-equal/package.json +61 -0
  478. package/node_modules/fast-deep-equal/react.d.ts +2 -0
  479. package/node_modules/fast-deep-equal/react.js +53 -0
  480. package/node_modules/fast-uri/.gitattributes +2 -0
  481. package/node_modules/fast-uri/.github/dependabot.yml +13 -0
  482. package/node_modules/fast-uri/.github/workflows/ci.yml +106 -0
  483. package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
  484. package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
  485. package/node_modules/fast-uri/LICENSE +30 -0
  486. package/node_modules/fast-uri/README.md +152 -0
  487. package/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
  488. package/node_modules/fast-uri/benchmark/equal.mjs +51 -0
  489. package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
  490. package/node_modules/fast-uri/benchmark/package.json +17 -0
  491. package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
  492. package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
  493. package/node_modules/fast-uri/eslint.config.js +6 -0
  494. package/node_modules/fast-uri/index.js +406 -0
  495. package/node_modules/fast-uri/lib/schemes.js +267 -0
  496. package/node_modules/fast-uri/lib/utils.js +443 -0
  497. package/node_modules/fast-uri/package.json +68 -0
  498. package/node_modules/fast-uri/test/ajv.test.js +43 -0
  499. package/node_modules/fast-uri/test/equal.test.js +117 -0
  500. package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +501 -0
  501. package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
  502. package/node_modules/fast-uri/test/parse.test.js +323 -0
  503. package/node_modules/fast-uri/test/resolve.test.js +87 -0
  504. package/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
  505. package/node_modules/fast-uri/test/security-normalization.test.js +39 -0
  506. package/node_modules/fast-uri/test/security.test.js +133 -0
  507. package/node_modules/fast-uri/test/serialize.test.js +151 -0
  508. package/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
  509. package/node_modules/fast-uri/test/uri-js.test.js +912 -0
  510. package/node_modules/fast-uri/test/util.test.js +38 -0
  511. package/node_modules/fast-uri/tsconfig.json +9 -0
  512. package/node_modules/fast-uri/types/index.d.ts +60 -0
  513. package/node_modules/fast-uri/types/index.test-d.ts +17 -0
  514. package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
  515. package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
  516. package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
  517. package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
  518. package/node_modules/json-schema-traverse/LICENSE +21 -0
  519. package/node_modules/json-schema-traverse/README.md +95 -0
  520. package/node_modules/json-schema-traverse/index.d.ts +40 -0
  521. package/node_modules/json-schema-traverse/index.js +93 -0
  522. package/node_modules/json-schema-traverse/package.json +43 -0
  523. package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
  524. package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
  525. package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
  526. package/node_modules/require-from-string/index.js +34 -0
  527. package/node_modules/require-from-string/license +21 -0
  528. package/node_modules/require-from-string/package.json +28 -0
  529. package/node_modules/require-from-string/readme.md +56 -0
  530. package/node_modules/tiny-stdio-mcp-server/dist/server.js +17 -1
  531. package/node_modules/tiny-stdio-mcp-server/package.json +0 -1
  532. package/node_modules/toolcraft-schema/package.json +1 -1
  533. package/package.json +5 -4
@@ -0,0 +1,443 @@
1
+ 'use strict'
2
+
3
+ /** @type {(value: string) => boolean} */
4
+ const isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu)
5
+
6
+ /** @type {(value: string) => boolean} */
7
+ const isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u)
8
+
9
+ /** @type {(value: string) => boolean} */
10
+ const isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu)
11
+
12
+ /** @type {(value: string) => boolean} */
13
+ const isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu)
14
+
15
+ /** @type {(value: string) => boolean} */
16
+ const isPathCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu)
17
+
18
+ /**
19
+ * @param {Array<string>} input
20
+ * @returns {string}
21
+ */
22
+ function stringArrayToHexStripped (input) {
23
+ let acc = ''
24
+ let code = 0
25
+ let i = 0
26
+
27
+ for (i = 0; i < input.length; i++) {
28
+ code = input[i].charCodeAt(0)
29
+ if (code === 48) {
30
+ continue
31
+ }
32
+ if (!((code >= 48 && code <= 57) || (code >= 65 && code <= 70) || (code >= 97 && code <= 102))) {
33
+ return ''
34
+ }
35
+ acc += input[i]
36
+ break
37
+ }
38
+
39
+ for (i += 1; i < input.length; i++) {
40
+ code = input[i].charCodeAt(0)
41
+ if (!((code >= 48 && code <= 57) || (code >= 65 && code <= 70) || (code >= 97 && code <= 102))) {
42
+ return ''
43
+ }
44
+ acc += input[i]
45
+ }
46
+ return acc
47
+ }
48
+
49
+ /**
50
+ * @typedef {Object} GetIPV6Result
51
+ * @property {boolean} error - Indicates if there was an error parsing the IPv6 address.
52
+ * @property {string} address - The parsed IPv6 address.
53
+ * @property {string} [zone] - The zone identifier, if present.
54
+ */
55
+
56
+ /**
57
+ * @param {string} value
58
+ * @returns {boolean}
59
+ */
60
+ const nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u)
61
+
62
+ /**
63
+ * @param {Array<string>} buffer
64
+ * @returns {boolean}
65
+ */
66
+ function consumeIsZone (buffer) {
67
+ buffer.length = 0
68
+ return true
69
+ }
70
+
71
+ /**
72
+ * @param {Array<string>} buffer
73
+ * @param {Array<string>} address
74
+ * @param {GetIPV6Result} output
75
+ * @returns {boolean}
76
+ */
77
+ function consumeHextets (buffer, address, output) {
78
+ if (buffer.length) {
79
+ const hex = stringArrayToHexStripped(buffer)
80
+ if (hex !== '') {
81
+ address.push(hex)
82
+ } else {
83
+ output.error = true
84
+ return false
85
+ }
86
+ buffer.length = 0
87
+ }
88
+ return true
89
+ }
90
+
91
+ /**
92
+ * @param {string} input
93
+ * @returns {GetIPV6Result}
94
+ */
95
+ function getIPV6 (input) {
96
+ let tokenCount = 0
97
+ const output = { error: false, address: '', zone: '' }
98
+ /** @type {Array<string>} */
99
+ const address = []
100
+ /** @type {Array<string>} */
101
+ const buffer = []
102
+ let endipv6Encountered = false
103
+ let endIpv6 = false
104
+
105
+ let consume = consumeHextets
106
+
107
+ for (let i = 0; i < input.length; i++) {
108
+ const cursor = input[i]
109
+ if (cursor === '[' || cursor === ']') { continue }
110
+ if (cursor === ':') {
111
+ if (endipv6Encountered === true) {
112
+ endIpv6 = true
113
+ }
114
+ if (!consume(buffer, address, output)) { break }
115
+ if (++tokenCount > 7) {
116
+ // not valid
117
+ output.error = true
118
+ break
119
+ }
120
+ if (i > 0 && input[i - 1] === ':') {
121
+ endipv6Encountered = true
122
+ }
123
+ address.push(':')
124
+ continue
125
+ } else if (cursor === '%') {
126
+ if (!consume(buffer, address, output)) { break }
127
+ // switch to zone detection
128
+ consume = consumeIsZone
129
+ } else {
130
+ buffer.push(cursor)
131
+ continue
132
+ }
133
+ }
134
+ if (buffer.length) {
135
+ if (consume === consumeIsZone) {
136
+ output.zone = buffer.join('')
137
+ } else if (endIpv6) {
138
+ address.push(buffer.join(''))
139
+ } else {
140
+ address.push(stringArrayToHexStripped(buffer))
141
+ }
142
+ }
143
+ output.address = address.join('')
144
+ return output
145
+ }
146
+
147
+ /**
148
+ * @typedef {Object} NormalizeIPv6Result
149
+ * @property {string} host - The normalized host.
150
+ * @property {string} [escapedHost] - The escaped host.
151
+ * @property {boolean} isIPV6 - Indicates if the host is an IPv6 address.
152
+ */
153
+
154
+ /**
155
+ * @param {string} host
156
+ * @returns {NormalizeIPv6Result}
157
+ */
158
+ function normalizeIPv6 (host) {
159
+ if (findToken(host, ':') < 2) { return { host, isIPV6: false } }
160
+ const ipv6 = getIPV6(host)
161
+
162
+ if (!ipv6.error) {
163
+ let newHost = ipv6.address
164
+ let escapedHost = ipv6.address
165
+ if (ipv6.zone) {
166
+ newHost += '%' + ipv6.zone
167
+ escapedHost += '%25' + ipv6.zone
168
+ }
169
+ return { host: newHost, isIPV6: true, escapedHost }
170
+ } else {
171
+ return { host, isIPV6: false }
172
+ }
173
+ }
174
+
175
+ /**
176
+ * @param {string} str
177
+ * @param {string} token
178
+ * @returns {number}
179
+ */
180
+ function findToken (str, token) {
181
+ let ind = 0
182
+ for (let i = 0; i < str.length; i++) {
183
+ if (str[i] === token) ind++
184
+ }
185
+ return ind
186
+ }
187
+
188
+ /**
189
+ * @param {string} path
190
+ * @returns {string}
191
+ *
192
+ * @see https://datatracker.ietf.org/doc/html/rfc3986#section-5.2.4
193
+ */
194
+ function removeDotSegments (path) {
195
+ let input = path
196
+ const output = []
197
+ let nextSlash = -1
198
+ let len = 0
199
+
200
+ // eslint-disable-next-line no-cond-assign
201
+ while (len = input.length) {
202
+ if (len === 1) {
203
+ if (input === '.') {
204
+ break
205
+ } else if (input === '/') {
206
+ output.push('/')
207
+ break
208
+ } else {
209
+ output.push(input)
210
+ break
211
+ }
212
+ } else if (len === 2) {
213
+ if (input[0] === '.') {
214
+ if (input[1] === '.') {
215
+ break
216
+ } else if (input[1] === '/') {
217
+ input = input.slice(2)
218
+ continue
219
+ }
220
+ } else if (input[0] === '/') {
221
+ if (input[1] === '.' || input[1] === '/') {
222
+ output.push('/')
223
+ break
224
+ }
225
+ }
226
+ } else if (len === 3) {
227
+ if (input === '/..') {
228
+ if (output.length !== 0) {
229
+ output.pop()
230
+ }
231
+ output.push('/')
232
+ break
233
+ }
234
+ }
235
+ if (input[0] === '.') {
236
+ if (input[1] === '.') {
237
+ if (input[2] === '/') {
238
+ input = input.slice(3)
239
+ continue
240
+ }
241
+ } else if (input[1] === '/') {
242
+ input = input.slice(2)
243
+ continue
244
+ }
245
+ } else if (input[0] === '/') {
246
+ if (input[1] === '.') {
247
+ if (input[2] === '/') {
248
+ input = input.slice(2)
249
+ continue
250
+ } else if (input[2] === '.') {
251
+ if (input[3] === '/') {
252
+ input = input.slice(3)
253
+ if (output.length !== 0) {
254
+ output.pop()
255
+ }
256
+ continue
257
+ }
258
+ }
259
+ }
260
+ }
261
+
262
+ // Rule 2E: Move normal path segment to output
263
+ if ((nextSlash = input.indexOf('/', 1)) === -1) {
264
+ output.push(input)
265
+ break
266
+ } else {
267
+ output.push(input.slice(0, nextSlash))
268
+ input = input.slice(nextSlash)
269
+ }
270
+ }
271
+
272
+ return output.join('')
273
+ }
274
+
275
+ /**
276
+ * Re-escape RFC 3986 gen-delims that must not appear literally in the host.
277
+ * After the URI regex parses, these characters cannot be literal in the host
278
+ * field, so any that appear after decoding came from percent-encoding and
279
+ * must be restored to prevent authority structure changes.
280
+ *
281
+ * @param {string} host
282
+ * @param {boolean} isIP - true for IPv4/IPv6 hosts (skip colon re-escaping)
283
+ * @returns {string}
284
+ */
285
+ const HOST_DELIMS = { '@': '%40', '/': '%2F', '?': '%3F', '#': '%23', ':': '%3A' }
286
+ const HOST_DELIM_RE = /[@/?#:]/g
287
+ const HOST_DELIM_NO_COLON_RE = /[@/?#]/g
288
+
289
+ function reescapeHostDelimiters (host, isIP) {
290
+ const re = isIP ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE
291
+ re.lastIndex = 0
292
+ return host.replace(re, (ch) => HOST_DELIMS[ch])
293
+ }
294
+
295
+ /**
296
+ * Normalizes percent escapes and optionally decodes only unreserved ASCII bytes.
297
+ * Reserved delimiters such as `%2F` and `%2E` stay escaped.
298
+ *
299
+ * @param {string} input
300
+ * @param {boolean} [decodeUnreserved=false]
301
+ * @returns {string}
302
+ */
303
+ function normalizePercentEncoding (input, decodeUnreserved = false) {
304
+ if (input.indexOf('%') === -1) {
305
+ return input
306
+ }
307
+
308
+ let output = ''
309
+
310
+ for (let i = 0; i < input.length; i++) {
311
+ if (input[i] === '%' && i + 2 < input.length) {
312
+ const hex = input.slice(i + 1, i + 3)
313
+ if (isHexPair(hex)) {
314
+ const normalizedHex = hex.toUpperCase()
315
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16))
316
+
317
+ if (decodeUnreserved && isUnreserved(decoded)) {
318
+ output += decoded
319
+ } else {
320
+ output += '%' + normalizedHex
321
+ }
322
+
323
+ i += 2
324
+ continue
325
+ }
326
+ }
327
+
328
+ output += input[i]
329
+ }
330
+
331
+ return output
332
+ }
333
+
334
+ /**
335
+ * Normalizes path data without turning reserved escapes into live path syntax.
336
+ * Valid escapes are uppercased, raw unsafe characters are escaped, and only
337
+ * unreserved bytes that are not `.` are decoded.
338
+ *
339
+ * @param {string} input
340
+ * @returns {string}
341
+ */
342
+ function normalizePathEncoding (input) {
343
+ let output = ''
344
+
345
+ for (let i = 0; i < input.length; i++) {
346
+ if (input[i] === '%' && i + 2 < input.length) {
347
+ const hex = input.slice(i + 1, i + 3)
348
+ if (isHexPair(hex)) {
349
+ const normalizedHex = hex.toUpperCase()
350
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16))
351
+
352
+ if (decoded !== '.' && isUnreserved(decoded)) {
353
+ output += decoded
354
+ } else {
355
+ output += '%' + normalizedHex
356
+ }
357
+
358
+ i += 2
359
+ continue
360
+ }
361
+ }
362
+
363
+ if (isPathCharacter(input[i])) {
364
+ output += input[i]
365
+ } else {
366
+ output += escape(input[i])
367
+ }
368
+ }
369
+
370
+ return output
371
+ }
372
+
373
+ /**
374
+ * Escapes a component while preserving existing valid percent escapes.
375
+ *
376
+ * @param {string} input
377
+ * @returns {string}
378
+ */
379
+ function escapePreservingEscapes (input) {
380
+ let output = ''
381
+
382
+ for (let i = 0; i < input.length; i++) {
383
+ if (input[i] === '%' && i + 2 < input.length) {
384
+ const hex = input.slice(i + 1, i + 3)
385
+ if (isHexPair(hex)) {
386
+ output += '%' + hex.toUpperCase()
387
+ i += 2
388
+ continue
389
+ }
390
+ }
391
+
392
+ output += escape(input[i])
393
+ }
394
+
395
+ return output
396
+ }
397
+
398
+ /**
399
+ * @param {import('../types/index').URIComponent} component
400
+ * @returns {string|undefined}
401
+ */
402
+ function recomposeAuthority (component) {
403
+ const uriTokens = []
404
+
405
+ if (component.userinfo !== undefined) {
406
+ uriTokens.push(component.userinfo)
407
+ uriTokens.push('@')
408
+ }
409
+
410
+ if (component.host !== undefined) {
411
+ let host = unescape(component.host)
412
+ if (!isIPv4(host)) {
413
+ const ipV6res = normalizeIPv6(host)
414
+ if (ipV6res.isIPV6 === true) {
415
+ host = `[${ipV6res.escapedHost}]`
416
+ } else {
417
+ host = reescapeHostDelimiters(host, false)
418
+ }
419
+ }
420
+ uriTokens.push(host)
421
+ }
422
+
423
+ if (typeof component.port === 'number' || typeof component.port === 'string') {
424
+ uriTokens.push(':')
425
+ uriTokens.push(String(component.port))
426
+ }
427
+
428
+ return uriTokens.length ? uriTokens.join('') : undefined
429
+ };
430
+
431
+ module.exports = {
432
+ nonSimpleDomain,
433
+ recomposeAuthority,
434
+ reescapeHostDelimiters,
435
+ normalizePercentEncoding,
436
+ normalizePathEncoding,
437
+ escapePreservingEscapes,
438
+ removeDotSegments,
439
+ isIPv4,
440
+ isUUID,
441
+ normalizeIPv6,
442
+ stringArrayToHexStripped
443
+ }
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "fast-uri",
3
+ "description": "Dependency-free RFC 3986 URI toolbox",
4
+ "version": "3.1.2",
5
+ "main": "index.js",
6
+ "type": "commonjs",
7
+ "types": "types/index.d.ts",
8
+ "license": "BSD-3-Clause",
9
+ "author": "Vincent Le Goff <vince.legoff@gmail.com> (https://github.com/zekth)",
10
+ "contributors": [
11
+ {
12
+ "name": "Matteo Collina",
13
+ "email": "hello@matteocollina.com"
14
+ },
15
+ {
16
+ "name": "Gürgün Dayıoğlu",
17
+ "email": "hey@gurgun.day",
18
+ "url": "https://heyhey.to/G"
19
+ },
20
+ {
21
+ "name": "Aras Abbasi",
22
+ "email": "aras.abbasi@gmail.com"
23
+ },
24
+ {
25
+ "name": "Frazer Smith",
26
+ "email": "frazer.dev@icloud.com",
27
+ "url": "https://github.com/fdawgs"
28
+ }
29
+ ],
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "git+https://github.com/fastify/fast-uri.git"
33
+ },
34
+ "bugs": {
35
+ "url": "https://github.com/fastify/fast-uri/issues"
36
+ },
37
+ "homepage": "https://github.com/fastify/fast-uri",
38
+ "funding": [
39
+ {
40
+ "type": "github",
41
+ "url": "https://github.com/sponsors/fastify"
42
+ },
43
+ {
44
+ "type": "opencollective",
45
+ "url": "https://opencollective.com/fastify"
46
+ }
47
+ ],
48
+ "scripts": {
49
+ "lint": "eslint",
50
+ "lint:fix": "eslint --fix",
51
+ "test": "npm run test:unit && npm run test:typescript",
52
+ "test:browser:chromium": "playwright-test ./test/* --runner tape --browser=chromium",
53
+ "test:browser:firefox": "playwright-test ./test/* --runner tape --browser=firefox",
54
+ "test:browser:webkit": "playwright-test ./test/* --runner tape --browser=webkit",
55
+ "test:browser": "npm run test:browser:chromium && npm run test:browser:firefox && npm run test:browser:webkit",
56
+ "test:unit": "tape test/**/*.js",
57
+ "test:unit:dev": "npm run test:unit -- --coverage-report=html",
58
+ "test:typescript": "tsd"
59
+ },
60
+ "devDependencies": {
61
+ "ajv": "^8.16.0",
62
+ "eslint": "^9.17.0",
63
+ "neostandard": "^0.13.0",
64
+ "playwright-test": "^14.1.12",
65
+ "tape": "^5.8.1",
66
+ "tsd": "^0.33.0"
67
+ }
68
+ }
@@ -0,0 +1,43 @@
1
+ 'use strict'
2
+
3
+ const test = require('tape')
4
+ const fastURI = require('..')
5
+
6
+ const AJV = require('ajv')
7
+
8
+ const ajv = new AJV({
9
+ uriResolver: fastURI // comment this line to see it works with uri-js
10
+ })
11
+
12
+ test('ajv', t => {
13
+ t.plan(1)
14
+ const schema = {
15
+ $ref: '#/definitions/Record%3Cstring%2CPerson%3E',
16
+ definitions: {
17
+ Person: {
18
+ type: 'object',
19
+ properties: {
20
+ firstName: {
21
+ type: 'string'
22
+ }
23
+ }
24
+ },
25
+ 'Record<string,Person>': {
26
+ type: 'object',
27
+ additionalProperties: {
28
+ $ref: '#/definitions/Person'
29
+ }
30
+ }
31
+ }
32
+ }
33
+
34
+ const data = {
35
+ joe: {
36
+ firstName: 'Joe'
37
+ }
38
+
39
+ }
40
+
41
+ const validate = ajv.compile(schema)
42
+ t.ok(validate(data))
43
+ })
@@ -0,0 +1,117 @@
1
+ 'use strict'
2
+
3
+ const test = require('tape')
4
+ const fastURI = require('..')
5
+
6
+ const fn = fastURI.equal
7
+ const runTest = (t, suite) => {
8
+ suite.forEach(s => {
9
+ const operator = s.result ? '==' : '!='
10
+ t.equal(fn(s.pair[0], s.pair[1]), s.result, `${s.pair[0]} ${operator} ${s.pair[1]}`)
11
+ t.equal(fn(s.pair[1], s.pair[0]), s.result, `${s.pair[1]} ${operator} ${s.pair[0]}`)
12
+ })
13
+ }
14
+
15
+ test('URI Equals', (t) => {
16
+ const suite = [
17
+ { pair: ['example://a/b/c/%7Bfoo%7D', 'eXAMPLE://a/./b/../b/%63/%7bfoo%7d'], result: true }, // test from RFC 3986
18
+ { pair: ['http://example.org/~user', 'http://example.org/%7euser'], result: true } // test from RFC 3987
19
+ ]
20
+ runTest(t, suite)
21
+ t.end()
22
+ })
23
+
24
+ // test('IRI Equals', (t) => {
25
+ // // example from RFC 3987
26
+ // t.equal(URI.equal('example://a/b/c/%7Bfoo%7D/ros\xE9', 'eXAMPLE://a/./b/../b/%63/%7bfoo%7d/ros%C3%A9', IRI_OPTION), true)
27
+ // t.end()
28
+ // })
29
+
30
+ test('HTTP Equals', (t) => {
31
+ const suite = [
32
+ // test from RFC 2616
33
+ { pair: ['http://abc.com:80/~smith/home.html', 'http://abc.com/~smith/home.html'], result: true },
34
+ { pair: [{ scheme: 'http', host: 'abc.com', port: 80, path: '/~smith/home.html' }, 'http://abc.com/~smith/home.html'], result: true },
35
+ { pair: ['http://ABC.com/%7Esmith/home.html', 'http://abc.com/~smith/home.html'], result: true },
36
+ { pair: ['http://ABC.com:/%7esmith/home.html', 'http://abc.com/~smith/home.html'], result: true },
37
+ { pair: ['HTTP://ABC.COM', 'http://abc.com/'], result: true },
38
+ // test from RFC 3986
39
+ { pair: ['http://example.com:/', 'http://example.com:80/'], result: true }
40
+ ]
41
+ runTest(t, suite)
42
+ t.end()
43
+ })
44
+
45
+ test('HTTPS Equals', (t) => {
46
+ const suite = [
47
+ { pair: ['https://example.com', 'https://example.com:443/'], result: true },
48
+ { pair: ['https://example.com:/', 'https://example.com:443/'], result: true }
49
+ ]
50
+ runTest(t, suite)
51
+ t.end()
52
+ })
53
+
54
+ test('URN Equals', (t) => {
55
+ const suite = [
56
+ // test from RFC 2141
57
+ { pair: ['urn:foo:a123,456', 'urn:foo:a123,456'], result: true },
58
+ { pair: ['urn:foo:a123,456', 'URN:foo:a123,456'], result: true },
59
+ { pair: ['urn:foo:a123,456', 'urn:FOO:a123,456'], result: true }
60
+ ]
61
+
62
+ // Disabling for now as the whole equal logic might need
63
+ // to be refactored
64
+ // t.equal(URI.equal('urn:foo:a123,456', 'urn:foo:A123,456'), false)
65
+ // t.equal(URI.equal('urn:foo:a123%2C456', 'URN:FOO:a123%2c456'), true)
66
+
67
+ runTest(t, suite)
68
+
69
+ t.throws(() => {
70
+ fn('urn:', 'urn:FOO:a123,456')
71
+ }, 'URN without nid cannot be serialized')
72
+
73
+ t.end()
74
+ })
75
+
76
+ test('UUID Equals', (t) => {
77
+ const suite = [
78
+ { pair: ['URN:UUID:F81D4FAE-7DEC-11D0-A765-00A0C91E6BF6', 'urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6'], result: true }
79
+ ]
80
+
81
+ runTest(t, suite)
82
+ t.end()
83
+ })
84
+
85
+ // test('Mailto Equals', (t) => {
86
+ // // tests from RFC 6068
87
+ // t.equal(URI.equal('mailto:addr1@an.example,addr2@an.example', 'mailto:?to=addr1@an.example,addr2@an.example'), true)
88
+ // t.equal(URI.equal('mailto:?to=addr1@an.example,addr2@an.example', 'mailto:addr1@an.example?to=addr2@an.example'), true)
89
+ // t.end()
90
+ // })
91
+
92
+ test('WS Equal', (t) => {
93
+ const suite = [
94
+ { pair: ['WS://ABC.COM:80/chat#one', 'ws://abc.com/chat'], result: true }
95
+ ]
96
+
97
+ runTest(t, suite)
98
+ t.end()
99
+ })
100
+
101
+ test('WSS Equal', (t) => {
102
+ const suite = [
103
+ { pair: ['WSS://ABC.COM:443/chat#one', 'wss://abc.com/chat'], result: true }
104
+ ]
105
+
106
+ runTest(t, suite)
107
+ t.end()
108
+ })
109
+
110
+ test('URI Equals tolerates malformed fragments', (t) => {
111
+ t.equal(
112
+ fastURI.equal('http://example.com/#%E0%A4A', 'http://example.com/#%E0%A4A'),
113
+ true,
114
+ 'malformed fragment does not throw during equality checks'
115
+ )
116
+ t.end()
117
+ })