cdk-common 0.0.67 → 2.0.2

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 (1022) hide show
  1. package/.gitattributes +23 -21
  2. package/.jsii +2662 -552
  3. package/API.md +27 -64
  4. package/README.md +19 -2
  5. package/lib/integ-default.d.ts +3 -3
  6. package/lib/integ-default.js +6 -5
  7. package/lib/main.d.ts +4 -4
  8. package/lib/main.js +7 -6
  9. package/node_modules/@aws-cdk/assert/BUILD.md +15 -0
  10. package/node_modules/@aws-cdk/assert/LICENSE +201 -0
  11. package/node_modules/@aws-cdk/assert/NOTICE +2 -0
  12. package/node_modules/@aws-cdk/assert/README.md +229 -0
  13. package/node_modules/@aws-cdk/assert/clone.sh +29 -0
  14. package/node_modules/@aws-cdk/assert/jest.d.ts +14 -0
  15. package/node_modules/@aws-cdk/assert/jest.js +57 -0
  16. package/node_modules/@aws-cdk/assert/lib/assertion.d.ts +17 -0
  17. package/node_modules/@aws-cdk/assert/lib/assertion.js +31 -0
  18. package/node_modules/@aws-cdk/assert/lib/assertions/and-assertion.d.ts +10 -0
  19. package/node_modules/@aws-cdk/assert/lib/assertions/and-assertion.js +21 -0
  20. package/node_modules/@aws-cdk/assert/lib/assertions/count-resources.d.ts +10 -0
  21. package/node_modules/@aws-cdk/assert/lib/assertions/count-resources.js +54 -0
  22. package/node_modules/@aws-cdk/assert/lib/assertions/exist.d.ts +3 -0
  23. package/node_modules/@aws-cdk/assert/lib/assertions/exist.js +18 -0
  24. package/node_modules/@aws-cdk/assert/lib/assertions/have-output.d.ts +29 -0
  25. package/node_modules/@aws-cdk/assert/lib/assertions/have-output.js +78 -0
  26. package/node_modules/@aws-cdk/assert/lib/assertions/have-resource-matchers.d.ts +123 -0
  27. package/node_modules/@aws-cdk/assert/lib/assertions/have-resource-matchers.js +404 -0
  28. package/node_modules/@aws-cdk/assert/lib/assertions/have-resource.d.ts +69 -0
  29. package/node_modules/@aws-cdk/assert/lib/assertions/have-resource.js +131 -0
  30. package/node_modules/@aws-cdk/assert/lib/assertions/have-type.d.ts +3 -0
  31. package/node_modules/@aws-cdk/assert/lib/assertions/have-type.js +22 -0
  32. package/node_modules/@aws-cdk/assert/lib/assertions/match-template.d.ts +19 -0
  33. package/node_modules/@aws-cdk/assert/lib/assertions/match-template.js +98 -0
  34. package/node_modules/@aws-cdk/assert/lib/assertions/negated-assertion.d.ts +8 -0
  35. package/node_modules/@aws-cdk/assert/lib/assertions/negated-assertion.js +18 -0
  36. package/node_modules/@aws-cdk/assert/lib/canonicalize-assets.d.ts +11 -0
  37. package/node_modules/@aws-cdk/assert/lib/canonicalize-assets.js +70 -0
  38. package/node_modules/@aws-cdk/assert/lib/expect.d.ts +4 -0
  39. package/node_modules/@aws-cdk/assert/lib/expect.js +16 -0
  40. package/node_modules/@aws-cdk/assert/lib/index.d.ts +14 -0
  41. package/node_modules/@aws-cdk/assert/lib/index.js +27 -0
  42. package/node_modules/@aws-cdk/assert/lib/inspector.d.ts +31 -0
  43. package/node_modules/@aws-cdk/assert/lib/inspector.js +69 -0
  44. package/node_modules/@aws-cdk/assert/lib/synth-utils.d.ts +30 -0
  45. package/node_modules/@aws-cdk/assert/lib/synth-utils.js +93 -0
  46. package/node_modules/@aws-cdk/assert/package.json +77 -0
  47. package/node_modules/@aws-cdk/cfnspec/CHANGELOG.md +9353 -0
  48. package/node_modules/@aws-cdk/cfnspec/LICENSE +201 -0
  49. package/node_modules/@aws-cdk/cfnspec/NOTICE +2 -0
  50. package/node_modules/@aws-cdk/cfnspec/README.md +14 -0
  51. package/node_modules/@aws-cdk/cfnspec/build-tools/build.d.ts +1 -0
  52. package/node_modules/@aws-cdk/cfnspec/build-tools/build.js +83 -0
  53. package/node_modules/@aws-cdk/cfnspec/build-tools/create-missing-libraries.d.ts +6 -0
  54. package/node_modules/@aws-cdk/cfnspec/build-tools/create-missing-libraries.js +308 -0
  55. package/node_modules/@aws-cdk/cfnspec/build-tools/massage-spec.d.ts +14 -0
  56. package/node_modules/@aws-cdk/cfnspec/build-tools/massage-spec.js +130 -0
  57. package/node_modules/@aws-cdk/cfnspec/build-tools/scrutiny.d.ts +12 -0
  58. package/node_modules/@aws-cdk/cfnspec/build-tools/scrutiny.js +85 -0
  59. package/node_modules/@aws-cdk/cfnspec/build-tools/spec-diff.d.ts +1 -0
  60. package/node_modules/@aws-cdk/cfnspec/build-tools/spec-diff.js +237 -0
  61. package/node_modules/@aws-cdk/cfnspec/build-tools/template/LICENSE +201 -0
  62. package/node_modules/@aws-cdk/cfnspec/build-tools/template/NOTICE +2 -0
  63. package/node_modules/@aws-cdk/cfnspec/build-tools/update-cfnlint.sh +18 -0
  64. package/node_modules/@aws-cdk/cfnspec/build-tools/update-metrics.sh +13 -0
  65. package/node_modules/@aws-cdk/cfnspec/build-tools/update.sh +81 -0
  66. package/node_modules/@aws-cdk/cfnspec/cfn.version +1 -0
  67. package/node_modules/@aws-cdk/cfnspec/coverage/base.css +224 -0
  68. package/node_modules/@aws-cdk/cfnspec/coverage/block-navigation.js +79 -0
  69. package/node_modules/@aws-cdk/cfnspec/coverage/build-tools/index.html +126 -0
  70. package/node_modules/@aws-cdk/cfnspec/coverage/build-tools/massage-spec.ts.html +443 -0
  71. package/node_modules/@aws-cdk/cfnspec/coverage/build-tools/scrutiny.ts.html +344 -0
  72. package/node_modules/@aws-cdk/cfnspec/coverage/favicon.png +0 -0
  73. package/node_modules/@aws-cdk/cfnspec/coverage/index.html +156 -0
  74. package/node_modules/@aws-cdk/cfnspec/coverage/junit.xml +31181 -0
  75. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/base.css +224 -0
  76. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/block-navigation.js +79 -0
  77. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/build-tools/index.html +126 -0
  78. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/build-tools/massage-spec.ts.html +443 -0
  79. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/build-tools/scrutiny.ts.html +344 -0
  80. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/favicon.png +0 -0
  81. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/index.html +156 -0
  82. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/canned-metrics/canned-metrics-schema.ts.html +299 -0
  83. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/canned-metrics/index.html +111 -0
  84. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/canned-metrics.ts.html +440 -0
  85. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/index.html +126 -0
  86. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/index.ts.html +557 -0
  87. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/schema/augmentation.ts.html +371 -0
  88. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/schema/base-types.ts.html +167 -0
  89. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/schema/index.html +186 -0
  90. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/schema/index.ts.html +98 -0
  91. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/schema/property.ts.html +965 -0
  92. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/schema/resource-type.ts.html +572 -0
  93. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/lib/schema/specification.ts.html +248 -0
  94. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/prettify.css +1 -0
  95. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/prettify.js +2 -0
  96. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  97. package/node_modules/@aws-cdk/cfnspec/coverage/lcov-report/sorter.js +170 -0
  98. package/node_modules/@aws-cdk/cfnspec/coverage/lcov.info +709 -0
  99. package/node_modules/@aws-cdk/cfnspec/coverage/lib/canned-metrics/canned-metrics-schema.ts.html +299 -0
  100. package/node_modules/@aws-cdk/cfnspec/coverage/lib/canned-metrics/index.html +111 -0
  101. package/node_modules/@aws-cdk/cfnspec/coverage/lib/canned-metrics.ts.html +440 -0
  102. package/node_modules/@aws-cdk/cfnspec/coverage/lib/index.html +126 -0
  103. package/node_modules/@aws-cdk/cfnspec/coverage/lib/index.ts.html +557 -0
  104. package/node_modules/@aws-cdk/cfnspec/coverage/lib/schema/augmentation.ts.html +371 -0
  105. package/node_modules/@aws-cdk/cfnspec/coverage/lib/schema/base-types.ts.html +167 -0
  106. package/node_modules/@aws-cdk/cfnspec/coverage/lib/schema/index.html +186 -0
  107. package/node_modules/@aws-cdk/cfnspec/coverage/lib/schema/index.ts.html +98 -0
  108. package/node_modules/@aws-cdk/cfnspec/coverage/lib/schema/property.ts.html +965 -0
  109. package/node_modules/@aws-cdk/cfnspec/coverage/lib/schema/resource-type.ts.html +572 -0
  110. package/node_modules/@aws-cdk/cfnspec/coverage/lib/schema/specification.ts.html +248 -0
  111. package/node_modules/@aws-cdk/cfnspec/coverage/prettify.css +1 -0
  112. package/node_modules/@aws-cdk/cfnspec/coverage/prettify.js +2 -0
  113. package/node_modules/@aws-cdk/cfnspec/coverage/sort-arrow-sprite.png +0 -0
  114. package/node_modules/@aws-cdk/cfnspec/coverage/sorter.js +170 -0
  115. package/node_modules/@aws-cdk/cfnspec/lib/_private_schema/cfn-lint.d.ts +24 -0
  116. package/node_modules/@aws-cdk/cfnspec/lib/_private_schema/cfn-lint.js +3 -0
  117. package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_EC2_VPNConnection.json +27 -0
  118. package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_Lambda_Function.json +27 -0
  119. package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_RDS_DBCluster.json +70 -0
  120. package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_RDS_DBInstance.json +37 -0
  121. package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_SNS_Topic.json +52 -0
  122. package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_SQS_Queue.json +53 -0
  123. package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics/README.md +163 -0
  124. package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics/canned-metrics-schema.d.ts +60 -0
  125. package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics/canned-metrics-schema.js +12 -0
  126. package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics/services.json +22175 -0
  127. package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics.d.ts +41 -0
  128. package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics.js +77 -0
  129. package/node_modules/@aws-cdk/cfnspec/lib/index.d.ts +55 -0
  130. package/node_modules/@aws-cdk/cfnspec/lib/index.js +171 -0
  131. package/node_modules/@aws-cdk/cfnspec/lib/schema/augmentation.d.ts +87 -0
  132. package/node_modules/@aws-cdk/cfnspec/lib/schema/augmentation.js +28 -0
  133. package/node_modules/@aws-cdk/cfnspec/lib/schema/base-types.d.ts +14 -0
  134. package/node_modules/@aws-cdk/cfnspec/lib/schema/base-types.js +29 -0
  135. package/node_modules/@aws-cdk/cfnspec/lib/schema/cfn-lint.d.ts +13 -0
  136. package/node_modules/@aws-cdk/cfnspec/lib/schema/cfn-lint.js +3 -0
  137. package/node_modules/@aws-cdk/cfnspec/lib/schema/index.d.ts +6 -0
  138. package/node_modules/@aws-cdk/cfnspec/lib/schema/index.js +19 -0
  139. package/node_modules/@aws-cdk/cfnspec/lib/schema/property.d.ts +174 -0
  140. package/node_modules/@aws-cdk/cfnspec/lib/schema/property.js +161 -0
  141. package/node_modules/@aws-cdk/cfnspec/lib/schema/resource-type.d.ts +117 -0
  142. package/node_modules/@aws-cdk/cfnspec/lib/schema/resource-type.js +99 -0
  143. package/node_modules/@aws-cdk/cfnspec/lib/schema/specification.d.ts +56 -0
  144. package/node_modules/@aws-cdk/cfnspec/lib/schema/specification.js +11 -0
  145. package/node_modules/@aws-cdk/cfnspec/package.json +61 -0
  146. package/node_modules/@aws-cdk/cfnspec/spec/cfn-lint.json +34 -0
  147. package/node_modules/@aws-cdk/cfnspec/spec/specification.json +110800 -0
  148. package/node_modules/@aws-cdk/cfnspec/tsconfig.json +24 -0
  149. package/node_modules/@aws-cdk/cfnspec/tsconfig.tsbuildinfo +4584 -0
  150. package/node_modules/@aws-cdk/cloudformation-diff/LICENSE +201 -0
  151. package/node_modules/@aws-cdk/cloudformation-diff/NOTICE +2 -0
  152. package/node_modules/@aws-cdk/cloudformation-diff/README.md +12 -0
  153. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/index.d.ts +9 -0
  154. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/index.js +94 -0
  155. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/types.d.ts +326 -0
  156. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/types.js +456 -0
  157. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/util.d.ts +41 -0
  158. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/util.js +165 -0
  159. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff-template.d.ts +21 -0
  160. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff-template.js +166 -0
  161. package/node_modules/@aws-cdk/cloudformation-diff/lib/diffable.d.ts +22 -0
  162. package/node_modules/@aws-cdk/cloudformation-diff/lib/diffable.js +47 -0
  163. package/node_modules/@aws-cdk/cloudformation-diff/lib/format-table.d.ts +6 -0
  164. package/node_modules/@aws-cdk/cloudformation-diff/lib/format-table.js +109 -0
  165. package/node_modules/@aws-cdk/cloudformation-diff/lib/format.d.ts +23 -0
  166. package/node_modules/@aws-cdk/cloudformation-diff/lib/format.js +414 -0
  167. package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/iam-changes.d.ts +62 -0
  168. package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/iam-changes.js +246 -0
  169. package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/managed-policy.d.ts +18 -0
  170. package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/managed-policy.js +29 -0
  171. package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/statement.d.ts +127 -0
  172. package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/statement.js +266 -0
  173. package/node_modules/@aws-cdk/cloudformation-diff/lib/index.d.ts +4 -0
  174. package/node_modules/@aws-cdk/cloudformation-diff/lib/index.js +18 -0
  175. package/node_modules/@aws-cdk/cloudformation-diff/lib/network/security-group-changes.d.ts +32 -0
  176. package/node_modules/@aws-cdk/cloudformation-diff/lib/network/security-group-changes.js +95 -0
  177. package/node_modules/@aws-cdk/cloudformation-diff/lib/network/security-group-rule.d.ts +50 -0
  178. package/node_modules/@aws-cdk/cloudformation-diff/lib/network/security-group-rule.js +91 -0
  179. package/node_modules/@aws-cdk/cloudformation-diff/lib/render-intrinsics.d.ts +21 -0
  180. package/node_modules/@aws-cdk/cloudformation-diff/lib/render-intrinsics.js +79 -0
  181. package/node_modules/@aws-cdk/cloudformation-diff/lib/util.d.ts +7 -0
  182. package/node_modules/@aws-cdk/cloudformation-diff/lib/util.js +63 -0
  183. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/LICENSE +21 -0
  184. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/README.md +16 -0
  185. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/assert.d.ts +99 -0
  186. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/async_hooks.d.ts +144 -0
  187. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/base.d.ts +19 -0
  188. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/buffer.d.ts +16 -0
  189. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/child_process.d.ts +369 -0
  190. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/cluster.d.ts +260 -0
  191. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/console.d.ts +3 -0
  192. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/constants.d.ts +449 -0
  193. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/crypto.d.ts +613 -0
  194. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/dgram.d.ts +97 -0
  195. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/dns.d.ts +366 -0
  196. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/domain.d.ts +16 -0
  197. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/events.d.ts +30 -0
  198. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/fs.d.ts +2302 -0
  199. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/globals.d.ts +1066 -0
  200. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/http.d.ts +274 -0
  201. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/http2.d.ts +859 -0
  202. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/https.d.ts +51 -0
  203. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/index.d.ts +41 -0
  204. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/inspector.d.ts +3162 -0
  205. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/module.d.ts +3 -0
  206. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/net.d.ts +251 -0
  207. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/os.d.ts +254 -0
  208. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/package.json +181 -0
  209. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/path.d.ts +159 -0
  210. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/perf_hooks.d.ts +169 -0
  211. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/process.d.ts +3 -0
  212. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/punycode.d.ts +68 -0
  213. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/querystring.d.ts +17 -0
  214. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/readline.d.ts +143 -0
  215. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/repl.d.ts +380 -0
  216. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/stream.d.ts +313 -0
  217. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/string_decoder.d.ts +9 -0
  218. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/timers.d.ts +16 -0
  219. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/tls.d.ts +459 -0
  220. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/trace_events.d.ts +61 -0
  221. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/ts3.6/assert.d.ts +73 -0
  222. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/ts3.6/base.d.ts +54 -0
  223. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/ts3.6/index.d.ts +6 -0
  224. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/tty.d.ts +17 -0
  225. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/url.d.ts +104 -0
  226. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/util.d.ts +187 -0
  227. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/v8.d.ts +28 -0
  228. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/vm.d.ts +81 -0
  229. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/worker_threads.d.ts +124 -0
  230. package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/zlib.d.ts +327 -0
  231. package/node_modules/@aws-cdk/cloudformation-diff/package.json +61 -0
  232. package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
  233. package/node_modules/@types/concat-stream/node_modules/@types/node/http.d.ts +1 -1
  234. package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
  235. package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
  236. package/node_modules/@types/form-data/node_modules/@types/node/http.d.ts +1 -1
  237. package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
  238. package/node_modules/ansi-regex/index.d.ts +37 -0
  239. package/node_modules/ansi-regex/index.js +10 -0
  240. package/node_modules/ansi-regex/license +9 -0
  241. package/node_modules/ansi-regex/package.json +55 -0
  242. package/node_modules/ansi-regex/readme.md +78 -0
  243. package/node_modules/ansi-styles/index.d.ts +345 -0
  244. package/node_modules/ansi-styles/index.js +163 -0
  245. package/node_modules/ansi-styles/license +9 -0
  246. package/node_modules/ansi-styles/package.json +56 -0
  247. package/node_modules/ansi-styles/readme.md +152 -0
  248. package/node_modules/astral-regex/index.d.ts +28 -0
  249. package/node_modules/astral-regex/index.js +6 -0
  250. package/node_modules/astral-regex/license +9 -0
  251. package/node_modules/astral-regex/package.json +33 -0
  252. package/node_modules/astral-regex/readme.md +46 -0
  253. package/node_modules/at-least-node/LICENSE +6 -0
  254. package/node_modules/at-least-node/README.md +25 -0
  255. package/node_modules/at-least-node/index.js +5 -0
  256. package/node_modules/at-least-node/package.json +32 -0
  257. package/node_modules/charenc/LICENSE.mkd +27 -0
  258. package/node_modules/charenc/README.js +1 -0
  259. package/node_modules/charenc/charenc.js +33 -0
  260. package/node_modules/charenc/package.json +24 -0
  261. package/node_modules/color-convert/CHANGELOG.md +54 -0
  262. package/node_modules/color-convert/LICENSE +21 -0
  263. package/node_modules/color-convert/README.md +68 -0
  264. package/node_modules/color-convert/conversions.js +839 -0
  265. package/node_modules/color-convert/index.js +81 -0
  266. package/node_modules/color-convert/package.json +48 -0
  267. package/node_modules/color-convert/route.js +97 -0
  268. package/node_modules/color-name/LICENSE +8 -0
  269. package/node_modules/color-name/README.md +11 -0
  270. package/node_modules/color-name/index.js +152 -0
  271. package/node_modules/color-name/package.json +28 -0
  272. package/node_modules/colors/LICENSE +25 -0
  273. package/node_modules/colors/README.md +221 -0
  274. package/node_modules/colors/examples/normal-usage.js +82 -0
  275. package/node_modules/colors/examples/safe-string.js +79 -0
  276. package/node_modules/colors/index.d.ts +136 -0
  277. package/node_modules/colors/lib/colors.js +211 -0
  278. package/node_modules/colors/lib/custom/trap.js +46 -0
  279. package/node_modules/colors/lib/custom/zalgo.js +110 -0
  280. package/node_modules/colors/lib/extendStringPrototype.js +110 -0
  281. package/node_modules/colors/lib/index.js +13 -0
  282. package/node_modules/colors/lib/maps/america.js +10 -0
  283. package/node_modules/colors/lib/maps/rainbow.js +12 -0
  284. package/node_modules/colors/lib/maps/random.js +11 -0
  285. package/node_modules/colors/lib/maps/zebra.js +5 -0
  286. package/node_modules/colors/lib/styles.js +95 -0
  287. package/node_modules/colors/lib/system/has-flag.js +35 -0
  288. package/node_modules/colors/lib/system/supports-colors.js +151 -0
  289. package/node_modules/colors/package.json +45 -0
  290. package/node_modules/colors/safe.d.ts +48 -0
  291. package/node_modules/colors/safe.js +10 -0
  292. package/node_modules/colors/themes/generic-logging.js +12 -0
  293. package/node_modules/crypt/LICENSE.mkd +27 -0
  294. package/node_modules/crypt/README.mkd +1 -0
  295. package/node_modules/crypt/crypt.js +96 -0
  296. package/node_modules/crypt/package.json +22 -0
  297. package/node_modules/diff/CONTRIBUTING.md +39 -0
  298. package/node_modules/diff/LICENSE +31 -0
  299. package/node_modules/diff/README.md +208 -0
  300. package/node_modules/diff/dist/diff.js +1582 -0
  301. package/node_modules/diff/lib/convert/dmp.js +32 -0
  302. package/node_modules/diff/lib/convert/xml.js +42 -0
  303. package/node_modules/diff/lib/diff/array.js +45 -0
  304. package/node_modules/diff/lib/diff/base.js +304 -0
  305. package/node_modules/diff/lib/diff/character.js +37 -0
  306. package/node_modules/diff/lib/diff/css.js +41 -0
  307. package/node_modules/diff/lib/diff/json.js +163 -0
  308. package/node_modules/diff/lib/diff/line.js +89 -0
  309. package/node_modules/diff/lib/diff/sentence.js +41 -0
  310. package/node_modules/diff/lib/diff/word.js +108 -0
  311. package/node_modules/diff/lib/index.es6.js +1553 -0
  312. package/node_modules/diff/lib/index.js +216 -0
  313. package/node_modules/diff/lib/index.mjs +1553 -0
  314. package/node_modules/diff/lib/patch/apply.js +238 -0
  315. package/node_modules/diff/lib/patch/create.js +267 -0
  316. package/node_modules/diff/lib/patch/merge.js +613 -0
  317. package/node_modules/diff/lib/patch/parse.js +167 -0
  318. package/node_modules/diff/lib/util/array.js +32 -0
  319. package/node_modules/diff/lib/util/distance-iterator.js +57 -0
  320. package/node_modules/diff/lib/util/params.js +24 -0
  321. package/node_modules/diff/package.json +87 -0
  322. package/node_modules/diff/release-notes.md +303 -0
  323. package/node_modules/diff/runtime.js +3 -0
  324. package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  325. package/node_modules/emoji-regex/README.md +73 -0
  326. package/node_modules/emoji-regex/es2015/index.js +6 -0
  327. package/node_modules/emoji-regex/es2015/text.js +6 -0
  328. package/node_modules/emoji-regex/index.d.ts +23 -0
  329. package/node_modules/emoji-regex/index.js +6 -0
  330. package/node_modules/emoji-regex/package.json +50 -0
  331. package/node_modules/emoji-regex/text.js +6 -0
  332. package/node_modules/fast-deep-equal/LICENSE +21 -0
  333. package/node_modules/fast-deep-equal/README.md +96 -0
  334. package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
  335. package/node_modules/fast-deep-equal/es6/index.js +72 -0
  336. package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
  337. package/node_modules/fast-deep-equal/es6/react.js +79 -0
  338. package/node_modules/fast-deep-equal/index.d.ts +4 -0
  339. package/node_modules/fast-deep-equal/index.js +46 -0
  340. package/node_modules/fast-deep-equal/package.json +61 -0
  341. package/node_modules/fast-deep-equal/react.d.ts +2 -0
  342. package/node_modules/fast-deep-equal/react.js +53 -0
  343. package/node_modules/fs-extra/CHANGELOG.md +902 -0
  344. package/node_modules/fs-extra/LICENSE +15 -0
  345. package/node_modules/fs-extra/README.md +264 -0
  346. package/node_modules/fs-extra/lib/copy/copy.js +232 -0
  347. package/node_modules/fs-extra/lib/copy/index.js +6 -0
  348. package/node_modules/fs-extra/lib/copy-sync/copy-sync.js +166 -0
  349. package/node_modules/fs-extra/lib/copy-sync/index.js +5 -0
  350. package/node_modules/fs-extra/lib/empty/index.js +48 -0
  351. package/node_modules/fs-extra/lib/ensure/file.js +69 -0
  352. package/node_modules/fs-extra/lib/ensure/index.js +23 -0
  353. package/node_modules/fs-extra/lib/ensure/link.js +61 -0
  354. package/node_modules/fs-extra/lib/ensure/symlink-paths.js +99 -0
  355. package/node_modules/fs-extra/lib/ensure/symlink-type.js +31 -0
  356. package/node_modules/fs-extra/lib/ensure/symlink.js +63 -0
  357. package/node_modules/fs-extra/lib/fs/index.js +130 -0
  358. package/node_modules/fs-extra/lib/index.js +27 -0
  359. package/node_modules/fs-extra/lib/json/index.js +16 -0
  360. package/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
  361. package/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
  362. package/node_modules/fs-extra/lib/json/output-json.js +12 -0
  363. package/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
  364. package/node_modules/fs-extra/lib/mkdirs/make-dir.js +141 -0
  365. package/node_modules/fs-extra/lib/move/index.js +6 -0
  366. package/node_modules/fs-extra/lib/move/move.js +65 -0
  367. package/node_modules/fs-extra/lib/move-sync/index.js +5 -0
  368. package/node_modules/fs-extra/lib/move-sync/move-sync.js +47 -0
  369. package/node_modules/fs-extra/lib/output/index.js +40 -0
  370. package/node_modules/fs-extra/lib/path-exists/index.js +12 -0
  371. package/node_modules/fs-extra/lib/remove/index.js +9 -0
  372. package/node_modules/fs-extra/lib/remove/rimraf.js +302 -0
  373. package/node_modules/fs-extra/lib/util/stat.js +139 -0
  374. package/node_modules/fs-extra/lib/util/utimes.js +26 -0
  375. package/node_modules/fs-extra/package.json +70 -0
  376. package/node_modules/graceful-fs/LICENSE +15 -0
  377. package/node_modules/graceful-fs/README.md +143 -0
  378. package/node_modules/graceful-fs/clone.js +23 -0
  379. package/node_modules/graceful-fs/graceful-fs.js +429 -0
  380. package/node_modules/graceful-fs/legacy-streams.js +118 -0
  381. package/node_modules/graceful-fs/package.json +50 -0
  382. package/node_modules/graceful-fs/polyfills.js +346 -0
  383. package/node_modules/is-buffer/LICENSE +21 -0
  384. package/node_modules/is-buffer/README.md +53 -0
  385. package/node_modules/is-buffer/index.js +21 -0
  386. package/node_modules/is-buffer/package.json +51 -0
  387. package/node_modules/is-buffer/test/basic.js +24 -0
  388. package/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  389. package/node_modules/is-fullwidth-code-point/index.js +50 -0
  390. package/node_modules/is-fullwidth-code-point/license +9 -0
  391. package/node_modules/is-fullwidth-code-point/package.json +42 -0
  392. package/node_modules/is-fullwidth-code-point/readme.md +39 -0
  393. package/node_modules/jsonfile/CHANGELOG.md +171 -0
  394. package/node_modules/jsonfile/LICENSE +15 -0
  395. package/node_modules/jsonfile/README.md +230 -0
  396. package/node_modules/jsonfile/index.js +88 -0
  397. package/node_modules/jsonfile/package.json +40 -0
  398. package/node_modules/jsonfile/utils.js +14 -0
  399. package/node_modules/lodash.truncate/LICENSE +47 -0
  400. package/node_modules/lodash.truncate/README.md +18 -0
  401. package/node_modules/lodash.truncate/index.js +632 -0
  402. package/node_modules/lodash.truncate/package.json +17 -0
  403. package/node_modules/md5/.travis.yml +7 -0
  404. package/node_modules/md5/LICENSE +27 -0
  405. package/node_modules/md5/README.md +111 -0
  406. package/node_modules/md5/demo/index.html +48 -0
  407. package/node_modules/md5/dist/md5.min.js +7 -0
  408. package/node_modules/md5/md5.js +160 -0
  409. package/node_modules/md5/package.json +38 -0
  410. package/node_modules/md5/test.js +75 -0
  411. package/node_modules/md5/webpack.config.js +13 -0
  412. package/node_modules/punycode/LICENSE-MIT.txt +20 -0
  413. package/node_modules/punycode/README.md +122 -0
  414. package/node_modules/punycode/package.json +58 -0
  415. package/node_modules/punycode/punycode.es6.js +441 -0
  416. package/node_modules/punycode/punycode.js +440 -0
  417. package/node_modules/require-from-string/index.js +34 -0
  418. package/node_modules/require-from-string/license +21 -0
  419. package/node_modules/require-from-string/package.json +28 -0
  420. package/node_modules/require-from-string/readme.md +56 -0
  421. package/node_modules/slice-ansi/index.js +103 -0
  422. package/node_modules/slice-ansi/license +10 -0
  423. package/node_modules/slice-ansi/package.json +52 -0
  424. package/node_modules/slice-ansi/readme.md +66 -0
  425. package/node_modules/string-width/index.d.ts +29 -0
  426. package/node_modules/string-width/index.js +47 -0
  427. package/node_modules/string-width/license +9 -0
  428. package/node_modules/string-width/package.json +56 -0
  429. package/node_modules/string-width/readme.md +50 -0
  430. package/node_modules/strip-ansi/index.d.ts +17 -0
  431. package/node_modules/strip-ansi/index.js +4 -0
  432. package/node_modules/strip-ansi/license +9 -0
  433. package/node_modules/strip-ansi/package.json +54 -0
  434. package/node_modules/strip-ansi/readme.md +46 -0
  435. package/node_modules/table/LICENSE +24 -0
  436. package/node_modules/table/README.md +759 -0
  437. package/node_modules/table/dist/src/alignString.d.ts +6 -0
  438. package/node_modules/table/dist/src/alignString.js +60 -0
  439. package/node_modules/table/dist/src/alignTableData.d.ts +2 -0
  440. package/node_modules/table/dist/src/alignTableData.js +14 -0
  441. package/node_modules/table/dist/src/calculateCellHeight.d.ts +4 -0
  442. package/node_modules/table/dist/src/calculateCellHeight.js +12 -0
  443. package/node_modules/table/dist/src/calculateCellWidths.d.ts +5 -0
  444. package/node_modules/table/dist/src/calculateCellWidths.js +17 -0
  445. package/node_modules/table/dist/src/calculateColumnWidths.d.ts +6 -0
  446. package/node_modules/table/dist/src/calculateColumnWidths.js +17 -0
  447. package/node_modules/table/dist/src/calculateRowHeights.d.ts +5 -0
  448. package/node_modules/table/dist/src/calculateRowHeights.js +19 -0
  449. package/node_modules/table/dist/src/createStream.d.ts +2 -0
  450. package/node_modules/table/dist/src/createStream.js +73 -0
  451. package/node_modules/table/dist/src/drawBorder.d.ts +26 -0
  452. package/node_modules/table/dist/src/drawBorder.js +101 -0
  453. package/node_modules/table/dist/src/drawContent.d.ts +9 -0
  454. package/node_modules/table/dist/src/drawContent.js +27 -0
  455. package/node_modules/table/dist/src/drawHeader.d.ts +2 -0
  456. package/node_modules/table/dist/src/drawHeader.js +30 -0
  457. package/node_modules/table/dist/src/drawRow.d.ts +6 -0
  458. package/node_modules/table/dist/src/drawRow.js +21 -0
  459. package/node_modules/table/dist/src/drawTable.d.ts +2 -0
  460. package/node_modules/table/dist/src/drawTable.js +39 -0
  461. package/node_modules/table/dist/src/generated/validators.d.ts +13 -0
  462. package/node_modules/table/dist/src/generated/validators.js +2171 -0
  463. package/node_modules/table/dist/src/getBorderCharacters.d.ts +2 -0
  464. package/node_modules/table/dist/src/getBorderCharacters.js +89 -0
  465. package/node_modules/table/dist/src/index.d.ts +5 -0
  466. package/node_modules/table/dist/src/index.js +21 -0
  467. package/node_modules/table/dist/src/makeStreamConfig.d.ts +7 -0
  468. package/node_modules/table/dist/src/makeStreamConfig.js +43 -0
  469. package/node_modules/table/dist/src/makeTableConfig.d.ts +7 -0
  470. package/node_modules/table/dist/src/makeTableConfig.js +65 -0
  471. package/node_modules/table/dist/src/mapDataUsingRowHeights.d.ts +2 -0
  472. package/node_modules/table/dist/src/mapDataUsingRowHeights.js +45 -0
  473. package/node_modules/table/dist/src/padTableData.d.ts +3 -0
  474. package/node_modules/table/dist/src/padTableData.js +17 -0
  475. package/node_modules/table/dist/src/stringifyTableData.d.ts +2 -0
  476. package/node_modules/table/dist/src/stringifyTableData.js +13 -0
  477. package/node_modules/table/dist/src/table.d.ts +2 -0
  478. package/node_modules/table/dist/src/table.js +27 -0
  479. package/node_modules/table/dist/src/truncateTableData.d.ts +6 -0
  480. package/node_modules/table/dist/src/truncateTableData.js +24 -0
  481. package/node_modules/table/dist/src/types/api.d.ts +114 -0
  482. package/node_modules/table/dist/src/types/api.js +3 -0
  483. package/node_modules/table/dist/src/types/internal.d.ts +1 -0
  484. package/node_modules/table/dist/src/types/internal.js +3 -0
  485. package/node_modules/table/dist/src/utils.d.ts +1 -0
  486. package/node_modules/table/dist/src/utils.js +93 -0
  487. package/node_modules/table/dist/src/validateConfig.d.ts +2 -0
  488. package/node_modules/table/dist/src/validateConfig.js +27 -0
  489. package/node_modules/table/dist/src/validateTableData.d.ts +1 -0
  490. package/node_modules/table/dist/src/validateTableData.js +32 -0
  491. package/node_modules/table/dist/src/wrapCell.d.ts +8 -0
  492. package/node_modules/table/dist/src/wrapCell.js +33 -0
  493. package/node_modules/table/dist/src/wrapString.d.ts +9 -0
  494. package/node_modules/table/dist/src/wrapString.js +27 -0
  495. package/node_modules/table/dist/src/wrapWord.d.ts +1 -0
  496. package/node_modules/table/dist/src/wrapWord.js +42 -0
  497. package/node_modules/table/node_modules/ajv/.runkit_example.js +23 -0
  498. package/node_modules/table/node_modules/ajv/LICENSE +22 -0
  499. package/node_modules/table/node_modules/ajv/README.md +192 -0
  500. package/node_modules/table/node_modules/ajv/dist/2019.d.ts +17 -0
  501. package/node_modules/table/node_modules/ajv/dist/2019.js +55 -0
  502. package/node_modules/table/node_modules/ajv/dist/2019.js.map +1 -0
  503. package/node_modules/table/node_modules/ajv/dist/2020.d.ts +17 -0
  504. package/node_modules/table/node_modules/ajv/dist/2020.js +49 -0
  505. package/node_modules/table/node_modules/ajv/dist/2020.js.map +1 -0
  506. package/node_modules/table/node_modules/ajv/dist/ajv.d.ts +16 -0
  507. package/node_modules/table/node_modules/ajv/dist/ajv.js +44 -0
  508. package/node_modules/table/node_modules/ajv/dist/ajv.js.map +1 -0
  509. package/node_modules/table/node_modules/ajv/dist/compile/codegen/code.d.ts +39 -0
  510. package/node_modules/table/node_modules/ajv/dist/compile/codegen/code.js +147 -0
  511. package/node_modules/table/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
  512. package/node_modules/table/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
  513. package/node_modules/table/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  514. package/node_modules/table/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
  515. package/node_modules/table/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
  516. package/node_modules/table/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  517. package/node_modules/table/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
  518. package/node_modules/table/node_modules/ajv/dist/compile/errors.d.ts +13 -0
  519. package/node_modules/table/node_modules/ajv/dist/compile/errors.js +123 -0
  520. package/node_modules/table/node_modules/ajv/dist/compile/errors.js.map +1 -0
  521. package/node_modules/table/node_modules/ajv/dist/compile/index.d.ts +80 -0
  522. package/node_modules/table/node_modules/ajv/dist/compile/index.js +243 -0
  523. package/node_modules/table/node_modules/ajv/dist/compile/index.js.map +1 -0
  524. package/node_modules/table/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
  525. package/node_modules/table/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
  526. package/node_modules/table/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
  527. package/node_modules/table/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
  528. package/node_modules/table/node_modules/ajv/dist/compile/jtd/serialize.js +218 -0
  529. package/node_modules/table/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
  530. package/node_modules/table/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
  531. package/node_modules/table/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  532. package/node_modules/table/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
  533. package/node_modules/table/node_modules/ajv/dist/compile/names.d.ts +20 -0
  534. package/node_modules/table/node_modules/ajv/dist/compile/names.js +28 -0
  535. package/node_modules/table/node_modules/ajv/dist/compile/names.js.map +1 -0
  536. package/node_modules/table/node_modules/ajv/dist/compile/ref_error.d.ts +5 -0
  537. package/node_modules/table/node_modules/ajv/dist/compile/ref_error.js +12 -0
  538. package/node_modules/table/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
  539. package/node_modules/table/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
  540. package/node_modules/table/node_modules/ajv/dist/compile/resolve.js +153 -0
  541. package/node_modules/table/node_modules/ajv/dist/compile/resolve.js.map +1 -0
  542. package/node_modules/table/node_modules/ajv/dist/compile/rules.d.ts +28 -0
  543. package/node_modules/table/node_modules/ajv/dist/compile/rules.js +26 -0
  544. package/node_modules/table/node_modules/ajv/dist/compile/rules.js.map +1 -0
  545. package/node_modules/table/node_modules/ajv/dist/compile/util.d.ts +40 -0
  546. package/node_modules/table/node_modules/ajv/dist/compile/util.js +178 -0
  547. package/node_modules/table/node_modules/ajv/dist/compile/util.js.map +1 -0
  548. package/node_modules/table/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
  549. package/node_modules/table/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  550. package/node_modules/table/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
  551. package/node_modules/table/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
  552. package/node_modules/table/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  553. package/node_modules/table/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
  554. package/node_modules/table/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
  555. package/node_modules/table/node_modules/ajv/dist/compile/validate/dataType.js +202 -0
  556. package/node_modules/table/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
  557. package/node_modules/table/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
  558. package/node_modules/table/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  559. package/node_modules/table/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
  560. package/node_modules/table/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
  561. package/node_modules/table/node_modules/ajv/dist/compile/validate/index.js +510 -0
  562. package/node_modules/table/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
  563. package/node_modules/table/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
  564. package/node_modules/table/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  565. package/node_modules/table/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
  566. package/node_modules/table/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
  567. package/node_modules/table/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  568. package/node_modules/table/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
  569. package/node_modules/table/node_modules/ajv/dist/core.d.ts +171 -0
  570. package/node_modules/table/node_modules/ajv/dist/core.js +614 -0
  571. package/node_modules/table/node_modules/ajv/dist/core.js.map +1 -0
  572. package/node_modules/table/node_modules/ajv/dist/jtd.d.ts +45 -0
  573. package/node_modules/table/node_modules/ajv/dist/jtd.js +66 -0
  574. package/node_modules/table/node_modules/ajv/dist/jtd.js.map +1 -0
  575. package/node_modules/table/node_modules/ajv/dist/refs/data.json +13 -0
  576. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
  577. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  578. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
  579. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  580. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  581. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  582. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  583. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  584. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  585. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  586. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
  587. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  588. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
  589. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  590. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  591. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  592. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  593. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  594. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  595. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  596. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  597. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  598. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  599. package/node_modules/table/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  600. package/node_modules/table/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
  601. package/node_modules/table/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  602. package/node_modules/table/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
  603. package/node_modules/table/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
  604. package/node_modules/table/node_modules/ajv/dist/runtime/equal.js +7 -0
  605. package/node_modules/table/node_modules/ajv/dist/runtime/equal.js.map +1 -0
  606. package/node_modules/table/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
  607. package/node_modules/table/node_modules/ajv/dist/runtime/parseJson.js +184 -0
  608. package/node_modules/table/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
  609. package/node_modules/table/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
  610. package/node_modules/table/node_modules/ajv/dist/runtime/quote.js +30 -0
  611. package/node_modules/table/node_modules/ajv/dist/runtime/quote.js.map +1 -0
  612. package/node_modules/table/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
  613. package/node_modules/table/node_modules/ajv/dist/runtime/re2.js +6 -0
  614. package/node_modules/table/node_modules/ajv/dist/runtime/re2.js.map +1 -0
  615. package/node_modules/table/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
  616. package/node_modules/table/node_modules/ajv/dist/runtime/timestamp.js +42 -0
  617. package/node_modules/table/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
  618. package/node_modules/table/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
  619. package/node_modules/table/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  620. package/node_modules/table/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
  621. package/node_modules/table/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
  622. package/node_modules/table/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  623. package/node_modules/table/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
  624. package/node_modules/table/node_modules/ajv/dist/standalone/index.d.ts +6 -0
  625. package/node_modules/table/node_modules/ajv/dist/standalone/index.js +83 -0
  626. package/node_modules/table/node_modules/ajv/dist/standalone/index.js.map +1 -0
  627. package/node_modules/table/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
  628. package/node_modules/table/node_modules/ajv/dist/standalone/instance.js +35 -0
  629. package/node_modules/table/node_modules/ajv/dist/standalone/instance.js.map +1 -0
  630. package/node_modules/table/node_modules/ajv/dist/types/index.d.ts +177 -0
  631. package/node_modules/table/node_modules/ajv/dist/types/index.js +3 -0
  632. package/node_modules/table/node_modules/ajv/dist/types/index.js.map +1 -0
  633. package/node_modules/table/node_modules/ajv/dist/types/json-schema.d.ts +124 -0
  634. package/node_modules/table/node_modules/ajv/dist/types/json-schema.js +3 -0
  635. package/node_modules/table/node_modules/ajv/dist/types/json-schema.js.map +1 -0
  636. package/node_modules/table/node_modules/ajv/dist/types/jtd-schema.d.ts +168 -0
  637. package/node_modules/table/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  638. package/node_modules/table/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
  639. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
  640. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  641. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
  642. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
  643. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  644. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
  645. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
  646. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  647. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
  648. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
  649. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  650. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
  651. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
  652. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  653. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
  654. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
  655. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  656. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
  657. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
  658. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  659. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
  660. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
  661. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  662. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
  663. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
  664. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  665. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
  666. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
  667. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  668. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
  669. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
  670. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  671. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
  672. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
  673. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  674. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
  675. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
  676. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  677. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
  678. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
  679. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  680. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
  681. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
  682. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  683. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
  684. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
  685. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  686. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
  687. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
  688. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  689. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
  690. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
  691. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  692. package/node_modules/table/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
  693. package/node_modules/table/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
  694. package/node_modules/table/node_modules/ajv/dist/vocabularies/code.js +131 -0
  695. package/node_modules/table/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
  696. package/node_modules/table/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
  697. package/node_modules/table/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  698. package/node_modules/table/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
  699. package/node_modules/table/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
  700. package/node_modules/table/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  701. package/node_modules/table/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
  702. package/node_modules/table/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
  703. package/node_modules/table/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  704. package/node_modules/table/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
  705. package/node_modules/table/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
  706. package/node_modules/table/node_modules/ajv/dist/vocabularies/discriminator/index.js +93 -0
  707. package/node_modules/table/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
  708. package/node_modules/table/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
  709. package/node_modules/table/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  710. package/node_modules/table/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
  711. package/node_modules/table/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
  712. package/node_modules/table/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
  713. package/node_modules/table/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
  714. package/node_modules/table/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
  715. package/node_modules/table/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  716. package/node_modules/table/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
  717. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
  718. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  719. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
  720. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
  721. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  722. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
  723. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
  724. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
  725. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
  726. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
  727. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  728. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
  729. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
  730. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  731. package/node_modules/table/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
  732. package/node_modules/table/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
  733. package/node_modules/table/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  734. package/node_modules/table/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
  735. package/node_modules/table/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
  736. package/node_modules/table/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  737. package/node_modules/table/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
  738. package/node_modules/table/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
  739. package/node_modules/table/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  740. package/node_modules/table/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
  741. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
  742. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
  743. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
  744. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
  745. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
  746. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
  747. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
  748. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
  749. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
  750. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
  751. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
  752. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
  753. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
  754. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
  755. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
  756. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
  757. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  758. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
  759. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
  760. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  761. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
  762. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
  763. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
  764. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
  765. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
  766. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/properties.js +146 -0
  767. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
  768. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
  769. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/ref.js +66 -0
  770. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
  771. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
  772. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
  773. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
  774. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
  775. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
  776. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
  777. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
  778. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/values.js +48 -0
  779. package/node_modules/table/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
  780. package/node_modules/table/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
  781. package/node_modules/table/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  782. package/node_modules/table/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
  783. package/node_modules/table/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
  784. package/node_modules/table/node_modules/ajv/dist/vocabularies/next.js +8 -0
  785. package/node_modules/table/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
  786. package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
  787. package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  788. package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
  789. package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
  790. package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  791. package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
  792. package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
  793. package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
  794. package/node_modules/table/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
  795. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
  796. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  797. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
  798. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
  799. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  800. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
  801. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
  802. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/enum.js +47 -0
  803. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
  804. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
  805. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  806. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
  807. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
  808. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  809. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
  810. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
  811. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  812. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
  813. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
  814. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  815. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
  816. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
  817. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  818. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
  819. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
  820. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  821. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
  822. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
  823. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  824. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
  825. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
  826. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/pattern.js +24 -0
  827. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
  828. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
  829. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  830. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
  831. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
  832. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  833. package/node_modules/table/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
  834. package/node_modules/table/node_modules/ajv/lib/2019.ts +78 -0
  835. package/node_modules/table/node_modules/ajv/lib/2020.ts +72 -0
  836. package/node_modules/table/node_modules/ajv/lib/ajv.ts +67 -0
  837. package/node_modules/table/node_modules/ajv/lib/compile/codegen/code.ts +160 -0
  838. package/node_modules/table/node_modules/ajv/lib/compile/codegen/index.ts +832 -0
  839. package/node_modules/table/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  840. package/node_modules/table/node_modules/ajv/lib/compile/errors.ts +184 -0
  841. package/node_modules/table/node_modules/ajv/lib/compile/index.ts +324 -0
  842. package/node_modules/table/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
  843. package/node_modules/table/node_modules/ajv/lib/compile/jtd/serialize.ts +260 -0
  844. package/node_modules/table/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  845. package/node_modules/table/node_modules/ajv/lib/compile/names.ts +27 -0
  846. package/node_modules/table/node_modules/ajv/lib/compile/ref_error.ts +12 -0
  847. package/node_modules/table/node_modules/ajv/lib/compile/resolve.ts +146 -0
  848. package/node_modules/table/node_modules/ajv/lib/compile/rules.ts +50 -0
  849. package/node_modules/table/node_modules/ajv/lib/compile/util.ts +213 -0
  850. package/node_modules/table/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  851. package/node_modules/table/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  852. package/node_modules/table/node_modules/ajv/lib/compile/validate/dataType.ts +229 -0
  853. package/node_modules/table/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  854. package/node_modules/table/node_modules/ajv/lib/compile/validate/index.ts +573 -0
  855. package/node_modules/table/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
  856. package/node_modules/table/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
  857. package/node_modules/table/node_modules/ajv/lib/core.ts +880 -0
  858. package/node_modules/table/node_modules/ajv/lib/jtd.ts +129 -0
  859. package/node_modules/table/node_modules/ajv/lib/refs/data.json +13 -0
  860. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  861. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  862. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  863. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  864. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  865. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  866. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  867. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  868. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
  869. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
  870. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
  871. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
  872. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  873. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  874. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  875. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
  876. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
  877. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  878. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  879. package/node_modules/table/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  880. package/node_modules/table/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  881. package/node_modules/table/node_modules/ajv/lib/runtime/equal.ts +7 -0
  882. package/node_modules/table/node_modules/ajv/lib/runtime/parseJson.ts +176 -0
  883. package/node_modules/table/node_modules/ajv/lib/runtime/quote.ts +31 -0
  884. package/node_modules/table/node_modules/ajv/lib/runtime/re2.ts +6 -0
  885. package/node_modules/table/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
  886. package/node_modules/table/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
  887. package/node_modules/table/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
  888. package/node_modules/table/node_modules/ajv/lib/standalone/index.ts +93 -0
  889. package/node_modules/table/node_modules/ajv/lib/standalone/instance.ts +36 -0
  890. package/node_modules/table/node_modules/ajv/lib/types/index.ts +233 -0
  891. package/node_modules/table/node_modules/ajv/lib/types/json-schema.ts +189 -0
  892. package/node_modules/table/node_modules/ajv/lib/types/jtd-schema.ts +264 -0
  893. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
  894. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  895. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  896. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
  897. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
  898. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  899. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  900. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
  901. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
  902. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
  903. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
  904. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
  905. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
  906. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
  907. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
  908. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  909. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  910. package/node_modules/table/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  911. package/node_modules/table/node_modules/ajv/lib/vocabularies/code.ts +168 -0
  912. package/node_modules/table/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  913. package/node_modules/table/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  914. package/node_modules/table/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
  915. package/node_modules/table/node_modules/ajv/lib/vocabularies/discriminator/index.ts +102 -0
  916. package/node_modules/table/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
  917. package/node_modules/table/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
  918. package/node_modules/table/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  919. package/node_modules/table/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
  920. package/node_modules/table/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  921. package/node_modules/table/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  922. package/node_modules/table/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  923. package/node_modules/table/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  924. package/node_modules/table/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
  925. package/node_modules/table/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
  926. package/node_modules/table/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  927. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
  928. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
  929. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
  930. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
  931. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
  932. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  933. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
  934. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
  935. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/properties.ts +177 -0
  936. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/ref.ts +74 -0
  937. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
  938. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
  939. package/node_modules/table/node_modules/ajv/lib/vocabularies/jtd/values.ts +55 -0
  940. package/node_modules/table/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  941. package/node_modules/table/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  942. package/node_modules/table/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  943. package/node_modules/table/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
  944. package/node_modules/table/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
  945. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
  946. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  947. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/enum.ts +52 -0
  948. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  949. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  950. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  951. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
  952. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  953. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  954. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  955. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/pattern.ts +28 -0
  956. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  957. package/node_modules/table/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
  958. package/node_modules/table/node_modules/ajv/package.json +124 -0
  959. package/node_modules/table/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
  960. package/node_modules/table/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
  961. package/node_modules/table/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
  962. package/node_modules/table/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
  963. package/node_modules/table/node_modules/json-schema-traverse/LICENSE +21 -0
  964. package/node_modules/table/node_modules/json-schema-traverse/README.md +95 -0
  965. package/node_modules/table/node_modules/json-schema-traverse/index.d.ts +40 -0
  966. package/node_modules/table/node_modules/json-schema-traverse/index.js +93 -0
  967. package/node_modules/table/node_modules/json-schema-traverse/package.json +43 -0
  968. package/node_modules/table/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
  969. package/node_modules/table/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
  970. package/node_modules/table/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
  971. package/node_modules/table/package.json +78 -0
  972. package/node_modules/universalify/LICENSE +20 -0
  973. package/node_modules/universalify/README.md +76 -0
  974. package/node_modules/universalify/index.js +24 -0
  975. package/node_modules/universalify/package.json +34 -0
  976. package/node_modules/uri-js/LICENSE +11 -0
  977. package/node_modules/uri-js/README.md +203 -0
  978. package/node_modules/uri-js/dist/es5/uri.all.d.ts +59 -0
  979. package/node_modules/uri-js/dist/es5/uri.all.js +1443 -0
  980. package/node_modules/uri-js/dist/es5/uri.all.js.map +1 -0
  981. package/node_modules/uri-js/dist/es5/uri.all.min.d.ts +59 -0
  982. package/node_modules/uri-js/dist/es5/uri.all.min.js +3 -0
  983. package/node_modules/uri-js/dist/es5/uri.all.min.js.map +1 -0
  984. package/node_modules/uri-js/dist/esnext/index.d.ts +1 -0
  985. package/node_modules/uri-js/dist/esnext/index.js +17 -0
  986. package/node_modules/uri-js/dist/esnext/index.js.map +1 -0
  987. package/node_modules/uri-js/dist/esnext/regexps-iri.d.ts +3 -0
  988. package/node_modules/uri-js/dist/esnext/regexps-iri.js +3 -0
  989. package/node_modules/uri-js/dist/esnext/regexps-iri.js.map +1 -0
  990. package/node_modules/uri-js/dist/esnext/regexps-uri.d.ts +4 -0
  991. package/node_modules/uri-js/dist/esnext/regexps-uri.js +42 -0
  992. package/node_modules/uri-js/dist/esnext/regexps-uri.js.map +1 -0
  993. package/node_modules/uri-js/dist/esnext/schemes/http.d.ts +3 -0
  994. package/node_modules/uri-js/dist/esnext/schemes/http.js +28 -0
  995. package/node_modules/uri-js/dist/esnext/schemes/http.js.map +1 -0
  996. package/node_modules/uri-js/dist/esnext/schemes/https.d.ts +3 -0
  997. package/node_modules/uri-js/dist/esnext/schemes/https.js +9 -0
  998. package/node_modules/uri-js/dist/esnext/schemes/https.js.map +1 -0
  999. package/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts +12 -0
  1000. package/node_modules/uri-js/dist/esnext/schemes/mailto.js +148 -0
  1001. package/node_modules/uri-js/dist/esnext/schemes/mailto.js.map +1 -0
  1002. package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts +7 -0
  1003. package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js +23 -0
  1004. package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map +1 -0
  1005. package/node_modules/uri-js/dist/esnext/schemes/urn.d.ts +10 -0
  1006. package/node_modules/uri-js/dist/esnext/schemes/urn.js +49 -0
  1007. package/node_modules/uri-js/dist/esnext/schemes/urn.js.map +1 -0
  1008. package/node_modules/uri-js/dist/esnext/schemes/ws.d.ts +7 -0
  1009. package/node_modules/uri-js/dist/esnext/schemes/ws.js +41 -0
  1010. package/node_modules/uri-js/dist/esnext/schemes/ws.js.map +1 -0
  1011. package/node_modules/uri-js/dist/esnext/schemes/wss.d.ts +3 -0
  1012. package/node_modules/uri-js/dist/esnext/schemes/wss.js +9 -0
  1013. package/node_modules/uri-js/dist/esnext/schemes/wss.js.map +1 -0
  1014. package/node_modules/uri-js/dist/esnext/uri.d.ts +59 -0
  1015. package/node_modules/uri-js/dist/esnext/uri.js +480 -0
  1016. package/node_modules/uri-js/dist/esnext/uri.js.map +1 -0
  1017. package/node_modules/uri-js/dist/esnext/util.d.ts +6 -0
  1018. package/node_modules/uri-js/dist/esnext/util.js +36 -0
  1019. package/node_modules/uri-js/dist/esnext/util.js.map +1 -0
  1020. package/node_modules/uri-js/package.json +77 -0
  1021. package/node_modules/uri-js/yarn.lock +2558 -0
  1022. package/package.json +11 -19
