@atxp/client 0.10.4 → 0.10.5

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 (320) hide show
  1. package/dist/_virtual/index17.js +2 -2
  2. package/dist/_virtual/index18.js +2 -2
  3. package/dist/_virtual/index19.js +2 -2
  4. package/dist/_virtual/index20.js +2 -2
  5. package/dist/_virtual/index8.js +2 -2
  6. package/dist/_virtual/index9.js +2 -2
  7. package/dist/atxpFetcher.d.ts.map +1 -1
  8. package/dist/atxpFetcher.js +16 -1
  9. package/dist/atxpFetcher.js.map +1 -1
  10. package/dist/index.cjs +23 -2
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.d.ts +3 -1
  13. package/dist/index.js +23 -2
  14. package/dist/index.js.map +1 -1
  15. package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/core/index.js +1 -1
  16. package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/index.js +1 -1
  17. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js +1 -1
  18. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.js +1 -1
  19. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js +1 -1
  20. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js +1 -1
  21. package/dist/oAuth.d.ts +3 -1
  22. package/dist/oAuth.d.ts.map +1 -1
  23. package/dist/oAuth.js +7 -1
  24. package/dist/oAuth.js.map +1 -1
  25. package/package.json +2 -2
  26. package/dist/_virtual/cache.js +0 -4
  27. package/dist/_virtual/cache.js.map +0 -1
  28. package/dist/_virtual/uri.all.js +0 -4
  29. package/dist/_virtual/uri.all.js.map +0 -1
  30. package/dist/atxpAccount.d.ts +0 -20
  31. package/dist/atxpAccount.d.ts.map +0 -1
  32. package/dist/atxpAccount.js +0 -161
  33. package/dist/atxpAccount.js.map +0 -1
  34. package/dist/atxpClient.d.ts +0 -12
  35. package/dist/atxpLocalAccount.d.ts +0 -50
  36. package/dist/base.cjs +0 -34
  37. package/dist/base.cjs.map +0 -1
  38. package/dist/base.d.ts +0 -4
  39. package/dist/base.d.ts.map +0 -1
  40. package/dist/base.js +0 -5
  41. package/dist/base.js.map +0 -1
  42. package/dist/baseAccount.d.ts +0 -20
  43. package/dist/baseAccount.d.ts.map +0 -1
  44. package/dist/baseAccount.js +0 -47
  45. package/dist/baseAccount.js.map +0 -1
  46. package/dist/baseConstants.d.ts +0 -10
  47. package/dist/baseConstants.d.ts.map +0 -1
  48. package/dist/baseConstants.js +0 -21
  49. package/dist/baseConstants.js.map +0 -1
  50. package/dist/basePaymentMaker.d.ts +0 -23
  51. package/dist/basePaymentMaker.d.ts.map +0 -1
  52. package/dist/basePaymentMaker.js +0 -169
  53. package/dist/basePaymentMaker.js.map +0 -1
  54. package/dist/clientTestHelpers.d.ts +0 -6
  55. package/dist/destinationMakers/atxpDestinationMaker.d.ts +0 -15
  56. package/dist/destinationMakers/index.d.ts +0 -9
  57. package/dist/destinationMakers/passthroughDestinationMaker.d.ts +0 -8
  58. package/dist/errors.d.ts +0 -117
  59. package/dist/node_modules/ajv/dist/ajv.js +0 -71
  60. package/dist/node_modules/ajv/dist/ajv.js.map +0 -1
  61. package/dist/node_modules/ajv/dist/compile/codegen/code.js +0 -169
  62. package/dist/node_modules/ajv/dist/compile/codegen/code.js.map +0 -1
  63. package/dist/node_modules/ajv/dist/compile/codegen/index.js +0 -712
  64. package/dist/node_modules/ajv/dist/compile/codegen/index.js.map +0 -1
  65. package/dist/node_modules/ajv/dist/compile/codegen/scope.js +0 -157
  66. package/dist/node_modules/ajv/dist/compile/codegen/scope.js.map +0 -1
  67. package/dist/node_modules/ajv/dist/compile/errors.js +0 -139
  68. package/dist/node_modules/ajv/dist/compile/errors.js.map +0 -1
  69. package/dist/node_modules/ajv/dist/compile/index.js +0 -259
  70. package/dist/node_modules/ajv/dist/compile/index.js.map +0 -1
  71. package/dist/node_modules/ajv/dist/compile/names.js +0 -40
  72. package/dist/node_modules/ajv/dist/compile/names.js.map +0 -1
  73. package/dist/node_modules/ajv/dist/compile/ref_error.js +0 -24
  74. package/dist/node_modules/ajv/dist/compile/ref_error.js.map +0 -1
  75. package/dist/node_modules/ajv/dist/compile/resolve.js +0 -169
  76. package/dist/node_modules/ajv/dist/compile/resolve.js.map +0 -1
  77. package/dist/node_modules/ajv/dist/compile/rules.js +0 -37
  78. package/dist/node_modules/ajv/dist/compile/rules.js.map +0 -1
  79. package/dist/node_modules/ajv/dist/compile/util.js +0 -191
  80. package/dist/node_modules/ajv/dist/compile/util.js.map +0 -1
  81. package/dist/node_modules/ajv/dist/compile/validate/applicability.js +0 -30
  82. package/dist/node_modules/ajv/dist/compile/validate/applicability.js.map +0 -1
  83. package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -64
  84. package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js.map +0 -1
  85. package/dist/node_modules/ajv/dist/compile/validate/dataType.js +0 -219
  86. package/dist/node_modules/ajv/dist/compile/validate/dataType.js.map +0 -1
  87. package/dist/node_modules/ajv/dist/compile/validate/defaults.js +0 -48
  88. package/dist/node_modules/ajv/dist/compile/validate/defaults.js.map +0 -1
  89. package/dist/node_modules/ajv/dist/compile/validate/index.js +0 -541
  90. package/dist/node_modules/ajv/dist/compile/validate/index.js.map +0 -1
  91. package/dist/node_modules/ajv/dist/compile/validate/keyword.js +0 -139
  92. package/dist/node_modules/ajv/dist/compile/validate/keyword.js.map +0 -1
  93. package/dist/node_modules/ajv/dist/compile/validate/subschema.js +0 -94
  94. package/dist/node_modules/ajv/dist/compile/validate/subschema.js.map +0 -1
  95. package/dist/node_modules/ajv/dist/core.js +0 -642
  96. package/dist/node_modules/ajv/dist/core.js.map +0 -1
  97. package/dist/node_modules/ajv/dist/refs/data.json.js +0 -31
  98. package/dist/node_modules/ajv/dist/refs/data.json.js.map +0 -1
  99. package/dist/node_modules/ajv/dist/refs/json-schema-draft-07.json.js +0 -254
  100. package/dist/node_modules/ajv/dist/refs/json-schema-draft-07.json.js.map +0 -1
  101. package/dist/node_modules/ajv/dist/runtime/equal.js +0 -19
  102. package/dist/node_modules/ajv/dist/runtime/equal.js.map +0 -1
  103. package/dist/node_modules/ajv/dist/runtime/ucs2length.js +0 -35
  104. package/dist/node_modules/ajv/dist/runtime/ucs2length.js.map +0 -1
  105. package/dist/node_modules/ajv/dist/runtime/uri.js +0 -18
  106. package/dist/node_modules/ajv/dist/runtime/uri.js.map +0 -1
  107. package/dist/node_modules/ajv/dist/runtime/validation_error.js +0 -22
  108. package/dist/node_modules/ajv/dist/runtime/validation_error.js.map +0 -1
  109. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -62
  110. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +0 -1
  111. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -121
  112. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +0 -1
  113. package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -35
  114. package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +0 -1
  115. package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -24
  116. package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +0 -1
  117. package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -108
  118. package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +0 -1
  119. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -101
  120. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +0 -1
  121. package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -79
  122. package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js.map +0 -1
  123. package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -71
  124. package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js.map +0 -1
  125. package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -66
  126. package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js.map +0 -1
  127. package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -45
  128. package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +0 -1
  129. package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -38
  130. package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js.map +0 -1
  131. package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -73
  132. package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +0 -1
  133. package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -89
  134. package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +0 -1
  135. package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -24
  136. package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +0 -1
  137. package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -69
  138. package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +0 -1
  139. package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -51
  140. package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +0 -1
  141. package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -25
  142. package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +0 -1
  143. package/dist/node_modules/ajv/dist/vocabularies/code.js +0 -145
  144. package/dist/node_modules/ajv/dist/vocabularies/code.js.map +0 -1
  145. package/dist/node_modules/ajv/dist/vocabularies/core/id.js +0 -21
  146. package/dist/node_modules/ajv/dist/vocabularies/core/id.js.map +0 -1
  147. package/dist/node_modules/ajv/dist/vocabularies/core/index.js +0 -29
  148. package/dist/node_modules/ajv/dist/vocabularies/core/index.js.map +0 -1
  149. package/dist/node_modules/ajv/dist/vocabularies/core/ref.js +0 -139
  150. package/dist/node_modules/ajv/dist/vocabularies/core/ref.js.map +0 -1
  151. package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -120
  152. package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +0 -1
  153. package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -20
  154. package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +0 -1
  155. package/dist/node_modules/ajv/dist/vocabularies/draft7.js +0 -33
  156. package/dist/node_modules/ajv/dist/vocabularies/draft7.js.map +0 -1
  157. package/dist/node_modules/ajv/dist/vocabularies/format/format.js +0 -104
  158. package/dist/node_modules/ajv/dist/vocabularies/format/format.js.map +0 -1
  159. package/dist/node_modules/ajv/dist/vocabularies/format/index.js +0 -18
  160. package/dist/node_modules/ajv/dist/vocabularies/format/index.js.map +0 -1
  161. package/dist/node_modules/ajv/dist/vocabularies/metadata.js +0 -29
  162. package/dist/node_modules/ajv/dist/vocabularies/metadata.js.map +0 -1
  163. package/dist/node_modules/ajv/dist/vocabularies/validation/const.js +0 -39
  164. package/dist/node_modules/ajv/dist/vocabularies/validation/const.js.map +0 -1
  165. package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -62
  166. package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js.map +0 -1
  167. package/dist/node_modules/ajv/dist/vocabularies/validation/index.js +0 -54
  168. package/dist/node_modules/ajv/dist/vocabularies/validation/index.js.map +0 -1
  169. package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -36
  170. package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +0 -1
  171. package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -41
  172. package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +0 -1
  173. package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -39
  174. package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +0 -1
  175. package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -36
  176. package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +0 -1
  177. package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -38
  178. package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +0 -1
  179. package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -37
  180. package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +0 -1
  181. package/dist/node_modules/ajv/dist/vocabularies/validation/required.js +0 -93
  182. package/dist/node_modules/ajv/dist/vocabularies/validation/required.js.map +0 -1
  183. package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -79
  184. package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +0 -1
  185. package/dist/node_modules/ajv/lib/ajv.js +0 -531
  186. package/dist/node_modules/ajv/lib/ajv.js.map +0 -1
  187. package/dist/node_modules/ajv/lib/cache.js +0 -37
  188. package/dist/node_modules/ajv/lib/cache.js.map +0 -1
  189. package/dist/node_modules/ajv/lib/compile/async.js +0 -102
  190. package/dist/node_modules/ajv/lib/compile/async.js.map +0 -1
  191. package/dist/node_modules/ajv/lib/compile/error_classes.js +0 -46
  192. package/dist/node_modules/ajv/lib/compile/error_classes.js.map +0 -1
  193. package/dist/node_modules/ajv/lib/compile/formats.js +0 -154
  194. package/dist/node_modules/ajv/lib/compile/formats.js.map +0 -1
  195. package/dist/node_modules/ajv/lib/compile/index.js +0 -404
  196. package/dist/node_modules/ajv/lib/compile/index.js.map +0 -1
  197. package/dist/node_modules/ajv/lib/compile/resolve.js +0 -286
  198. package/dist/node_modules/ajv/lib/compile/resolve.js.map +0 -1
  199. package/dist/node_modules/ajv/lib/compile/rules.js +0 -79
  200. package/dist/node_modules/ajv/lib/compile/rules.js.map +0 -1
  201. package/dist/node_modules/ajv/lib/compile/schema_obj.js +0 -21
  202. package/dist/node_modules/ajv/lib/compile/schema_obj.js.map +0 -1
  203. package/dist/node_modules/ajv/lib/compile/ucs2length.js +0 -30
  204. package/dist/node_modules/ajv/lib/compile/ucs2length.js.map +0 -1
  205. package/dist/node_modules/ajv/lib/compile/util.js +0 -252
  206. package/dist/node_modules/ajv/lib/compile/util.js.map +0 -1
  207. package/dist/node_modules/ajv/lib/data.js +0 -59
  208. package/dist/node_modules/ajv/lib/data.js.map +0 -1
  209. package/dist/node_modules/ajv/lib/definition_schema.js +0 -49
  210. package/dist/node_modules/ajv/lib/definition_schema.js.map +0 -1
  211. package/dist/node_modules/ajv/lib/dotjs/_limit.js +0 -173
  212. package/dist/node_modules/ajv/lib/dotjs/_limit.js.map +0 -1
  213. package/dist/node_modules/ajv/lib/dotjs/_limitItems.js +0 -90
  214. package/dist/node_modules/ajv/lib/dotjs/_limitItems.js.map +0 -1
  215. package/dist/node_modules/ajv/lib/dotjs/_limitLength.js +0 -95
  216. package/dist/node_modules/ajv/lib/dotjs/_limitLength.js.map +0 -1
  217. package/dist/node_modules/ajv/lib/dotjs/_limitProperties.js +0 -90
  218. package/dist/node_modules/ajv/lib/dotjs/_limitProperties.js.map +0 -1
  219. package/dist/node_modules/ajv/lib/dotjs/allOf.js +0 -52
  220. package/dist/node_modules/ajv/lib/dotjs/allOf.js.map +0 -1
  221. package/dist/node_modules/ajv/lib/dotjs/anyOf.js +0 -83
  222. package/dist/node_modules/ajv/lib/dotjs/anyOf.js.map +0 -1
  223. package/dist/node_modules/ajv/lib/dotjs/comment.js +0 -24
  224. package/dist/node_modules/ajv/lib/dotjs/comment.js.map +0 -1
  225. package/dist/node_modules/ajv/lib/dotjs/const.js +0 -62
  226. package/dist/node_modules/ajv/lib/dotjs/const.js.map +0 -1
  227. package/dist/node_modules/ajv/lib/dotjs/contains.js +0 -91
  228. package/dist/node_modules/ajv/lib/dotjs/contains.js.map +0 -1
  229. package/dist/node_modules/ajv/lib/dotjs/custom.js +0 -238
  230. package/dist/node_modules/ajv/lib/dotjs/custom.js.map +0 -1
  231. package/dist/node_modules/ajv/lib/dotjs/dependencies.js +0 -178
  232. package/dist/node_modules/ajv/lib/dotjs/dependencies.js.map +0 -1
  233. package/dist/node_modules/ajv/lib/dotjs/enum.js +0 -72
  234. package/dist/node_modules/ajv/lib/dotjs/enum.js.map +0 -1
  235. package/dist/node_modules/ajv/lib/dotjs/format.js +0 -160
  236. package/dist/node_modules/ajv/lib/dotjs/format.js.map +0 -1
  237. package/dist/node_modules/ajv/lib/dotjs/if.js +0 -113
  238. package/dist/node_modules/ajv/lib/dotjs/if.js.map +0 -1
  239. package/dist/node_modules/ajv/lib/dotjs/index.js +0 -68
  240. package/dist/node_modules/ajv/lib/dotjs/index.js.map +0 -1
  241. package/dist/node_modules/ajv/lib/dotjs/items.js +0 -150
  242. package/dist/node_modules/ajv/lib/dotjs/items.js.map +0 -1
  243. package/dist/node_modules/ajv/lib/dotjs/multipleOf.js +0 -90
  244. package/dist/node_modules/ajv/lib/dotjs/multipleOf.js.map +0 -1
  245. package/dist/node_modules/ajv/lib/dotjs/not.js +0 -94
  246. package/dist/node_modules/ajv/lib/dotjs/not.js.map +0 -1
  247. package/dist/node_modules/ajv/lib/dotjs/oneOf.js +0 -83
  248. package/dist/node_modules/ajv/lib/dotjs/oneOf.js.map +0 -1
  249. package/dist/node_modules/ajv/lib/dotjs/pattern.js +0 -85
  250. package/dist/node_modules/ajv/lib/dotjs/pattern.js.map +0 -1
  251. package/dist/node_modules/ajv/lib/dotjs/properties.js +0 -345
  252. package/dist/node_modules/ajv/lib/dotjs/properties.js.map +0 -1
  253. package/dist/node_modules/ajv/lib/dotjs/propertyNames.js +0 -91
  254. package/dist/node_modules/ajv/lib/dotjs/propertyNames.js.map +0 -1
  255. package/dist/node_modules/ajv/lib/dotjs/ref.js +0 -134
  256. package/dist/node_modules/ajv/lib/dotjs/ref.js.map +0 -1
  257. package/dist/node_modules/ajv/lib/dotjs/required.js +0 -276
  258. package/dist/node_modules/ajv/lib/dotjs/required.js.map +0 -1
  259. package/dist/node_modules/ajv/lib/dotjs/uniqueItems.js +0 -96
  260. package/dist/node_modules/ajv/lib/dotjs/uniqueItems.js.map +0 -1
  261. package/dist/node_modules/ajv/lib/dotjs/validate.js +0 -492
  262. package/dist/node_modules/ajv/lib/dotjs/validate.js.map +0 -1
  263. package/dist/node_modules/ajv/lib/keyword.js +0 -159
  264. package/dist/node_modules/ajv/lib/keyword.js.map +0 -1
  265. package/dist/node_modules/ajv/lib/refs/data.json.js +0 -33
  266. package/dist/node_modules/ajv/lib/refs/data.json.js.map +0 -1
  267. package/dist/node_modules/ajv/lib/refs/json-schema-draft-07.json.js +0 -254
  268. package/dist/node_modules/ajv/lib/refs/json-schema-draft-07.json.js.map +0 -1
  269. package/dist/node_modules/fast-json-stable-stringify/index.js +0 -69
  270. package/dist/node_modules/fast-json-stable-stringify/index.js.map +0 -1
  271. package/dist/node_modules/json-schema-traverse/index.js +0 -104
  272. package/dist/node_modules/json-schema-traverse/index.js.map +0 -1
  273. package/dist/node_modules/uri-js/dist/es5/uri.all.js +0 -1418
  274. package/dist/node_modules/uri-js/dist/es5/uri.all.js.map +0 -1
  275. package/dist/node_modules/zod/v3/ZodError.js +0 -133
  276. package/dist/node_modules/zod/v3/ZodError.js.map +0 -1
  277. package/dist/node_modules/zod/v3/errors.js +0 -9
  278. package/dist/node_modules/zod/v3/errors.js.map +0 -1
  279. package/dist/node_modules/zod/v3/helpers/errorUtil.js +0 -9
  280. package/dist/node_modules/zod/v3/helpers/errorUtil.js.map +0 -1
  281. package/dist/node_modules/zod/v3/helpers/parseUtil.js +0 -112
  282. package/dist/node_modules/zod/v3/helpers/parseUtil.js.map +0 -1
  283. package/dist/node_modules/zod/v3/helpers/util.js +0 -136
  284. package/dist/node_modules/zod/v3/helpers/util.js.map +0 -1
  285. package/dist/node_modules/zod/v3/locales/en.js +0 -112
  286. package/dist/node_modules/zod/v3/locales/en.js.map +0 -1
  287. package/dist/node_modules/zod/v3/types.js +0 -3491
  288. package/dist/node_modules/zod/v3/types.js.map +0 -1
  289. package/dist/polygon.cjs +0 -39
  290. package/dist/polygon.cjs.map +0 -1
  291. package/dist/polygon.d.ts +0 -1
  292. package/dist/polygon.d.ts.map +0 -1
  293. package/dist/polygon.js +0 -2
  294. package/dist/polygon.js.map +0 -1
  295. package/dist/polygonConstants.d.ts +0 -53
  296. package/dist/setup.expo.d.ts +0 -2
  297. package/dist/solana.cjs +0 -20
  298. package/dist/solana.cjs.map +0 -1
  299. package/dist/solana.d.ts +0 -2
  300. package/dist/solana.d.ts.map +0 -1
  301. package/dist/solana.js +0 -3
  302. package/dist/solana.js.map +0 -1
  303. package/dist/solanaAccount.d.ts +0 -13
  304. package/dist/solanaAccount.d.ts.map +0 -1
  305. package/dist/solanaAccount.js +0 -34
  306. package/dist/solanaAccount.js.map +0 -1
  307. package/dist/solanaPaymentMaker.d.ts +0 -25
  308. package/dist/solanaPaymentMaker.d.ts.map +0 -1
  309. package/dist/solanaPaymentMaker.js +0 -108
  310. package/dist/solanaPaymentMaker.js.map +0 -1
  311. package/dist/types.d.ts +0 -75
  312. package/dist/types.js +0 -152
  313. package/dist/types.js.map +0 -1
  314. package/dist/world.cjs +0 -39
  315. package/dist/world.cjs.map +0 -1
  316. package/dist/world.d.ts +0 -1
  317. package/dist/world.d.ts.map +0 -1
  318. package/dist/world.js +0 -2
  319. package/dist/world.js.map +0 -1
  320. package/dist/worldConstants.d.ts +0 -53
