toolcraft 0.0.115 → 0.0.116

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 (547) hide show
  1. package/composition.json +2 -27
  2. package/dist/composition.json +2 -27
  3. package/node_modules/tiny-stdio-mcp-server/dist/composition.json +15 -0
  4. package/node_modules/tiny-stdio-mcp-server/dist/server.js +21 -16
  5. package/node_modules/tiny-stdio-mcp-server/package.json +3 -1
  6. package/node_modules/toolcraft-schema/dist/index.d.ts +2 -0
  7. package/node_modules/toolcraft-schema/dist/index.js +1 -0
  8. package/node_modules/toolcraft-schema/dist/json-schema/compiler.d.ts +11 -0
  9. package/node_modules/toolcraft-schema/dist/json-schema/compiler.js +390 -0
  10. package/node_modules/toolcraft-schema/dist/json-schema/evaluate.d.ts +3 -0
  11. package/node_modules/toolcraft-schema/dist/json-schema/evaluate.js +442 -0
  12. package/node_modules/toolcraft-schema/dist/json-schema/index.d.ts +5 -0
  13. package/node_modules/toolcraft-schema/dist/json-schema/index.js +19 -0
  14. package/node_modules/toolcraft-schema/dist/json-schema/types.d.ts +33 -0
  15. package/node_modules/toolcraft-schema/dist/json-schema/types.js +1 -0
  16. package/node_modules/toolcraft-schema/dist/json-schema/utils.d.ts +19 -0
  17. package/node_modules/toolcraft-schema/dist/json-schema/utils.js +171 -0
  18. package/node_modules/toolcraft-schema/dist/validate.d.ts +1 -0
  19. package/node_modules/toolcraft-schema/package.json +3 -3
  20. package/package.json +4 -6
  21. package/node_modules/ajv/.runkit_example.js +0 -23
  22. package/node_modules/ajv/LICENSE +0 -22
  23. package/node_modules/ajv/README.md +0 -207
  24. package/node_modules/ajv/dist/2019.d.ts +0 -19
  25. package/node_modules/ajv/dist/2019.js +0 -61
  26. package/node_modules/ajv/dist/2019.js.map +0 -1
  27. package/node_modules/ajv/dist/2020.d.ts +0 -19
  28. package/node_modules/ajv/dist/2020.js +0 -55
  29. package/node_modules/ajv/dist/2020.js.map +0 -1
  30. package/node_modules/ajv/dist/ajv.d.ts +0 -18
  31. package/node_modules/ajv/dist/ajv.js +0 -50
  32. package/node_modules/ajv/dist/ajv.js.map +0 -1
  33. package/node_modules/ajv/dist/compile/codegen/code.d.ts +0 -40
  34. package/node_modules/ajv/dist/compile/codegen/code.js +0 -156
  35. package/node_modules/ajv/dist/compile/codegen/code.js.map +0 -1
  36. package/node_modules/ajv/dist/compile/codegen/index.d.ts +0 -79
  37. package/node_modules/ajv/dist/compile/codegen/index.js +0 -697
  38. package/node_modules/ajv/dist/compile/codegen/index.js.map +0 -1
  39. package/node_modules/ajv/dist/compile/codegen/scope.d.ts +0 -79
  40. package/node_modules/ajv/dist/compile/codegen/scope.js +0 -143
  41. package/node_modules/ajv/dist/compile/codegen/scope.js.map +0 -1
  42. package/node_modules/ajv/dist/compile/errors.d.ts +0 -13
  43. package/node_modules/ajv/dist/compile/errors.js +0 -123
  44. package/node_modules/ajv/dist/compile/errors.js.map +0 -1
  45. package/node_modules/ajv/dist/compile/index.d.ts +0 -80
  46. package/node_modules/ajv/dist/compile/index.js +0 -242
  47. package/node_modules/ajv/dist/compile/index.js.map +0 -1
  48. package/node_modules/ajv/dist/compile/jtd/parse.d.ts +0 -4
  49. package/node_modules/ajv/dist/compile/jtd/parse.js +0 -350
  50. package/node_modules/ajv/dist/compile/jtd/parse.js.map +0 -1
  51. package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +0 -4
  52. package/node_modules/ajv/dist/compile/jtd/serialize.js +0 -236
  53. package/node_modules/ajv/dist/compile/jtd/serialize.js.map +0 -1
  54. package/node_modules/ajv/dist/compile/jtd/types.d.ts +0 -6
  55. package/node_modules/ajv/dist/compile/jtd/types.js +0 -14
  56. package/node_modules/ajv/dist/compile/jtd/types.js.map +0 -1
  57. package/node_modules/ajv/dist/compile/names.d.ts +0 -20
  58. package/node_modules/ajv/dist/compile/names.js +0 -28
  59. package/node_modules/ajv/dist/compile/names.js.map +0 -1
  60. package/node_modules/ajv/dist/compile/ref_error.d.ts +0 -6
  61. package/node_modules/ajv/dist/compile/ref_error.js +0 -12
  62. package/node_modules/ajv/dist/compile/ref_error.js.map +0 -1
  63. package/node_modules/ajv/dist/compile/resolve.d.ts +0 -12
  64. package/node_modules/ajv/dist/compile/resolve.js +0 -155
  65. package/node_modules/ajv/dist/compile/resolve.js.map +0 -1
  66. package/node_modules/ajv/dist/compile/rules.d.ts +0 -28
  67. package/node_modules/ajv/dist/compile/rules.js +0 -26
  68. package/node_modules/ajv/dist/compile/rules.js.map +0 -1
  69. package/node_modules/ajv/dist/compile/util.d.ts +0 -40
  70. package/node_modules/ajv/dist/compile/util.js +0 -178
  71. package/node_modules/ajv/dist/compile/util.js.map +0 -1
  72. package/node_modules/ajv/dist/compile/validate/applicability.d.ts +0 -6
  73. package/node_modules/ajv/dist/compile/validate/applicability.js +0 -19
  74. package/node_modules/ajv/dist/compile/validate/applicability.js.map +0 -1
  75. package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +0 -4
  76. package/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -50
  77. package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +0 -1
  78. package/node_modules/ajv/dist/compile/validate/dataType.d.ts +0 -17
  79. package/node_modules/ajv/dist/compile/validate/dataType.js +0 -203
  80. package/node_modules/ajv/dist/compile/validate/dataType.js.map +0 -1
  81. package/node_modules/ajv/dist/compile/validate/defaults.d.ts +0 -2
  82. package/node_modules/ajv/dist/compile/validate/defaults.js +0 -35
  83. package/node_modules/ajv/dist/compile/validate/defaults.js.map +0 -1
  84. package/node_modules/ajv/dist/compile/validate/index.d.ts +0 -42
  85. package/node_modules/ajv/dist/compile/validate/index.js +0 -520
  86. package/node_modules/ajv/dist/compile/validate/index.js.map +0 -1
  87. package/node_modules/ajv/dist/compile/validate/keyword.d.ts +0 -8
  88. package/node_modules/ajv/dist/compile/validate/keyword.js +0 -124
  89. package/node_modules/ajv/dist/compile/validate/keyword.js.map +0 -1
  90. package/node_modules/ajv/dist/compile/validate/subschema.d.ts +0 -47
  91. package/node_modules/ajv/dist/compile/validate/subschema.js +0 -81
  92. package/node_modules/ajv/dist/compile/validate/subschema.js.map +0 -1
  93. package/node_modules/ajv/dist/core.d.ts +0 -174
  94. package/node_modules/ajv/dist/core.js +0 -618
  95. package/node_modules/ajv/dist/core.js.map +0 -1
  96. package/node_modules/ajv/dist/jtd.d.ts +0 -47
  97. package/node_modules/ajv/dist/jtd.js +0 -72
  98. package/node_modules/ajv/dist/jtd.js.map +0 -1
  99. package/node_modules/ajv/dist/refs/data.json +0 -13
  100. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +0 -2
  101. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +0 -28
  102. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +0 -1
  103. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +0 -53
  104. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +0 -17
  105. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +0 -57
  106. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +0 -14
  107. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +0 -37
  108. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +0 -90
  109. package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +0 -39
  110. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +0 -2
  111. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +0 -30
  112. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +0 -1
  113. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +0 -48
  114. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +0 -17
  115. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +0 -51
  116. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
  117. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +0 -37
  118. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
  119. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +0 -90
  120. package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +0 -55
  121. package/node_modules/ajv/dist/refs/json-schema-draft-06.json +0 -137
  122. package/node_modules/ajv/dist/refs/json-schema-draft-07.json +0 -151
  123. package/node_modules/ajv/dist/refs/json-schema-secure.json +0 -88
  124. package/node_modules/ajv/dist/refs/jtd-schema.d.ts +0 -3
  125. package/node_modules/ajv/dist/refs/jtd-schema.js +0 -118
  126. package/node_modules/ajv/dist/refs/jtd-schema.js.map +0 -1
  127. package/node_modules/ajv/dist/runtime/equal.d.ts +0 -6
  128. package/node_modules/ajv/dist/runtime/equal.js +0 -7
  129. package/node_modules/ajv/dist/runtime/equal.js.map +0 -1
  130. package/node_modules/ajv/dist/runtime/parseJson.d.ts +0 -18
  131. package/node_modules/ajv/dist/runtime/parseJson.js +0 -185
  132. package/node_modules/ajv/dist/runtime/parseJson.js.map +0 -1
  133. package/node_modules/ajv/dist/runtime/quote.d.ts +0 -5
  134. package/node_modules/ajv/dist/runtime/quote.js +0 -30
  135. package/node_modules/ajv/dist/runtime/quote.js.map +0 -1
  136. package/node_modules/ajv/dist/runtime/re2.d.ts +0 -6
  137. package/node_modules/ajv/dist/runtime/re2.js +0 -6
  138. package/node_modules/ajv/dist/runtime/re2.js.map +0 -1
  139. package/node_modules/ajv/dist/runtime/timestamp.d.ts +0 -5
  140. package/node_modules/ajv/dist/runtime/timestamp.js +0 -42
  141. package/node_modules/ajv/dist/runtime/timestamp.js.map +0 -1
  142. package/node_modules/ajv/dist/runtime/ucs2length.d.ts +0 -5
  143. package/node_modules/ajv/dist/runtime/ucs2length.js +0 -24
  144. package/node_modules/ajv/dist/runtime/ucs2length.js.map +0 -1
  145. package/node_modules/ajv/dist/runtime/uri.d.ts +0 -6
  146. package/node_modules/ajv/dist/runtime/uri.js +0 -6
  147. package/node_modules/ajv/dist/runtime/uri.js.map +0 -1
  148. package/node_modules/ajv/dist/runtime/validation_error.d.ts +0 -7
  149. package/node_modules/ajv/dist/runtime/validation_error.js +0 -11
  150. package/node_modules/ajv/dist/runtime/validation_error.js.map +0 -1
  151. package/node_modules/ajv/dist/standalone/index.d.ts +0 -6
  152. package/node_modules/ajv/dist/standalone/index.js +0 -90
  153. package/node_modules/ajv/dist/standalone/index.js.map +0 -1
  154. package/node_modules/ajv/dist/standalone/instance.d.ts +0 -12
  155. package/node_modules/ajv/dist/standalone/instance.js +0 -35
  156. package/node_modules/ajv/dist/standalone/instance.js.map +0 -1
  157. package/node_modules/ajv/dist/types/index.d.ts +0 -183
  158. package/node_modules/ajv/dist/types/index.js +0 -3
  159. package/node_modules/ajv/dist/types/index.js.map +0 -1
  160. package/node_modules/ajv/dist/types/json-schema.d.ts +0 -125
  161. package/node_modules/ajv/dist/types/json-schema.js +0 -3
  162. package/node_modules/ajv/dist/types/json-schema.js.map +0 -1
  163. package/node_modules/ajv/dist/types/jtd-schema.d.ts +0 -174
  164. package/node_modules/ajv/dist/types/jtd-schema.js +0 -3
  165. package/node_modules/ajv/dist/types/jtd-schema.js.map +0 -1
  166. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +0 -8
  167. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -49
  168. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +0 -1
  169. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +0 -6
  170. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -106
  171. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +0 -1
  172. package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +0 -3
  173. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -23
  174. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +0 -1
  175. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +0 -4
  176. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -12
  177. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +0 -1
  178. package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +0 -7
  179. package/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -95
  180. package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +0 -1
  181. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +0 -21
  182. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -85
  183. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +0 -1
  184. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +0 -3
  185. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +0 -11
  186. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +0 -1
  187. package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +0 -6
  188. package/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -66
  189. package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +0 -1
  190. package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +0 -13
  191. package/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -44
  192. package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +0 -1
  193. package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +0 -5
  194. package/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -52
  195. package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +0 -1
  196. package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +0 -6
  197. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -30
  198. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +0 -1
  199. package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +0 -4
  200. package/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -26
  201. package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +0 -1
  202. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +0 -6
  203. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -60
  204. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +0 -1
  205. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +0 -3
  206. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -75
  207. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +0 -1
  208. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +0 -3
  209. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -12
  210. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +0 -1
  211. package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +0 -3
  212. package/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -54
  213. package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +0 -1
  214. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +0 -6
  215. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -38
  216. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +0 -1
  217. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +0 -3
  218. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -13
  219. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +0 -1
  220. package/node_modules/ajv/dist/vocabularies/code.d.ts +0 -17
  221. package/node_modules/ajv/dist/vocabularies/code.js +0 -131
  222. package/node_modules/ajv/dist/vocabularies/code.js.map +0 -1
  223. package/node_modules/ajv/dist/vocabularies/core/id.d.ts +0 -3
  224. package/node_modules/ajv/dist/vocabularies/core/id.js +0 -10
  225. package/node_modules/ajv/dist/vocabularies/core/id.js.map +0 -1
  226. package/node_modules/ajv/dist/vocabularies/core/index.d.ts +0 -3
  227. package/node_modules/ajv/dist/vocabularies/core/index.js +0 -16
  228. package/node_modules/ajv/dist/vocabularies/core/index.js.map +0 -1
  229. package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +0 -8
  230. package/node_modules/ajv/dist/vocabularies/core/ref.js +0 -122
  231. package/node_modules/ajv/dist/vocabularies/core/ref.js.map +0 -1
  232. package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +0 -5
  233. package/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -104
  234. package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +0 -1
  235. package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +0 -10
  236. package/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -9
  237. package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +0 -1
  238. package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +0 -3
  239. package/node_modules/ajv/dist/vocabularies/draft2020.js +0 -23
  240. package/node_modules/ajv/dist/vocabularies/draft2020.js.map +0 -1
  241. package/node_modules/ajv/dist/vocabularies/draft7.d.ts +0 -3
  242. package/node_modules/ajv/dist/vocabularies/draft7.js +0 -17
  243. package/node_modules/ajv/dist/vocabularies/draft7.js.map +0 -1
  244. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +0 -5
  245. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +0 -30
  246. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +0 -1
  247. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +0 -5
  248. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +0 -51
  249. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +0 -1
  250. package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +0 -3
  251. package/node_modules/ajv/dist/vocabularies/dynamic/index.js +0 -9
  252. package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +0 -1
  253. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +0 -3
  254. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +0 -16
  255. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +0 -1
  256. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +0 -3
  257. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +0 -10
  258. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +0 -1
  259. package/node_modules/ajv/dist/vocabularies/errors.d.ts +0 -9
  260. package/node_modules/ajv/dist/vocabularies/errors.js +0 -3
  261. package/node_modules/ajv/dist/vocabularies/errors.js.map +0 -1
  262. package/node_modules/ajv/dist/vocabularies/format/format.d.ts +0 -8
  263. package/node_modules/ajv/dist/vocabularies/format/format.js +0 -92
  264. package/node_modules/ajv/dist/vocabularies/format/format.js.map +0 -1
  265. package/node_modules/ajv/dist/vocabularies/format/index.d.ts +0 -3
  266. package/node_modules/ajv/dist/vocabularies/format/index.js +0 -6
  267. package/node_modules/ajv/dist/vocabularies/format/index.js.map +0 -1
  268. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +0 -6
  269. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +0 -71
  270. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +0 -1
  271. package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +0 -5
  272. package/node_modules/ajv/dist/vocabularies/jtd/elements.js +0 -24
  273. package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +0 -1
  274. package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +0 -6
  275. package/node_modules/ajv/dist/vocabularies/jtd/enum.js +0 -43
  276. package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +0 -1
  277. package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +0 -9
  278. package/node_modules/ajv/dist/vocabularies/jtd/error.js +0 -20
  279. package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +0 -1
  280. package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +0 -10
  281. package/node_modules/ajv/dist/vocabularies/jtd/index.js +0 -29
  282. package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +0 -1
  283. package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +0 -5
  284. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +0 -25
  285. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +0 -1
  286. package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +0 -4
  287. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +0 -22
  288. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +0 -1
  289. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +0 -3
  290. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +0 -15
  291. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +0 -1
  292. package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +0 -22
  293. package/node_modules/ajv/dist/vocabularies/jtd/properties.js +0 -149
  294. package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +0 -1
  295. package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +0 -4
  296. package/node_modules/ajv/dist/vocabularies/jtd/ref.js +0 -67
  297. package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +0 -1
  298. package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +0 -10
  299. package/node_modules/ajv/dist/vocabularies/jtd/type.js +0 -69
  300. package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +0 -1
  301. package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +0 -3
  302. package/node_modules/ajv/dist/vocabularies/jtd/union.js +0 -12
  303. package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +0 -1
  304. package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +0 -5
  305. package/node_modules/ajv/dist/vocabularies/jtd/values.js +0 -51
  306. package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +0 -1
  307. package/node_modules/ajv/dist/vocabularies/metadata.d.ts +0 -3
  308. package/node_modules/ajv/dist/vocabularies/metadata.js +0 -18
  309. package/node_modules/ajv/dist/vocabularies/metadata.js.map +0 -1
  310. package/node_modules/ajv/dist/vocabularies/next.d.ts +0 -3
  311. package/node_modules/ajv/dist/vocabularies/next.js +0 -8
  312. package/node_modules/ajv/dist/vocabularies/next.js.map +0 -1
  313. package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +0 -3
  314. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +0 -7
  315. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +0 -1
  316. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +0 -6
  317. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +0 -40
  318. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +0 -1
  319. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +0 -6
  320. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +0 -65
  321. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +0 -1
  322. package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +0 -6
  323. package/node_modules/ajv/dist/vocabularies/validation/const.js +0 -25
  324. package/node_modules/ajv/dist/vocabularies/validation/const.js.map +0 -1
  325. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +0 -5
  326. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +0 -12
  327. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +0 -1
  328. package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +0 -8
  329. package/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -48
  330. package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +0 -1
  331. package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +0 -16
  332. package/node_modules/ajv/dist/vocabularies/validation/index.js +0 -33
  333. package/node_modules/ajv/dist/vocabularies/validation/index.js.map +0 -1
  334. package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +0 -3
  335. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +0 -15
  336. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +0 -1
  337. package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +0 -3
  338. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -24
  339. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +0 -1
  340. package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +0 -3
  341. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -27
  342. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +0 -1
  343. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +0 -11
  344. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -27
  345. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +0 -1
  346. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +0 -3
  347. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -24
  348. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +0 -1
  349. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +0 -8
  350. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -26
  351. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +0 -1
  352. package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +0 -8
  353. package/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -33
  354. package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +0 -1
  355. package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +0 -8
  356. package/node_modules/ajv/dist/vocabularies/validation/required.js +0 -79
  357. package/node_modules/ajv/dist/vocabularies/validation/required.js.map +0 -1
  358. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +0 -9
  359. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -64
  360. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +0 -1
  361. package/node_modules/ajv/lib/2019.ts +0 -81
  362. package/node_modules/ajv/lib/2020.ts +0 -75
  363. package/node_modules/ajv/lib/ajv.ts +0 -70
  364. package/node_modules/ajv/lib/compile/codegen/code.ts +0 -169
  365. package/node_modules/ajv/lib/compile/codegen/index.ts +0 -852
  366. package/node_modules/ajv/lib/compile/codegen/scope.ts +0 -215
  367. package/node_modules/ajv/lib/compile/errors.ts +0 -184
  368. package/node_modules/ajv/lib/compile/index.ts +0 -324
  369. package/node_modules/ajv/lib/compile/jtd/parse.ts +0 -411
  370. package/node_modules/ajv/lib/compile/jtd/serialize.ts +0 -277
  371. package/node_modules/ajv/lib/compile/jtd/types.ts +0 -16
  372. package/node_modules/ajv/lib/compile/names.ts +0 -27
  373. package/node_modules/ajv/lib/compile/ref_error.ts +0 -13
  374. package/node_modules/ajv/lib/compile/resolve.ts +0 -149
  375. package/node_modules/ajv/lib/compile/rules.ts +0 -50
  376. package/node_modules/ajv/lib/compile/util.ts +0 -213
  377. package/node_modules/ajv/lib/compile/validate/applicability.ts +0 -22
  378. package/node_modules/ajv/lib/compile/validate/boolSchema.ts +0 -47
  379. package/node_modules/ajv/lib/compile/validate/dataType.ts +0 -230
  380. package/node_modules/ajv/lib/compile/validate/defaults.ts +0 -32
  381. package/node_modules/ajv/lib/compile/validate/index.ts +0 -582
  382. package/node_modules/ajv/lib/compile/validate/keyword.ts +0 -171
  383. package/node_modules/ajv/lib/compile/validate/subschema.ts +0 -135
  384. package/node_modules/ajv/lib/core.ts +0 -892
  385. package/node_modules/ajv/lib/jtd.ts +0 -132
  386. package/node_modules/ajv/lib/refs/data.json +0 -13
  387. package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +0 -28
  388. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +0 -53
  389. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +0 -17
  390. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +0 -57
  391. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +0 -14
  392. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +0 -37
  393. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +0 -90
  394. package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +0 -39
  395. package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +0 -30
  396. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +0 -48
  397. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +0 -17
  398. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +0 -51
  399. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
  400. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +0 -37
  401. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
  402. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +0 -90
  403. package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +0 -55
  404. package/node_modules/ajv/lib/refs/json-schema-draft-06.json +0 -137
  405. package/node_modules/ajv/lib/refs/json-schema-draft-07.json +0 -151
  406. package/node_modules/ajv/lib/refs/json-schema-secure.json +0 -88
  407. package/node_modules/ajv/lib/refs/jtd-schema.ts +0 -130
  408. package/node_modules/ajv/lib/runtime/equal.ts +0 -7
  409. package/node_modules/ajv/lib/runtime/parseJson.ts +0 -177
  410. package/node_modules/ajv/lib/runtime/quote.ts +0 -31
  411. package/node_modules/ajv/lib/runtime/re2.ts +0 -6
  412. package/node_modules/ajv/lib/runtime/timestamp.ts +0 -46
  413. package/node_modules/ajv/lib/runtime/ucs2length.ts +0 -20
  414. package/node_modules/ajv/lib/runtime/uri.ts +0 -6
  415. package/node_modules/ajv/lib/runtime/validation_error.ts +0 -13
  416. package/node_modules/ajv/lib/standalone/index.ts +0 -100
  417. package/node_modules/ajv/lib/standalone/instance.ts +0 -36
  418. package/node_modules/ajv/lib/types/index.ts +0 -244
  419. package/node_modules/ajv/lib/types/json-schema.ts +0 -187
  420. package/node_modules/ajv/lib/types/jtd-schema.ts +0 -273
  421. package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +0 -56
  422. package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +0 -118
  423. package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +0 -22
  424. package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +0 -14
  425. package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +0 -109
  426. package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +0 -112
  427. package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +0 -11
  428. package/node_modules/ajv/lib/vocabularies/applicator/if.ts +0 -80
  429. package/node_modules/ajv/lib/vocabularies/applicator/index.ts +0 -53
  430. package/node_modules/ajv/lib/vocabularies/applicator/items.ts +0 -59
  431. package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +0 -36
  432. package/node_modules/ajv/lib/vocabularies/applicator/not.ts +0 -38
  433. package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +0 -82
  434. package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +0 -91
  435. package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +0 -12
  436. package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +0 -57
  437. package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +0 -50
  438. package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +0 -13
  439. package/node_modules/ajv/lib/vocabularies/code.ts +0 -168
  440. package/node_modules/ajv/lib/vocabularies/core/id.ts +0 -10
  441. package/node_modules/ajv/lib/vocabularies/core/index.ts +0 -16
  442. package/node_modules/ajv/lib/vocabularies/core/ref.ts +0 -129
  443. package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +0 -113
  444. package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +0 -12
  445. package/node_modules/ajv/lib/vocabularies/draft2020.ts +0 -23
  446. package/node_modules/ajv/lib/vocabularies/draft7.ts +0 -17
  447. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +0 -31
  448. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +0 -51
  449. package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +0 -9
  450. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +0 -14
  451. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +0 -10
  452. package/node_modules/ajv/lib/vocabularies/errors.ts +0 -18
  453. package/node_modules/ajv/lib/vocabularies/format/format.ts +0 -120
  454. package/node_modules/ajv/lib/vocabularies/format/index.ts +0 -6
  455. package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +0 -89
  456. package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +0 -32
  457. package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +0 -45
  458. package/node_modules/ajv/lib/vocabularies/jtd/error.ts +0 -23
  459. package/node_modules/ajv/lib/vocabularies/jtd/index.ts +0 -37
  460. package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +0 -24
  461. package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +0 -21
  462. package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +0 -15
  463. package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +0 -184
  464. package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +0 -76
  465. package/node_modules/ajv/lib/vocabularies/jtd/type.ts +0 -75
  466. package/node_modules/ajv/lib/vocabularies/jtd/union.ts +0 -12
  467. package/node_modules/ajv/lib/vocabularies/jtd/values.ts +0 -58
  468. package/node_modules/ajv/lib/vocabularies/metadata.ts +0 -17
  469. package/node_modules/ajv/lib/vocabularies/next.ts +0 -8
  470. package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +0 -7
  471. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +0 -47
  472. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +0 -85
  473. package/node_modules/ajv/lib/vocabularies/validation/const.ts +0 -28
  474. package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +0 -23
  475. package/node_modules/ajv/lib/vocabularies/validation/enum.ts +0 -54
  476. package/node_modules/ajv/lib/vocabularies/validation/index.ts +0 -49
  477. package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +0 -16
  478. package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +0 -26
  479. package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +0 -30
  480. package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +0 -42
  481. package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +0 -26
  482. package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +0 -34
  483. package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +0 -39
  484. package/node_modules/ajv/lib/vocabularies/validation/required.ts +0 -98
  485. package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +0 -79
  486. package/node_modules/ajv/package.json +0 -126
  487. package/node_modules/fast-deep-equal/LICENSE +0 -21
  488. package/node_modules/fast-deep-equal/README.md +0 -96
  489. package/node_modules/fast-deep-equal/es6/index.d.ts +0 -2
  490. package/node_modules/fast-deep-equal/es6/index.js +0 -72
  491. package/node_modules/fast-deep-equal/es6/react.d.ts +0 -2
  492. package/node_modules/fast-deep-equal/es6/react.js +0 -79
  493. package/node_modules/fast-deep-equal/index.d.ts +0 -4
  494. package/node_modules/fast-deep-equal/index.js +0 -46
  495. package/node_modules/fast-deep-equal/package.json +0 -61
  496. package/node_modules/fast-deep-equal/react.d.ts +0 -2
  497. package/node_modules/fast-deep-equal/react.js +0 -53
  498. package/node_modules/fast-uri/.gitattributes +0 -2
  499. package/node_modules/fast-uri/.github/dependabot.yml +0 -13
  500. package/node_modules/fast-uri/.github/workflows/ci.yml +0 -106
  501. package/node_modules/fast-uri/.github/workflows/lock-threads.yml +0 -19
  502. package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +0 -24
  503. package/node_modules/fast-uri/LICENSE +0 -30
  504. package/node_modules/fast-uri/README.md +0 -152
  505. package/node_modules/fast-uri/benchmark/benchmark.mjs +0 -159
  506. package/node_modules/fast-uri/benchmark/equal.mjs +0 -51
  507. package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +0 -22
  508. package/node_modules/fast-uri/benchmark/package.json +0 -17
  509. package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +0 -24
  510. package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +0 -65
  511. package/node_modules/fast-uri/eslint.config.js +0 -6
  512. package/node_modules/fast-uri/index.js +0 -406
  513. package/node_modules/fast-uri/lib/schemes.js +0 -267
  514. package/node_modules/fast-uri/lib/utils.js +0 -443
  515. package/node_modules/fast-uri/package.json +0 -68
  516. package/node_modules/fast-uri/test/ajv.test.js +0 -43
  517. package/node_modules/fast-uri/test/equal.test.js +0 -117
  518. package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +0 -501
  519. package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +0 -120
  520. package/node_modules/fast-uri/test/parse.test.js +0 -323
  521. package/node_modules/fast-uri/test/resolve.test.js +0 -87
  522. package/node_modules/fast-uri/test/rfc-3986.test.js +0 -90
  523. package/node_modules/fast-uri/test/security-normalization.test.js +0 -39
  524. package/node_modules/fast-uri/test/security.test.js +0 -133
  525. package/node_modules/fast-uri/test/serialize.test.js +0 -151
  526. package/node_modules/fast-uri/test/uri-js-compatibility.test.js +0 -33
  527. package/node_modules/fast-uri/test/uri-js.test.js +0 -912
  528. package/node_modules/fast-uri/test/util.test.js +0 -38
  529. package/node_modules/fast-uri/tsconfig.json +0 -9
  530. package/node_modules/fast-uri/types/index.d.ts +0 -60
  531. package/node_modules/fast-uri/types/index.test-d.ts +0 -17
  532. package/node_modules/json-schema-traverse/.eslintrc.yml +0 -27
  533. package/node_modules/json-schema-traverse/.github/FUNDING.yml +0 -2
  534. package/node_modules/json-schema-traverse/.github/workflows/build.yml +0 -28
  535. package/node_modules/json-schema-traverse/.github/workflows/publish.yml +0 -27
  536. package/node_modules/json-schema-traverse/LICENSE +0 -21
  537. package/node_modules/json-schema-traverse/README.md +0 -95
  538. package/node_modules/json-schema-traverse/index.d.ts +0 -40
  539. package/node_modules/json-schema-traverse/index.js +0 -93
  540. package/node_modules/json-schema-traverse/package.json +0 -43
  541. package/node_modules/json-schema-traverse/spec/.eslintrc.yml +0 -6
  542. package/node_modules/json-schema-traverse/spec/fixtures/schema.js +0 -125
  543. package/node_modules/json-schema-traverse/spec/index.spec.js +0 -171
  544. package/node_modules/require-from-string/index.js +0 -34
  545. package/node_modules/require-from-string/license +0 -21
  546. package/node_modules/require-from-string/package.json +0 -28
  547. package/node_modules/require-from-string/readme.md +0 -56
@@ -1,443 +0,0 @@
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
- }
@@ -1,68 +0,0 @@
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
- }
@@ -1,43 +0,0 @@
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
- })
@@ -1,117 +0,0 @@
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
- })