@@ -0,0 +1,880 @@
1
+ export {
2
+ Format,
3
+ FormatDefinition,
4
+ AsyncFormatDefinition,
5
+ KeywordDefinition,
6
+ KeywordErrorDefinition,
7
+ CodeKeywordDefinition,
8
+ MacroKeywordDefinition,
9
+ FuncKeywordDefinition,
10
+ Vocabulary,
11
+ Schema,
12
+ SchemaObject,
13
+ AnySchemaObject,
14
+ AsyncSchema,
15
+ AnySchema,
16
+ ValidateFunction,
17
+ AsyncValidateFunction,
18
+ AnyValidateFunction,
19
+ ErrorObject,
20
+ ErrorNoParams,
21
+ } from "./types"
22
+
23
+ export {SchemaCxt, SchemaObjCxt} from "./compile"
24
+ export interface Plugin<Opts> {
25
+ (ajv: Ajv, options?: Opts): Ajv
26
+ [prop: string]: any
27
+ }
28
+
29
+ export {KeywordCxt} from "./compile/validate"
30
+ export {DefinedError} from "./vocabularies/errors"
31
+ export {JSONType} from "./compile/rules"
32
+ export {JSONSchemaType} from "./types/json-schema"
33
+ export {JTDSchemaType, SomeJTDSchemaType, JTDDataType} from "./types/jtd-schema"
34
+ export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen"
35
+
36
+ import type {
37
+ Schema,
38
+ AnySchema,
39
+ AnySchemaObject,
40
+ SchemaObject,
41
+ AsyncSchema,
42
+ Vocabulary,
43
+ KeywordDefinition,
44
+ AddedKeywordDefinition,
45
+ AnyValidateFunction,
46
+ ValidateFunction,
47
+ AsyncValidateFunction,
48
+ ErrorObject,
49
+ Format,
50
+ AddedFormat,
51
+ RegExpEngine,
52
+ } from "./types"
53
+ import type {JSONSchemaType} from "./types/json-schema"
54
+ import type {JTDSchemaType, SomeJTDSchemaType, JTDDataType} from "./types/jtd-schema"
55
+ import ValidationError from "./runtime/validation_error"
56
+ import MissingRefError from "./compile/ref_error"
57
+ import {getRules, ValidationRules, Rule, RuleGroup, JSONType} from "./compile/rules"
58
+ import {SchemaEnv, compileSchema, resolveSchema} from "./compile"
59
+ import {Code, ValueScope} from "./compile/codegen"
60
+ import {normalizeId, getSchemaRefs} from "./compile/resolve"
61
+ import {getJSONTypes} from "./compile/validate/dataType"
62
+ import {eachItem} from "./compile/util"
63
+
64
+ import * as $dataRefSchema from "./refs/data.json"
65
+
66
+ const defaultRegExp: RegExpEngine = (str, flags) => new RegExp(str, flags)
67
+ defaultRegExp.code = "new RegExp"
68
+
69
+ const META_IGNORE_OPTIONS: (keyof Options)[] = ["removeAdditional", "useDefaults", "coerceTypes"]
70
+ const EXT_SCOPE_NAMES = new Set([
71
+ "validate",
72
+ "serialize",
73
+ "parse",
74
+ "wrapper",
75
+ "root",
76
+ "schema",
77
+ "keyword",
78
+ "pattern",
79
+ "formats",
80
+ "validate$data",
81
+ "func",
82
+ "obj",
83
+ "Error",
84
+ ])
85
+
86
+ export type Options = CurrentOptions & DeprecatedOptions
87
+
88
+ export interface CurrentOptions {
89
+ // strict mode options (NEW)
90
+ strict?: boolean | "log"
91
+ strictSchema?: boolean | "log"
92
+ strictNumbers?: boolean | "log"
93
+ strictTypes?: boolean | "log"
94
+ strictTuples?: boolean | "log"
95
+ strictRequired?: boolean | "log"
96
+ allowMatchingProperties?: boolean // disables a strict mode restriction
97
+ allowUnionTypes?: boolean
98
+ validateFormats?: boolean
99
+ // validation and reporting options:
100
+ $data?: boolean
101
+ allErrors?: boolean
102
+ verbose?: boolean
103
+ discriminator?: boolean
104
+ unicodeRegExp?: boolean
105
+ timestamp?: "string" | "date" // JTD only
106
+ parseDate?: boolean // JTD only
107
+ allowDate?: boolean // JTD only
108
+ $comment?:
109
+ | true
110
+ | ((comment: string, schemaPath?: string, rootSchema?: AnySchemaObject) => unknown)
111
+ formats?: {[Name in string]?: Format}
112
+ keywords?: Vocabulary
113
+ schemas?: AnySchema[] | {[Key in string]?: AnySchema}
114
+ logger?: Logger | false
115
+ loadSchema?: (uri: string) => Promise<AnySchemaObject>
116
+ // options to modify validated data:
117
+ removeAdditional?: boolean | "all" | "failing"
118
+ useDefaults?: boolean | "empty"
119
+ coerceTypes?: boolean | "array"
120
+ // advanced options:
121
+ next?: boolean // NEW
122
+ unevaluated?: boolean // NEW
123
+ dynamicRef?: boolean // NEW
124
+ schemaId?: "id" | "$id"
125
+ jtd?: boolean // NEW
126
+ meta?: SchemaObject | boolean
127
+ defaultMeta?: string | AnySchemaObject
128
+ validateSchema?: boolean | "log"
129
+ addUsedSchema?: boolean
130
+ inlineRefs?: boolean | number
131
+ passContext?: boolean
132
+ loopRequired?: number
133
+ loopEnum?: number // NEW
134
+ ownProperties?: boolean
135
+ multipleOfPrecision?: number
136
+ int32range?: boolean // JTD only
137
+ messages?: boolean
138
+ code?: CodeOptions // NEW
139
+ }
140
+
141
+ export interface CodeOptions {
142
+ es5?: boolean
143
+ lines?: boolean
144
+ optimize?: boolean | number
145
+ formats?: Code // code to require (or construct) map of available formats - for standalone code
146
+ source?: boolean
147
+ process?: (code: string, schema?: SchemaEnv) => string
148
+ regExp?: RegExpEngine
149
+ }
150
+
151
+ interface InstanceCodeOptions extends CodeOptions {
152
+ regExp: RegExpEngine
153
+ optimize: number
154
+ }
155
+
156
+ interface DeprecatedOptions {
157
+ /** @deprecated */
158
+ ignoreKeywordsWithRef?: boolean
159
+ /** @deprecated */
160
+ jsPropertySyntax?: boolean // added instead of jsonPointers
161
+ /** @deprecated */
162
+ unicode?: boolean
163
+ }
164
+
165
+ interface RemovedOptions {
166
+ format?: boolean
167
+ errorDataPath?: "object" | "property"
168
+ nullable?: boolean // "nullable" keyword is supported by default
169
+ jsonPointers?: boolean
170
+ extendRefs?: true | "ignore" | "fail"
171
+ missingRefs?: true | "ignore" | "fail"
172
+ processCode?: (code: string, schema?: SchemaEnv) => string
173
+ sourceCode?: boolean
174
+ strictDefaults?: boolean
175
+ strictKeywords?: boolean
176
+ uniqueItems?: boolean
177
+ unknownFormats?: true | string[] | "ignore"
178
+ cache?: any
179
+ serialize?: (schema: AnySchema) => unknown
180
+ ajvErrors?: boolean
181
+ }
182
+
183
+ type OptionsInfo<T extends RemovedOptions | DeprecatedOptions> = {
184
+ [K in keyof T]-?: string | undefined
185
+ }
186
+
187
+ const removedOptions: OptionsInfo<RemovedOptions> = {
188
+ errorDataPath: "",
189
+ format: "`validateFormats: false` can be used instead.",
190
+ nullable: '"nullable" keyword is supported by default.',
191
+ jsonPointers: "Deprecated jsPropertySyntax can be used instead.",
192
+ extendRefs: "Deprecated ignoreKeywordsWithRef can be used instead.",
193
+ missingRefs: "Pass empty schema with $id that should be ignored to ajv.addSchema.",
194
+ processCode: "Use option `code: {process: (code, schemaEnv: object) => string}`",
195
+ sourceCode: "Use option `code: {source: true}`",
196
+ strictDefaults: "It is default now, see option `strict`.",
197
+ strictKeywords: "It is default now, see option `strict`.",
198
+ uniqueItems: '"uniqueItems" keyword is always validated.',
199
+ unknownFormats: "Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",
200
+ cache: "Map is used as cache, schema object as key.",
201
+ serialize: "Map is used as cache, schema object as key.",
202
+ ajvErrors: "It is default now.",
203
+ }
204
+
205
+ const deprecatedOptions: OptionsInfo<DeprecatedOptions> = {
206
+ ignoreKeywordsWithRef: "",
207
+ jsPropertySyntax: "",
208
+ unicode: '"minLength"/"maxLength" account for unicode characters by default.',
209
+ }
210
+
211
+ type RequiredInstanceOptions = {
212
+ [K in
213
+ | "strictSchema"
214
+ | "strictNumbers"
215
+ | "strictTypes"
216
+ | "strictTuples"
217
+ | "strictRequired"
218
+ | "inlineRefs"
219
+ | "loopRequired"
220
+ | "loopEnum"
221
+ | "meta"
222
+ | "messages"
223
+ | "schemaId"
224
+ | "addUsedSchema"
225
+ | "validateSchema"
226
+ | "validateFormats"
227
+ | "int32range"
228
+ | "unicodeRegExp"]: NonNullable<Options[K]>
229
+ } & {code: InstanceCodeOptions}
230
+
231
+ export type InstanceOptions = Options & RequiredInstanceOptions
232
+
233
+ const MAX_EXPRESSION = 200
234
+
235
+ // eslint-disable-next-line complexity
236
+ function requiredOptions(o: Options): RequiredInstanceOptions {
237
+ const s = o.strict
238
+ const _optz = o.code?.optimize
239
+ const optimize = _optz === true || _optz === undefined ? 1 : _optz || 0
240
+ const regExp = o.code?.regExp ?? defaultRegExp
241
+ return {
242
+ strictSchema: o.strictSchema ?? s ?? true,
243
+ strictNumbers: o.strictNumbers ?? s ?? true,
244
+ strictTypes: o.strictTypes ?? s ?? "log",
245
+ strictTuples: o.strictTuples ?? s ?? "log",
246
+ strictRequired: o.strictRequired ?? s ?? false,
247
+ code: o.code ? {...o.code, optimize, regExp} : {optimize, regExp},
248
+ loopRequired: o.loopRequired ?? MAX_EXPRESSION,
249
+ loopEnum: o.loopEnum ?? MAX_EXPRESSION,
250
+ meta: o.meta ?? true,
251
+ messages: o.messages ?? true,
252
+ inlineRefs: o.inlineRefs ?? true,
253
+ schemaId: o.schemaId ?? "$id",
254
+ addUsedSchema: o.addUsedSchema ?? true,
255
+ validateSchema: o.validateSchema ?? true,
256
+ validateFormats: o.validateFormats ?? true,
257
+ unicodeRegExp: o.unicodeRegExp ?? true,
258
+ int32range: o.int32range ?? true,
259
+ }
260
+ }
261
+
262
+ export interface Logger {
263
+ log(...args: unknown[]): unknown
264
+ warn(...args: unknown[]): unknown
265
+ error(...args: unknown[]): unknown
266
+ }
267
+
268
+ export default class Ajv {
269
+ opts: InstanceOptions
270
+ errors?: ErrorObject[] | null // errors from the last validation
271
+ logger: Logger
272
+ // shared external scope values for compiled functions
273
+ readonly scope: ValueScope
274
+ readonly schemas: {[Key in string]?: SchemaEnv} = {}
275
+ readonly refs: {[Ref in string]?: SchemaEnv | string} = {}
276
+ readonly formats: {[Name in string]?: AddedFormat} = {}
277
+ readonly RULES: ValidationRules
278
+ readonly _compilations: Set<SchemaEnv> = new Set()
279
+ private readonly _loading: {[Ref in string]?: Promise<AnySchemaObject>} = {}
280
+ private readonly _cache: Map<AnySchema, SchemaEnv> = new Map()
281
+ private readonly _metaOpts: InstanceOptions
282
+
283
+ static ValidationError = ValidationError
284
+ static MissingRefError = MissingRefError
285
+
286
+ constructor(opts: Options = {}) {
287
+ opts = this.opts = {...opts, ...requiredOptions(opts)}
288
+ const {es5, lines} = this.opts.code
289
+
290
+ this.scope = new ValueScope({scope: {}, prefixes: EXT_SCOPE_NAMES, es5, lines})
291
+ this.logger = getLogger(opts.logger)
292
+ const formatOpt = opts.validateFormats
293
+ opts.validateFormats = false
294
+
295
+ this.RULES = getRules()
296
+ checkOptions.call(this, removedOptions, opts, "NOT SUPPORTED")
297
+ checkOptions.call(this, deprecatedOptions, opts, "DEPRECATED", "warn")
298
+ this._metaOpts = getMetaSchemaOptions.call(this)
299
+
300
+ if (opts.formats) addInitialFormats.call(this)
301
+ this._addVocabularies()
302
+ this._addDefaultMetaSchema()
303
+ if (opts.keywords) addInitialKeywords.call(this, opts.keywords)
304
+ if (typeof opts.meta == "object") this.addMetaSchema(opts.meta)
305
+ addInitialSchemas.call(this)
306
+ opts.validateFormats = formatOpt
307
+ }
308
+
309
+ _addVocabularies(): void {
310
+ this.addKeyword("$async")
311
+ }
312
+
313
+ _addDefaultMetaSchema(): void {
314
+ const {$data, meta, schemaId} = this.opts
315
+ let _dataRefSchema: SchemaObject = $dataRefSchema
316
+ if (schemaId === "id") {
317
+ _dataRefSchema = {...$dataRefSchema}
318
+ _dataRefSchema.id = _dataRefSchema.$id
319
+ delete _dataRefSchema.$id
320
+ }
321
+ if (meta && $data) this.addMetaSchema(_dataRefSchema, _dataRefSchema[schemaId], false)
322
+ }
323
+
324
+ defaultMeta(): string | AnySchemaObject | undefined {
325
+ const {meta, schemaId} = this.opts
326
+ return (this.opts.defaultMeta = typeof meta == "object" ? meta[schemaId] || meta : undefined)
327
+ }
328
+
329
+ // Validate data using schema
330
+ // AnySchema will be compiled and cached using schema itself as a key for Map
331
+ validate(schema: Schema | string, data: unknown): boolean
332
+ validate(schemaKeyRef: AnySchema | string, data: unknown): boolean | Promise<unknown>
333
+ validate<T>(schema: Schema | JSONSchemaType<T> | string, data: unknown): data is T
334
+ // Separated for type inference to work
335
+ // eslint-disable-next-line @typescript-eslint/unified-signatures
336
+ validate<T>(schema: JTDSchemaType<T>, data: unknown): data is T
337
+ // This overload is only intended for typescript inference, the first
338
+ // argument prevents manual type annotation from matching this overload
339
+ validate<N extends never, T extends SomeJTDSchemaType>(
340
+ schema: T,
341
+ data: unknown
342
+ ): data is JTDDataType<T>
343
+ validate<T>(schema: AsyncSchema, data: unknown | T): Promise<T>
344
+ validate<T>(schemaKeyRef: AnySchema | string, data: unknown): data is T | Promise<T>
345
+ validate<T>(
346
+ schemaKeyRef: AnySchema | string, // key, ref or schema object
347
+ data: unknown | T // to be validated
348
+ ): boolean | Promise<T> {
349
+ let v: AnyValidateFunction | undefined
350
+ if (typeof schemaKeyRef == "string") {
351
+ v = this.getSchema<T>(schemaKeyRef)
352
+ if (!v) throw new Error(`no schema with key or ref "${schemaKeyRef}"`)
353
+ } else {
354
+ v = this.compile<T>(schemaKeyRef)
355
+ }
356
+
357
+ const valid = v(data)
358
+ if (!("$async" in v)) this.errors = v.errors
359
+ return valid
360
+ }
361
+
362
+ // Create validation function for passed schema
363
+ // _meta: true if schema is a meta-schema. Used internally to compile meta schemas of user-defined keywords.
364
+ compile<T = unknown>(schema: Schema | JSONSchemaType<T>, _meta?: boolean): ValidateFunction<T>
365
+ // Separated for type inference to work
366
+ // eslint-disable-next-line @typescript-eslint/unified-signatures
367
+ compile<T = unknown>(schema: JTDSchemaType<T>, _meta?: boolean): ValidateFunction<T>
368
+ // This overload is only intended for typescript inference, the first
369
+ // argument prevents manual type annotation from matching this overload
370
+ compile<N extends never, T extends SomeJTDSchemaType>(
371
+ schema: T,
372
+ _meta?: boolean
373
+ ): ValidateFunction<JTDDataType<T>>
374
+ compile<T = unknown>(schema: AsyncSchema, _meta?: boolean): AsyncValidateFunction<T>
375
+ compile<T = unknown>(schema: AnySchema, _meta?: boolean): AnyValidateFunction<T>
376
+ compile<T = unknown>(schema: AnySchema, _meta?: boolean): AnyValidateFunction<T> {
377
+ const sch = this._addSchema(schema, _meta)
378
+ return (sch.validate || this._compileSchemaEnv(sch)) as AnyValidateFunction<T>
379
+ }
380
+
381
+ // Creates validating function for passed schema with asynchronous loading of missing schemas.
382
+ // `loadSchema` option should be a function that accepts schema uri and returns promise that resolves with the schema.
383
+ // TODO allow passing schema URI
384
+ // meta - optional true to compile meta-schema
385
+ compileAsync<T = unknown>(
386
+ schema: SchemaObject | JSONSchemaType<T>,
387
+ _meta?: boolean
388
+ ): Promise<ValidateFunction<T>>
389
+ // Separated for type inference to work
390
+ // eslint-disable-next-line @typescript-eslint/unified-signatures
391
+ compileAsync<T = unknown>(schema: JTDSchemaType<T>, _meta?: boolean): Promise<ValidateFunction<T>>
392
+ compileAsync<T = unknown>(schema: AsyncSchema, meta?: boolean): Promise<AsyncValidateFunction<T>>
393
+ // eslint-disable-next-line @typescript-eslint/unified-signatures
394
+ compileAsync<T = unknown>(
395
+ schema: AnySchemaObject,
396
+ meta?: boolean
397
+ ): Promise<AnyValidateFunction<T>>
398
+ compileAsync<T = unknown>(
399
+ schema: AnySchemaObject,
400
+ meta?: boolean
401
+ ): Promise<AnyValidateFunction<T>> {
402
+ if (typeof this.opts.loadSchema != "function") {
403
+ throw new Error("options.loadSchema should be a function")
404
+ }
405
+ const {loadSchema} = this.opts
406
+ return runCompileAsync.call(this, schema, meta)
407
+
408
+ async function runCompileAsync(
409
+ this: Ajv,
410
+ _schema: AnySchemaObject,
411
+ _meta?: boolean
412
+ ): Promise<AnyValidateFunction> {
413
+ await loadMetaSchema.call(this, _schema.$schema)
414
+ const sch = this._addSchema(_schema, _meta)
415
+ return sch.validate || _compileAsync.call(this, sch)
416
+ }
417
+
418
+ async function loadMetaSchema(this: Ajv, $ref?: string): Promise<void> {
419
+ if ($ref && !this.getSchema($ref)) {
420
+ await runCompileAsync.call(this, {$ref}, true)
421
+ }
422
+ }
423
+
424
+ async function _compileAsync(this: Ajv, sch: SchemaEnv): Promise<AnyValidateFunction> {
425
+ try {
426
+ return this._compileSchemaEnv(sch)
427
+ } catch (e) {
428
+ if (!(e instanceof MissingRefError)) throw e
429
+ checkLoaded.call(this, e)
430
+ await loadMissingSchema.call(this, e.missingSchema)
431
+ return _compileAsync.call(this, sch)
432
+ }
433
+ }
434
+
435
+ function checkLoaded(this: Ajv, {missingSchema: ref, missingRef}: MissingRefError): void {
436
+ if (this.refs[ref]) {
437
+ throw new Error(`AnySchema ${ref} is loaded but ${missingRef} cannot be resolved`)
438
+ }
439
+ }
440
+
441
+ async function loadMissingSchema(this: Ajv, ref: string): Promise<void> {
442
+ const _schema = await _loadSchema.call(this, ref)
443
+ if (!this.refs[ref]) await loadMetaSchema.call(this, _schema.$schema)
444
+ if (!this.refs[ref]) this.addSchema(_schema, ref, meta)
445
+ }
446
+
447
+ async function _loadSchema(this: Ajv, ref: string): Promise<AnySchemaObject> {
448
+ const p = this._loading[ref]
449
+ if (p) return p
450
+ try {
451
+ return await (this._loading[ref] = loadSchema(ref))
452
+ } finally {
453
+ delete this._loading[ref]
454
+ }
455
+ }
456
+ }
457
+
458
+ // Adds schema to the instance
459
+ addSchema(
460
+ schema: AnySchema | AnySchema[], // If array is passed, `key` will be ignored
461
+ key?: string, // Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`.
462
+ _meta?: boolean, // true if schema is a meta-schema. Used internally, addMetaSchema should be used instead.
463
+ _validateSchema = this.opts.validateSchema // false to skip schema validation. Used internally, option validateSchema should be used instead.
464
+ ): Ajv {
465
+ if (Array.isArray(schema)) {
466
+ for (const sch of schema) this.addSchema(sch, undefined, _meta, _validateSchema)
467
+ return this
468
+ }
469
+ let id: string | undefined
470
+ if (typeof schema === "object") {
471
+ const {schemaId} = this.opts
472
+ id = schema[schemaId]
473
+ if (id !== undefined && typeof id != "string") {
474
+ throw new Error(`schema ${schemaId} must be string`)
475
+ }
476
+ }
477
+ key = normalizeId(key || id)
478
+ this._checkUnique(key)
479
+ this.schemas[key] = this._addSchema(schema, _meta, key, _validateSchema, true)
480
+ return this
481
+ }
482
+
483
+ // Add schema that will be used to validate other schemas
484
+ // options in META_IGNORE_OPTIONS are alway set to false
485
+ addMetaSchema(
486
+ schema: AnySchemaObject,
487
+ key?: string, // schema key
488
+ _validateSchema = this.opts.validateSchema // false to skip schema validation, can be used to override validateSchema option for meta-schema
489
+ ): Ajv {
490
+ this.addSchema(schema, key, true, _validateSchema)
491
+ return this
492
+ }
493
+
494
+ // Validate schema against its meta-schema
495
+ validateSchema(schema: AnySchema, throwOrLogError?: boolean): boolean | Promise<unknown> {
496
+ if (typeof schema == "boolean") return true
497
+ let $schema: string | AnySchemaObject | undefined
498
+ $schema = schema.$schema
499
+ if ($schema !== undefined && typeof $schema != "string") {
500
+ throw new Error("$schema must be a string")
501
+ }
502
+ $schema = $schema || this.opts.defaultMeta || this.defaultMeta()
503
+ if (!$schema) {
504
+ this.logger.warn("meta-schema not available")
505
+ this.errors = null
506
+ return true
507
+ }
508
+ const valid = this.validate($schema, schema)
509
+ if (!valid && throwOrLogError) {
510
+ const message = "schema is invalid: " + this.errorsText()
511
+ if (this.opts.validateSchema === "log") this.logger.error(message)
512
+ else throw new Error(message)
513
+ }
514
+ return valid
515
+ }
516
+
517
+ // Get compiled schema by `key` or `ref`.
518
+ // (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id)
519
+ getSchema<T = unknown>(keyRef: string): AnyValidateFunction<T> | undefined {
520
+ let sch
521
+ while (typeof (sch = getSchEnv.call(this, keyRef)) == "string") keyRef = sch
522
+ if (sch === undefined) {
523
+ const {schemaId} = this.opts
524
+ const root = new SchemaEnv({schema: {}, schemaId})
525
+ sch = resolveSchema.call(this, root, keyRef)
526
+ if (!sch) return
527
+ this.refs[keyRef] = sch
528
+ }
529
+ return (sch.validate || this._compileSchemaEnv(sch)) as AnyValidateFunction<T> | undefined
530
+ }
531
+
532
+ // Remove cached schema(s).
533
+ // If no parameter is passed all schemas but meta-schemas are removed.
534
+ // If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed.
535
+ // Even if schema is referenced by other schemas it still can be removed as other schemas have local references.
536
+ removeSchema(schemaKeyRef?: AnySchema | string | RegExp): Ajv {
537
+ if (schemaKeyRef instanceof RegExp) {
538
+ this._removeAllSchemas(this.schemas, schemaKeyRef)
539
+ this._removeAllSchemas(this.refs, schemaKeyRef)
540
+ return this
541
+ }
542
+ switch (typeof schemaKeyRef) {
543
+ case "undefined":
544
+ this._removeAllSchemas(this.schemas)
545
+ this._removeAllSchemas(this.refs)
546
+ this._cache.clear()
547
+ return this
548
+ case "string": {
549
+ const sch = getSchEnv.call(this, schemaKeyRef)
550
+ if (typeof sch == "object") this._cache.delete(sch.schema)
551
+ delete this.schemas[schemaKeyRef]
552
+ delete this.refs[schemaKeyRef]
553
+ return this
554
+ }
555
+ case "object": {
556
+ const cacheKey = schemaKeyRef
557
+ this._cache.delete(cacheKey)
558
+ let id = schemaKeyRef[this.opts.schemaId]
559
+ if (id) {
560
+ id = normalizeId(id)
561
+ delete this.schemas[id]
562
+ delete this.refs[id]
563
+ }
564
+ return this
565
+ }
566
+ default:
567
+ throw new Error("ajv.removeSchema: invalid parameter")
568
+ }
569
+ }
570
+
571
+ // add "vocabulary" - a collection of keywords
572
+ addVocabulary(definitions: Vocabulary): Ajv {
573
+ for (const def of definitions) this.addKeyword(def)
574
+ return this
575
+ }
576
+
577
+ addKeyword(
578
+ kwdOrDef: string | KeywordDefinition,
579
+ def?: KeywordDefinition // deprecated
580
+ ): Ajv {
581
+ let keyword: string | string[]
582
+ if (typeof kwdOrDef == "string") {
583
+ keyword = kwdOrDef
584
+ if (typeof def == "object") {
585
+ this.logger.warn("these parameters are deprecated, see docs for addKeyword")
586
+ def.keyword = keyword
587
+ }
588
+ } else if (typeof kwdOrDef == "object" && def === undefined) {
589
+ def = kwdOrDef
590
+ keyword = def.keyword
591
+ if (Array.isArray(keyword) && !keyword.length) {
592
+ throw new Error("addKeywords: keyword must be string or non-empty array")
593
+ }
594
+ } else {
595
+ throw new Error("invalid addKeywords parameters")
596
+ }
597
+
598
+ checkKeyword.call(this, keyword, def)
599
+ if (!def) {
600
+ eachItem(keyword, (kwd) => addRule.call(this, kwd))
601
+ return this
602
+ }
603
+ keywordMetaschema.call(this, def)
604
+ const definition: AddedKeywordDefinition = {
605
+ ...def,
606
+ type: getJSONTypes(def.type),
607
+ schemaType: getJSONTypes(def.schemaType),
608
+ }
609
+ eachItem(
610
+ keyword,
611
+ definition.type.length === 0
612
+ ? (k) => addRule.call(this, k, definition)
613
+ : (k) => definition.type.forEach((t) => addRule.call(this, k, definition, t))
614
+ )
615
+ return this
616
+ }
617
+
618
+ getKeyword(keyword: string): AddedKeywordDefinition | boolean {
619
+ const rule = this.RULES.all[keyword]
620
+ return typeof rule == "object" ? rule.definition : !!rule
621
+ }
622
+
623
+ // Remove keyword
624
+ removeKeyword(keyword: string): Ajv {
625
+ // TODO return type should be Ajv
626
+ const {RULES} = this
627
+ delete RULES.keywords[keyword]
628
+ delete RULES.all[keyword]
629
+ for (const group of RULES.rules) {
630
+ const i = group.rules.findIndex((rule) => rule.keyword === keyword)
631
+ if (i >= 0) group.rules.splice(i, 1)
632
+ }
633
+ return this
634
+ }
635
+
636
+ // Add format
637
+ addFormat(name: string, format: Format): Ajv {
638
+ if (typeof format == "string") format = new RegExp(format)
639
+ this.formats[name] = format
640
+ return this
641
+ }
642
+
643
+ errorsText(
644
+ errors: ErrorObject[] | null | undefined = this.errors, // optional array of validation errors
645
+ {separator = ", ", dataVar = "data"}: ErrorsTextOptions = {} // optional options with properties `separator` and `dataVar`
646
+ ): string {
647
+ if (!errors || errors.length === 0) return "No errors"
648
+ return errors
649
+ .map((e) => `${dataVar}${e.instancePath} ${e.message}`)
650
+ .reduce((text, msg) => text + separator + msg)
651
+ }
652
+
653
+ $dataMetaSchema(metaSchema: AnySchemaObject, keywordsJsonPointers: string[]): AnySchemaObject {
654
+ const rules = this.RULES.all
655
+ metaSchema = JSON.parse(JSON.stringify(metaSchema))
656
+ for (const jsonPointer of keywordsJsonPointers) {
657
+ const segments = jsonPointer.split("/").slice(1) // first segment is an empty string
658
+ let keywords = metaSchema
659
+ for (const seg of segments) keywords = keywords[seg] as AnySchemaObject
660
+
661
+ for (const key in rules) {
662
+ const rule = rules[key]
663
+ if (typeof rule != "object") continue
664
+ const {$data} = rule.definition
665
+ const schema = keywords[key] as AnySchemaObject | undefined
666
+ if ($data && schema) keywords[key] = schemaOrData(schema)
667
+ }
668
+ }
669
+
670
+ return metaSchema
671
+ }
672
+
673
+ private _removeAllSchemas(schemas: {[Ref in string]?: SchemaEnv | string}, regex?: RegExp): void {
674
+ for (const keyRef in schemas) {
675
+ const sch = schemas[keyRef]
676
+ if (!regex || regex.test(keyRef)) {
677
+ if (typeof sch == "string") {
678
+ delete schemas[keyRef]
679
+ } else if (sch && !sch.meta) {
680
+ this._cache.delete(sch.schema)
681
+ delete schemas[keyRef]
682
+ }
683
+ }
684
+ }
685
+ }
686
+
687
+ _addSchema(
688
+ schema: AnySchema,
689
+ meta?: boolean,
690
+ baseId?: string,
691
+ validateSchema = this.opts.validateSchema,
692
+ addSchema = this.opts.addUsedSchema
693
+ ): SchemaEnv {
694
+ let id: string | undefined
695
+ const {schemaId} = this.opts
696
+ if (typeof schema == "object") {
697
+ id = schema[schemaId]
698
+ } else {
699
+ if (this.opts.jtd) throw new Error("schema must be object")
700
+ else if (typeof schema != "boolean") throw new Error("schema must be object or boolean")
701
+ }
702
+ let sch = this._cache.get(schema)
703
+ if (sch !== undefined) return sch
704
+
705
+ baseId = normalizeId(id || baseId)
706
+ const localRefs = getSchemaRefs.call(this, schema, baseId)
707
+ sch = new SchemaEnv({schema, schemaId, meta, baseId, localRefs})
708
+ this._cache.set(sch.schema, sch)
709
+ if (addSchema && !baseId.startsWith("#")) {
710
+ // TODO atm it is allowed to overwrite schemas without id (instead of not adding them)
711
+ if (baseId) this._checkUnique(baseId)
712
+ this.refs[baseId] = sch
713
+ }
714
+ if (validateSchema) this.validateSchema(schema, true)
715
+ return sch
716
+ }
717
+
718
+ private _checkUnique(id: string): void {
719
+ if (this.schemas[id] || this.refs[id]) {
720
+ throw new Error(`schema with key or id "${id}" already exists`)
721
+ }
722
+ }
723
+
724
+ private _compileSchemaEnv(sch: SchemaEnv): AnyValidateFunction {
725
+ if (sch.meta) this._compileMetaSchema(sch)
726
+ else compileSchema.call(this, sch)
727
+
728
+ /* istanbul ignore if */
729
+ if (!sch.validate) throw new Error("ajv implementation error")
730
+ return sch.validate
731
+ }
732
+
733
+ private _compileMetaSchema(sch: SchemaEnv): void {
734
+ const currentOpts = this.opts
735
+ this.opts = this._metaOpts
736
+ try {
737
+ compileSchema.call(this, sch)
738
+ } finally {
739
+ this.opts = currentOpts
740
+ }
741
+ }
742
+ }
743
+
744
+ export interface ErrorsTextOptions {
745
+ separator?: string
746
+ dataVar?: string
747
+ }
748
+
749
+ function checkOptions(
750
+ this: Ajv,
751
+ checkOpts: OptionsInfo<RemovedOptions | DeprecatedOptions>,
752
+ options: Options & RemovedOptions,
753
+ msg: string,
754
+ log: "warn" | "error" = "error"
755
+ ): void {
756
+ for (const key in checkOpts) {
757
+ const opt = key as keyof typeof checkOpts
758
+ if (opt in options) this.logger[log](`${msg}: option ${key}. ${checkOpts[opt]}`)
759
+ }
760
+ }
761
+
762
+ function getSchEnv(this: Ajv, keyRef: string): SchemaEnv | string | undefined {
763
+ keyRef = normalizeId(keyRef) // TODO tests fail without this line
764
+ return this.schemas[keyRef] || this.refs[keyRef]
765
+ }
766
+
767
+ function addInitialSchemas(this: Ajv): void {
768
+ const optsSchemas = this.opts.schemas
769
+ if (!optsSchemas) return
770
+ if (Array.isArray(optsSchemas)) this.addSchema(optsSchemas)
771
+ else for (const key in optsSchemas) this.addSchema(optsSchemas[key] as AnySchema, key)
772
+ }
773
+
774
+ function addInitialFormats(this: Ajv): void {
775
+ for (const name in this.opts.formats) {
776
+ const format = this.opts.formats[name]
777
+ if (format) this.addFormat(name, format)
778
+ }
779
+ }
780
+
781
+ function addInitialKeywords(
782
+ this: Ajv,
783
+ defs: Vocabulary | {[K in string]?: KeywordDefinition}
784
+ ): void {
785
+ if (Array.isArray(defs)) {
786
+ this.addVocabulary(defs)
787
+ return
788
+ }
789
+ this.logger.warn("keywords option as map is deprecated, pass array")
790
+ for (const keyword in defs) {
791
+ const def = defs[keyword] as KeywordDefinition
792
+ if (!def.keyword) def.keyword = keyword
793
+ this.addKeyword(def)
794
+ }
795
+ }
796
+
797
+ function getMetaSchemaOptions(this: Ajv): InstanceOptions {
798
+ const metaOpts = {...this.opts}
799
+ for (const opt of META_IGNORE_OPTIONS) delete metaOpts[opt]
800
+ return metaOpts
801
+ }
802
+
803
+ const noLogs = {log() {}, warn() {}, error() {}}
804
+
805
+ function getLogger(logger?: Partial<Logger> | false): Logger {
806
+ if (logger === false) return noLogs
807
+ if (logger === undefined) return console
808
+ if (logger.log && logger.warn && logger.error) return logger as Logger
809
+ throw new Error("logger must implement log, warn and error methods")
810
+ }
811
+
812
+ const KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i
813
+
814
+ function checkKeyword(this: Ajv, keyword: string | string[], def?: KeywordDefinition): void {
815
+ const {RULES} = this
816
+ eachItem(keyword, (kwd) => {
817
+ if (RULES.keywords[kwd]) throw new Error(`Keyword ${kwd} is already defined`)
818
+ if (!KEYWORD_NAME.test(kwd)) throw new Error(`Keyword ${kwd} has invalid name`)
819
+ })
820
+ if (!def) return
821
+ if (def.$data && !("code" in def || "validate" in def)) {
822
+ throw new Error('$data keyword must have "code" or "validate" function')
823
+ }
824
+ }
825
+
826
+ function addRule(
827
+ this: Ajv,
828
+ keyword: string,
829
+ definition?: AddedKeywordDefinition,
830
+ dataType?: JSONType
831
+ ): void {
832
+ const post = definition?.post
833
+ if (dataType && post) throw new Error('keyword with "post" flag cannot have "type"')
834
+ const {RULES} = this
835
+ let ruleGroup = post ? RULES.post : RULES.rules.find(({type: t}) => t === dataType)
836
+ if (!ruleGroup) {
837
+ ruleGroup = {type: dataType, rules: []}
838
+ RULES.rules.push(ruleGroup)
839
+ }
840
+ RULES.keywords[keyword] = true
841
+ if (!definition) return
842
+
843
+ const rule: Rule = {
844
+ keyword,
845
+ definition: {
846
+ ...definition,
847
+ type: getJSONTypes(definition.type),
848
+ schemaType: getJSONTypes(definition.schemaType),
849
+ },
850
+ }
851
+ if (definition.before) addBeforeRule.call(this, ruleGroup, rule, definition.before)
852
+ else ruleGroup.rules.push(rule)
853
+ RULES.all[keyword] = rule
854
+ definition.implements?.forEach((kwd) => this.addKeyword(kwd))
855
+ }
856
+
857
+ function addBeforeRule(this: Ajv, ruleGroup: RuleGroup, rule: Rule, before: string): void {
858
+ const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before)
859
+ if (i >= 0) {
860
+ ruleGroup.rules.splice(i, 0, rule)
861
+ } else {
862
+ ruleGroup.rules.push(rule)
863
+ this.logger.warn(`rule ${before} is not defined`)
864
+ }
865
+ }
866
+
867
+ function keywordMetaschema(this: Ajv, def: KeywordDefinition): void {
868
+ let {metaSchema} = def
869
+ if (metaSchema === undefined) return
870
+ if (def.$data && this.opts.$data) metaSchema = schemaOrData(metaSchema)
871
+ def.validateSchema = this.compile(metaSchema, true)
872
+ }
873
+
874
+ const $dataRef = {
875
+ $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
876
+ }
877
+
878
+ function schemaOrData(schema: AnySchema): AnySchemaObject {
879
+ return {anyOf: [schema, $dataRef]}
880
+ }