@atxp/client 0.10.4 → 0.10.6

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 (315) hide show
  1. package/dist/_virtual/index10.js +2 -2
  2. package/dist/_virtual/index11.js +2 -2
  3. package/dist/_virtual/index18.js +2 -2
  4. package/dist/_virtual/index19.js +2 -2
  5. package/dist/_virtual/index20.js +2 -2
  6. package/dist/_virtual/index4.js +2 -2
  7. package/dist/_virtual/index5.js +2 -2
  8. package/dist/_virtual/index8.js +2 -2
  9. package/dist/_virtual/index9.js +2 -2
  10. package/dist/atxpFetcher.d.ts.map +1 -1
  11. package/dist/atxpFetcher.js +16 -1
  12. package/dist/atxpFetcher.js.map +1 -1
  13. package/dist/index.cjs +23 -2
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.ts +3 -1
  16. package/dist/index.js +23 -2
  17. package/dist/index.js.map +1 -1
  18. package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/codegen/index.js +1 -1
  19. package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/validate/index.js +1 -1
  20. package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/index.js +1 -1
  21. package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/core/index.js +1 -1
  22. package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/format/index.js +1 -1
  23. package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/index.js +1 -1
  24. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js +1 -1
  25. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js +1 -1
  26. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js +1 -1
  27. package/dist/oAuth.d.ts +3 -1
  28. package/dist/oAuth.d.ts.map +1 -1
  29. package/dist/oAuth.js +7 -1
  30. package/dist/oAuth.js.map +1 -1
  31. package/package.json +2 -2
  32. package/dist/_virtual/cache.js +0 -4
  33. package/dist/_virtual/cache.js.map +0 -1
  34. package/dist/_virtual/uri.all.js +0 -4
  35. package/dist/_virtual/uri.all.js.map +0 -1
  36. package/dist/atxpAccount.d.ts +0 -20
  37. package/dist/atxpAccount.d.ts.map +0 -1
  38. package/dist/atxpAccount.js +0 -161
  39. package/dist/atxpAccount.js.map +0 -1
  40. package/dist/base.cjs +0 -34
  41. package/dist/base.cjs.map +0 -1
  42. package/dist/base.d.ts +0 -4
  43. package/dist/base.d.ts.map +0 -1
  44. package/dist/base.js +0 -5
  45. package/dist/base.js.map +0 -1
  46. package/dist/baseAccount.d.ts +0 -20
  47. package/dist/baseAccount.d.ts.map +0 -1
  48. package/dist/baseAccount.js +0 -47
  49. package/dist/baseAccount.js.map +0 -1
  50. package/dist/baseConstants.d.ts +0 -10
  51. package/dist/baseConstants.d.ts.map +0 -1
  52. package/dist/baseConstants.js +0 -21
  53. package/dist/baseConstants.js.map +0 -1
  54. package/dist/basePaymentMaker.d.ts +0 -23
  55. package/dist/basePaymentMaker.d.ts.map +0 -1
  56. package/dist/basePaymentMaker.js +0 -169
  57. package/dist/basePaymentMaker.js.map +0 -1
  58. package/dist/node_modules/ajv/dist/ajv.js +0 -71
  59. package/dist/node_modules/ajv/dist/ajv.js.map +0 -1
  60. package/dist/node_modules/ajv/dist/compile/codegen/code.js +0 -169
  61. package/dist/node_modules/ajv/dist/compile/codegen/code.js.map +0 -1
  62. package/dist/node_modules/ajv/dist/compile/codegen/index.js +0 -712
  63. package/dist/node_modules/ajv/dist/compile/codegen/index.js.map +0 -1
  64. package/dist/node_modules/ajv/dist/compile/codegen/scope.js +0 -157
  65. package/dist/node_modules/ajv/dist/compile/codegen/scope.js.map +0 -1
  66. package/dist/node_modules/ajv/dist/compile/errors.js +0 -139
  67. package/dist/node_modules/ajv/dist/compile/errors.js.map +0 -1
  68. package/dist/node_modules/ajv/dist/compile/index.js +0 -259
  69. package/dist/node_modules/ajv/dist/compile/index.js.map +0 -1
  70. package/dist/node_modules/ajv/dist/compile/names.js +0 -40
  71. package/dist/node_modules/ajv/dist/compile/names.js.map +0 -1
  72. package/dist/node_modules/ajv/dist/compile/ref_error.js +0 -24
  73. package/dist/node_modules/ajv/dist/compile/ref_error.js.map +0 -1
  74. package/dist/node_modules/ajv/dist/compile/resolve.js +0 -169
  75. package/dist/node_modules/ajv/dist/compile/resolve.js.map +0 -1
  76. package/dist/node_modules/ajv/dist/compile/rules.js +0 -37
  77. package/dist/node_modules/ajv/dist/compile/rules.js.map +0 -1
  78. package/dist/node_modules/ajv/dist/compile/util.js +0 -191
  79. package/dist/node_modules/ajv/dist/compile/util.js.map +0 -1
  80. package/dist/node_modules/ajv/dist/compile/validate/applicability.js +0 -30
  81. package/dist/node_modules/ajv/dist/compile/validate/applicability.js.map +0 -1
  82. package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -64
  83. package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js.map +0 -1
  84. package/dist/node_modules/ajv/dist/compile/validate/dataType.js +0 -219
  85. package/dist/node_modules/ajv/dist/compile/validate/dataType.js.map +0 -1
  86. package/dist/node_modules/ajv/dist/compile/validate/defaults.js +0 -48
  87. package/dist/node_modules/ajv/dist/compile/validate/defaults.js.map +0 -1
  88. package/dist/node_modules/ajv/dist/compile/validate/index.js +0 -541
  89. package/dist/node_modules/ajv/dist/compile/validate/index.js.map +0 -1
  90. package/dist/node_modules/ajv/dist/compile/validate/keyword.js +0 -139
  91. package/dist/node_modules/ajv/dist/compile/validate/keyword.js.map +0 -1
  92. package/dist/node_modules/ajv/dist/compile/validate/subschema.js +0 -94
  93. package/dist/node_modules/ajv/dist/compile/validate/subschema.js.map +0 -1
  94. package/dist/node_modules/ajv/dist/core.js +0 -642
  95. package/dist/node_modules/ajv/dist/core.js.map +0 -1
  96. package/dist/node_modules/ajv/dist/refs/data.json.js +0 -31
  97. package/dist/node_modules/ajv/dist/refs/data.json.js.map +0 -1
  98. package/dist/node_modules/ajv/dist/refs/json-schema-draft-07.json.js +0 -254
  99. package/dist/node_modules/ajv/dist/refs/json-schema-draft-07.json.js.map +0 -1
  100. package/dist/node_modules/ajv/dist/runtime/equal.js +0 -19
  101. package/dist/node_modules/ajv/dist/runtime/equal.js.map +0 -1
  102. package/dist/node_modules/ajv/dist/runtime/ucs2length.js +0 -35
  103. package/dist/node_modules/ajv/dist/runtime/ucs2length.js.map +0 -1
  104. package/dist/node_modules/ajv/dist/runtime/uri.js +0 -18
  105. package/dist/node_modules/ajv/dist/runtime/uri.js.map +0 -1
  106. package/dist/node_modules/ajv/dist/runtime/validation_error.js +0 -22
  107. package/dist/node_modules/ajv/dist/runtime/validation_error.js.map +0 -1
  108. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -62
  109. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +0 -1
  110. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -121
  111. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +0 -1
  112. package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -35
  113. package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +0 -1
  114. package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -24
  115. package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +0 -1
  116. package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -108
  117. package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +0 -1
  118. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -101
  119. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +0 -1
  120. package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -79
  121. package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js.map +0 -1
  122. package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -71
  123. package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js.map +0 -1
  124. package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -66
  125. package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js.map +0 -1
  126. package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -45
  127. package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +0 -1
  128. package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -38
  129. package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js.map +0 -1
  130. package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -73
  131. package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +0 -1
  132. package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -89
  133. package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +0 -1
  134. package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -24
  135. package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +0 -1
  136. package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -69
  137. package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +0 -1
  138. package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -51
  139. package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +0 -1
  140. package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -25
  141. package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +0 -1
  142. package/dist/node_modules/ajv/dist/vocabularies/code.js +0 -145
  143. package/dist/node_modules/ajv/dist/vocabularies/code.js.map +0 -1
  144. package/dist/node_modules/ajv/dist/vocabularies/core/id.js +0 -21
  145. package/dist/node_modules/ajv/dist/vocabularies/core/id.js.map +0 -1
  146. package/dist/node_modules/ajv/dist/vocabularies/core/index.js +0 -29
  147. package/dist/node_modules/ajv/dist/vocabularies/core/index.js.map +0 -1
  148. package/dist/node_modules/ajv/dist/vocabularies/core/ref.js +0 -139
  149. package/dist/node_modules/ajv/dist/vocabularies/core/ref.js.map +0 -1
  150. package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -120
  151. package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +0 -1
  152. package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -20
  153. package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +0 -1
  154. package/dist/node_modules/ajv/dist/vocabularies/draft7.js +0 -33
  155. package/dist/node_modules/ajv/dist/vocabularies/draft7.js.map +0 -1
  156. package/dist/node_modules/ajv/dist/vocabularies/format/format.js +0 -104
  157. package/dist/node_modules/ajv/dist/vocabularies/format/format.js.map +0 -1
  158. package/dist/node_modules/ajv/dist/vocabularies/format/index.js +0 -18
  159. package/dist/node_modules/ajv/dist/vocabularies/format/index.js.map +0 -1
  160. package/dist/node_modules/ajv/dist/vocabularies/metadata.js +0 -29
  161. package/dist/node_modules/ajv/dist/vocabularies/metadata.js.map +0 -1
  162. package/dist/node_modules/ajv/dist/vocabularies/validation/const.js +0 -39
  163. package/dist/node_modules/ajv/dist/vocabularies/validation/const.js.map +0 -1
  164. package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -62
  165. package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js.map +0 -1
  166. package/dist/node_modules/ajv/dist/vocabularies/validation/index.js +0 -54
  167. package/dist/node_modules/ajv/dist/vocabularies/validation/index.js.map +0 -1
  168. package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -36
  169. package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +0 -1
  170. package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -41
  171. package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +0 -1
  172. package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -39
  173. package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +0 -1
  174. package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -36
  175. package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +0 -1
  176. package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -38
  177. package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +0 -1
  178. package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -37
  179. package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +0 -1
  180. package/dist/node_modules/ajv/dist/vocabularies/validation/required.js +0 -93
  181. package/dist/node_modules/ajv/dist/vocabularies/validation/required.js.map +0 -1
  182. package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -79
  183. package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +0 -1
  184. package/dist/node_modules/ajv/lib/ajv.js +0 -531
  185. package/dist/node_modules/ajv/lib/ajv.js.map +0 -1
  186. package/dist/node_modules/ajv/lib/cache.js +0 -37
  187. package/dist/node_modules/ajv/lib/cache.js.map +0 -1
  188. package/dist/node_modules/ajv/lib/compile/async.js +0 -102
  189. package/dist/node_modules/ajv/lib/compile/async.js.map +0 -1
  190. package/dist/node_modules/ajv/lib/compile/error_classes.js +0 -46
  191. package/dist/node_modules/ajv/lib/compile/error_classes.js.map +0 -1
  192. package/dist/node_modules/ajv/lib/compile/formats.js +0 -154
  193. package/dist/node_modules/ajv/lib/compile/formats.js.map +0 -1
  194. package/dist/node_modules/ajv/lib/compile/index.js +0 -404
  195. package/dist/node_modules/ajv/lib/compile/index.js.map +0 -1
  196. package/dist/node_modules/ajv/lib/compile/resolve.js +0 -286
  197. package/dist/node_modules/ajv/lib/compile/resolve.js.map +0 -1
  198. package/dist/node_modules/ajv/lib/compile/rules.js +0 -79
  199. package/dist/node_modules/ajv/lib/compile/rules.js.map +0 -1
  200. package/dist/node_modules/ajv/lib/compile/schema_obj.js +0 -21
  201. package/dist/node_modules/ajv/lib/compile/schema_obj.js.map +0 -1
  202. package/dist/node_modules/ajv/lib/compile/ucs2length.js +0 -30
  203. package/dist/node_modules/ajv/lib/compile/ucs2length.js.map +0 -1
  204. package/dist/node_modules/ajv/lib/compile/util.js +0 -252
  205. package/dist/node_modules/ajv/lib/compile/util.js.map +0 -1
  206. package/dist/node_modules/ajv/lib/data.js +0 -59
  207. package/dist/node_modules/ajv/lib/data.js.map +0 -1
  208. package/dist/node_modules/ajv/lib/definition_schema.js +0 -49
  209. package/dist/node_modules/ajv/lib/definition_schema.js.map +0 -1
  210. package/dist/node_modules/ajv/lib/dotjs/_limit.js +0 -173
  211. package/dist/node_modules/ajv/lib/dotjs/_limit.js.map +0 -1
  212. package/dist/node_modules/ajv/lib/dotjs/_limitItems.js +0 -90
  213. package/dist/node_modules/ajv/lib/dotjs/_limitItems.js.map +0 -1
  214. package/dist/node_modules/ajv/lib/dotjs/_limitLength.js +0 -95
  215. package/dist/node_modules/ajv/lib/dotjs/_limitLength.js.map +0 -1
  216. package/dist/node_modules/ajv/lib/dotjs/_limitProperties.js +0 -90
  217. package/dist/node_modules/ajv/lib/dotjs/_limitProperties.js.map +0 -1
  218. package/dist/node_modules/ajv/lib/dotjs/allOf.js +0 -52
  219. package/dist/node_modules/ajv/lib/dotjs/allOf.js.map +0 -1
  220. package/dist/node_modules/ajv/lib/dotjs/anyOf.js +0 -83
  221. package/dist/node_modules/ajv/lib/dotjs/anyOf.js.map +0 -1
  222. package/dist/node_modules/ajv/lib/dotjs/comment.js +0 -24
  223. package/dist/node_modules/ajv/lib/dotjs/comment.js.map +0 -1
  224. package/dist/node_modules/ajv/lib/dotjs/const.js +0 -62
  225. package/dist/node_modules/ajv/lib/dotjs/const.js.map +0 -1
  226. package/dist/node_modules/ajv/lib/dotjs/contains.js +0 -91
  227. package/dist/node_modules/ajv/lib/dotjs/contains.js.map +0 -1
  228. package/dist/node_modules/ajv/lib/dotjs/custom.js +0 -238
  229. package/dist/node_modules/ajv/lib/dotjs/custom.js.map +0 -1
  230. package/dist/node_modules/ajv/lib/dotjs/dependencies.js +0 -178
  231. package/dist/node_modules/ajv/lib/dotjs/dependencies.js.map +0 -1
  232. package/dist/node_modules/ajv/lib/dotjs/enum.js +0 -72
  233. package/dist/node_modules/ajv/lib/dotjs/enum.js.map +0 -1
  234. package/dist/node_modules/ajv/lib/dotjs/format.js +0 -160
  235. package/dist/node_modules/ajv/lib/dotjs/format.js.map +0 -1
  236. package/dist/node_modules/ajv/lib/dotjs/if.js +0 -113
  237. package/dist/node_modules/ajv/lib/dotjs/if.js.map +0 -1
  238. package/dist/node_modules/ajv/lib/dotjs/index.js +0 -68
  239. package/dist/node_modules/ajv/lib/dotjs/index.js.map +0 -1
  240. package/dist/node_modules/ajv/lib/dotjs/items.js +0 -150
  241. package/dist/node_modules/ajv/lib/dotjs/items.js.map +0 -1
  242. package/dist/node_modules/ajv/lib/dotjs/multipleOf.js +0 -90
  243. package/dist/node_modules/ajv/lib/dotjs/multipleOf.js.map +0 -1
  244. package/dist/node_modules/ajv/lib/dotjs/not.js +0 -94
  245. package/dist/node_modules/ajv/lib/dotjs/not.js.map +0 -1
  246. package/dist/node_modules/ajv/lib/dotjs/oneOf.js +0 -83
  247. package/dist/node_modules/ajv/lib/dotjs/oneOf.js.map +0 -1
  248. package/dist/node_modules/ajv/lib/dotjs/pattern.js +0 -85
  249. package/dist/node_modules/ajv/lib/dotjs/pattern.js.map +0 -1
  250. package/dist/node_modules/ajv/lib/dotjs/properties.js +0 -345
  251. package/dist/node_modules/ajv/lib/dotjs/properties.js.map +0 -1
  252. package/dist/node_modules/ajv/lib/dotjs/propertyNames.js +0 -91
  253. package/dist/node_modules/ajv/lib/dotjs/propertyNames.js.map +0 -1
  254. package/dist/node_modules/ajv/lib/dotjs/ref.js +0 -134
  255. package/dist/node_modules/ajv/lib/dotjs/ref.js.map +0 -1
  256. package/dist/node_modules/ajv/lib/dotjs/required.js +0 -276
  257. package/dist/node_modules/ajv/lib/dotjs/required.js.map +0 -1
  258. package/dist/node_modules/ajv/lib/dotjs/uniqueItems.js +0 -96
  259. package/dist/node_modules/ajv/lib/dotjs/uniqueItems.js.map +0 -1
  260. package/dist/node_modules/ajv/lib/dotjs/validate.js +0 -492
  261. package/dist/node_modules/ajv/lib/dotjs/validate.js.map +0 -1
  262. package/dist/node_modules/ajv/lib/keyword.js +0 -159
  263. package/dist/node_modules/ajv/lib/keyword.js.map +0 -1
  264. package/dist/node_modules/ajv/lib/refs/data.json.js +0 -33
  265. package/dist/node_modules/ajv/lib/refs/data.json.js.map +0 -1
  266. package/dist/node_modules/ajv/lib/refs/json-schema-draft-07.json.js +0 -254
  267. package/dist/node_modules/ajv/lib/refs/json-schema-draft-07.json.js.map +0 -1
  268. package/dist/node_modules/fast-json-stable-stringify/index.js +0 -69
  269. package/dist/node_modules/fast-json-stable-stringify/index.js.map +0 -1
  270. package/dist/node_modules/json-schema-traverse/index.js +0 -104
  271. package/dist/node_modules/json-schema-traverse/index.js.map +0 -1
  272. package/dist/node_modules/uri-js/dist/es5/uri.all.js +0 -1418
  273. package/dist/node_modules/uri-js/dist/es5/uri.all.js.map +0 -1
  274. package/dist/node_modules/zod/v3/ZodError.js +0 -133
  275. package/dist/node_modules/zod/v3/ZodError.js.map +0 -1
  276. package/dist/node_modules/zod/v3/errors.js +0 -9
  277. package/dist/node_modules/zod/v3/errors.js.map +0 -1
  278. package/dist/node_modules/zod/v3/helpers/errorUtil.js +0 -9
  279. package/dist/node_modules/zod/v3/helpers/errorUtil.js.map +0 -1
  280. package/dist/node_modules/zod/v3/helpers/parseUtil.js +0 -112
  281. package/dist/node_modules/zod/v3/helpers/parseUtil.js.map +0 -1
  282. package/dist/node_modules/zod/v3/helpers/util.js +0 -136
  283. package/dist/node_modules/zod/v3/helpers/util.js.map +0 -1
  284. package/dist/node_modules/zod/v3/locales/en.js +0 -112
  285. package/dist/node_modules/zod/v3/locales/en.js.map +0 -1
  286. package/dist/node_modules/zod/v3/types.js +0 -3491
  287. package/dist/node_modules/zod/v3/types.js.map +0 -1
  288. package/dist/polygon.cjs +0 -39
  289. package/dist/polygon.cjs.map +0 -1
  290. package/dist/polygon.d.ts +0 -1
  291. package/dist/polygon.d.ts.map +0 -1
  292. package/dist/polygon.js +0 -2
  293. package/dist/polygon.js.map +0 -1
  294. package/dist/solana.cjs +0 -20
  295. package/dist/solana.cjs.map +0 -1
  296. package/dist/solana.d.ts +0 -2
  297. package/dist/solana.d.ts.map +0 -1
  298. package/dist/solana.js +0 -3
  299. package/dist/solana.js.map +0 -1
  300. package/dist/solanaAccount.d.ts +0 -13
  301. package/dist/solanaAccount.d.ts.map +0 -1
  302. package/dist/solanaAccount.js +0 -34
  303. package/dist/solanaAccount.js.map +0 -1
  304. package/dist/solanaPaymentMaker.d.ts +0 -25
  305. package/dist/solanaPaymentMaker.d.ts.map +0 -1
  306. package/dist/solanaPaymentMaker.js +0 -108
  307. package/dist/solanaPaymentMaker.js.map +0 -1
  308. package/dist/types.js +0 -152
  309. package/dist/types.js.map +0 -1
  310. package/dist/world.cjs +0 -39
  311. package/dist/world.cjs.map +0 -1
  312. package/dist/world.d.ts +0 -1
  313. package/dist/world.d.ts.map +0 -1
  314. package/dist/world.js +0 -2
  315. package/dist/world.js.map +0 -1