@@ -1,191 +0,0 @@
1
- import { __exports as util } from '../../../../_virtual/util.js';
2
- import { __require as requireCodegen } from './codegen/index.js';
3
- import { __require as requireCode } from './codegen/code.js';
4
-
5
- var hasRequiredUtil;
6
-
7
- function requireUtil () {
8
- if (hasRequiredUtil) return util;
9
- hasRequiredUtil = 1;
10
- Object.defineProperty(util, "__esModule", { value: true });
11
- util.checkStrictMode = util.getErrorPath = util.Type = util.useFunc = util.setEvaluated = util.evaluatedPropsToName = util.mergeEvaluated = util.eachItem = util.unescapeJsonPointer = util.escapeJsonPointer = util.escapeFragment = util.unescapeFragment = util.schemaRefOrVal = util.schemaHasRulesButRef = util.schemaHasRules = util.checkUnknownRules = util.alwaysValidSchema = util.toHash = void 0;
12
- const codegen_1 = requireCodegen();
13
- const code_1 = requireCode();
14
- // TODO refactor to use Set
15
- function toHash(arr) {
16
- const hash = {};
17
- for (const item of arr)
18
- hash[item] = true;
19
- return hash;
20
- }
21
- util.toHash = toHash;
22
- function alwaysValidSchema(it, schema) {
23
- if (typeof schema == "boolean")
24
- return schema;
25
- if (Object.keys(schema).length === 0)
26
- return true;
27
- checkUnknownRules(it, schema);
28
- return !schemaHasRules(schema, it.self.RULES.all);
29
- }
30
- util.alwaysValidSchema = alwaysValidSchema;
31
- function checkUnknownRules(it, schema = it.schema) {
32
- const { opts, self } = it;
33
- if (!opts.strictSchema)
34
- return;
35
- if (typeof schema === "boolean")
36
- return;
37
- const rules = self.RULES.keywords;
38
- for (const key in schema) {
39
- if (!rules[key])
40
- checkStrictMode(it, `unknown keyword: "${key}"`);
41
- }
42
- }
43
- util.checkUnknownRules = checkUnknownRules;
44
- function schemaHasRules(schema, rules) {
45
- if (typeof schema == "boolean")
46
- return !schema;
47
- for (const key in schema)
48
- if (rules[key])
49
- return true;
50
- return false;
51
- }
52
- util.schemaHasRules = schemaHasRules;
53
- function schemaHasRulesButRef(schema, RULES) {
54
- if (typeof schema == "boolean")
55
- return !schema;
56
- for (const key in schema)
57
- if (key !== "$ref" && RULES.all[key])
58
- return true;
59
- return false;
60
- }
61
- util.schemaHasRulesButRef = schemaHasRulesButRef;
62
- function schemaRefOrVal({ topSchemaRef, schemaPath }, schema, keyword, $data) {
63
- if (!$data) {
64
- if (typeof schema == "number" || typeof schema == "boolean")
65
- return schema;
66
- if (typeof schema == "string")
67
- return (0, codegen_1._) `${schema}`;
68
- }
69
- return (0, codegen_1._) `${topSchemaRef}${schemaPath}${(0, codegen_1.getProperty)(keyword)}`;
70
- }
71
- util.schemaRefOrVal = schemaRefOrVal;
72
- function unescapeFragment(str) {
73
- return unescapeJsonPointer(decodeURIComponent(str));
74
- }
75
- util.unescapeFragment = unescapeFragment;
76
- function escapeFragment(str) {
77
- return encodeURIComponent(escapeJsonPointer(str));
78
- }
79
- util.escapeFragment = escapeFragment;
80
- function escapeJsonPointer(str) {
81
- if (typeof str == "number")
82
- return `${str}`;
83
- return str.replace(/~/g, "~0").replace(/\//g, "~1");
84
- }
85
- util.escapeJsonPointer = escapeJsonPointer;
86
- function unescapeJsonPointer(str) {
87
- return str.replace(/~1/g, "/").replace(/~0/g, "~");
88
- }
89
- util.unescapeJsonPointer = unescapeJsonPointer;
90
- function eachItem(xs, f) {
91
- if (Array.isArray(xs)) {
92
- for (const x of xs)
93
- f(x);
94
- }
95
- else {
96
- f(xs);
97
- }
98
- }
99
- util.eachItem = eachItem;
100
- function makeMergeEvaluated({ mergeNames, mergeToName, mergeValues, resultToName, }) {
101
- return (gen, from, to, toName) => {
102
- const res = to === undefined
103
- ? from
104
- : to instanceof codegen_1.Name
105
- ? (from instanceof codegen_1.Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to)
106
- : from instanceof codegen_1.Name
107
- ? (mergeToName(gen, to, from), from)
108
- : mergeValues(from, to);
109
- return toName === codegen_1.Name && !(res instanceof codegen_1.Name) ? resultToName(gen, res) : res;
110
- };
111
- }
112
- util.mergeEvaluated = {
113
- props: makeMergeEvaluated({
114
- mergeNames: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true && ${from} !== undefined`, () => {
115
- gen.if((0, codegen_1._) `${from} === true`, () => gen.assign(to, true), () => gen.assign(to, (0, codegen_1._) `${to} || {}`).code((0, codegen_1._) `Object.assign(${to}, ${from})`));
116
- }),
117
- mergeToName: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true`, () => {
118
- if (from === true) {
119
- gen.assign(to, true);
120
- }
121
- else {
122
- gen.assign(to, (0, codegen_1._) `${to} || {}`);
123
- setEvaluated(gen, to, from);
124
- }
125
- }),
126
- mergeValues: (from, to) => (from === true ? true : { ...from, ...to }),
127
- resultToName: evaluatedPropsToName,
128
- }),
129
- items: makeMergeEvaluated({
130
- mergeNames: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true && ${from} !== undefined`, () => gen.assign(to, (0, codegen_1._) `${from} === true ? true : ${to} > ${from} ? ${to} : ${from}`)),
131
- mergeToName: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true`, () => gen.assign(to, from === true ? true : (0, codegen_1._) `${to} > ${from} ? ${to} : ${from}`)),
132
- mergeValues: (from, to) => (from === true ? true : Math.max(from, to)),
133
- resultToName: (gen, items) => gen.var("items", items),
134
- }),
135
- };
136
- function evaluatedPropsToName(gen, ps) {
137
- if (ps === true)
138
- return gen.var("props", true);
139
- const props = gen.var("props", (0, codegen_1._) `{}`);
140
- if (ps !== undefined)
141
- setEvaluated(gen, props, ps);
142
- return props;
143
- }
144
- util.evaluatedPropsToName = evaluatedPropsToName;
145
- function setEvaluated(gen, props, ps) {
146
- Object.keys(ps).forEach((p) => gen.assign((0, codegen_1._) `${props}${(0, codegen_1.getProperty)(p)}`, true));
147
- }
148
- util.setEvaluated = setEvaluated;
149
- const snippets = {};
150
- function useFunc(gen, f) {
151
- return gen.scopeValue("func", {
152
- ref: f,
153
- code: snippets[f.code] || (snippets[f.code] = new code_1._Code(f.code)),
154
- });
155
- }
156
- util.useFunc = useFunc;
157
- var Type;
158
- (function (Type) {
159
- Type[Type["Num"] = 0] = "Num";
160
- Type[Type["Str"] = 1] = "Str";
161
- })(Type || (util.Type = Type = {}));
162
- function getErrorPath(dataProp, dataPropType, jsPropertySyntax) {
163
- // let path
164
- if (dataProp instanceof codegen_1.Name) {
165
- const isNumber = dataPropType === Type.Num;
166
- return jsPropertySyntax
167
- ? isNumber
168
- ? (0, codegen_1._) `"[" + ${dataProp} + "]"`
169
- : (0, codegen_1._) `"['" + ${dataProp} + "']"`
170
- : isNumber
171
- ? (0, codegen_1._) `"/" + ${dataProp}`
172
- : (0, codegen_1._) `"/" + ${dataProp}.replace(/~/g, "~0").replace(/\\//g, "~1")`; // TODO maybe use global escapePointer
173
- }
174
- return jsPropertySyntax ? (0, codegen_1.getProperty)(dataProp).toString() : "/" + escapeJsonPointer(dataProp);
175
- }
176
- util.getErrorPath = getErrorPath;
177
- function checkStrictMode(it, msg, mode = it.opts.strictSchema) {
178
- if (!mode)
179
- return;
180
- msg = `strict mode: ${msg}`;
181
- if (mode === true)
182
- throw new Error(msg);
183
- it.self.logger.warn(msg);
184
- }
185
- util.checkStrictMode = checkStrictMode;
186
-
187
- return util;
188
- }
189
-
190
- export { requireUtil as __require };
191
- //# sourceMappingURL=util.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"util.js","sources":["../../../../../../../node_modules/ajv/dist/compile/util.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0;\nconst codegen_1 = require(\"./codegen\");\nconst code_1 = require(\"./codegen/code\");\n// TODO refactor to use Set\nfunction toHash(arr) {\n const hash = {};\n for (const item of arr)\n hash[item] = true;\n return hash;\n}\nexports.toHash = toHash;\nfunction alwaysValidSchema(it, schema) {\n if (typeof schema == \"boolean\")\n return schema;\n if (Object.keys(schema).length === 0)\n return true;\n checkUnknownRules(it, schema);\n return !schemaHasRules(schema, it.self.RULES.all);\n}\nexports.alwaysValidSchema = alwaysValidSchema;\nfunction checkUnknownRules(it, schema = it.schema) {\n const { opts, self } = it;\n if (!opts.strictSchema)\n return;\n if (typeof schema === \"boolean\")\n return;\n const rules = self.RULES.keywords;\n for (const key in schema) {\n if (!rules[key])\n checkStrictMode(it, `unknown keyword: \"${key}\"`);\n }\n}\nexports.checkUnknownRules = checkUnknownRules;\nfunction schemaHasRules(schema, rules) {\n if (typeof schema == \"boolean\")\n return !schema;\n for (const key in schema)\n if (rules[key])\n return true;\n return false;\n}\nexports.schemaHasRules = schemaHasRules;\nfunction schemaHasRulesButRef(schema, RULES) {\n if (typeof schema == \"boolean\")\n return !schema;\n for (const key in schema)\n if (key !== \"$ref\" && RULES.all[key])\n return true;\n return false;\n}\nexports.schemaHasRulesButRef = schemaHasRulesButRef;\nfunction schemaRefOrVal({ topSchemaRef, schemaPath }, schema, keyword, $data) {\n if (!$data) {\n if (typeof schema == \"number\" || typeof schema == \"boolean\")\n return schema;\n if (typeof schema == \"string\")\n return (0, codegen_1._) `${schema}`;\n }\n return (0, codegen_1._) `${topSchemaRef}${schemaPath}${(0, codegen_1.getProperty)(keyword)}`;\n}\nexports.schemaRefOrVal = schemaRefOrVal;\nfunction unescapeFragment(str) {\n return unescapeJsonPointer(decodeURIComponent(str));\n}\nexports.unescapeFragment = unescapeFragment;\nfunction escapeFragment(str) {\n return encodeURIComponent(escapeJsonPointer(str));\n}\nexports.escapeFragment = escapeFragment;\nfunction escapeJsonPointer(str) {\n if (typeof str == \"number\")\n return `${str}`;\n return str.replace(/~/g, \"~0\").replace(/\\//g, \"~1\");\n}\nexports.escapeJsonPointer = escapeJsonPointer;\nfunction unescapeJsonPointer(str) {\n return str.replace(/~1/g, \"/\").replace(/~0/g, \"~\");\n}\nexports.unescapeJsonPointer = unescapeJsonPointer;\nfunction eachItem(xs, f) {\n if (Array.isArray(xs)) {\n for (const x of xs)\n f(x);\n }\n else {\n f(xs);\n }\n}\nexports.eachItem = eachItem;\nfunction makeMergeEvaluated({ mergeNames, mergeToName, mergeValues, resultToName, }) {\n return (gen, from, to, toName) => {\n const res = to === undefined\n ? from\n : to instanceof codegen_1.Name\n ? (from instanceof codegen_1.Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to)\n : from instanceof codegen_1.Name\n ? (mergeToName(gen, to, from), from)\n : mergeValues(from, to);\n return toName === codegen_1.Name && !(res instanceof codegen_1.Name) ? resultToName(gen, res) : res;\n };\n}\nexports.mergeEvaluated = {\n props: makeMergeEvaluated({\n mergeNames: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true && ${from} !== undefined`, () => {\n gen.if((0, codegen_1._) `${from} === true`, () => gen.assign(to, true), () => gen.assign(to, (0, codegen_1._) `${to} || {}`).code((0, codegen_1._) `Object.assign(${to}, ${from})`));\n }),\n mergeToName: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true`, () => {\n if (from === true) {\n gen.assign(to, true);\n }\n else {\n gen.assign(to, (0, codegen_1._) `${to} || {}`);\n setEvaluated(gen, to, from);\n }\n }),\n mergeValues: (from, to) => (from === true ? true : { ...from, ...to }),\n resultToName: evaluatedPropsToName,\n }),\n items: makeMergeEvaluated({\n mergeNames: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true && ${from} !== undefined`, () => gen.assign(to, (0, codegen_1._) `${from} === true ? true : ${to} > ${from} ? ${to} : ${from}`)),\n mergeToName: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true`, () => gen.assign(to, from === true ? true : (0, codegen_1._) `${to} > ${from} ? ${to} : ${from}`)),\n mergeValues: (from, to) => (from === true ? true : Math.max(from, to)),\n resultToName: (gen, items) => gen.var(\"items\", items),\n }),\n};\nfunction evaluatedPropsToName(gen, ps) {\n if (ps === true)\n return gen.var(\"props\", true);\n const props = gen.var(\"props\", (0, codegen_1._) `{}`);\n if (ps !== undefined)\n setEvaluated(gen, props, ps);\n return props;\n}\nexports.evaluatedPropsToName = evaluatedPropsToName;\nfunction setEvaluated(gen, props, ps) {\n Object.keys(ps).forEach((p) => gen.assign((0, codegen_1._) `${props}${(0, codegen_1.getProperty)(p)}`, true));\n}\nexports.setEvaluated = setEvaluated;\nconst snippets = {};\nfunction useFunc(gen, f) {\n return gen.scopeValue(\"func\", {\n ref: f,\n code: snippets[f.code] || (snippets[f.code] = new code_1._Code(f.code)),\n });\n}\nexports.useFunc = useFunc;\nvar Type;\n(function (Type) {\n Type[Type[\"Num\"] = 0] = \"Num\";\n Type[Type[\"Str\"] = 1] = \"Str\";\n})(Type || (exports.Type = Type = {}));\nfunction getErrorPath(dataProp, dataPropType, jsPropertySyntax) {\n // let path\n if (dataProp instanceof codegen_1.Name) {\n const isNumber = dataPropType === Type.Num;\n return jsPropertySyntax\n ? isNumber\n ? (0, codegen_1._) `\"[\" + ${dataProp} + \"]\"`\n : (0, codegen_1._) `\"['\" + ${dataProp} + \"']\"`\n : isNumber\n ? (0, codegen_1._) `\"/\" + ${dataProp}`\n : (0, codegen_1._) `\"/\" + ${dataProp}.replace(/~/g, \"~0\").replace(/\\\\//g, \"~1\")`; // TODO maybe use global escapePointer\n }\n return jsPropertySyntax ? (0, codegen_1.getProperty)(dataProp).toString() : \"/\" + escapeJsonPointer(dataProp);\n}\nexports.getErrorPath = getErrorPath;\nfunction checkStrictMode(it, msg, mode = it.opts.strictSchema) {\n if (!mode)\n return;\n msg = `strict mode: ${msg}`;\n if (mode === true)\n throw new Error(msg);\n it.self.logger.warn(msg);\n}\nexports.checkStrictMode = checkStrictMode;\n//# sourceMappingURL=util.js.map"],"names":["require$$0","require$$1"],"mappings":";;;;;;;;;AACA,CAAA,MAAM,CAAC,cAAc,CAAC,IAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,CAAA,IAAA,CAAA,eAAuB,GAAG,IAAA,CAAA,YAAoB,GAAG,IAAA,CAAA,IAAY,GAAG,YAAe,GAAG,IAAA,CAAA,YAAoB,GAAG,IAAA,CAAA,oBAA4B,GAAG,IAAA,CAAA,cAAsB,GAAG,IAAA,CAAA,QAAgB,GAAG,wBAA2B,GAAG,IAAA,CAAA,iBAAyB,GAAG,IAAA,CAAA,cAAsB,GAAG,IAAA,CAAA,gBAAwB,GAAG,IAAA,CAAA,cAAsB,GAAG,yBAA4B,GAAG,IAAA,CAAA,cAAsB,GAAG,IAAA,CAAA,iB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AAM,EAAE,QAAQ,CAAC,MAAM;AAC3D,mBAAkB,IAAI,SAAS,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,OAAO;eAC/C;mBACI,IAAI,SAAS,CAAC,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;AACrD,mBAAkB,IAAI,SAAS,CAAC,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,0CAA0C,CAAC,CAAC;AACjG,KAAA;KACI,OAAO,gBAAgB,GAAG,IAAI,SAAS,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,GAAG,GAAG,GAAG,iBAAiB,CAAC,QAAQ,CAAC;AACjH,CAAA;AACA,CAAA,IAAA,CAAA,YAAoB,GAAG,YAAY;AACnC,CAAA,SAAS,eAAe,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE;KAC3D,IAAI,CAAC,IAAI;SACL;AACR,KAAI,GAAG,GAAG,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;KAC3B,IAAI,IAAI,KAAK,IAAI;AACrB,SAAQ,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC;KACxB,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AAC5B,CAAA;AACA,CAAA,IAAA,CAAA,eAAuB,GAAG,eAAe;AACzC;;;;;;","x_google_ignoreList":[0]}
@@ -1,30 +0,0 @@
1
- import { __exports as applicability } from '../../../../../_virtual/applicability.js';
2
-
3
- var hasRequiredApplicability;
4
-
5
- function requireApplicability () {
6
- if (hasRequiredApplicability) return applicability;
7
- hasRequiredApplicability = 1;
8
- Object.defineProperty(applicability, "__esModule", { value: true });
9
- applicability.shouldUseRule = applicability.shouldUseGroup = applicability.schemaHasRulesForType = void 0;
10
- function schemaHasRulesForType({ schema, self }, type) {
11
- const group = self.RULES.types[type];
12
- return group && group !== true && shouldUseGroup(schema, group);
13
- }
14
- applicability.schemaHasRulesForType = schemaHasRulesForType;
15
- function shouldUseGroup(schema, group) {
16
- return group.rules.some((rule) => shouldUseRule(schema, rule));
17
- }
18
- applicability.shouldUseGroup = shouldUseGroup;
19
- function shouldUseRule(schema, rule) {
20
- var _a;
21
- return (schema[rule.keyword] !== undefined ||
22
- ((_a = rule.definition.implements) === null || _a === void 0 ? void 0 : _a.some((kwd) => schema[kwd] !== undefined)));
23
- }
24
- applicability.shouldUseRule = shouldUseRule;
25
-
26
- return applicability;
27
- }
28
-
29
- export { requireApplicability as __require };
30
- //# sourceMappingURL=applicability.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"applicability.js","sources":["../../../../../../../../node_modules/ajv/dist/compile/validate/applicability.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;\nfunction schemaHasRulesForType({ schema, self }, type) {\n const group = self.RULES.types[type];\n return group && group !== true && shouldUseGroup(schema, group);\n}\nexports.schemaHasRulesForType = schemaHasRulesForType;\nfunction shouldUseGroup(schema, group) {\n return group.rules.some((rule) => shouldUseRule(schema, rule));\n}\nexports.shouldUseGroup = shouldUseGroup;\nfunction shouldUseRule(schema, rule) {\n var _a;\n return (schema[rule.keyword] !== undefined ||\n ((_a = rule.definition.implements) === null || _a === void 0 ? void 0 : _a.some((kwd) => schema[kwd] !== undefined)));\n}\nexports.shouldUseRule = shouldUseRule;\n//# sourceMappingURL=applicability.js.map"],"names":[],"mappings":";;;;;;;AACA,CAAA,MAAM,CAAC,cAAc,CAAC,aAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,CAAA,aAAA,CAAA,aAAqB,GAAG,aAAA,CAAA,cAAsB,GAAG,aAAA,CAAA,qBAA6B,GAAG,MAAM;CACvF,SAAS,qBAAqB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE;KACnD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC;AACxC,KAAI,OAAO,KAAK,IAAI,KAAK,KAAK,IAAI,IAAI,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC;AACnE,CAAA;AACA,CAAA,aAAA,CAAA,qBAA6B,GAAG,qBAAqB;AACrD,CAAA,SAAS,cAAc,CAAC,MAAM,EAAE,KAAK,EAAE;AACvC,KAAI,OAAO,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAClE,CAAA;AACA,CAAA,aAAA,CAAA,cAAsB,GAAG,cAAc;AACvC,CAAA,SAAS,aAAa,CAAC,MAAM,EAAE,IAAI,EAAE;AACrC,KAAI,IAAI,EAAE;KACN,QAAQ,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,SAAS;AAC9C,UAAS,CAAC,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,MAAM,IAAI,IAAI,EAAE,KAAK,MAAM,GAAG,MAAM,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,MAAM,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,CAAC;AAC5H,CAAA;AACA,CAAA,aAAA,CAAA,aAAqB,GAAG,aAAa;AACrC;;;;;;","x_google_ignoreList":[0]}
@@ -1,64 +0,0 @@
1
- import { __exports as boolSchema } from '../../../../../_virtual/boolSchema.js';
2
- import { __require as requireErrors } from '../errors.js';
3
- import { __require as requireCodegen } from '../codegen/index.js';
4
- import { __require as requireNames } from '../names.js';
5
-
6
- var hasRequiredBoolSchema;
7
-
8
- function requireBoolSchema () {
9
- if (hasRequiredBoolSchema) return boolSchema;
10
- hasRequiredBoolSchema = 1;
11
- Object.defineProperty(boolSchema, "__esModule", { value: true });
12
- boolSchema.boolOrEmptySchema = boolSchema.topBoolOrEmptySchema = void 0;
13
- const errors_1 = requireErrors();
14
- const codegen_1 = requireCodegen();
15
- const names_1 = requireNames();
16
- const boolError = {
17
- message: "boolean schema is false",
18
- };
19
- function topBoolOrEmptySchema(it) {
20
- const { gen, schema, validateName } = it;
21
- if (schema === false) {
22
- falseSchemaError(it, false);
23
- }
24
- else if (typeof schema == "object" && schema.$async === true) {
25
- gen.return(names_1.default.data);
26
- }
27
- else {
28
- gen.assign((0, codegen_1._) `${validateName}.errors`, null);
29
- gen.return(true);
30
- }
31
- }
32
- boolSchema.topBoolOrEmptySchema = topBoolOrEmptySchema;
33
- function boolOrEmptySchema(it, valid) {
34
- const { gen, schema } = it;
35
- if (schema === false) {
36
- gen.var(valid, false); // TODO var
37
- falseSchemaError(it);
38
- }
39
- else {
40
- gen.var(valid, true); // TODO var
41
- }
42
- }
43
- boolSchema.boolOrEmptySchema = boolOrEmptySchema;
44
- function falseSchemaError(it, overrideAllErrors) {
45
- const { gen, data } = it;
46
- // TODO maybe some other interface should be used for non-keyword validation errors...
47
- const cxt = {
48
- gen,
49
- keyword: "false schema",
50
- data,
51
- schema: false,
52
- schemaCode: false,
53
- schemaValue: false,
54
- params: {},
55
- it,
56
- };
57
- (0, errors_1.reportError)(cxt, boolError, undefined, overrideAllErrors);
58
- }
59
-
60
- return boolSchema;
61
- }
62
-
63
- export { requireBoolSchema as __require };
64
- //# sourceMappingURL=boolSchema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"boolSchema.js","sources":["../../../../../../../../node_modules/ajv/dist/compile/validate/boolSchema.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;\nconst errors_1 = require(\"../errors\");\nconst codegen_1 = require(\"../codegen\");\nconst names_1 = require(\"../names\");\nconst boolError = {\n message: \"boolean schema is false\",\n};\nfunction topBoolOrEmptySchema(it) {\n const { gen, schema, validateName } = it;\n if (schema === false) {\n falseSchemaError(it, false);\n }\n else if (typeof schema == \"object\" && schema.$async === true) {\n gen.return(names_1.default.data);\n }\n else {\n gen.assign((0, codegen_1._) `${validateName}.errors`, null);\n gen.return(true);\n }\n}\nexports.topBoolOrEmptySchema = topBoolOrEmptySchema;\nfunction boolOrEmptySchema(it, valid) {\n const { gen, schema } = it;\n if (schema === false) {\n gen.var(valid, false); // TODO var\n falseSchemaError(it);\n }\n else {\n gen.var(valid, true); // TODO var\n }\n}\nexports.boolOrEmptySchema = boolOrEmptySchema;\nfunction falseSchemaError(it, overrideAllErrors) {\n const { gen, data } = it;\n // TODO maybe some other interface should be used for non-keyword validation errors...\n const cxt = {\n gen,\n keyword: \"false schema\",\n data,\n schema: false,\n schemaCode: false,\n schemaValue: false,\n params: {},\n it,\n };\n (0, errors_1.reportError)(cxt, boolError, undefined, overrideAllErrors);\n}\n//# sourceMappingURL=boolSchema.js.map"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;AACA,CAAA,MAAM,CAAC,cAAc,CAAC,UAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,CAAA,UAAA,CAAA,iBAAyB,GAAG,UAAA,CAAA,oBAA4B,GAAG,MAAM;CACjE,MAAM,QAAQ,GAAGA,aAAA,EAAoB;CACrC,MAAM,SAAS,GAAGC,cAAA,EAAqB;CACvC,MAAM,OAAO,GAAGC,YAAA,EAAmB;AACnC,CAAA,MAAM,SAAS,GAAG;KACd,OAAO,EAAE,yBAAyB;EACrC;CACD,SAAS,oBAAoB,CAAC,EAAE,EAAE;KAC9B,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE;AAC5C,KAAI,IAAI,MAAM,KAAK,KAAK,EAAE;AAC1B,SAAQ,gBAAgB,CAAC,EAAE,EAAE,KAAK,CAAC;AACnC,KAAA;UACS,IAAI,OAAO,MAAM,IAAI,QAAQ,IAAI,MAAM,CAAC,MAAM,KAAK,IAAI,EAAE;SAC1D,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;AACxC,KAAA;UACS;AACT,SAAQ,GAAG,CAAC,MAAM,CAAC,IAAI,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC;AACnE,SAAQ,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC;AACxB,KAAA;AACA,CAAA;AACA,CAAA,UAAA,CAAA,oBAA4B,GAAG,oBAAoB;AACnD,CAAA,SAAS,iBAAiB,CAAC,EAAE,EAAE,KAAK,EAAE;AACtC,KAAI,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE;AAC9B,KAAI,IAAI,MAAM,KAAK,KAAK,EAAE;SAClB,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;SACtB,gBAAgB,CAAC,EAAE,CAAC;AAC5B,KAAA;UACS;SACD,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AAC7B,KAAA;AACA,CAAA;AACA,CAAA,UAAA,CAAA,iBAAyB,GAAG,iBAAiB;AAC7C,CAAA,SAAS,gBAAgB,CAAC,EAAE,EAAE,iBAAiB,EAAE;AACjD,KAAI,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE;AAC5B;KACI,MAAM,GAAG,GAAG;AAChB,SAAQ,GAAG;SACH,OAAO,EAAE,cAAc;AAC/B,SAAQ,IAAI;SACJ,MAAM,EAAE,KAAK;SACb,UAAU,EAAE,KAAK;SACjB,WAAW,EAAE,KAAK;SAClB,MAAM,EAAE,EAAE;AAClB,SAAQ,EAAE;MACL;AACL,KAAI,IAAI,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,iBAAiB,CAAC;AAC3E,CAAA;AACA;;;;;;","x_google_ignoreList":[0]}
@@ -1,219 +0,0 @@
1
- import { __exports as dataType } from '../../../../../_virtual/dataType.js';
2
- import { __require as requireRules } from '../rules.js';
3
- import { __require as requireApplicability } from './applicability.js';
4
- import { __require as requireErrors } from '../errors.js';
5
- import { __require as requireCodegen } from '../codegen/index.js';
6
- import { __require as requireUtil } from '../util.js';
7
-
8
- var hasRequiredDataType;
9
-
10
- function requireDataType () {
11
- if (hasRequiredDataType) return dataType;
12
- hasRequiredDataType = 1;
13
- Object.defineProperty(dataType, "__esModule", { value: true });
14
- dataType.reportTypeError = dataType.checkDataTypes = dataType.checkDataType = dataType.coerceAndCheckDataType = dataType.getJSONTypes = dataType.getSchemaTypes = dataType.DataType = void 0;
15
- const rules_1 = requireRules();
16
- const applicability_1 = requireApplicability();
17
- const errors_1 = requireErrors();
18
- const codegen_1 = requireCodegen();
19
- const util_1 = requireUtil();
20
- var DataType;
21
- (function (DataType) {
22
- DataType[DataType["Correct"] = 0] = "Correct";
23
- DataType[DataType["Wrong"] = 1] = "Wrong";
24
- })(DataType || (dataType.DataType = DataType = {}));
25
- function getSchemaTypes(schema) {
26
- const types = getJSONTypes(schema.type);
27
- const hasNull = types.includes("null");
28
- if (hasNull) {
29
- if (schema.nullable === false)
30
- throw new Error("type: null contradicts nullable: false");
31
- }
32
- else {
33
- if (!types.length && schema.nullable !== undefined) {
34
- throw new Error('"nullable" cannot be used without "type"');
35
- }
36
- if (schema.nullable === true)
37
- types.push("null");
38
- }
39
- return types;
40
- }
41
- dataType.getSchemaTypes = getSchemaTypes;
42
- // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
43
- function getJSONTypes(ts) {
44
- const types = Array.isArray(ts) ? ts : ts ? [ts] : [];
45
- if (types.every(rules_1.isJSONType))
46
- return types;
47
- throw new Error("type must be JSONType or JSONType[]: " + types.join(","));
48
- }
49
- dataType.getJSONTypes = getJSONTypes;
50
- function coerceAndCheckDataType(it, types) {
51
- const { gen, data, opts } = it;
52
- const coerceTo = coerceToTypes(types, opts.coerceTypes);
53
- const checkTypes = types.length > 0 &&
54
- !(coerceTo.length === 0 && types.length === 1 && (0, applicability_1.schemaHasRulesForType)(it, types[0]));
55
- if (checkTypes) {
56
- const wrongType = checkDataTypes(types, data, opts.strictNumbers, DataType.Wrong);
57
- gen.if(wrongType, () => {
58
- if (coerceTo.length)
59
- coerceData(it, types, coerceTo);
60
- else
61
- reportTypeError(it);
62
- });
63
- }
64
- return checkTypes;
65
- }
66
- dataType.coerceAndCheckDataType = coerceAndCheckDataType;
67
- const COERCIBLE = new Set(["string", "number", "integer", "boolean", "null"]);
68
- function coerceToTypes(types, coerceTypes) {
69
- return coerceTypes
70
- ? types.filter((t) => COERCIBLE.has(t) || (coerceTypes === "array" && t === "array"))
71
- : [];
72
- }
73
- function coerceData(it, types, coerceTo) {
74
- const { gen, data, opts } = it;
75
- const dataType = gen.let("dataType", (0, codegen_1._) `typeof ${data}`);
76
- const coerced = gen.let("coerced", (0, codegen_1._) `undefined`);
77
- if (opts.coerceTypes === "array") {
78
- gen.if((0, codegen_1._) `${dataType} == 'object' && Array.isArray(${data}) && ${data}.length == 1`, () => gen
79
- .assign(data, (0, codegen_1._) `${data}[0]`)
80
- .assign(dataType, (0, codegen_1._) `typeof ${data}`)
81
- .if(checkDataTypes(types, data, opts.strictNumbers), () => gen.assign(coerced, data)));
82
- }
83
- gen.if((0, codegen_1._) `${coerced} !== undefined`);
84
- for (const t of coerceTo) {
85
- if (COERCIBLE.has(t) || (t === "array" && opts.coerceTypes === "array")) {
86
- coerceSpecificType(t);
87
- }
88
- }
89
- gen.else();
90
- reportTypeError(it);
91
- gen.endIf();
92
- gen.if((0, codegen_1._) `${coerced} !== undefined`, () => {
93
- gen.assign(data, coerced);
94
- assignParentData(it, coerced);
95
- });
96
- function coerceSpecificType(t) {
97
- switch (t) {
98
- case "string":
99
- gen
100
- .elseIf((0, codegen_1._) `${dataType} == "number" || ${dataType} == "boolean"`)
101
- .assign(coerced, (0, codegen_1._) `"" + ${data}`)
102
- .elseIf((0, codegen_1._) `${data} === null`)
103
- .assign(coerced, (0, codegen_1._) `""`);
104
- return;
105
- case "number":
106
- gen
107
- .elseIf((0, codegen_1._) `${dataType} == "boolean" || ${data} === null
108
- || (${dataType} == "string" && ${data} && ${data} == +${data})`)
109
- .assign(coerced, (0, codegen_1._) `+${data}`);
110
- return;
111
- case "integer":
112
- gen
113
- .elseIf((0, codegen_1._) `${dataType} === "boolean" || ${data} === null
114
- || (${dataType} === "string" && ${data} && ${data} == +${data} && !(${data} % 1))`)
115
- .assign(coerced, (0, codegen_1._) `+${data}`);
116
- return;
117
- case "boolean":
118
- gen
119
- .elseIf((0, codegen_1._) `${data} === "false" || ${data} === 0 || ${data} === null`)
120
- .assign(coerced, false)
121
- .elseIf((0, codegen_1._) `${data} === "true" || ${data} === 1`)
122
- .assign(coerced, true);
123
- return;
124
- case "null":
125
- gen.elseIf((0, codegen_1._) `${data} === "" || ${data} === 0 || ${data} === false`);
126
- gen.assign(coerced, null);
127
- return;
128
- case "array":
129
- gen
130
- .elseIf((0, codegen_1._) `${dataType} === "string" || ${dataType} === "number"
131
- || ${dataType} === "boolean" || ${data} === null`)
132
- .assign(coerced, (0, codegen_1._) `[${data}]`);
133
- }
134
- }
135
- }
136
- function assignParentData({ gen, parentData, parentDataProperty }, expr) {
137
- // TODO use gen.property
138
- gen.if((0, codegen_1._) `${parentData} !== undefined`, () => gen.assign((0, codegen_1._) `${parentData}[${parentDataProperty}]`, expr));
139
- }
140
- function checkDataType(dataType, data, strictNums, correct = DataType.Correct) {
141
- const EQ = correct === DataType.Correct ? codegen_1.operators.EQ : codegen_1.operators.NEQ;
142
- let cond;
143
- switch (dataType) {
144
- case "null":
145
- return (0, codegen_1._) `${data} ${EQ} null`;
146
- case "array":
147
- cond = (0, codegen_1._) `Array.isArray(${data})`;
148
- break;
149
- case "object":
150
- cond = (0, codegen_1._) `${data} && typeof ${data} == "object" && !Array.isArray(${data})`;
151
- break;
152
- case "integer":
153
- cond = numCond((0, codegen_1._) `!(${data} % 1) && !isNaN(${data})`);
154
- break;
155
- case "number":
156
- cond = numCond();
157
- break;
158
- default:
159
- return (0, codegen_1._) `typeof ${data} ${EQ} ${dataType}`;
160
- }
161
- return correct === DataType.Correct ? cond : (0, codegen_1.not)(cond);
162
- function numCond(_cond = codegen_1.nil) {
163
- return (0, codegen_1.and)((0, codegen_1._) `typeof ${data} == "number"`, _cond, strictNums ? (0, codegen_1._) `isFinite(${data})` : codegen_1.nil);
164
- }
165
- }
166
- dataType.checkDataType = checkDataType;
167
- function checkDataTypes(dataTypes, data, strictNums, correct) {
168
- if (dataTypes.length === 1) {
169
- return checkDataType(dataTypes[0], data, strictNums, correct);
170
- }
171
- let cond;
172
- const types = (0, util_1.toHash)(dataTypes);
173
- if (types.array && types.object) {
174
- const notObj = (0, codegen_1._) `typeof ${data} != "object"`;
175
- cond = types.null ? notObj : (0, codegen_1._) `!${data} || ${notObj}`;
176
- delete types.null;
177
- delete types.array;
178
- delete types.object;
179
- }
180
- else {
181
- cond = codegen_1.nil;
182
- }
183
- if (types.number)
184
- delete types.integer;
185
- for (const t in types)
186
- cond = (0, codegen_1.and)(cond, checkDataType(t, data, strictNums, correct));
187
- return cond;
188
- }
189
- dataType.checkDataTypes = checkDataTypes;
190
- const typeError = {
191
- message: ({ schema }) => `must be ${schema}`,
192
- params: ({ schema, schemaValue }) => typeof schema == "string" ? (0, codegen_1._) `{type: ${schema}}` : (0, codegen_1._) `{type: ${schemaValue}}`,
193
- };
194
- function reportTypeError(it) {
195
- const cxt = getTypeErrorContext(it);
196
- (0, errors_1.reportError)(cxt, typeError);
197
- }
198
- dataType.reportTypeError = reportTypeError;
199
- function getTypeErrorContext(it) {
200
- const { gen, data, schema } = it;
201
- const schemaCode = (0, util_1.schemaRefOrVal)(it, schema, "type");
202
- return {
203
- gen,
204
- keyword: "type",
205
- data,
206
- schema: schema.type,
207
- schemaCode,
208
- schemaValue: schemaCode,
209
- parentSchema: schema,
210
- params: {},
211
- it,
212
- };
213
- }
214
-
215
- return dataType;
216
- }
217
-
218
- export { requireDataType as __require };
219
- //# sourceMappingURL=dataType.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dataType.js","sources":["../../../../../../../../node_modules/ajv/dist/compile/validate/dataType.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;\nconst rules_1 = require(\"../rules\");\nconst applicability_1 = require(\"./applicability\");\nconst errors_1 = require(\"../errors\");\nconst codegen_1 = require(\"../codegen\");\nconst util_1 = require(\"../util\");\nvar DataType;\n(function (DataType) {\n DataType[DataType[\"Correct\"] = 0] = \"Correct\";\n DataType[DataType[\"Wrong\"] = 1] = \"Wrong\";\n})(DataType || (exports.DataType = DataType = {}));\nfunction getSchemaTypes(schema) {\n const types = getJSONTypes(schema.type);\n const hasNull = types.includes(\"null\");\n if (hasNull) {\n if (schema.nullable === false)\n throw new Error(\"type: null contradicts nullable: false\");\n }\n else {\n if (!types.length && schema.nullable !== undefined) {\n throw new Error('\"nullable\" cannot be used without \"type\"');\n }\n if (schema.nullable === true)\n types.push(\"null\");\n }\n return types;\n}\nexports.getSchemaTypes = getSchemaTypes;\n// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\nfunction getJSONTypes(ts) {\n const types = Array.isArray(ts) ? ts : ts ? [ts] : [];\n if (types.every(rules_1.isJSONType))\n return types;\n throw new Error(\"type must be JSONType or JSONType[]: \" + types.join(\",\"));\n}\nexports.getJSONTypes = getJSONTypes;\nfunction coerceAndCheckDataType(it, types) {\n const { gen, data, opts } = it;\n const coerceTo = coerceToTypes(types, opts.coerceTypes);\n const checkTypes = types.length > 0 &&\n !(coerceTo.length === 0 && types.length === 1 && (0, applicability_1.schemaHasRulesForType)(it, types[0]));\n if (checkTypes) {\n const wrongType = checkDataTypes(types, data, opts.strictNumbers, DataType.Wrong);\n gen.if(wrongType, () => {\n if (coerceTo.length)\n coerceData(it, types, coerceTo);\n else\n reportTypeError(it);\n });\n }\n return checkTypes;\n}\nexports.coerceAndCheckDataType = coerceAndCheckDataType;\nconst COERCIBLE = new Set([\"string\", \"number\", \"integer\", \"boolean\", \"null\"]);\nfunction coerceToTypes(types, coerceTypes) {\n return coerceTypes\n ? types.filter((t) => COERCIBLE.has(t) || (coerceTypes === \"array\" && t === \"array\"))\n : [];\n}\nfunction coerceData(it, types, coerceTo) {\n const { gen, data, opts } = it;\n const dataType = gen.let(\"dataType\", (0, codegen_1._) `typeof ${data}`);\n const coerced = gen.let(\"coerced\", (0, codegen_1._) `undefined`);\n if (opts.coerceTypes === \"array\") {\n gen.if((0, codegen_1._) `${dataType} == 'object' && Array.isArray(${data}) && ${data}.length == 1`, () => gen\n .assign(data, (0, codegen_1._) `${data}[0]`)\n .assign(dataType, (0, codegen_1._) `typeof ${data}`)\n .if(checkDataTypes(types, data, opts.strictNumbers), () => gen.assign(coerced, data)));\n }\n gen.if((0, codegen_1._) `${coerced} !== undefined`);\n for (const t of coerceTo) {\n if (COERCIBLE.has(t) || (t === \"array\" && opts.coerceTypes === \"array\")) {\n coerceSpecificType(t);\n }\n }\n gen.else();\n reportTypeError(it);\n gen.endIf();\n gen.if((0, codegen_1._) `${coerced} !== undefined`, () => {\n gen.assign(data, coerced);\n assignParentData(it, coerced);\n });\n function coerceSpecificType(t) {\n switch (t) {\n case \"string\":\n gen\n .elseIf((0, codegen_1._) `${dataType} == \"number\" || ${dataType} == \"boolean\"`)\n .assign(coerced, (0, codegen_1._) `\"\" + ${data}`)\n .elseIf((0, codegen_1._) `${data} === null`)\n .assign(coerced, (0, codegen_1._) `\"\"`);\n return;\n case \"number\":\n gen\n .elseIf((0, codegen_1._) `${dataType} == \"boolean\" || ${data} === null\n || (${dataType} == \"string\" && ${data} && ${data} == +${data})`)\n .assign(coerced, (0, codegen_1._) `+${data}`);\n return;\n case \"integer\":\n gen\n .elseIf((0, codegen_1._) `${dataType} === \"boolean\" || ${data} === null\n || (${dataType} === \"string\" && ${data} && ${data} == +${data} && !(${data} % 1))`)\n .assign(coerced, (0, codegen_1._) `+${data}`);\n return;\n case \"boolean\":\n gen\n .elseIf((0, codegen_1._) `${data} === \"false\" || ${data} === 0 || ${data} === null`)\n .assign(coerced, false)\n .elseIf((0, codegen_1._) `${data} === \"true\" || ${data} === 1`)\n .assign(coerced, true);\n return;\n case \"null\":\n gen.elseIf((0, codegen_1._) `${data} === \"\" || ${data} === 0 || ${data} === false`);\n gen.assign(coerced, null);\n return;\n case \"array\":\n gen\n .elseIf((0, codegen_1._) `${dataType} === \"string\" || ${dataType} === \"number\"\n || ${dataType} === \"boolean\" || ${data} === null`)\n .assign(coerced, (0, codegen_1._) `[${data}]`);\n }\n }\n}\nfunction assignParentData({ gen, parentData, parentDataProperty }, expr) {\n // TODO use gen.property\n gen.if((0, codegen_1._) `${parentData} !== undefined`, () => gen.assign((0, codegen_1._) `${parentData}[${parentDataProperty}]`, expr));\n}\nfunction checkDataType(dataType, data, strictNums, correct = DataType.Correct) {\n const EQ = correct === DataType.Correct ? codegen_1.operators.EQ : codegen_1.operators.NEQ;\n let cond;\n switch (dataType) {\n case \"null\":\n return (0, codegen_1._) `${data} ${EQ} null`;\n case \"array\":\n cond = (0, codegen_1._) `Array.isArray(${data})`;\n break;\n case \"object\":\n cond = (0, codegen_1._) `${data} && typeof ${data} == \"object\" && !Array.isArray(${data})`;\n break;\n case \"integer\":\n cond = numCond((0, codegen_1._) `!(${data} % 1) && !isNaN(${data})`);\n break;\n case \"number\":\n cond = numCond();\n break;\n default:\n return (0, codegen_1._) `typeof ${data} ${EQ} ${dataType}`;\n }\n return correct === DataType.Correct ? cond : (0, codegen_1.not)(cond);\n function numCond(_cond = codegen_1.nil) {\n return (0, codegen_1.and)((0, codegen_1._) `typeof ${data} == \"number\"`, _cond, strictNums ? (0, codegen_1._) `isFinite(${data})` : codegen_1.nil);\n }\n}\nexports.checkDataType = checkDataType;\nfunction checkDataTypes(dataTypes, data, strictNums, correct) {\n if (dataTypes.length === 1) {\n return checkDataType(dataTypes[0], data, strictNums, correct);\n }\n let cond;\n const types = (0, util_1.toHash)(dataTypes);\n if (types.array && types.object) {\n const notObj = (0, codegen_1._) `typeof ${data} != \"object\"`;\n cond = types.null ? notObj : (0, codegen_1._) `!${data} || ${notObj}`;\n delete types.null;\n delete types.array;\n delete types.object;\n }\n else {\n cond = codegen_1.nil;\n }\n if (types.number)\n delete types.integer;\n for (const t in types)\n cond = (0, codegen_1.and)(cond, checkDataType(t, data, strictNums, correct));\n return cond;\n}\nexports.checkDataTypes = checkDataTypes;\nconst typeError = {\n message: ({ schema }) => `must be ${schema}`,\n params: ({ schema, schemaValue }) => typeof schema == \"string\" ? (0, codegen_1._) `{type: ${schema}}` : (0, codegen_1._) `{type: ${schemaValue}}`,\n};\nfunction reportTypeError(it) {\n const cxt = getTypeErrorContext(it);\n (0, errors_1.reportError)(cxt, typeError);\n}\nexports.reportTypeError = reportTypeError;\nfunction getTypeErrorContext(it) {\n const { gen, data, schema } = it;\n const schemaCode = (0, util_1.schemaRefOrVal)(it, schema, \"type\");\n return {\n gen,\n keyword: \"type\",\n data,\n schema: schema.type,\n schemaCode,\n schemaValue: schemaCode,\n parentSchema: schema,\n params: {},\n it,\n };\n}\n//# sourceMappingURL=dataType.js.map"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4"],"mappings":";;;;;;;;;;;;AACA,CAAA,MAAM,CAAC,cAAc,CAAC,QAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,CAAA,QAAA,CAAA,eAAuB,GAAG,QAAA,CAAA,cAAsB,GAAG,QAAA,CAAA,aAAqB,GAAG,QAAA,CAAA,sBAA8B,GAAG,QAAA,CAAA,YAAoB,GAAG,QAAA,CAAA,cAAsB,GAAG,QAAA,CAAA,QAAgB,GAAG,MAAM;CACrL,MAAM,OAAO,GAAGA,YAAA,EAAmB;CACnC,MAAM,eAAe,GAAGC,oBAAA,EAA0B;CAClD,MAAM,QAAQ,GAA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,SAAS,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI,SAAS,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC;EACpJ;CACD,SAAS,eAAe,CAAC,EAAE,EAAE;AAC7B,KAAI,MAAM,GAAG,GAAG,mBAAmB,CAAC,EAAE,CAAC;KACnC,IAAI,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,CAAC;AAC7C,CAAA;AACA,CAAA,QAAA,CAAA,eAAuB,GAAG,eAAe;CACzC,SAAS,mBAAmB,CAAC,EAAE,EAAE;KAC7B,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE;AACpC,KAAI,MAAM,UAAU,GAAG,IAAI,MAAM,CAAC,cAAc,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC;AACrE,KAAI,OAAO;AACX,SAAQ,GAAG;SACH,OAAO,EAAE,MAAM;AACvB,SAAQ,IAAI;AACZ,SAAQ,MAAM,EAAE,MAAM,CAAC,IAAI;AAC3B,SAAQ,UAAU;SACV,WAAW,EAAE,UAAU;SACvB,YAAY,EAAE,MAAM;SACpB,MAAM,EAAE,EAAE;AAClB,SAAQ,EAAE;MACL;AACL,CAAA;AACA;;;;;;","x_google_ignoreList":[0]}
@@ -1,48 +0,0 @@
1
- import { __exports as defaults } from '../../../../../_virtual/defaults.js';
2
- import { __require as requireCodegen } from '../codegen/index.js';
3
- import { __require as requireUtil } from '../util.js';
4
-
5
- var hasRequiredDefaults;
6
-
7
- function requireDefaults () {
8
- if (hasRequiredDefaults) return defaults;
9
- hasRequiredDefaults = 1;
10
- Object.defineProperty(defaults, "__esModule", { value: true });
11
- defaults.assignDefaults = void 0;
12
- const codegen_1 = requireCodegen();
13
- const util_1 = requireUtil();
14
- function assignDefaults(it, ty) {
15
- const { properties, items } = it.schema;
16
- if (ty === "object" && properties) {
17
- for (const key in properties) {
18
- assignDefault(it, key, properties[key].default);
19
- }
20
- }
21
- else if (ty === "array" && Array.isArray(items)) {
22
- items.forEach((sch, i) => assignDefault(it, i, sch.default));
23
- }
24
- }
25
- defaults.assignDefaults = assignDefaults;
26
- function assignDefault(it, prop, defaultValue) {
27
- const { gen, compositeRule, data, opts } = it;
28
- if (defaultValue === undefined)
29
- return;
30
- const childData = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(prop)}`;
31
- if (compositeRule) {
32
- (0, util_1.checkStrictMode)(it, `default is ignored for: ${childData}`);
33
- return;
34
- }
35
- let condition = (0, codegen_1._) `${childData} === undefined`;
36
- if (opts.useDefaults === "empty") {
37
- condition = (0, codegen_1._) `${condition} || ${childData} === null || ${childData} === ""`;
38
- }
39
- // `${childData} === undefined` +
40
- // (opts.useDefaults === "empty" ? ` || ${childData} === null || ${childData} === ""` : "")
41
- gen.if(condition, (0, codegen_1._) `${childData} = ${(0, codegen_1.stringify)(defaultValue)}`);
42
- }
43
-
44
- return defaults;
45
- }
46
-
47
- export { requireDefaults as __require };
48
- //# sourceMappingURL=defaults.js.map