@@ -1,72 +0,0 @@
1
- var _enum;
2
- var hasRequired_enum;
3
-
4
- function require_enum () {
5
- if (hasRequired_enum) return _enum;
6
- hasRequired_enum = 1;
7
- _enum = function generate_enum(it, $keyword, $ruleType) {
8
- var out = ' ';
9
- var $lvl = it.level;
10
- var $dataLvl = it.dataLevel;
11
- var $schema = it.schema[$keyword];
12
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
13
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
14
- var $breakOnError = !it.opts.allErrors;
15
- var $data = 'data' + ($dataLvl || '');
16
- var $valid = 'valid' + $lvl;
17
- var $isData = it.opts.$data && $schema && $schema.$data;
18
- if ($isData) {
19
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
20
- }
21
- var $i = 'i' + $lvl,
22
- $vSchema = 'schema' + $lvl;
23
- if (!$isData) {
24
- out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + ';';
25
- }
26
- out += 'var ' + ($valid) + ';';
27
- if ($isData) {
28
- out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {';
29
- }
30
- out += '' + ($valid) + ' = false;for (var ' + ($i) + '=0; ' + ($i) + '<' + ($vSchema) + '.length; ' + ($i) + '++) if (equal(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + '])) { ' + ($valid) + ' = true; break; }';
31
- if ($isData) {
32
- out += ' } ';
33
- }
34
- out += ' if (!' + ($valid) + ') { ';
35
- var $$outStack = $$outStack || [];
36
- $$outStack.push(out);
37
- out = ''; /* istanbul ignore else */
38
- if (it.createErrors !== false) {
39
- out += ' { keyword: \'' + ('enum') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValues: schema' + ($lvl) + ' } ';
40
- if (it.opts.messages !== false) {
41
- out += ' , message: \'should be equal to one of the allowed values\' ';
42
- }
43
- if (it.opts.verbose) {
44
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
45
- }
46
- out += ' } ';
47
- } else {
48
- out += ' {} ';
49
- }
50
- var __err = out;
51
- out = $$outStack.pop();
52
- if (!it.compositeRule && $breakOnError) {
53
- /* istanbul ignore if */
54
- if (it.async) {
55
- out += ' throw new ValidationError([' + (__err) + ']); ';
56
- } else {
57
- out += ' validate.errors = [' + (__err) + ']; return false; ';
58
- }
59
- } else {
60
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
61
- }
62
- out += ' }';
63
- if ($breakOnError) {
64
- out += ' else { ';
65
- }
66
- return out;
67
- };
68
- return _enum;
69
- }
70
-
71
- export { require_enum as __require };
72
- //# sourceMappingURL=enum.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enum.js","sources":["../../../../../../../node_modules/ajv/lib/dotjs/enum.js"],"sourcesContent":["'use strict';\nmodule.exports = function generate_enum(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n var $i = 'i' + $lvl,\n $vSchema = 'schema' + $lvl;\n if (!$isData) {\n out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + ';';\n }\n out += 'var ' + ($valid) + ';';\n if ($isData) {\n out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {';\n }\n out += '' + ($valid) + ' = false;for (var ' + ($i) + '=0; ' + ($i) + '<' + ($vSchema) + '.length; ' + ($i) + '++) if (equal(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + '])) { ' + ($valid) + ' = true; break; }';\n if ($isData) {\n out += ' } ';\n }\n out += ' if (!' + ($valid) + ') { ';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('enum') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValues: schema' + ($lvl) + ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should be equal to one of the allowed values\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' }';\n if ($breakOnError) {\n out += ' else { ';\n }\n return out;\n}\n"],"names":[],"mappings":";;;;;;AACA,CAAA,KAAc,GAAG,SAAS,aAAa,CAAC,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE;GAC/D,IAAI,GAAG,GAAG,GAAG;AACf,GAAE,IAAI,IAAI,GAAG,EAAE,CAAC,KAAK;AACrB,GAAE,IAAI,QAAQ,GAAG,EAAE,CAAC,SAAS;GAC3B,IAAI,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC;AACnC,GAAE,IAAI,WAAW,GAAG,EAAE,CAAC,UAAU,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC;GAC/D,IAAI,cAAc,GAAG,EAAE,CAAC,aAAa,GAAG,GAAG,GAAG,QAAQ;GACtD,IAAI,aAAa,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS;GACtC,IAAI,KAAK,GAAG,MAAM,IAAI,QAAQ,IAAI,EAAE,CAAC;AACvC,GAAE,IAAI,MAAM,GAAG,OAAO,GAAG,IAAI;AAC7B,GAAE,IAAI,OAAO,GAAG,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G,IAAI,UAAU;AACrB,GAAA;AACA,GAAE,OAAO,GAAG;AACZ,CAAA;;;;;;","x_google_ignoreList":[0]}
@@ -1,160 +0,0 @@
1
- var format;
2
- var hasRequiredFormat;
3
-
4
- function requireFormat () {
5
- if (hasRequiredFormat) return format;
6
- hasRequiredFormat = 1;
7
- format = function generate_format(it, $keyword, $ruleType) {
8
- var out = ' ';
9
- var $lvl = it.level;
10
- var $dataLvl = it.dataLevel;
11
- var $schema = it.schema[$keyword];
12
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
13
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
14
- var $breakOnError = !it.opts.allErrors;
15
- var $data = 'data' + ($dataLvl || '');
16
- if (it.opts.format === false) {
17
- if ($breakOnError) {
18
- out += ' if (true) { ';
19
- }
20
- return out;
21
- }
22
- var $isData = it.opts.$data && $schema && $schema.$data,
23
- $schemaValue;
24
- if ($isData) {
25
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
26
- $schemaValue = 'schema' + $lvl;
27
- } else {
28
- $schemaValue = $schema;
29
- }
30
- var $unknownFormats = it.opts.unknownFormats,
31
- $allowUnknown = Array.isArray($unknownFormats);
32
- if ($isData) {
33
- var $format = 'format' + $lvl,
34
- $isObject = 'isObject' + $lvl,
35
- $formatType = 'formatType' + $lvl;
36
- out += ' var ' + ($format) + ' = formats[' + ($schemaValue) + ']; var ' + ($isObject) + ' = typeof ' + ($format) + ' == \'object\' && !(' + ($format) + ' instanceof RegExp) && ' + ($format) + '.validate; var ' + ($formatType) + ' = ' + ($isObject) + ' && ' + ($format) + '.type || \'string\'; if (' + ($isObject) + ') { ';
37
- if (it.async) {
38
- out += ' var async' + ($lvl) + ' = ' + ($format) + '.async; ';
39
- }
40
- out += ' ' + ($format) + ' = ' + ($format) + '.validate; } if ( ';
41
- if ($isData) {
42
- out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || ';
43
- }
44
- out += ' (';
45
- if ($unknownFormats != 'ignore') {
46
- out += ' (' + ($schemaValue) + ' && !' + ($format) + ' ';
47
- if ($allowUnknown) {
48
- out += ' && self._opts.unknownFormats.indexOf(' + ($schemaValue) + ') == -1 ';
49
- }
50
- out += ') || ';
51
- }
52
- out += ' (' + ($format) + ' && ' + ($formatType) + ' == \'' + ($ruleType) + '\' && !(typeof ' + ($format) + ' == \'function\' ? ';
53
- if (it.async) {
54
- out += ' (async' + ($lvl) + ' ? await ' + ($format) + '(' + ($data) + ') : ' + ($format) + '(' + ($data) + ')) ';
55
- } else {
56
- out += ' ' + ($format) + '(' + ($data) + ') ';
57
- }
58
- out += ' : ' + ($format) + '.test(' + ($data) + '))))) {';
59
- } else {
60
- var $format = it.formats[$schema];
61
- if (!$format) {
62
- if ($unknownFormats == 'ignore') {
63
- it.logger.warn('unknown format "' + $schema + '" ignored in schema at path "' + it.errSchemaPath + '"');
64
- if ($breakOnError) {
65
- out += ' if (true) { ';
66
- }
67
- return out;
68
- } else if ($allowUnknown && $unknownFormats.indexOf($schema) >= 0) {
69
- if ($breakOnError) {
70
- out += ' if (true) { ';
71
- }
72
- return out;
73
- } else {
74
- throw new Error('unknown format "' + $schema + '" is used in schema at path "' + it.errSchemaPath + '"');
75
- }
76
- }
77
- var $isObject = typeof $format == 'object' && !($format instanceof RegExp) && $format.validate;
78
- var $formatType = $isObject && $format.type || 'string';
79
- if ($isObject) {
80
- var $async = $format.async === true;
81
- $format = $format.validate;
82
- }
83
- if ($formatType != $ruleType) {
84
- if ($breakOnError) {
85
- out += ' if (true) { ';
86
- }
87
- return out;
88
- }
89
- if ($async) {
90
- if (!it.async) throw new Error('async format in sync schema');
91
- var $formatRef = 'formats' + it.util.getProperty($schema) + '.validate';
92
- out += ' if (!(await ' + ($formatRef) + '(' + ($data) + '))) { ';
93
- } else {
94
- out += ' if (! ';
95
- var $formatRef = 'formats' + it.util.getProperty($schema);
96
- if ($isObject) $formatRef += '.validate';
97
- if (typeof $format == 'function') {
98
- out += ' ' + ($formatRef) + '(' + ($data) + ') ';
99
- } else {
100
- out += ' ' + ($formatRef) + '.test(' + ($data) + ') ';
101
- }
102
- out += ') { ';
103
- }
104
- }
105
- var $$outStack = $$outStack || [];
106
- $$outStack.push(out);
107
- out = ''; /* istanbul ignore else */
108
- if (it.createErrors !== false) {
109
- out += ' { keyword: \'' + ('format') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { format: ';
110
- if ($isData) {
111
- out += '' + ($schemaValue);
112
- } else {
113
- out += '' + (it.util.toQuotedString($schema));
114
- }
115
- out += ' } ';
116
- if (it.opts.messages !== false) {
117
- out += ' , message: \'should match format "';
118
- if ($isData) {
119
- out += '\' + ' + ($schemaValue) + ' + \'';
120
- } else {
121
- out += '' + (it.util.escapeQuotes($schema));
122
- }
123
- out += '"\' ';
124
- }
125
- if (it.opts.verbose) {
126
- out += ' , schema: ';
127
- if ($isData) {
128
- out += 'validate.schema' + ($schemaPath);
129
- } else {
130
- out += '' + (it.util.toQuotedString($schema));
131
- }
132
- out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
133
- }
134
- out += ' } ';
135
- } else {
136
- out += ' {} ';
137
- }
138
- var __err = out;
139
- out = $$outStack.pop();
140
- if (!it.compositeRule && $breakOnError) {
141
- /* istanbul ignore if */
142
- if (it.async) {
143
- out += ' throw new ValidationError([' + (__err) + ']); ';
144
- } else {
145
- out += ' validate.errors = [' + (__err) + ']; return false; ';
146
- }
147
- } else {
148
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
149
- }
150
- out += ' } ';
151
- if ($breakOnError) {
152
- out += ' else { ';
153
- }
154
- return out;
155
- };
156
- return format;
157
- }
158
-
159
- export { requireFormat as __require };
160
- //# sourceMappingURL=format.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"format.js","sources":["../../../../../../../node_modules/ajv/lib/dotjs/format.js"],"sourcesContent":["'use strict';\nmodule.exports = function generate_format(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n if (it.opts.format === false) {\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n return out;\n }\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n var $unknownFormats = it.opts.unknownFormats,\n $allowUnknown = Array.isArray($unknownFormats);\n if ($isData) {\n var $format = 'format' + $lvl,\n $isObject = 'isObject' + $lvl,\n $formatType = 'formatType' + $lvl;\n out += ' var ' + ($format) + ' = formats[' + ($schemaValue) + ']; var ' + ($isObject) + ' = typeof ' + ($format) + ' == \\'object\\' && !(' + ($format) + ' instanceof RegExp) && ' + ($format) + '.validate; var ' + ($formatType) + ' = ' + ($isObject) + ' && ' + ($format) + '.type || \\'string\\'; if (' + ($isObject) + ') { ';\n if (it.async) {\n out += ' var async' + ($lvl) + ' = ' + ($format) + '.async; ';\n }\n out += ' ' + ($format) + ' = ' + ($format) + '.validate; } if ( ';\n if ($isData) {\n out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'string\\') || ';\n }\n out += ' (';\n if ($unknownFormats != 'ignore') {\n out += ' (' + ($schemaValue) + ' && !' + ($format) + ' ';\n if ($allowUnknown) {\n out += ' && self._opts.unknownFormats.indexOf(' + ($schemaValue) + ') == -1 ';\n }\n out += ') || ';\n }\n out += ' (' + ($format) + ' && ' + ($formatType) + ' == \\'' + ($ruleType) + '\\' && !(typeof ' + ($format) + ' == \\'function\\' ? ';\n if (it.async) {\n out += ' (async' + ($lvl) + ' ? await ' + ($format) + '(' + ($data) + ') : ' + ($format) + '(' + ($data) + ')) ';\n } else {\n out += ' ' + ($format) + '(' + ($data) + ') ';\n }\n out += ' : ' + ($format) + '.test(' + ($data) + '))))) {';\n } else {\n var $format = it.formats[$schema];\n if (!$format) {\n if ($unknownFormats == 'ignore') {\n it.logger.warn('unknown format \"' + $schema + '\" ignored in schema at path \"' + it.errSchemaPath + '\"');\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n return out;\n } else if ($allowUnknown && $unknownFormats.indexOf($schema) >= 0) {\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n return out;\n } else {\n throw new Error('unknown format \"' + $schema + '\" is used in schema at path \"' + it.errSchemaPath + '\"');\n }\n }\n var $isObject = typeof $format == 'object' && !($format instanceof RegExp) && $format.validate;\n var $formatType = $isObject && $format.type || 'string';\n if ($isObject) {\n var $async = $format.async === true;\n $format = $format.validate;\n }\n if ($formatType != $ruleType) {\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n return out;\n }\n if ($async) {\n if (!it.async) throw new Error('async format in sync schema');\n var $formatRef = 'formats' + it.util.getProperty($schema) + '.validate';\n out += ' if (!(await ' + ($formatRef) + '(' + ($data) + '))) { ';\n } else {\n out += ' if (! ';\n var $formatRef = 'formats' + it.util.getProperty($schema);\n if ($isObject) $formatRef += '.validate';\n if (typeof $format == 'function') {\n out += ' ' + ($formatRef) + '(' + ($data) + ') ';\n } else {\n out += ' ' + ($formatRef) + '.test(' + ($data) + ') ';\n }\n out += ') { ';\n }\n }\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('format') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { format: ';\n if ($isData) {\n out += '' + ($schemaValue);\n } else {\n out += '' + (it.util.toQuotedString($schema));\n }\n out += ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should match format \"';\n if ($isData) {\n out += '\\' + ' + ($schemaValue) + ' + \\'';\n } else {\n out += '' + (it.util.escapeQuotes($schema));\n }\n out += '\"\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: ';\n if ($isData) {\n out += 'validate.schema' + ($schemaPath);\n } else {\n out += '' + (it.util.toQuotedString($schema));\n }\n out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } ';\n if ($breakOnError) {\n out += ' else { ';\n }\n return out;\n}\n"],"names":[],"mappings":";;;;;;AACA,CAAA,MAAc,GAAG,SAAS,eAAe,CAAC,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE;GACjE,IAAI,GAAG,GAAG,GAAG;AACf,GAAE,IAAI,IAAI,GAAG,EAAE,CAAC,KAAK;AACrB,GAAE,IAAI,QAAQ,GAAG,EAAE,CAAC,SAAS;GAC3B,IAAI,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC;AACnC,GAAE,IAAI,WAAW,GAAG,EAAE,CAAC,UAAU,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC;GAC/D,IAAI,cAAc,GAAG,EAAE,CAAC,aAAa,GAAG,GAAG,GAAG,QAAQ;GACtD,IAAI,aAAa,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS;GACtC,IAAI,KAAK,GAAG,MAAM,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;AACA,GAAA,CAAG,MAAM;AACT,KAAI,GAAG,IAAI,aAAa,IAAI,KAAK,CAAC,GAAG,8EAA8E;AACnH,GAAA;GACE,GAAG,IAAI,KAAK;GACZ,IAAI,aAAa,EAAE;KACjB,GAAG,IAAI,UAAU;AACrB,GAAA;AACA,GAAE,OAAO,GAAG;AACZ,CAAA;;;;;;","x_google_ignoreList":[0]}
@@ -1,113 +0,0 @@
1
- var _if;
2
- var hasRequired_if;
3
-
4
- function require_if () {
5
- if (hasRequired_if) return _if;
6
- hasRequired_if = 1;
7
- _if = function generate_if(it, $keyword, $ruleType) {
8
- var out = ' ';
9
- var $lvl = it.level;
10
- var $dataLvl = it.dataLevel;
11
- var $schema = it.schema[$keyword];
12
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
13
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
14
- var $breakOnError = !it.opts.allErrors;
15
- var $data = 'data' + ($dataLvl || '');
16
- var $valid = 'valid' + $lvl;
17
- var $errs = 'errs__' + $lvl;
18
- var $it = it.util.copy(it);
19
- $it.level++;
20
- var $nextValid = 'valid' + $it.level;
21
- var $thenSch = it.schema['then'],
22
- $elseSch = it.schema['else'],
23
- $thenPresent = $thenSch !== undefined && (it.opts.strictKeywords ? (typeof $thenSch == 'object' && Object.keys($thenSch).length > 0) || $thenSch === false : it.util.schemaHasRules($thenSch, it.RULES.all)),
24
- $elsePresent = $elseSch !== undefined && (it.opts.strictKeywords ? (typeof $elseSch == 'object' && Object.keys($elseSch).length > 0) || $elseSch === false : it.util.schemaHasRules($elseSch, it.RULES.all)),
25
- $currentBaseId = $it.baseId;
26
- if ($thenPresent || $elsePresent) {
27
- var $ifClause;
28
- $it.createErrors = false;
29
- $it.schema = $schema;
30
- $it.schemaPath = $schemaPath;
31
- $it.errSchemaPath = $errSchemaPath;
32
- out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = true; ';
33
- var $wasComposite = it.compositeRule;
34
- it.compositeRule = $it.compositeRule = true;
35
- out += ' ' + (it.validate($it)) + ' ';
36
- $it.baseId = $currentBaseId;
37
- $it.createErrors = true;
38
- out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';
39
- it.compositeRule = $it.compositeRule = $wasComposite;
40
- if ($thenPresent) {
41
- out += ' if (' + ($nextValid) + ') { ';
42
- $it.schema = it.schema['then'];
43
- $it.schemaPath = it.schemaPath + '.then';
44
- $it.errSchemaPath = it.errSchemaPath + '/then';
45
- out += ' ' + (it.validate($it)) + ' ';
46
- $it.baseId = $currentBaseId;
47
- out += ' ' + ($valid) + ' = ' + ($nextValid) + '; ';
48
- if ($thenPresent && $elsePresent) {
49
- $ifClause = 'ifClause' + $lvl;
50
- out += ' var ' + ($ifClause) + ' = \'then\'; ';
51
- } else {
52
- $ifClause = '\'then\'';
53
- }
54
- out += ' } ';
55
- if ($elsePresent) {
56
- out += ' else { ';
57
- }
58
- } else {
59
- out += ' if (!' + ($nextValid) + ') { ';
60
- }
61
- if ($elsePresent) {
62
- $it.schema = it.schema['else'];
63
- $it.schemaPath = it.schemaPath + '.else';
64
- $it.errSchemaPath = it.errSchemaPath + '/else';
65
- out += ' ' + (it.validate($it)) + ' ';
66
- $it.baseId = $currentBaseId;
67
- out += ' ' + ($valid) + ' = ' + ($nextValid) + '; ';
68
- if ($thenPresent && $elsePresent) {
69
- $ifClause = 'ifClause' + $lvl;
70
- out += ' var ' + ($ifClause) + ' = \'else\'; ';
71
- } else {
72
- $ifClause = '\'else\'';
73
- }
74
- out += ' } ';
75
- }
76
- out += ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */
77
- if (it.createErrors !== false) {
78
- out += ' { keyword: \'' + ('if') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { failingKeyword: ' + ($ifClause) + ' } ';
79
- if (it.opts.messages !== false) {
80
- out += ' , message: \'should match "\' + ' + ($ifClause) + ' + \'" schema\' ';
81
- }
82
- if (it.opts.verbose) {
83
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
84
- }
85
- out += ' } ';
86
- } else {
87
- out += ' {} ';
88
- }
89
- out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
90
- if (!it.compositeRule && $breakOnError) {
91
- /* istanbul ignore if */
92
- if (it.async) {
93
- out += ' throw new ValidationError(vErrors); ';
94
- } else {
95
- out += ' validate.errors = vErrors; return false; ';
96
- }
97
- }
98
- out += ' } ';
99
- if ($breakOnError) {
100
- out += ' else { ';
101
- }
102
- } else {
103
- if ($breakOnError) {
104
- out += ' if (true) { ';
105
- }
106
- }
107
- return out;
108
- };
109
- return _if;
110
- }
111
-
112
- export { require_if as __require };
113
- //# sourceMappingURL=if.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"if.js","sources":["../../../../../../../node_modules/ajv/lib/dotjs/if.js"],"sourcesContent":["'use strict';\nmodule.exports = function generate_if(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $errs = 'errs__' + $lvl;\n var $it = it.util.copy(it);\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n var $thenSch = it.schema['then'],\n $elseSch = it.schema['else'],\n $thenPresent = $thenSch !== undefined && (it.opts.strictKeywords ? (typeof $thenSch == 'object' && Object.keys($thenSch).length > 0) || $thenSch === false : it.util.schemaHasRules($thenSch, it.RULES.all)),\n $elsePresent = $elseSch !== undefined && (it.opts.strictKeywords ? (typeof $elseSch == 'object' && Object.keys($elseSch).length > 0) || $elseSch === false : it.util.schemaHasRules($elseSch, it.RULES.all)),\n $currentBaseId = $it.baseId;\n if ($thenPresent || $elsePresent) {\n var $ifClause;\n $it.createErrors = false;\n $it.schema = $schema;\n $it.schemaPath = $schemaPath;\n $it.errSchemaPath = $errSchemaPath;\n out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = true; ';\n var $wasComposite = it.compositeRule;\n it.compositeRule = $it.compositeRule = true;\n out += ' ' + (it.validate($it)) + ' ';\n $it.baseId = $currentBaseId;\n $it.createErrors = true;\n out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';\n it.compositeRule = $it.compositeRule = $wasComposite;\n if ($thenPresent) {\n out += ' if (' + ($nextValid) + ') { ';\n $it.schema = it.schema['then'];\n $it.schemaPath = it.schemaPath + '.then';\n $it.errSchemaPath = it.errSchemaPath + '/then';\n out += ' ' + (it.validate($it)) + ' ';\n $it.baseId = $currentBaseId;\n out += ' ' + ($valid) + ' = ' + ($nextValid) + '; ';\n if ($thenPresent && $elsePresent) {\n $ifClause = 'ifClause' + $lvl;\n out += ' var ' + ($ifClause) + ' = \\'then\\'; ';\n } else {\n $ifClause = '\\'then\\'';\n }\n out += ' } ';\n if ($elsePresent) {\n out += ' else { ';\n }\n } else {\n out += ' if (!' + ($nextValid) + ') { ';\n }\n if ($elsePresent) {\n $it.schema = it.schema['else'];\n $it.schemaPath = it.schemaPath + '.else';\n $it.errSchemaPath = it.errSchemaPath + '/else';\n out += ' ' + (it.validate($it)) + ' ';\n $it.baseId = $currentBaseId;\n out += ' ' + ($valid) + ' = ' + ($nextValid) + '; ';\n if ($thenPresent && $elsePresent) {\n $ifClause = 'ifClause' + $lvl;\n out += ' var ' + ($ifClause) + ' = \\'else\\'; ';\n } else {\n $ifClause = '\\'else\\'';\n }\n out += ' } ';\n }\n out += ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('if') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { failingKeyword: ' + ($ifClause) + ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should match \"\\' + ' + ($ifClause) + ' + \\'\" schema\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError(vErrors); ';\n } else {\n out += ' validate.errors = vErrors; return false; ';\n }\n }\n out += ' } ';\n if ($breakOnError) {\n out += ' else { ';\n }\n } else {\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n }\n return out;\n}\n"],"names":[],"mappings":";;;;;;AACA,CAAA,GAAc,GAAG,SAAS,WAAW,CAAC,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE;GAC7D,IAAI,GAAG,GAAG,GAAG;AACf,GAAE,IAAI,IAAI,GAAG,EAAE,CAAC,KAAK;AACrB,GAAE,IAAI,QAAQ,GAAG,EAAE,CAAC,SAAS;GAC3B,IAAI,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC;AACnC,GAAE,IAAI,WAAW,GAAG,EAAE,CAAC,UAAU,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC;GAC/D,IAAI,cAAc,GAAG,EAAE,CAAC,aAAa,GAAG,GAAG,GAAG,QAAQ;GACtD,IAAI,aAAa,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS;GACtC,IAAI,KAAK,GAAG,MAAM,IAAI,QAAQ,IAAI,EAAE,CAAC;AACvC,GAAE,IAAI,MAAM,GAAG,OAAO,GAAG,IAAI;AAC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AE,CAAC,IAAI,CAAC,QAAQ,KAAK,KAAK,EAAE;AACtC,SAAQ,GAAG,IAAI,mCAAmC,IAAI,SAAS,CAAC,GAAG,kBAAkB;AACrF,OAAA;AACA,OAAM,IAAI,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE;AAC3B,SAAQ,GAAG,IAAI,4BAA4B,IAAI,WAAW,CAAC,GAAG,kCAAkC,IAAI,EAAE,CAAC,UAAU,CAAC,GAAG,WAAW,IAAI,KAAK,CAAC,GAAG,GAAG;AAChJ,OAAA;OACM,GAAG,IAAI,KAAK;AAClB,KAAA,CAAK,MAAM;OACL,GAAG,IAAI,MAAM;AACnB,KAAA;KACI,GAAG,IAAI,8EAA8E;AACzF,KAAI,IAAI,CAAC,EAAE,CAAC,aAAa,IAAI,aAAa,EAAE;AAC5C;AACA,OAAM,IAAI,EAAE,CAAC,KAAK,EAAE;SACZ,GAAG,IAAI,uCAAuC;AACtD,OAAA,CAAO,MAAM;SACL,GAAG,IAAI,4CAA4C;AAC3D,OAAA;AACA,KAAA;KACI,GAAG,IAAI,OAAO;KACd,IAAI,aAAa,EAAE;OACjB,GAAG,IAAI,UAAU;AACvB,KAAA;AACA,GAAA,CAAG,MAAM;KACL,IAAI,aAAa,EAAE;OACjB,GAAG,IAAI,eAAe;AAC5B,KAAA;AACA,GAAA;AACA,GAAE,OAAO,GAAG;AACZ,CAAA;;;;;;","x_google_ignoreList":[0]}
@@ -1,68 +0,0 @@
1
- import { __require as requireRef } from './ref.js';
2
- import { __require as requireAllOf } from './allOf.js';
3
- import { __require as requireAnyOf } from './anyOf.js';
4
- import { __require as requireComment } from './comment.js';
5
- import { __require as require_const } from './const.js';
6
- import { __require as requireContains } from './contains.js';
7
- import { __require as requireDependencies } from './dependencies.js';
8
- import { __require as require_enum } from './enum.js';
9
- import { __require as requireFormat } from './format.js';
10
- import { __require as require_if } from './if.js';
11
- import { __require as requireItems } from './items.js';
12
- import { __require as require_limit } from './_limit.js';
13
- import { __require as require_limitItems } from './_limitItems.js';
14
- import { __require as require_limitLength } from './_limitLength.js';
15
- import { __require as require_limitProperties } from './_limitProperties.js';
16
- import { __require as requireMultipleOf } from './multipleOf.js';
17
- import { __require as requireNot } from './not.js';
18
- import { __require as requireOneOf } from './oneOf.js';
19
- import { __require as requirePattern } from './pattern.js';
20
- import { __require as requireProperties } from './properties.js';
21
- import { __require as requirePropertyNames } from './propertyNames.js';
22
- import { __require as requireRequired } from './required.js';
23
- import { __require as requireUniqueItems } from './uniqueItems.js';
24
- import { __require as requireValidate } from './validate.js';
25
-
26
- var dotjs;
27
- var hasRequiredDotjs;
28
-
29
- function requireDotjs () {
30
- if (hasRequiredDotjs) return dotjs;
31
- hasRequiredDotjs = 1;
32
-
33
- //all requires must be explicit because browserify won't work with dynamic requires
34
- dotjs = {
35
- '$ref': requireRef(),
36
- allOf: requireAllOf(),
37
- anyOf: requireAnyOf(),
38
- '$comment': requireComment(),
39
- const: require_const(),
40
- contains: requireContains(),
41
- dependencies: requireDependencies(),
42
- 'enum': require_enum(),
43
- format: requireFormat(),
44
- 'if': require_if(),
45
- items: requireItems(),
46
- maximum: require_limit(),
47
- minimum: require_limit(),
48
- maxItems: require_limitItems(),
49
- minItems: require_limitItems(),
50
- maxLength: require_limitLength(),
51
- minLength: require_limitLength(),
52
- maxProperties: require_limitProperties(),
53
- minProperties: require_limitProperties(),
54
- multipleOf: requireMultipleOf(),
55
- not: requireNot(),
56
- oneOf: requireOneOf(),
57
- pattern: requirePattern(),
58
- properties: requireProperties(),
59
- propertyNames: requirePropertyNames(),
60
- required: requireRequired(),
61
- uniqueItems: requireUniqueItems(),
62
- validate: requireValidate()
63
- };
64
- return dotjs;
65
- }
66
-
67
- export { requireDotjs as __require };
68
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/ajv/lib/dotjs/index.js"],"sourcesContent":["'use strict';\n\n//all requires must be explicit because browserify won't work with dynamic requires\nmodule.exports = {\n '$ref': require('./ref'),\n allOf: require('./allOf'),\n anyOf: require('./anyOf'),\n '$comment': require('./comment'),\n const: require('./const'),\n contains: require('./contains'),\n dependencies: require('./dependencies'),\n 'enum': require('./enum'),\n format: require('./format'),\n 'if': require('./if'),\n items: require('./items'),\n maximum: require('./_limit'),\n minimum: require('./_limit'),\n maxItems: require('./_limitItems'),\n minItems: require('./_limitItems'),\n maxLength: require('./_limitLength'),\n minLength: require('./_limitLength'),\n maxProperties: require('./_limitProperties'),\n minProperties: require('./_limitProperties'),\n multipleOf: require('./multipleOf'),\n not: require('./not'),\n oneOf: require('./oneOf'),\n pattern: require('./pattern'),\n properties: require('./properties'),\n propertyNames: require('./propertyNames'),\n required: require('./required'),\n uniqueItems: require('./uniqueItems'),\n validate: require('./validate')\n};\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6","require$$7","require$$8","require$$9","require$$10","require$$11","require$$12","require$$13","require$$14","require$$15","require$$16","require$$17","require$$18","require$$19","require$$20","require$$21","require$$22","require$$23"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;AACA,CAAA,KAAc,GAAG;GACf,MAAM,EAAEA,UAAA,EAAgB;GACxB,KAAK,EAAEC,YAAA,EAAkB;GACzB,KAAK,EAAEC,YAAA,EAAkB;GACzB,UAAU,EAAEC,cAAA,EAAoB;GAChC,KAAK,EAAEC,aAAA,EAAkB;GACzB,QAAQ,EAAEC,eAAA,EAAqB;GAC/B,YAAY,EAAEC,mBAAA,EAAyB;GACvC,MAAM,EAAEC,YAAA,EAAiB;GACzB,MAAM,EAAEC,aAAA,EAAmB;GAC3B,IAAI,EAAEC,UAAA,EAAe;GACrB,KAAK,EAAEC,YAAA,EAAkB;GACzB,OAAO,EAAEC,aAAA,EAAmB;GAC5B,OAAO,EAAEA,aAAA,EAAmB;GAC5B,QAAQ,EAAEC,kBAAA,EAAwB;GAClC,QAAQ,EAAEA,kBAAA,EAAwB;GAClC,SAAS,EAAEC,mBAAA,EAAyB;GACpC,SAAS,EAAEA,mBAAA,EAAyB;GACpC,aAAa,EAAEC,uBAAA,EAA6B;GAC5C,aAAa,EAAEA,uBAAA,EAA6B;GAC5C,UAAU,EAAEC,iBAAA,EAAuB;GACnC,GAAG,EAAEC,UAAA,EAAgB;GACrB,KAAK,EAAEC,YAAA,EAAkB;GACzB,OAAO,EAAEC,cAAA,EAAoB;GAC7B,UAAU,EAAEC,iBAAA,EAAuB;GACnC,aAAa,EAAEC,oBAAA,EAA0B;GACzC,QAAQ,EAAEC,eAAA,EAAqB;GAC/B,WAAW,EAAEC,kBAAA,EAAwB;AACvC,GAAE,QAAQ,EAAEC,eAAA;EACX;;;;;;","x_google_ignoreList":[0]}
@@ -1,150 +0,0 @@
1
- var items;
2
- var hasRequiredItems;
3
-
4
- function requireItems () {
5
- if (hasRequiredItems) return items;
6
- hasRequiredItems = 1;
7
- items = function generate_items(it, $keyword, $ruleType) {
8
- var out = ' ';
9
- var $lvl = it.level;
10
- var $dataLvl = it.dataLevel;
11
- var $schema = it.schema[$keyword];
12
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
13
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
14
- var $breakOnError = !it.opts.allErrors;
15
- var $data = 'data' + ($dataLvl || '');
16
- var $valid = 'valid' + $lvl;
17
- var $errs = 'errs__' + $lvl;
18
- var $it = it.util.copy(it);
19
- var $closingBraces = '';
20
- $it.level++;
21
- var $nextValid = 'valid' + $it.level;
22
- var $idx = 'i' + $lvl,
23
- $dataNxt = $it.dataLevel = it.dataLevel + 1,
24
- $nextData = 'data' + $dataNxt,
25
- $currentBaseId = it.baseId;
26
- out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';';
27
- if (Array.isArray($schema)) {
28
- var $additionalItems = it.schema.additionalItems;
29
- if ($additionalItems === false) {
30
- out += ' ' + ($valid) + ' = ' + ($data) + '.length <= ' + ($schema.length) + '; ';
31
- var $currErrSchemaPath = $errSchemaPath;
32
- $errSchemaPath = it.errSchemaPath + '/additionalItems';
33
- out += ' if (!' + ($valid) + ') { ';
34
- var $$outStack = $$outStack || [];
35
- $$outStack.push(out);
36
- out = ''; /* istanbul ignore else */
37
- if (it.createErrors !== false) {
38
- out += ' { keyword: \'' + ('additionalItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schema.length) + ' } ';
39
- if (it.opts.messages !== false) {
40
- out += ' , message: \'should NOT have more than ' + ($schema.length) + ' items\' ';
41
- }
42
- if (it.opts.verbose) {
43
- out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
44
- }
45
- out += ' } ';
46
- } else {
47
- out += ' {} ';
48
- }
49
- var __err = out;
50
- out = $$outStack.pop();
51
- if (!it.compositeRule && $breakOnError) {
52
- /* istanbul ignore if */
53
- if (it.async) {
54
- out += ' throw new ValidationError([' + (__err) + ']); ';
55
- } else {
56
- out += ' validate.errors = [' + (__err) + ']; return false; ';
57
- }
58
- } else {
59
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
60
- }
61
- out += ' } ';
62
- $errSchemaPath = $currErrSchemaPath;
63
- if ($breakOnError) {
64
- $closingBraces += '}';
65
- out += ' else { ';
66
- }
67
- }
68
- var arr1 = $schema;
69
- if (arr1) {
70
- var $sch, $i = -1,
71
- l1 = arr1.length - 1;
72
- while ($i < l1) {
73
- $sch = arr1[$i += 1];
74
- if ((it.opts.strictKeywords ? (typeof $sch == 'object' && Object.keys($sch).length > 0) || $sch === false : it.util.schemaHasRules($sch, it.RULES.all))) {
75
- out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($i) + ') { ';
76
- var $passData = $data + '[' + $i + ']';
77
- $it.schema = $sch;
78
- $it.schemaPath = $schemaPath + '[' + $i + ']';
79
- $it.errSchemaPath = $errSchemaPath + '/' + $i;
80
- $it.errorPath = it.util.getPathExpr(it.errorPath, $i, it.opts.jsonPointers, true);
81
- $it.dataPathArr[$dataNxt] = $i;
82
- var $code = it.validate($it);
83
- $it.baseId = $currentBaseId;
84
- if (it.util.varOccurences($code, $nextData) < 2) {
85
- out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
86
- } else {
87
- out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
88
- }
89
- out += ' } ';
90
- if ($breakOnError) {
91
- out += ' if (' + ($nextValid) + ') { ';
92
- $closingBraces += '}';
93
- }
94
- }
95
- }
96
- }
97
- if (typeof $additionalItems == 'object' && (it.opts.strictKeywords ? (typeof $additionalItems == 'object' && Object.keys($additionalItems).length > 0) || $additionalItems === false : it.util.schemaHasRules($additionalItems, it.RULES.all))) {
98
- $it.schema = $additionalItems;
99
- $it.schemaPath = it.schemaPath + '.additionalItems';
100
- $it.errSchemaPath = it.errSchemaPath + '/additionalItems';
101
- out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($schema.length) + ') { for (var ' + ($idx) + ' = ' + ($schema.length) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { ';
102
- $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);
103
- var $passData = $data + '[' + $idx + ']';
104
- $it.dataPathArr[$dataNxt] = $idx;
105
- var $code = it.validate($it);
106
- $it.baseId = $currentBaseId;
107
- if (it.util.varOccurences($code, $nextData) < 2) {
108
- out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
109
- } else {
110
- out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
111
- }
112
- if ($breakOnError) {
113
- out += ' if (!' + ($nextValid) + ') break; ';
114
- }
115
- out += ' } } ';
116
- if ($breakOnError) {
117
- out += ' if (' + ($nextValid) + ') { ';
118
- $closingBraces += '}';
119
- }
120
- }
121
- } else if ((it.opts.strictKeywords ? (typeof $schema == 'object' && Object.keys($schema).length > 0) || $schema === false : it.util.schemaHasRules($schema, it.RULES.all))) {
122
- $it.schema = $schema;
123
- $it.schemaPath = $schemaPath;
124
- $it.errSchemaPath = $errSchemaPath;
125
- out += ' for (var ' + ($idx) + ' = ' + (0) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { ';
126
- $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);
127
- var $passData = $data + '[' + $idx + ']';
128
- $it.dataPathArr[$dataNxt] = $idx;
129
- var $code = it.validate($it);
130
- $it.baseId = $currentBaseId;
131
- if (it.util.varOccurences($code, $nextData) < 2) {
132
- out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
133
- } else {
134
- out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
135
- }
136
- if ($breakOnError) {
137
- out += ' if (!' + ($nextValid) + ') break; ';
138
- }
139
- out += ' }';
140
- }
141
- if ($breakOnError) {
142
- out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';
143
- }
144
- return out;
145
- };
146
- return items;
147
- }
148
-
149
- export { requireItems as __require };
150
- //# sourceMappingURL=items.js.map