@aws-amplify/graphql-api-construct 1.18.3 → 1.18.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (971) hide show
  1. package/.jsii +162 -187
  2. package/CHANGELOG.md +4 -0
  3. package/jest.config.js +0 -7
  4. package/lib/amplify-dynamodb-table-wrapper.js +1 -1
  5. package/lib/amplify-graphql-api.js +1 -1
  6. package/lib/amplify-graphql-definition.js +1 -1
  7. package/lib/index.js +23 -1
  8. package/lib/sql-model-datasource-strategy.js +1 -1
  9. package/lib/types.js +11 -1
  10. package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +4 -0
  11. package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +10 -10
  12. package/node_modules/@aws-amplify/graphql-conversation-transformer/CHANGELOG.md +4 -0
  13. package/node_modules/@aws-amplify/graphql-conversation-transformer/package.json +7 -7
  14. package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +4 -0
  15. package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +5 -5
  16. package/node_modules/@aws-amplify/graphql-directives/package.json +1 -2
  17. package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +4 -0
  18. package/node_modules/@aws-amplify/graphql-function-transformer/package.json +4 -4
  19. package/node_modules/@aws-amplify/graphql-generation-transformer/CHANGELOG.md +4 -0
  20. package/node_modules/@aws-amplify/graphql-generation-transformer/package.json +4 -4
  21. package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +4 -0
  22. package/node_modules/@aws-amplify/graphql-http-transformer/package.json +4 -4
  23. package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +4 -0
  24. package/node_modules/@aws-amplify/graphql-index-transformer/package.json +5 -5
  25. package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +4 -0
  26. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
  27. package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +8 -8
  28. package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +4 -0
  29. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
  30. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
  31. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
  32. package/node_modules/@aws-amplify/graphql-model-transformer/package.json +4 -4
  33. package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +4 -0
  34. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
  35. package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +4 -4
  36. package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +4 -0
  37. package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +6 -6
  38. package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +4 -0
  39. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
  40. package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +5 -5
  41. package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +4 -0
  42. package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +5 -5
  43. package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +4 -0
  44. package/node_modules/@aws-amplify/graphql-transformer/package.json +17 -17
  45. package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +4 -0
  46. package/node_modules/@aws-amplify/graphql-transformer-core/package.json +2 -3
  47. package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +1 -2
  48. package/node_modules/graphql-mapping-template/package.json +1 -2
  49. package/node_modules/graphql-transformer-common/package.json +1 -2
  50. package/package.json +18 -68
  51. package/src/index.ts +33 -0
  52. package/src/types.ts +100 -0
  53. package/node_modules/@aws-amplify/graphql-directives/LICENSE +0 -201
  54. package/node_modules/@aws-amplify/graphql-transformer-interfaces/LICENSE +0 -201
  55. package/node_modules/@aws-cdk/assert/BUILD.md +0 -15
  56. package/node_modules/@aws-cdk/assert/LICENSE +0 -201
  57. package/node_modules/@aws-cdk/assert/NOTICE +0 -2
  58. package/node_modules/@aws-cdk/assert/README.md +0 -228
  59. package/node_modules/@aws-cdk/assert/clone.sh +0 -29
  60. package/node_modules/@aws-cdk/assert/jest.d.ts +0 -14
  61. package/node_modules/@aws-cdk/assert/jest.js +0 -57
  62. package/node_modules/@aws-cdk/assert/lib/assertion.d.ts +0 -17
  63. package/node_modules/@aws-cdk/assert/lib/assertion.js +0 -31
  64. package/node_modules/@aws-cdk/assert/lib/assertions/and-assertion.d.ts +0 -10
  65. package/node_modules/@aws-cdk/assert/lib/assertions/and-assertion.js +0 -21
  66. package/node_modules/@aws-cdk/assert/lib/assertions/count-resources.d.ts +0 -10
  67. package/node_modules/@aws-cdk/assert/lib/assertions/count-resources.js +0 -54
  68. package/node_modules/@aws-cdk/assert/lib/assertions/exist.d.ts +0 -3
  69. package/node_modules/@aws-cdk/assert/lib/assertions/exist.js +0 -18
  70. package/node_modules/@aws-cdk/assert/lib/assertions/have-output.d.ts +0 -29
  71. package/node_modules/@aws-cdk/assert/lib/assertions/have-output.js +0 -77
  72. package/node_modules/@aws-cdk/assert/lib/assertions/have-resource-matchers.d.ts +0 -123
  73. package/node_modules/@aws-cdk/assert/lib/assertions/have-resource-matchers.js +0 -404
  74. package/node_modules/@aws-cdk/assert/lib/assertions/have-resource.d.ts +0 -69
  75. package/node_modules/@aws-cdk/assert/lib/assertions/have-resource.js +0 -130
  76. package/node_modules/@aws-cdk/assert/lib/assertions/have-type.d.ts +0 -3
  77. package/node_modules/@aws-cdk/assert/lib/assertions/have-type.js +0 -22
  78. package/node_modules/@aws-cdk/assert/lib/assertions/match-template.d.ts +0 -19
  79. package/node_modules/@aws-cdk/assert/lib/assertions/match-template.js +0 -98
  80. package/node_modules/@aws-cdk/assert/lib/assertions/negated-assertion.d.ts +0 -8
  81. package/node_modules/@aws-cdk/assert/lib/assertions/negated-assertion.js +0 -18
  82. package/node_modules/@aws-cdk/assert/lib/canonicalize-assets.d.ts +0 -11
  83. package/node_modules/@aws-cdk/assert/lib/canonicalize-assets.js +0 -70
  84. package/node_modules/@aws-cdk/assert/lib/expect.d.ts +0 -4
  85. package/node_modules/@aws-cdk/assert/lib/expect.js +0 -16
  86. package/node_modules/@aws-cdk/assert/lib/index.d.ts +0 -14
  87. package/node_modules/@aws-cdk/assert/lib/index.js +0 -27
  88. package/node_modules/@aws-cdk/assert/lib/inspector.d.ts +0 -31
  89. package/node_modules/@aws-cdk/assert/lib/inspector.js +0 -69
  90. package/node_modules/@aws-cdk/assert/lib/synth-utils.d.ts +0 -30
  91. package/node_modules/@aws-cdk/assert/lib/synth-utils.js +0 -92
  92. package/node_modules/@aws-cdk/assert/package.json +0 -77
  93. package/node_modules/@aws-cdk/cfnspec/CHANGELOG.md +0 -16795
  94. package/node_modules/@aws-cdk/cfnspec/LICENSE +0 -201
  95. package/node_modules/@aws-cdk/cfnspec/NOTICE +0 -2
  96. package/node_modules/@aws-cdk/cfnspec/README.md +0 -14
  97. package/node_modules/@aws-cdk/cfnspec/build-tools/build.d.ts +0 -1
  98. package/node_modules/@aws-cdk/cfnspec/build-tools/build.js +0 -37
  99. package/node_modules/@aws-cdk/cfnspec/build-tools/create-missing-libraries.d.ts +0 -6
  100. package/node_modules/@aws-cdk/cfnspec/build-tools/create-missing-libraries.js +0 -311
  101. package/node_modules/@aws-cdk/cfnspec/build-tools/massage-spec.d.ts +0 -10
  102. package/node_modules/@aws-cdk/cfnspec/build-tools/massage-spec.js +0 -70
  103. package/node_modules/@aws-cdk/cfnspec/build-tools/patch-set.d.ts +0 -25
  104. package/node_modules/@aws-cdk/cfnspec/build-tools/patch-set.js +0 -241
  105. package/node_modules/@aws-cdk/cfnspec/build-tools/report-issues.d.ts +0 -9
  106. package/node_modules/@aws-cdk/cfnspec/build-tools/report-issues.js +0 -72
  107. package/node_modules/@aws-cdk/cfnspec/build-tools/scrutiny.d.ts +0 -12
  108. package/node_modules/@aws-cdk/cfnspec/build-tools/scrutiny.js +0 -85
  109. package/node_modules/@aws-cdk/cfnspec/build-tools/spec-diff.d.ts +0 -1
  110. package/node_modules/@aws-cdk/cfnspec/build-tools/spec-diff.js +0 -248
  111. package/node_modules/@aws-cdk/cfnspec/build-tools/split-spec-by-service.d.ts +0 -1
  112. package/node_modules/@aws-cdk/cfnspec/build-tools/split-spec-by-service.js +0 -120
  113. package/node_modules/@aws-cdk/cfnspec/build-tools/template/LICENSE +0 -201
  114. package/node_modules/@aws-cdk/cfnspec/build-tools/template/NOTICE +0 -2
  115. package/node_modules/@aws-cdk/cfnspec/build-tools/update-cfnlint.sh +0 -18
  116. package/node_modules/@aws-cdk/cfnspec/build-tools/update-metrics.sh +0 -15
  117. package/node_modules/@aws-cdk/cfnspec/build-tools/update.sh +0 -113
  118. package/node_modules/@aws-cdk/cfnspec/build-tools/validate-cfn.d.ts +0 -67
  119. package/node_modules/@aws-cdk/cfnspec/build-tools/validate-cfn.js +0 -285
  120. package/node_modules/@aws-cdk/cfnspec/cfn.version +0 -1
  121. package/node_modules/@aws-cdk/cfnspec/lib/_private_schema/cfn-lint.d.ts +0 -24
  122. package/node_modules/@aws-cdk/cfnspec/lib/_private_schema/cfn-lint.js +0 -3
  123. package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_EC2_VPNConnection.json +0 -27
  124. package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_Lambda_Function.json +0 -27
  125. package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_RDS_DBCluster.json +0 -70
  126. package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_RDS_DBInstance.json +0 -37
  127. package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_SNS_Topic.json +0 -52
  128. package/node_modules/@aws-cdk/cfnspec/lib/augmentations/AWS_SQS_Queue.json +0 -53
  129. package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics/README.md +0 -168
  130. package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics/canned-metrics-schema.d.ts +0 -60
  131. package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics/canned-metrics-schema.js +0 -12
  132. package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics/services.json +0 -31957
  133. package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics.d.ts +0 -41
  134. package/node_modules/@aws-cdk/cfnspec/lib/canned-metrics.js +0 -75
  135. package/node_modules/@aws-cdk/cfnspec/lib/index.d.ts +0 -63
  136. package/node_modules/@aws-cdk/cfnspec/lib/index.js +0 -200
  137. package/node_modules/@aws-cdk/cfnspec/lib/schema/augmentation.d.ts +0 -87
  138. package/node_modules/@aws-cdk/cfnspec/lib/schema/augmentation.js +0 -28
  139. package/node_modules/@aws-cdk/cfnspec/lib/schema/base-types.d.ts +0 -14
  140. package/node_modules/@aws-cdk/cfnspec/lib/schema/base-types.js +0 -29
  141. package/node_modules/@aws-cdk/cfnspec/lib/schema/cfn-lint.d.ts +0 -13
  142. package/node_modules/@aws-cdk/cfnspec/lib/schema/cfn-lint.js +0 -3
  143. package/node_modules/@aws-cdk/cfnspec/lib/schema/docs.d.ts +0 -20
  144. package/node_modules/@aws-cdk/cfnspec/lib/schema/docs.js +0 -3
  145. package/node_modules/@aws-cdk/cfnspec/lib/schema/index.d.ts +0 -7
  146. package/node_modules/@aws-cdk/cfnspec/lib/schema/index.js +0 -20
  147. package/node_modules/@aws-cdk/cfnspec/lib/schema/property.d.ts +0 -179
  148. package/node_modules/@aws-cdk/cfnspec/lib/schema/property.js +0 -168
  149. package/node_modules/@aws-cdk/cfnspec/lib/schema/resource-type.d.ts +0 -118
  150. package/node_modules/@aws-cdk/cfnspec/lib/schema/resource-type.js +0 -99
  151. package/node_modules/@aws-cdk/cfnspec/lib/schema/specification.d.ts +0 -56
  152. package/node_modules/@aws-cdk/cfnspec/lib/schema/specification.js +0 -11
  153. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/CHANGELOG.md +0 -902
  154. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/LICENSE +0 -15
  155. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/README.md +0 -264
  156. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/copy/copy.js +0 -232
  157. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/copy/index.js +0 -6
  158. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/copy-sync/copy-sync.js +0 -166
  159. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/copy-sync/index.js +0 -5
  160. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/empty/index.js +0 -48
  161. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/ensure/file.js +0 -69
  162. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/ensure/index.js +0 -23
  163. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/ensure/link.js +0 -61
  164. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -99
  165. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -31
  166. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/ensure/symlink.js +0 -63
  167. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/fs/index.js +0 -130
  168. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/index.js +0 -27
  169. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/json/index.js +0 -16
  170. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/json/jsonfile.js +0 -11
  171. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/json/output-json-sync.js +0 -12
  172. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/json/output-json.js +0 -12
  173. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
  174. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -141
  175. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/move/index.js +0 -6
  176. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/move/move.js +0 -65
  177. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/move-sync/index.js +0 -5
  178. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/move-sync/move-sync.js +0 -47
  179. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/output/index.js +0 -40
  180. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/path-exists/index.js +0 -12
  181. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/remove/index.js +0 -9
  182. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/remove/rimraf.js +0 -302
  183. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/util/stat.js +0 -139
  184. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/lib/util/utimes.js +0 -26
  185. package/node_modules/@aws-cdk/cfnspec/node_modules/fs-extra/package.json +0 -70
  186. package/node_modules/@aws-cdk/cfnspec/node_modules/jsonfile/CHANGELOG.md +0 -171
  187. package/node_modules/@aws-cdk/cfnspec/node_modules/jsonfile/LICENSE +0 -15
  188. package/node_modules/@aws-cdk/cfnspec/node_modules/jsonfile/README.md +0 -230
  189. package/node_modules/@aws-cdk/cfnspec/node_modules/jsonfile/index.js +0 -88
  190. package/node_modules/@aws-cdk/cfnspec/node_modules/jsonfile/package.json +0 -40
  191. package/node_modules/@aws-cdk/cfnspec/node_modules/jsonfile/utils.js +0 -14
  192. package/node_modules/@aws-cdk/cfnspec/node_modules/universalify/LICENSE +0 -20
  193. package/node_modules/@aws-cdk/cfnspec/node_modules/universalify/README.md +0 -76
  194. package/node_modules/@aws-cdk/cfnspec/node_modules/universalify/index.js +0 -24
  195. package/node_modules/@aws-cdk/cfnspec/node_modules/universalify/package.json +0 -34
  196. package/node_modules/@aws-cdk/cfnspec/package.json +0 -63
  197. package/node_modules/@aws-cdk/cfnspec/spec/cfn-docs.json +0 -51044
  198. package/node_modules/@aws-cdk/cfnspec/spec/cfn-lint.json +0 -35
  199. package/node_modules/@aws-cdk/cfnspec/spec/specification.json +0 -148332
  200. package/node_modules/@aws-cdk/cloudformation-diff/LICENSE +0 -201
  201. package/node_modules/@aws-cdk/cloudformation-diff/NOTICE +0 -2
  202. package/node_modules/@aws-cdk/cloudformation-diff/README.md +0 -12
  203. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/index.d.ts +0 -9
  204. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/index.js +0 -94
  205. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/types.d.ts +0 -326
  206. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/types.js +0 -457
  207. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/util.d.ts +0 -41
  208. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff/util.js +0 -165
  209. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff-template.d.ts +0 -21
  210. package/node_modules/@aws-cdk/cloudformation-diff/lib/diff-template.js +0 -166
  211. package/node_modules/@aws-cdk/cloudformation-diff/lib/diffable.d.ts +0 -22
  212. package/node_modules/@aws-cdk/cloudformation-diff/lib/diffable.js +0 -47
  213. package/node_modules/@aws-cdk/cloudformation-diff/lib/format-table.d.ts +0 -6
  214. package/node_modules/@aws-cdk/cloudformation-diff/lib/format-table.js +0 -109
  215. package/node_modules/@aws-cdk/cloudformation-diff/lib/format.d.ts +0 -23
  216. package/node_modules/@aws-cdk/cloudformation-diff/lib/format.js +0 -414
  217. package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/iam-changes.d.ts +0 -62
  218. package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/iam-changes.js +0 -246
  219. package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/managed-policy.d.ts +0 -18
  220. package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/managed-policy.js +0 -29
  221. package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/statement.d.ts +0 -127
  222. package/node_modules/@aws-cdk/cloudformation-diff/lib/iam/statement.js +0 -268
  223. package/node_modules/@aws-cdk/cloudformation-diff/lib/index.d.ts +0 -4
  224. package/node_modules/@aws-cdk/cloudformation-diff/lib/index.js +0 -18
  225. package/node_modules/@aws-cdk/cloudformation-diff/lib/network/security-group-changes.d.ts +0 -32
  226. package/node_modules/@aws-cdk/cloudformation-diff/lib/network/security-group-changes.js +0 -95
  227. package/node_modules/@aws-cdk/cloudformation-diff/lib/network/security-group-rule.d.ts +0 -50
  228. package/node_modules/@aws-cdk/cloudformation-diff/lib/network/security-group-rule.js +0 -91
  229. package/node_modules/@aws-cdk/cloudformation-diff/lib/render-intrinsics.d.ts +0 -21
  230. package/node_modules/@aws-cdk/cloudformation-diff/lib/render-intrinsics.js +0 -79
  231. package/node_modules/@aws-cdk/cloudformation-diff/lib/util.d.ts +0 -7
  232. package/node_modules/@aws-cdk/cloudformation-diff/lib/util.js +0 -63
  233. package/node_modules/@aws-cdk/cloudformation-diff/package.json +0 -60
  234. package/node_modules/ajv/.runkit_example.js +0 -23
  235. package/node_modules/ajv/LICENSE +0 -22
  236. package/node_modules/ajv/README.md +0 -207
  237. package/node_modules/ajv/dist/2019.d.ts +0 -19
  238. package/node_modules/ajv/dist/2019.js +0 -61
  239. package/node_modules/ajv/dist/2019.js.map +0 -1
  240. package/node_modules/ajv/dist/2020.d.ts +0 -19
  241. package/node_modules/ajv/dist/2020.js +0 -55
  242. package/node_modules/ajv/dist/2020.js.map +0 -1
  243. package/node_modules/ajv/dist/ajv.d.ts +0 -18
  244. package/node_modules/ajv/dist/ajv.js +0 -50
  245. package/node_modules/ajv/dist/ajv.js.map +0 -1
  246. package/node_modules/ajv/dist/compile/codegen/code.d.ts +0 -40
  247. package/node_modules/ajv/dist/compile/codegen/code.js +0 -156
  248. package/node_modules/ajv/dist/compile/codegen/code.js.map +0 -1
  249. package/node_modules/ajv/dist/compile/codegen/index.d.ts +0 -79
  250. package/node_modules/ajv/dist/compile/codegen/index.js +0 -697
  251. package/node_modules/ajv/dist/compile/codegen/index.js.map +0 -1
  252. package/node_modules/ajv/dist/compile/codegen/scope.d.ts +0 -79
  253. package/node_modules/ajv/dist/compile/codegen/scope.js +0 -143
  254. package/node_modules/ajv/dist/compile/codegen/scope.js.map +0 -1
  255. package/node_modules/ajv/dist/compile/errors.d.ts +0 -13
  256. package/node_modules/ajv/dist/compile/errors.js +0 -123
  257. package/node_modules/ajv/dist/compile/errors.js.map +0 -1
  258. package/node_modules/ajv/dist/compile/index.d.ts +0 -80
  259. package/node_modules/ajv/dist/compile/index.js +0 -242
  260. package/node_modules/ajv/dist/compile/index.js.map +0 -1
  261. package/node_modules/ajv/dist/compile/jtd/parse.d.ts +0 -4
  262. package/node_modules/ajv/dist/compile/jtd/parse.js +0 -350
  263. package/node_modules/ajv/dist/compile/jtd/parse.js.map +0 -1
  264. package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +0 -4
  265. package/node_modules/ajv/dist/compile/jtd/serialize.js +0 -229
  266. package/node_modules/ajv/dist/compile/jtd/serialize.js.map +0 -1
  267. package/node_modules/ajv/dist/compile/jtd/types.d.ts +0 -6
  268. package/node_modules/ajv/dist/compile/jtd/types.js +0 -14
  269. package/node_modules/ajv/dist/compile/jtd/types.js.map +0 -1
  270. package/node_modules/ajv/dist/compile/names.d.ts +0 -20
  271. package/node_modules/ajv/dist/compile/names.js +0 -28
  272. package/node_modules/ajv/dist/compile/names.js.map +0 -1
  273. package/node_modules/ajv/dist/compile/ref_error.d.ts +0 -6
  274. package/node_modules/ajv/dist/compile/ref_error.js +0 -12
  275. package/node_modules/ajv/dist/compile/ref_error.js.map +0 -1
  276. package/node_modules/ajv/dist/compile/resolve.d.ts +0 -12
  277. package/node_modules/ajv/dist/compile/resolve.js +0 -155
  278. package/node_modules/ajv/dist/compile/resolve.js.map +0 -1
  279. package/node_modules/ajv/dist/compile/rules.d.ts +0 -28
  280. package/node_modules/ajv/dist/compile/rules.js +0 -26
  281. package/node_modules/ajv/dist/compile/rules.js.map +0 -1
  282. package/node_modules/ajv/dist/compile/util.d.ts +0 -40
  283. package/node_modules/ajv/dist/compile/util.js +0 -178
  284. package/node_modules/ajv/dist/compile/util.js.map +0 -1
  285. package/node_modules/ajv/dist/compile/validate/applicability.d.ts +0 -6
  286. package/node_modules/ajv/dist/compile/validate/applicability.js +0 -19
  287. package/node_modules/ajv/dist/compile/validate/applicability.js.map +0 -1
  288. package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +0 -4
  289. package/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -50
  290. package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +0 -1
  291. package/node_modules/ajv/dist/compile/validate/dataType.d.ts +0 -17
  292. package/node_modules/ajv/dist/compile/validate/dataType.js +0 -203
  293. package/node_modules/ajv/dist/compile/validate/dataType.js.map +0 -1
  294. package/node_modules/ajv/dist/compile/validate/defaults.d.ts +0 -2
  295. package/node_modules/ajv/dist/compile/validate/defaults.js +0 -35
  296. package/node_modules/ajv/dist/compile/validate/defaults.js.map +0 -1
  297. package/node_modules/ajv/dist/compile/validate/index.d.ts +0 -42
  298. package/node_modules/ajv/dist/compile/validate/index.js +0 -520
  299. package/node_modules/ajv/dist/compile/validate/index.js.map +0 -1
  300. package/node_modules/ajv/dist/compile/validate/keyword.d.ts +0 -8
  301. package/node_modules/ajv/dist/compile/validate/keyword.js +0 -124
  302. package/node_modules/ajv/dist/compile/validate/keyword.js.map +0 -1
  303. package/node_modules/ajv/dist/compile/validate/subschema.d.ts +0 -47
  304. package/node_modules/ajv/dist/compile/validate/subschema.js +0 -81
  305. package/node_modules/ajv/dist/compile/validate/subschema.js.map +0 -1
  306. package/node_modules/ajv/dist/core.d.ts +0 -173
  307. package/node_modules/ajv/dist/core.js +0 -618
  308. package/node_modules/ajv/dist/core.js.map +0 -1
  309. package/node_modules/ajv/dist/jtd.d.ts +0 -47
  310. package/node_modules/ajv/dist/jtd.js +0 -72
  311. package/node_modules/ajv/dist/jtd.js.map +0 -1
  312. package/node_modules/ajv/dist/refs/data.json +0 -13
  313. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +0 -2
  314. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +0 -28
  315. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +0 -1
  316. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +0 -53
  317. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +0 -17
  318. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +0 -57
  319. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +0 -14
  320. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +0 -37
  321. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +0 -90
  322. package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +0 -39
  323. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +0 -2
  324. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +0 -30
  325. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +0 -1
  326. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +0 -48
  327. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +0 -17
  328. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +0 -51
  329. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
  330. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +0 -37
  331. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
  332. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +0 -90
  333. package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +0 -55
  334. package/node_modules/ajv/dist/refs/json-schema-draft-06.json +0 -137
  335. package/node_modules/ajv/dist/refs/json-schema-draft-07.json +0 -151
  336. package/node_modules/ajv/dist/refs/json-schema-secure.json +0 -88
  337. package/node_modules/ajv/dist/refs/jtd-schema.d.ts +0 -3
  338. package/node_modules/ajv/dist/refs/jtd-schema.js +0 -118
  339. package/node_modules/ajv/dist/refs/jtd-schema.js.map +0 -1
  340. package/node_modules/ajv/dist/runtime/equal.d.ts +0 -6
  341. package/node_modules/ajv/dist/runtime/equal.js +0 -7
  342. package/node_modules/ajv/dist/runtime/equal.js.map +0 -1
  343. package/node_modules/ajv/dist/runtime/parseJson.d.ts +0 -18
  344. package/node_modules/ajv/dist/runtime/parseJson.js +0 -185
  345. package/node_modules/ajv/dist/runtime/parseJson.js.map +0 -1
  346. package/node_modules/ajv/dist/runtime/quote.d.ts +0 -5
  347. package/node_modules/ajv/dist/runtime/quote.js +0 -30
  348. package/node_modules/ajv/dist/runtime/quote.js.map +0 -1
  349. package/node_modules/ajv/dist/runtime/re2.d.ts +0 -6
  350. package/node_modules/ajv/dist/runtime/re2.js +0 -6
  351. package/node_modules/ajv/dist/runtime/re2.js.map +0 -1
  352. package/node_modules/ajv/dist/runtime/timestamp.d.ts +0 -5
  353. package/node_modules/ajv/dist/runtime/timestamp.js +0 -42
  354. package/node_modules/ajv/dist/runtime/timestamp.js.map +0 -1
  355. package/node_modules/ajv/dist/runtime/ucs2length.d.ts +0 -5
  356. package/node_modules/ajv/dist/runtime/ucs2length.js +0 -24
  357. package/node_modules/ajv/dist/runtime/ucs2length.js.map +0 -1
  358. package/node_modules/ajv/dist/runtime/uri.d.ts +0 -6
  359. package/node_modules/ajv/dist/runtime/uri.js +0 -6
  360. package/node_modules/ajv/dist/runtime/uri.js.map +0 -1
  361. package/node_modules/ajv/dist/runtime/validation_error.d.ts +0 -7
  362. package/node_modules/ajv/dist/runtime/validation_error.js +0 -11
  363. package/node_modules/ajv/dist/runtime/validation_error.js.map +0 -1
  364. package/node_modules/ajv/dist/standalone/index.d.ts +0 -6
  365. package/node_modules/ajv/dist/standalone/index.js +0 -90
  366. package/node_modules/ajv/dist/standalone/index.js.map +0 -1
  367. package/node_modules/ajv/dist/standalone/instance.d.ts +0 -12
  368. package/node_modules/ajv/dist/standalone/instance.js +0 -35
  369. package/node_modules/ajv/dist/standalone/instance.js.map +0 -1
  370. package/node_modules/ajv/dist/types/index.d.ts +0 -183
  371. package/node_modules/ajv/dist/types/index.js +0 -3
  372. package/node_modules/ajv/dist/types/index.js.map +0 -1
  373. package/node_modules/ajv/dist/types/json-schema.d.ts +0 -125
  374. package/node_modules/ajv/dist/types/json-schema.js +0 -3
  375. package/node_modules/ajv/dist/types/json-schema.js.map +0 -1
  376. package/node_modules/ajv/dist/types/jtd-schema.d.ts +0 -174
  377. package/node_modules/ajv/dist/types/jtd-schema.js +0 -3
  378. package/node_modules/ajv/dist/types/jtd-schema.js.map +0 -1
  379. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +0 -8
  380. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -49
  381. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +0 -1
  382. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +0 -6
  383. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -106
  384. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +0 -1
  385. package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +0 -3
  386. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -23
  387. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +0 -1
  388. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +0 -4
  389. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -12
  390. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +0 -1
  391. package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +0 -7
  392. package/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -95
  393. package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +0 -1
  394. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +0 -21
  395. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -85
  396. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +0 -1
  397. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +0 -3
  398. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +0 -11
  399. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +0 -1
  400. package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +0 -6
  401. package/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -66
  402. package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +0 -1
  403. package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +0 -13
  404. package/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -44
  405. package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +0 -1
  406. package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +0 -5
  407. package/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -52
  408. package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +0 -1
  409. package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +0 -6
  410. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -30
  411. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +0 -1
  412. package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +0 -4
  413. package/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -26
  414. package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +0 -1
  415. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +0 -6
  416. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -60
  417. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +0 -1
  418. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +0 -3
  419. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -75
  420. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +0 -1
  421. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +0 -3
  422. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -12
  423. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +0 -1
  424. package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +0 -3
  425. package/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -54
  426. package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +0 -1
  427. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +0 -6
  428. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -38
  429. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +0 -1
  430. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +0 -3
  431. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -13
  432. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +0 -1
  433. package/node_modules/ajv/dist/vocabularies/code.d.ts +0 -17
  434. package/node_modules/ajv/dist/vocabularies/code.js +0 -131
  435. package/node_modules/ajv/dist/vocabularies/code.js.map +0 -1
  436. package/node_modules/ajv/dist/vocabularies/core/id.d.ts +0 -3
  437. package/node_modules/ajv/dist/vocabularies/core/id.js +0 -10
  438. package/node_modules/ajv/dist/vocabularies/core/id.js.map +0 -1
  439. package/node_modules/ajv/dist/vocabularies/core/index.d.ts +0 -3
  440. package/node_modules/ajv/dist/vocabularies/core/index.js +0 -16
  441. package/node_modules/ajv/dist/vocabularies/core/index.js.map +0 -1
  442. package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +0 -8
  443. package/node_modules/ajv/dist/vocabularies/core/ref.js +0 -122
  444. package/node_modules/ajv/dist/vocabularies/core/ref.js.map +0 -1
  445. package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +0 -5
  446. package/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -104
  447. package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +0 -1
  448. package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +0 -10
  449. package/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -9
  450. package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +0 -1
  451. package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +0 -3
  452. package/node_modules/ajv/dist/vocabularies/draft2020.js +0 -23
  453. package/node_modules/ajv/dist/vocabularies/draft2020.js.map +0 -1
  454. package/node_modules/ajv/dist/vocabularies/draft7.d.ts +0 -3
  455. package/node_modules/ajv/dist/vocabularies/draft7.js +0 -17
  456. package/node_modules/ajv/dist/vocabularies/draft7.js.map +0 -1
  457. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +0 -5
  458. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +0 -30
  459. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +0 -1
  460. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +0 -5
  461. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +0 -51
  462. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +0 -1
  463. package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +0 -3
  464. package/node_modules/ajv/dist/vocabularies/dynamic/index.js +0 -9
  465. package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +0 -1
  466. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +0 -3
  467. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +0 -16
  468. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +0 -1
  469. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +0 -3
  470. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +0 -10
  471. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +0 -1
  472. package/node_modules/ajv/dist/vocabularies/errors.d.ts +0 -9
  473. package/node_modules/ajv/dist/vocabularies/errors.js +0 -3
  474. package/node_modules/ajv/dist/vocabularies/errors.js.map +0 -1
  475. package/node_modules/ajv/dist/vocabularies/format/format.d.ts +0 -8
  476. package/node_modules/ajv/dist/vocabularies/format/format.js +0 -92
  477. package/node_modules/ajv/dist/vocabularies/format/format.js.map +0 -1
  478. package/node_modules/ajv/dist/vocabularies/format/index.d.ts +0 -3
  479. package/node_modules/ajv/dist/vocabularies/format/index.js +0 -6
  480. package/node_modules/ajv/dist/vocabularies/format/index.js.map +0 -1
  481. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +0 -6
  482. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +0 -71
  483. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +0 -1
  484. package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +0 -5
  485. package/node_modules/ajv/dist/vocabularies/jtd/elements.js +0 -24
  486. package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +0 -1
  487. package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +0 -6
  488. package/node_modules/ajv/dist/vocabularies/jtd/enum.js +0 -43
  489. package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +0 -1
  490. package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +0 -9
  491. package/node_modules/ajv/dist/vocabularies/jtd/error.js +0 -20
  492. package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +0 -1
  493. package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +0 -10
  494. package/node_modules/ajv/dist/vocabularies/jtd/index.js +0 -29
  495. package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +0 -1
  496. package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +0 -5
  497. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +0 -25
  498. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +0 -1
  499. package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +0 -4
  500. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +0 -22
  501. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +0 -1
  502. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +0 -3
  503. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +0 -15
  504. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +0 -1
  505. package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +0 -22
  506. package/node_modules/ajv/dist/vocabularies/jtd/properties.js +0 -149
  507. package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +0 -1
  508. package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +0 -4
  509. package/node_modules/ajv/dist/vocabularies/jtd/ref.js +0 -67
  510. package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +0 -1
  511. package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +0 -10
  512. package/node_modules/ajv/dist/vocabularies/jtd/type.js +0 -69
  513. package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +0 -1
  514. package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +0 -3
  515. package/node_modules/ajv/dist/vocabularies/jtd/union.js +0 -12
  516. package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +0 -1
  517. package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +0 -5
  518. package/node_modules/ajv/dist/vocabularies/jtd/values.js +0 -51
  519. package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +0 -1
  520. package/node_modules/ajv/dist/vocabularies/metadata.d.ts +0 -3
  521. package/node_modules/ajv/dist/vocabularies/metadata.js +0 -18
  522. package/node_modules/ajv/dist/vocabularies/metadata.js.map +0 -1
  523. package/node_modules/ajv/dist/vocabularies/next.d.ts +0 -3
  524. package/node_modules/ajv/dist/vocabularies/next.js +0 -8
  525. package/node_modules/ajv/dist/vocabularies/next.js.map +0 -1
  526. package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +0 -3
  527. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +0 -7
  528. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +0 -1
  529. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +0 -6
  530. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +0 -40
  531. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +0 -1
  532. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +0 -6
  533. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +0 -65
  534. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +0 -1
  535. package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +0 -6
  536. package/node_modules/ajv/dist/vocabularies/validation/const.js +0 -25
  537. package/node_modules/ajv/dist/vocabularies/validation/const.js.map +0 -1
  538. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +0 -5
  539. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +0 -12
  540. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +0 -1
  541. package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +0 -8
  542. package/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -48
  543. package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +0 -1
  544. package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +0 -16
  545. package/node_modules/ajv/dist/vocabularies/validation/index.js +0 -33
  546. package/node_modules/ajv/dist/vocabularies/validation/index.js.map +0 -1
  547. package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +0 -3
  548. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +0 -15
  549. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +0 -1
  550. package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +0 -3
  551. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -24
  552. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +0 -1
  553. package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +0 -3
  554. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -27
  555. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +0 -1
  556. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +0 -11
  557. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -27
  558. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +0 -1
  559. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +0 -3
  560. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -24
  561. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +0 -1
  562. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +0 -8
  563. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -26
  564. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +0 -1
  565. package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +0 -8
  566. package/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -24
  567. package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +0 -1
  568. package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +0 -8
  569. package/node_modules/ajv/dist/vocabularies/validation/required.js +0 -79
  570. package/node_modules/ajv/dist/vocabularies/validation/required.js.map +0 -1
  571. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +0 -9
  572. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -64
  573. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +0 -1
  574. package/node_modules/ajv/lib/2019.ts +0 -81
  575. package/node_modules/ajv/lib/2020.ts +0 -75
  576. package/node_modules/ajv/lib/ajv.ts +0 -70
  577. package/node_modules/ajv/lib/compile/codegen/code.ts +0 -169
  578. package/node_modules/ajv/lib/compile/codegen/index.ts +0 -852
  579. package/node_modules/ajv/lib/compile/codegen/scope.ts +0 -215
  580. package/node_modules/ajv/lib/compile/errors.ts +0 -184
  581. package/node_modules/ajv/lib/compile/index.ts +0 -324
  582. package/node_modules/ajv/lib/compile/jtd/parse.ts +0 -411
  583. package/node_modules/ajv/lib/compile/jtd/serialize.ts +0 -266
  584. package/node_modules/ajv/lib/compile/jtd/types.ts +0 -16
  585. package/node_modules/ajv/lib/compile/names.ts +0 -27
  586. package/node_modules/ajv/lib/compile/ref_error.ts +0 -13
  587. package/node_modules/ajv/lib/compile/resolve.ts +0 -149
  588. package/node_modules/ajv/lib/compile/rules.ts +0 -50
  589. package/node_modules/ajv/lib/compile/util.ts +0 -213
  590. package/node_modules/ajv/lib/compile/validate/applicability.ts +0 -22
  591. package/node_modules/ajv/lib/compile/validate/boolSchema.ts +0 -47
  592. package/node_modules/ajv/lib/compile/validate/dataType.ts +0 -230
  593. package/node_modules/ajv/lib/compile/validate/defaults.ts +0 -32
  594. package/node_modules/ajv/lib/compile/validate/index.ts +0 -582
  595. package/node_modules/ajv/lib/compile/validate/keyword.ts +0 -171
  596. package/node_modules/ajv/lib/compile/validate/subschema.ts +0 -135
  597. package/node_modules/ajv/lib/core.ts +0 -891
  598. package/node_modules/ajv/lib/jtd.ts +0 -132
  599. package/node_modules/ajv/lib/refs/data.json +0 -13
  600. package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +0 -28
  601. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +0 -53
  602. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +0 -17
  603. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +0 -57
  604. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +0 -14
  605. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +0 -37
  606. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +0 -90
  607. package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +0 -39
  608. package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +0 -30
  609. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +0 -48
  610. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +0 -17
  611. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +0 -51
  612. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
  613. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +0 -37
  614. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
  615. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +0 -90
  616. package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +0 -55
  617. package/node_modules/ajv/lib/refs/json-schema-draft-06.json +0 -137
  618. package/node_modules/ajv/lib/refs/json-schema-draft-07.json +0 -151
  619. package/node_modules/ajv/lib/refs/json-schema-secure.json +0 -88
  620. package/node_modules/ajv/lib/refs/jtd-schema.ts +0 -130
  621. package/node_modules/ajv/lib/runtime/equal.ts +0 -7
  622. package/node_modules/ajv/lib/runtime/parseJson.ts +0 -177
  623. package/node_modules/ajv/lib/runtime/quote.ts +0 -31
  624. package/node_modules/ajv/lib/runtime/re2.ts +0 -6
  625. package/node_modules/ajv/lib/runtime/timestamp.ts +0 -46
  626. package/node_modules/ajv/lib/runtime/ucs2length.ts +0 -20
  627. package/node_modules/ajv/lib/runtime/uri.ts +0 -6
  628. package/node_modules/ajv/lib/runtime/validation_error.ts +0 -13
  629. package/node_modules/ajv/lib/standalone/index.ts +0 -100
  630. package/node_modules/ajv/lib/standalone/instance.ts +0 -36
  631. package/node_modules/ajv/lib/types/index.ts +0 -244
  632. package/node_modules/ajv/lib/types/json-schema.ts +0 -187
  633. package/node_modules/ajv/lib/types/jtd-schema.ts +0 -273
  634. package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +0 -56
  635. package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +0 -118
  636. package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +0 -22
  637. package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +0 -14
  638. package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +0 -109
  639. package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +0 -112
  640. package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +0 -11
  641. package/node_modules/ajv/lib/vocabularies/applicator/if.ts +0 -80
  642. package/node_modules/ajv/lib/vocabularies/applicator/index.ts +0 -53
  643. package/node_modules/ajv/lib/vocabularies/applicator/items.ts +0 -59
  644. package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +0 -36
  645. package/node_modules/ajv/lib/vocabularies/applicator/not.ts +0 -38
  646. package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +0 -82
  647. package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +0 -91
  648. package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +0 -12
  649. package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +0 -57
  650. package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +0 -50
  651. package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +0 -13
  652. package/node_modules/ajv/lib/vocabularies/code.ts +0 -168
  653. package/node_modules/ajv/lib/vocabularies/core/id.ts +0 -10
  654. package/node_modules/ajv/lib/vocabularies/core/index.ts +0 -16
  655. package/node_modules/ajv/lib/vocabularies/core/ref.ts +0 -129
  656. package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +0 -113
  657. package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +0 -12
  658. package/node_modules/ajv/lib/vocabularies/draft2020.ts +0 -23
  659. package/node_modules/ajv/lib/vocabularies/draft7.ts +0 -17
  660. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +0 -31
  661. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +0 -51
  662. package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +0 -9
  663. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +0 -14
  664. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +0 -10
  665. package/node_modules/ajv/lib/vocabularies/errors.ts +0 -18
  666. package/node_modules/ajv/lib/vocabularies/format/format.ts +0 -120
  667. package/node_modules/ajv/lib/vocabularies/format/index.ts +0 -6
  668. package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +0 -89
  669. package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +0 -32
  670. package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +0 -45
  671. package/node_modules/ajv/lib/vocabularies/jtd/error.ts +0 -23
  672. package/node_modules/ajv/lib/vocabularies/jtd/index.ts +0 -37
  673. package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +0 -24
  674. package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +0 -21
  675. package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +0 -15
  676. package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +0 -184
  677. package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +0 -76
  678. package/node_modules/ajv/lib/vocabularies/jtd/type.ts +0 -75
  679. package/node_modules/ajv/lib/vocabularies/jtd/union.ts +0 -12
  680. package/node_modules/ajv/lib/vocabularies/jtd/values.ts +0 -58
  681. package/node_modules/ajv/lib/vocabularies/metadata.ts +0 -17
  682. package/node_modules/ajv/lib/vocabularies/next.ts +0 -8
  683. package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +0 -7
  684. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +0 -47
  685. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +0 -85
  686. package/node_modules/ajv/lib/vocabularies/validation/const.ts +0 -28
  687. package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +0 -23
  688. package/node_modules/ajv/lib/vocabularies/validation/enum.ts +0 -54
  689. package/node_modules/ajv/lib/vocabularies/validation/index.ts +0 -49
  690. package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +0 -16
  691. package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +0 -26
  692. package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +0 -30
  693. package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +0 -42
  694. package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +0 -26
  695. package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +0 -34
  696. package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +0 -28
  697. package/node_modules/ajv/lib/vocabularies/validation/required.ts +0 -98
  698. package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +0 -79
  699. package/node_modules/ajv/package.json +0 -126
  700. package/node_modules/ansi-regex/index.d.ts +0 -37
  701. package/node_modules/ansi-regex/index.js +0 -10
  702. package/node_modules/ansi-regex/license +0 -9
  703. package/node_modules/ansi-regex/package.json +0 -55
  704. package/node_modules/ansi-regex/readme.md +0 -78
  705. package/node_modules/ansi-styles/index.d.ts +0 -345
  706. package/node_modules/ansi-styles/index.js +0 -163
  707. package/node_modules/ansi-styles/license +0 -9
  708. package/node_modules/ansi-styles/package.json +0 -56
  709. package/node_modules/ansi-styles/readme.md +0 -152
  710. package/node_modules/astral-regex/index.d.ts +0 -28
  711. package/node_modules/astral-regex/index.js +0 -6
  712. package/node_modules/astral-regex/license +0 -9
  713. package/node_modules/astral-regex/package.json +0 -33
  714. package/node_modules/astral-regex/readme.md +0 -46
  715. package/node_modules/at-least-node/LICENSE +0 -6
  716. package/node_modules/at-least-node/README.md +0 -25
  717. package/node_modules/at-least-node/index.js +0 -5
  718. package/node_modules/at-least-node/package.json +0 -32
  719. package/node_modules/chalk/index.d.ts +0 -415
  720. package/node_modules/chalk/license +0 -9
  721. package/node_modules/chalk/package.json +0 -68
  722. package/node_modules/chalk/readme.md +0 -341
  723. package/node_modules/chalk/source/index.js +0 -229
  724. package/node_modules/chalk/source/templates.js +0 -134
  725. package/node_modules/chalk/source/util.js +0 -39
  726. package/node_modules/color-convert/CHANGELOG.md +0 -54
  727. package/node_modules/color-convert/LICENSE +0 -21
  728. package/node_modules/color-convert/README.md +0 -68
  729. package/node_modules/color-convert/conversions.js +0 -839
  730. package/node_modules/color-convert/index.js +0 -81
  731. package/node_modules/color-convert/package.json +0 -48
  732. package/node_modules/color-convert/route.js +0 -97
  733. package/node_modules/color-name/LICENSE +0 -8
  734. package/node_modules/color-name/README.md +0 -11
  735. package/node_modules/color-name/index.js +0 -152
  736. package/node_modules/color-name/package.json +0 -28
  737. package/node_modules/diff/CONTRIBUTING.md +0 -36
  738. package/node_modules/diff/LICENSE +0 -29
  739. package/node_modules/diff/README.md +0 -339
  740. package/node_modules/diff/dist/diff.js +0 -1730
  741. package/node_modules/diff/dist/diff.min.js +0 -1
  742. package/node_modules/diff/lib/convert/dmp.js +0 -32
  743. package/node_modules/diff/lib/convert/xml.js +0 -42
  744. package/node_modules/diff/lib/diff/array.js +0 -45
  745. package/node_modules/diff/lib/diff/base.js +0 -358
  746. package/node_modules/diff/lib/diff/character.js +0 -37
  747. package/node_modules/diff/lib/diff/css.js +0 -41
  748. package/node_modules/diff/lib/diff/json.js +0 -163
  749. package/node_modules/diff/lib/diff/line.js +0 -94
  750. package/node_modules/diff/lib/diff/sentence.js +0 -41
  751. package/node_modules/diff/lib/diff/word.js +0 -108
  752. package/node_modules/diff/lib/index.es6.js +0 -1699
  753. package/node_modules/diff/lib/index.js +0 -234
  754. package/node_modules/diff/lib/index.mjs +0 -1699
  755. package/node_modules/diff/lib/patch/apply.js +0 -238
  756. package/node_modules/diff/lib/patch/create.js +0 -276
  757. package/node_modules/diff/lib/patch/merge.js +0 -613
  758. package/node_modules/diff/lib/patch/parse.js +0 -167
  759. package/node_modules/diff/lib/patch/reverse.js +0 -63
  760. package/node_modules/diff/lib/util/array.js +0 -32
  761. package/node_modules/diff/lib/util/distance-iterator.js +0 -57
  762. package/node_modules/diff/lib/util/params.js +0 -24
  763. package/node_modules/diff/package.json +0 -89
  764. package/node_modules/diff/release-notes.md +0 -317
  765. package/node_modules/diff/runtime.js +0 -3
  766. package/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  767. package/node_modules/emoji-regex/README.md +0 -73
  768. package/node_modules/emoji-regex/es2015/index.js +0 -6
  769. package/node_modules/emoji-regex/es2015/text.js +0 -6
  770. package/node_modules/emoji-regex/index.d.ts +0 -23
  771. package/node_modules/emoji-regex/index.js +0 -6
  772. package/node_modules/emoji-regex/package.json +0 -50
  773. package/node_modules/emoji-regex/text.js +0 -6
  774. package/node_modules/fast-deep-equal/LICENSE +0 -21
  775. package/node_modules/fast-deep-equal/README.md +0 -96
  776. package/node_modules/fast-deep-equal/es6/index.d.ts +0 -2
  777. package/node_modules/fast-deep-equal/es6/index.js +0 -72
  778. package/node_modules/fast-deep-equal/es6/react.d.ts +0 -2
  779. package/node_modules/fast-deep-equal/es6/react.js +0 -79
  780. package/node_modules/fast-deep-equal/index.d.ts +0 -4
  781. package/node_modules/fast-deep-equal/index.js +0 -46
  782. package/node_modules/fast-deep-equal/package.json +0 -61
  783. package/node_modules/fast-deep-equal/react.d.ts +0 -2
  784. package/node_modules/fast-deep-equal/react.js +0 -53
  785. package/node_modules/fast-uri/.gitattributes +0 -2
  786. package/node_modules/fast-uri/.github/.stale.yml +0 -21
  787. package/node_modules/fast-uri/.github/dependabot.yml +0 -13
  788. package/node_modules/fast-uri/.github/tests_checker.yml +0 -8
  789. package/node_modules/fast-uri/.github/workflows/ci.yml +0 -23
  790. package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +0 -20
  791. package/node_modules/fast-uri/LICENSE +0 -30
  792. package/node_modules/fast-uri/README.md +0 -125
  793. package/node_modules/fast-uri/benchmark.js +0 -105
  794. package/node_modules/fast-uri/index.js +0 -303
  795. package/node_modules/fast-uri/lib/schemes.js +0 -188
  796. package/node_modules/fast-uri/lib/scopedChars.js +0 -30
  797. package/node_modules/fast-uri/lib/utils.js +0 -242
  798. package/node_modules/fast-uri/package.json +0 -39
  799. package/node_modules/fast-uri/test/.gitkeep +0 -0
  800. package/node_modules/fast-uri/test/ajv.test.js +0 -39
  801. package/node_modules/fast-uri/test/compatibility.test.js +0 -131
  802. package/node_modules/fast-uri/test/equal.test.js +0 -103
  803. package/node_modules/fast-uri/test/parse.test.js +0 -318
  804. package/node_modules/fast-uri/test/resolve.test.js +0 -75
  805. package/node_modules/fast-uri/test/serialize.test.js +0 -143
  806. package/node_modules/fast-uri/test/uri-js.test.js +0 -912
  807. package/node_modules/fast-uri/test/util.test.js +0 -23
  808. package/node_modules/fast-uri/types/index.d.ts +0 -53
  809. package/node_modules/fast-uri/types/index.test-d.ts +0 -17
  810. package/node_modules/graphql-mapping-template/LICENSE +0 -201
  811. package/node_modules/graphql-transformer-common/LICENSE +0 -201
  812. package/node_modules/has-flag/index.d.ts +0 -39
  813. package/node_modules/has-flag/index.js +0 -8
  814. package/node_modules/has-flag/license +0 -9
  815. package/node_modules/has-flag/package.json +0 -46
  816. package/node_modules/has-flag/readme.md +0 -89
  817. package/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  818. package/node_modules/is-fullwidth-code-point/index.js +0 -50
  819. package/node_modules/is-fullwidth-code-point/license +0 -9
  820. package/node_modules/is-fullwidth-code-point/package.json +0 -42
  821. package/node_modules/is-fullwidth-code-point/readme.md +0 -39
  822. package/node_modules/json-schema-traverse/.eslintrc.yml +0 -27
  823. package/node_modules/json-schema-traverse/.github/FUNDING.yml +0 -2
  824. package/node_modules/json-schema-traverse/.github/workflows/build.yml +0 -28
  825. package/node_modules/json-schema-traverse/.github/workflows/publish.yml +0 -27
  826. package/node_modules/json-schema-traverse/LICENSE +0 -21
  827. package/node_modules/json-schema-traverse/README.md +0 -95
  828. package/node_modules/json-schema-traverse/index.d.ts +0 -40
  829. package/node_modules/json-schema-traverse/index.js +0 -93
  830. package/node_modules/json-schema-traverse/package.json +0 -43
  831. package/node_modules/json-schema-traverse/spec/.eslintrc.yml +0 -6
  832. package/node_modules/json-schema-traverse/spec/fixtures/schema.js +0 -125
  833. package/node_modules/json-schema-traverse/spec/index.spec.js +0 -171
  834. package/node_modules/lodash.truncate/LICENSE +0 -47
  835. package/node_modules/lodash.truncate/README.md +0 -18
  836. package/node_modules/lodash.truncate/index.js +0 -632
  837. package/node_modules/lodash.truncate/package.json +0 -17
  838. package/node_modules/require-from-string/index.js +0 -34
  839. package/node_modules/require-from-string/license +0 -21
  840. package/node_modules/require-from-string/package.json +0 -28
  841. package/node_modules/require-from-string/readme.md +0 -56
  842. package/node_modules/slice-ansi/index.js +0 -103
  843. package/node_modules/slice-ansi/license +0 -10
  844. package/node_modules/slice-ansi/package.json +0 -52
  845. package/node_modules/slice-ansi/readme.md +0 -66
  846. package/node_modules/string-width/index.d.ts +0 -29
  847. package/node_modules/string-width/index.js +0 -47
  848. package/node_modules/string-width/license +0 -9
  849. package/node_modules/string-width/package.json +0 -56
  850. package/node_modules/string-width/readme.md +0 -50
  851. package/node_modules/strip-ansi/index.d.ts +0 -17
  852. package/node_modules/strip-ansi/index.js +0 -4
  853. package/node_modules/strip-ansi/license +0 -9
  854. package/node_modules/strip-ansi/package.json +0 -54
  855. package/node_modules/strip-ansi/readme.md +0 -46
  856. package/node_modules/supports-color/browser.js +0 -5
  857. package/node_modules/supports-color/index.js +0 -135
  858. package/node_modules/supports-color/license +0 -9
  859. package/node_modules/supports-color/package.json +0 -53
  860. package/node_modules/supports-color/readme.md +0 -76
  861. package/node_modules/table/LICENSE +0 -24
  862. package/node_modules/table/README.md +0 -837
  863. package/node_modules/table/dist/src/alignSpanningCell.d.ts +0 -7
  864. package/node_modules/table/dist/src/alignSpanningCell.js +0 -48
  865. package/node_modules/table/dist/src/alignSpanningCell.js.map +0 -1
  866. package/node_modules/table/dist/src/alignString.d.ts +0 -6
  867. package/node_modules/table/dist/src/alignString.js +0 -60
  868. package/node_modules/table/dist/src/alignString.js.map +0 -1
  869. package/node_modules/table/dist/src/alignTableData.d.ts +0 -2
  870. package/node_modules/table/dist/src/alignTableData.js +0 -20
  871. package/node_modules/table/dist/src/alignTableData.js.map +0 -1
  872. package/node_modules/table/dist/src/calculateCellHeight.d.ts +0 -4
  873. package/node_modules/table/dist/src/calculateCellHeight.js +0 -12
  874. package/node_modules/table/dist/src/calculateCellHeight.js.map +0 -1
  875. package/node_modules/table/dist/src/calculateMaximumColumnWidths.d.ts +0 -7
  876. package/node_modules/table/dist/src/calculateMaximumColumnWidths.js +0 -36
  877. package/node_modules/table/dist/src/calculateMaximumColumnWidths.js.map +0 -1
  878. package/node_modules/table/dist/src/calculateOutputColumnWidths.d.ts +0 -2
  879. package/node_modules/table/dist/src/calculateOutputColumnWidths.js +0 -10
  880. package/node_modules/table/dist/src/calculateOutputColumnWidths.js.map +0 -1
  881. package/node_modules/table/dist/src/calculateRowHeights.d.ts +0 -5
  882. package/node_modules/table/dist/src/calculateRowHeights.js +0 -42
  883. package/node_modules/table/dist/src/calculateRowHeights.js.map +0 -1
  884. package/node_modules/table/dist/src/calculateSpanningCellWidth.d.ts +0 -3
  885. package/node_modules/table/dist/src/calculateSpanningCellWidth.js +0 -26
  886. package/node_modules/table/dist/src/calculateSpanningCellWidth.js.map +0 -1
  887. package/node_modules/table/dist/src/createStream.d.ts +0 -2
  888. package/node_modules/table/dist/src/createStream.js +0 -74
  889. package/node_modules/table/dist/src/createStream.js.map +0 -1
  890. package/node_modules/table/dist/src/drawBorder.d.ts +0 -34
  891. package/node_modules/table/dist/src/drawBorder.js +0 -202
  892. package/node_modules/table/dist/src/drawBorder.js.map +0 -1
  893. package/node_modules/table/dist/src/drawContent.d.ts +0 -14
  894. package/node_modules/table/dist/src/drawContent.js +0 -51
  895. package/node_modules/table/dist/src/drawContent.js.map +0 -1
  896. package/node_modules/table/dist/src/drawRow.d.ts +0 -10
  897. package/node_modules/table/dist/src/drawRow.js +0 -25
  898. package/node_modules/table/dist/src/drawRow.js.map +0 -1
  899. package/node_modules/table/dist/src/drawTable.d.ts +0 -2
  900. package/node_modules/table/dist/src/drawTable.js +0 -31
  901. package/node_modules/table/dist/src/drawTable.js.map +0 -1
  902. package/node_modules/table/dist/src/generated/validators.d.ts +0 -13
  903. package/node_modules/table/dist/src/generated/validators.js +0 -2694
  904. package/node_modules/table/dist/src/generated/validators.js.map +0 -1
  905. package/node_modules/table/dist/src/getBorderCharacters.d.ts +0 -2
  906. package/node_modules/table/dist/src/getBorderCharacters.js +0 -105
  907. package/node_modules/table/dist/src/getBorderCharacters.js.map +0 -1
  908. package/node_modules/table/dist/src/index.d.ts +0 -5
  909. package/node_modules/table/dist/src/index.js +0 -21
  910. package/node_modules/table/dist/src/index.js.map +0 -1
  911. package/node_modules/table/dist/src/injectHeaderConfig.d.ts +0 -3
  912. package/node_modules/table/dist/src/injectHeaderConfig.js +0 -29
  913. package/node_modules/table/dist/src/injectHeaderConfig.js.map +0 -1
  914. package/node_modules/table/dist/src/makeRangeConfig.d.ts +0 -3
  915. package/node_modules/table/dist/src/makeRangeConfig.js +0 -18
  916. package/node_modules/table/dist/src/makeRangeConfig.js.map +0 -1
  917. package/node_modules/table/dist/src/makeStreamConfig.d.ts +0 -7
  918. package/node_modules/table/dist/src/makeStreamConfig.js +0 -43
  919. package/node_modules/table/dist/src/makeStreamConfig.js.map +0 -1
  920. package/node_modules/table/dist/src/makeTableConfig.d.ts +0 -7
  921. package/node_modules/table/dist/src/makeTableConfig.js +0 -62
  922. package/node_modules/table/dist/src/makeTableConfig.js.map +0 -1
  923. package/node_modules/table/dist/src/mapDataUsingRowHeights.d.ts +0 -4
  924. package/node_modules/table/dist/src/mapDataUsingRowHeights.js +0 -52
  925. package/node_modules/table/dist/src/mapDataUsingRowHeights.js.map +0 -1
  926. package/node_modules/table/dist/src/padTableData.d.ts +0 -3
  927. package/node_modules/table/dist/src/padTableData.js +0 -23
  928. package/node_modules/table/dist/src/padTableData.js.map +0 -1
  929. package/node_modules/table/dist/src/schemas/config.json +0 -95
  930. package/node_modules/table/dist/src/schemas/shared.json +0 -139
  931. package/node_modules/table/dist/src/schemas/streamConfig.json +0 -25
  932. package/node_modules/table/dist/src/spanningCellManager.d.ts +0 -23
  933. package/node_modules/table/dist/src/spanningCellManager.js +0 -95
  934. package/node_modules/table/dist/src/spanningCellManager.js.map +0 -1
  935. package/node_modules/table/dist/src/stringifyTableData.d.ts +0 -2
  936. package/node_modules/table/dist/src/stringifyTableData.js +0 -13
  937. package/node_modules/table/dist/src/stringifyTableData.js.map +0 -1
  938. package/node_modules/table/dist/src/table.d.ts +0 -2
  939. package/node_modules/table/dist/src/table.js +0 -32
  940. package/node_modules/table/dist/src/table.js.map +0 -1
  941. package/node_modules/table/dist/src/truncateTableData.d.ts +0 -6
  942. package/node_modules/table/dist/src/truncateTableData.js +0 -24
  943. package/node_modules/table/dist/src/truncateTableData.js.map +0 -1
  944. package/node_modules/table/dist/src/types/api.d.ts +0 -130
  945. package/node_modules/table/dist/src/types/api.js +0 -3
  946. package/node_modules/table/dist/src/types/api.js.map +0 -1
  947. package/node_modules/table/dist/src/types/internal.d.ts +0 -1
  948. package/node_modules/table/dist/src/types/internal.js +0 -3
  949. package/node_modules/table/dist/src/types/internal.js.map +0 -1
  950. package/node_modules/table/dist/src/utils.d.ts +0 -9
  951. package/node_modules/table/dist/src/utils.js +0 -134
  952. package/node_modules/table/dist/src/utils.js.map +0 -1
  953. package/node_modules/table/dist/src/validateConfig.d.ts +0 -2
  954. package/node_modules/table/dist/src/validateConfig.js +0 -27
  955. package/node_modules/table/dist/src/validateConfig.js.map +0 -1
  956. package/node_modules/table/dist/src/validateSpanningCellConfig.d.ts +0 -3
  957. package/node_modules/table/dist/src/validateSpanningCellConfig.js +0 -46
  958. package/node_modules/table/dist/src/validateSpanningCellConfig.js.map +0 -1
  959. package/node_modules/table/dist/src/validateTableData.d.ts +0 -1
  960. package/node_modules/table/dist/src/validateTableData.js +0 -32
  961. package/node_modules/table/dist/src/validateTableData.js.map +0 -1
  962. package/node_modules/table/dist/src/wrapCell.d.ts +0 -8
  963. package/node_modules/table/dist/src/wrapCell.js +0 -33
  964. package/node_modules/table/dist/src/wrapCell.js.map +0 -1
  965. package/node_modules/table/dist/src/wrapString.d.ts +0 -9
  966. package/node_modules/table/dist/src/wrapString.js +0 -27
  967. package/node_modules/table/dist/src/wrapString.js.map +0 -1
  968. package/node_modules/table/dist/src/wrapWord.d.ts +0 -1
  969. package/node_modules/table/dist/src/wrapWord.js +0 -42
  970. package/node_modules/table/dist/src/wrapWord.js.map +0 -1
  971. package/node_modules/table/package.json +0 -77
@@ -1,165 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.unionOf = exports.diffKeyedEntities = exports.deepEqual = void 0;
4
- /**
5
- * Compares two objects for equality, deeply. The function handles arguments that are
6
- * +null+, +undefined+, arrays and objects. For objects, the function will not take the
7
- * object prototype into account for the purpose of the comparison, only the values of
8
- * properties reported by +Object.keys+.
9
- *
10
- * If both operands can be parsed to equivalent numbers, will return true.
11
- * This makes diff consistent with CloudFormation, where a numeric 10 and a literal "10"
12
- * are considered equivalent.
13
- *
14
- * @param lvalue the left operand of the equality comparison.
15
- * @param rvalue the right operand of the equality comparison.
16
- *
17
- * @returns +true+ if both +lvalue+ and +rvalue+ are equivalent to each other.
18
- */
19
- function deepEqual(lvalue, rvalue) {
20
- if (lvalue === rvalue) {
21
- return true;
22
- }
23
- // CloudFormation allows passing strings into boolean-typed fields
24
- if (((typeof lvalue === 'string' && typeof rvalue === 'boolean') ||
25
- (typeof lvalue === 'boolean' && typeof rvalue === 'string')) &&
26
- lvalue.toString() === rvalue.toString()) {
27
- return true;
28
- }
29
- // allows a numeric 10 and a literal "10" to be equivalent;
30
- // this is consistent with CloudFormation.
31
- if ((typeof lvalue === 'string' || typeof rvalue === 'string') &&
32
- safeParseFloat(lvalue) === safeParseFloat(rvalue)) {
33
- return true;
34
- }
35
- if (typeof lvalue !== typeof rvalue) {
36
- return false;
37
- }
38
- if (Array.isArray(lvalue) !== Array.isArray(rvalue)) {
39
- return false;
40
- }
41
- if (Array.isArray(lvalue) /* && Array.isArray(rvalue) */) {
42
- if (lvalue.length !== rvalue.length) {
43
- return false;
44
- }
45
- for (let i = 0; i < lvalue.length; i++) {
46
- if (!deepEqual(lvalue[i], rvalue[i])) {
47
- return false;
48
- }
49
- }
50
- return true;
51
- }
52
- if (typeof lvalue === 'object' /* && typeof rvalue === 'object' */) {
53
- if (lvalue === null || rvalue === null) {
54
- // If both were null, they'd have been ===
55
- return false;
56
- }
57
- const keys = Object.keys(lvalue);
58
- if (keys.length !== Object.keys(rvalue).length) {
59
- return false;
60
- }
61
- for (const key of keys) {
62
- if (!rvalue.hasOwnProperty(key)) {
63
- return false;
64
- }
65
- if (key === 'DependsOn') {
66
- if (!dependsOnEqual(lvalue[key], rvalue[key])) {
67
- return false;
68
- }
69
- ;
70
- // check differences other than `DependsOn`
71
- continue;
72
- }
73
- if (!deepEqual(lvalue[key], rvalue[key])) {
74
- return false;
75
- }
76
- }
77
- return true;
78
- }
79
- // Neither object, nor array: I deduce this is primitive type
80
- // Primitive type and not ===, so I deduce not deepEqual
81
- return false;
82
- }
83
- exports.deepEqual = deepEqual;
84
- /**
85
- * Compares two arguments to DependsOn for equality.
86
- *
87
- * @param lvalue the left operand of the equality comparison.
88
- * @param rvalue the right operand of the equality comparison.
89
- *
90
- * @returns +true+ if both +lvalue+ and +rvalue+ are equivalent to each other.
91
- */
92
- function dependsOnEqual(lvalue, rvalue) {
93
- // allows ['Value'] and 'Value' to be equal
94
- if (Array.isArray(lvalue) !== Array.isArray(rvalue)) {
95
- const array = Array.isArray(lvalue) ? lvalue : rvalue;
96
- const nonArray = Array.isArray(lvalue) ? rvalue : lvalue;
97
- if (array.length === 1 && deepEqual(array[0], nonArray)) {
98
- return true;
99
- }
100
- return false;
101
- }
102
- // allows arrays passed to DependsOn to be equivalent irrespective of element order
103
- if (Array.isArray(lvalue) && Array.isArray(rvalue)) {
104
- if (lvalue.length !== rvalue.length) {
105
- return false;
106
- }
107
- for (let i = 0; i < lvalue.length; i++) {
108
- for (let j = 0; j < lvalue.length; j++) {
109
- if ((!deepEqual(lvalue[i], rvalue[j])) && (j === lvalue.length - 1)) {
110
- return false;
111
- }
112
- break;
113
- }
114
- }
115
- return true;
116
- }
117
- return false;
118
- }
119
- /**
120
- * Produce the differences between two maps, as a map, using a specified diff function.
121
- *
122
- * @param oldValue the old map.
123
- * @param newValue the new map.
124
- * @param elementDiff the diff function.
125
- *
126
- * @returns a map representing the differences between +oldValue+ and +newValue+.
127
- */
128
- function diffKeyedEntities(oldValue, newValue, elementDiff) {
129
- const result = {};
130
- for (const logicalId of unionOf(Object.keys(oldValue || {}), Object.keys(newValue || {}))) {
131
- const oldElement = oldValue && oldValue[logicalId];
132
- const newElement = newValue && newValue[logicalId];
133
- result[logicalId] = elementDiff(oldElement, newElement, logicalId);
134
- }
135
- return result;
136
- }
137
- exports.diffKeyedEntities = diffKeyedEntities;
138
- /**
139
- * Computes the union of two sets of strings.
140
- *
141
- * @param lv the left set of strings.
142
- * @param rv the right set of strings.
143
- *
144
- * @returns a new array containing all elemebts from +lv+ and +rv+, with no duplicates.
145
- */
146
- function unionOf(lv, rv) {
147
- const result = new Set(lv);
148
- for (const v of rv) {
149
- result.add(v);
150
- }
151
- return new Array(...result);
152
- }
153
- exports.unionOf = unionOf;
154
- /**
155
- * A parseFloat implementation that does the right thing for
156
- * strings like '0.0.0'
157
- * (for which JavaScript's parseFloat() returns 0).
158
- * We return NaN for all of these strings that do not represent numbers,
159
- * and so comparing them fails,
160
- * and doesn't short-circuit the diff logic.
161
- */
162
- function safeParseFloat(str) {
163
- return Number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qL1xuZXhwb3J0IGZ1bmN0aW9uIHVuaW9uT2YobHY6IHN0cmluZ1tdIHwgU2V0PHN0cmluZz4sIHJ2OiBzdHJpbmdbXSB8IFNldDxzdHJpbmc+KTogc3RyaW5nW10ge1xuICBjb25zdCByZXN1bHQgPSBuZXcgU2V0KGx2KTtcbiAgZm9yIChjb25zdCB2IG9mIHJ2KSB7XG4gICAgcmVzdWx0LmFkZCh2KTtcbiAgfVxuICByZXR1cm4gbmV3IEFycmF5KC4uLnJlc3VsdCk7XG59XG5cbi8qKlxuICogQSBwYXJzZUZsb2F0IGltcGxlbWVudGF0aW9uIHRoYXQgZG9lcyB0aGUgcmlnaHQgdGhpbmcgZm9yXG4gKiBzdHJpbmdzIGxpa2UgJzAuMC4wJ1xuICogKGZvciB3aGljaCBKYXZhU2NyaXB0J3MgcGFyc2VGbG9hdCgpIHJldHVybnMgMCkuXG4gKiBXZSByZXR1cm4gTmFOIGZvciBhbGwgb2YgdGhlc2Ugc3RyaW5ncyB0aGF0IGRvIG5vdCByZXByZXNlbnQgbnVtYmVycyxcbiAqIGFuZCBzbyBjb21wYXJpbmcgdGhlbSBmYWlscyxcbiAqIGFuZCBkb2Vzbid0IHNob3J0LWNpcmN1aXQgdGhlIGRpZmYgbG9naWMuXG4gKi9cbmZ1bmN0aW9uIHNhZmVQYXJzZUZsb2F0KHN0cjogc3RyaW5nKTogbnVtYmVyIHtcbiAgcmV0dXJuIE51bWJlcihzdHIpO1xufVxuIl19
@@ -1,21 +0,0 @@
1
- import * as types from './diff/types';
2
- export * from './diff/types';
3
- /**
4
- * Compare two CloudFormation templates and return semantic differences between them.
5
- *
6
- * @param currentTemplate the current state of the stack.
7
- * @param newTemplate the target state of the stack.
8
- *
9
- * @returns a +types.TemplateDiff+ object that represents the changes that will happen if
10
- * a stack which current state is described by +currentTemplate+ is updated with
11
- * the template +newTemplate+.
12
- */
13
- export declare function diffTemplate(currentTemplate: {
14
- [key: string]: any;
15
- }, newTemplate: {
16
- [key: string]: any;
17
- }): types.TemplateDiff;
18
- /**
19
- * Compare two CloudFormation resources and return semantic differences between them
20
- */
21
- export declare function diffResource(oldValue: types.Resource, newValue: types.Resource): types.ResourceDifference;
@@ -1,166 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.diffResource = exports.diffTemplate = void 0;
14
- const impl = require("./diff");
15
- const types = require("./diff/types");
16
- const util_1 = require("./diff/util");
17
- __exportStar(require("./diff/types"), exports);
18
- const DIFF_HANDLERS = {
19
- AWSTemplateFormatVersion: (diff, oldValue, newValue) => diff.awsTemplateFormatVersion = impl.diffAttribute(oldValue, newValue),
20
- Description: (diff, oldValue, newValue) => diff.description = impl.diffAttribute(oldValue, newValue),
21
- Metadata: (diff, oldValue, newValue) => diff.metadata = new types.DifferenceCollection(util_1.diffKeyedEntities(oldValue, newValue, impl.diffMetadata)),
22
- Parameters: (diff, oldValue, newValue) => diff.parameters = new types.DifferenceCollection(util_1.diffKeyedEntities(oldValue, newValue, impl.diffParameter)),
23
- Mappings: (diff, oldValue, newValue) => diff.mappings = new types.DifferenceCollection(util_1.diffKeyedEntities(oldValue, newValue, impl.diffMapping)),
24
- Conditions: (diff, oldValue, newValue) => diff.conditions = new types.DifferenceCollection(util_1.diffKeyedEntities(oldValue, newValue, impl.diffCondition)),
25
- Transform: (diff, oldValue, newValue) => diff.transform = impl.diffAttribute(oldValue, newValue),
26
- Resources: (diff, oldValue, newValue) => diff.resources = new types.DifferenceCollection(util_1.diffKeyedEntities(oldValue, newValue, impl.diffResource)),
27
- Outputs: (diff, oldValue, newValue) => diff.outputs = new types.DifferenceCollection(util_1.diffKeyedEntities(oldValue, newValue, impl.diffOutput)),
28
- };
29
- /**
30
- * Compare two CloudFormation templates and return semantic differences between them.
31
- *
32
- * @param currentTemplate the current state of the stack.
33
- * @param newTemplate the target state of the stack.
34
- *
35
- * @returns a +types.TemplateDiff+ object that represents the changes that will happen if
36
- * a stack which current state is described by +currentTemplate+ is updated with
37
- * the template +newTemplate+.
38
- */
39
- function diffTemplate(currentTemplate, newTemplate) {
40
- // Base diff
41
- const theDiff = calculateTemplateDiff(currentTemplate, newTemplate);
42
- // We're going to modify this in-place
43
- const newTemplateCopy = deepCopy(newTemplate);
44
- let didPropagateReferenceChanges;
45
- let diffWithReplacements;
46
- do {
47
- diffWithReplacements = calculateTemplateDiff(currentTemplate, newTemplateCopy);
48
- // Propagate replacements for replaced resources
49
- didPropagateReferenceChanges = false;
50
- if (diffWithReplacements.resources) {
51
- diffWithReplacements.resources.forEachDifference((logicalId, change) => {
52
- if (change.changeImpact === types.ResourceImpact.WILL_REPLACE) {
53
- if (propagateReplacedReferences(newTemplateCopy, logicalId)) {
54
- didPropagateReferenceChanges = true;
55
- }
56
- }
57
- });
58
- }
59
- } while (didPropagateReferenceChanges);
60
- // Copy "replaced" states from `diffWithReplacements` to `theDiff`.
61
- diffWithReplacements.resources
62
- .filter(r => isReplacement(r.changeImpact))
63
- .forEachDifference((logicalId, downstreamReplacement) => {
64
- const resource = theDiff.resources.get(logicalId);
65
- if (resource.changeImpact !== downstreamReplacement.changeImpact) {
66
- propagatePropertyReplacement(downstreamReplacement, resource);
67
- }
68
- });
69
- return theDiff;
70
- }
71
- exports.diffTemplate = diffTemplate;
72
- function isReplacement(impact) {
73
- return impact === types.ResourceImpact.MAY_REPLACE || impact === types.ResourceImpact.WILL_REPLACE;
74
- }
75
- /**
76
- * For all properties in 'source' that have a "replacement" impact, propagate that impact to "dest"
77
- */
78
- function propagatePropertyReplacement(source, dest) {
79
- for (const [propertyName, diff] of Object.entries(source.propertyUpdates)) {
80
- if (diff.changeImpact && isReplacement(diff.changeImpact)) {
81
- // Use the propertydiff of source in target. The result of this happens to be clear enough.
82
- dest.setPropertyChange(propertyName, diff);
83
- }
84
- }
85
- }
86
- function calculateTemplateDiff(currentTemplate, newTemplate) {
87
- const differences = {};
88
- const unknown = {};
89
- for (const key of util_1.unionOf(Object.keys(currentTemplate), Object.keys(newTemplate)).sort()) {
90
- const oldValue = currentTemplate[key];
91
- const newValue = newTemplate[key];
92
- if (util_1.deepEqual(oldValue, newValue)) {
93
- continue;
94
- }
95
- const handler = DIFF_HANDLERS[key]
96
- || ((_diff, oldV, newV) => unknown[key] = impl.diffUnknown(oldV, newV));
97
- handler(differences, oldValue, newValue);
98
- }
99
- if (Object.keys(unknown).length > 0) {
100
- differences.unknown = new types.DifferenceCollection(unknown);
101
- }
102
- return new types.TemplateDiff(differences);
103
- }
104
- /**
105
- * Compare two CloudFormation resources and return semantic differences between them
106
- */
107
- function diffResource(oldValue, newValue) {
108
- return impl.diffResource(oldValue, newValue);
109
- }
110
- exports.diffResource = diffResource;
111
- /**
112
- * Replace all references to the given logicalID on the given template, in-place
113
- *
114
- * Returns true iff any references were replaced.
115
- */
116
- function propagateReplacedReferences(template, logicalId) {
117
- let ret = false;
118
- function recurse(obj) {
119
- if (Array.isArray(obj)) {
120
- obj.forEach(recurse);
121
- }
122
- if (typeof obj === 'object' && obj !== null) {
123
- if (!replaceReference(obj)) {
124
- Object.values(obj).forEach(recurse);
125
- }
126
- }
127
- }
128
- function replaceReference(obj) {
129
- const keys = Object.keys(obj);
130
- if (keys.length !== 1) {
131
- return false;
132
- }
133
- const key = keys[0];
134
- if (key === 'Ref') {
135
- if (obj.Ref === logicalId) {
136
- obj.Ref = logicalId + ' (replaced)';
137
- ret = true;
138
- }
139
- return true;
140
- }
141
- if (key.startsWith('Fn::')) {
142
- if (Array.isArray(obj[key]) && obj[key].length > 0 && obj[key][0] === logicalId) {
143
- obj[key][0] = logicalId + '(replaced)';
144
- ret = true;
145
- }
146
- return true;
147
- }
148
- return false;
149
- }
150
- recurse(template);
151
- return ret;
152
- }
153
- function deepCopy(x) {
154
- if (Array.isArray(x)) {
155
- return x.map(deepCopy);
156
- }
157
- if (typeof x === 'object' && x !== null) {
158
- const ret = {};
159
- for (const key of Object.keys(x)) {
160
- ret[key] = deepCopy(x[key]);
161
- }
162
- return ret;
163
- }
164
- return x;
165
- }
166
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlmZi10ZW1wbGF0ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmYtdGVtcGxhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUFBLCtCQUErQjtBQUMvQixzQ0FBc0M7QUFDdEMsc0NBQW9FO0FBRXBFLCtDQUE2QjtBQUs3QixNQUFNLGFBQWEsR0FBb0I7SUFDckMsd0JBQXdCLEVBQUUsQ0FBQyxJQUFJLEVBQUUsUUFBUSxFQUFFLFFBQVEsRUFBRSxFQUFFLENBQ3JELElBQUksQ0FBQyx3QkFBd0IsR0FBRyxJQUFJLENBQUMsYUFBYSxDQUFDLFFBQVEsRUFBRSxRQUFRLENBQUM7SUFDeEUsV0FBVyxFQUFFLENBQUMsSUFBSSxFQUFFLFFBQVEsRUFBRSxRQUFRLEVBQUUsRUFBRSxDQUN4QyxJQUFJLENBQUMsV0FBVyxHQUFHLElBQUksQ0FBQyxhQUFhLENBQUMsUUFBUSxFQUFFLFFBQVEsQ0FBQztJQUMzRCxRQUFRLEVBQUUsQ0FBQyxJQUFJLEVBQUUsUUFBUSxFQUFFLFFBQVEsRUFBRSxFQUFFLENBQ3JDLElBQUksQ0FBQyxRQUFRLEdBQUcsSUFBSSxLQUFLLENBQUMsb0JBQW9CLENBQUMsd0JBQWlCLENBQUMsUUFBUSxFQUFFL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9naWNhbElkICsgJyAocmVwbGFjZWQpJztcbiAgICAgICAgcmV0ID0gdHJ1ZTtcbiAgICAgIH1cbiAgICAgIHJldHVybiB0cnVlO1xuICAgIH1cblxuICAgIGlmIChrZXkuc3RhcnRzV2l0aCgnRm46OicpKSB7XG4gICAgICBpZiAoQXJyYXkuaXNBcnJheShvYmpba2V5XSkgJiYgb2JqW2tleV0ubGVuZ3RoID4gMCAmJiBvYmpba2V5XVswXSA9PT0gbG9naWNhbElkKSB7XG4gICAgICAgIG9ialtrZXldWzBdID0gbG9naWNhbElkICsgJyhyZXBsYWNlZCknO1xuICAgICAgICByZXQgPSB0cnVlO1xuICAgICAgfVxuICAgICAgcmV0dXJuIHRydWU7XG4gICAgfVxuXG4gICAgcmV0dXJuIGZhbHNlO1xuICB9XG5cbiAgcmVjdXJzZSh0ZW1wbGF0ZSk7XG4gIHJldHVybiByZXQ7XG59XG5cbmZ1bmN0aW9uIGRlZXBDb3B5KHg6IGFueSk6IGFueSB7XG4gIGlmIChBcnJheS5pc0FycmF5KHgpKSB7XG4gICAgcmV0dXJuIHgubWFwKGRlZXBDb3B5KTtcbiAgfVxuXG4gIGlmICh0eXBlb2YgeCA9PT0gJ29iamVjdCcgJiYgeCAhPT0gbnVsbCkge1xuICAgIGNvbnN0IHJldDogYW55ID0ge307XG4gICAgZm9yIChjb25zdCBrZXkgb2YgT2JqZWN0LmtleXMoeCkpIHtcbiAgICAgIHJldFtrZXldID0gZGVlcENvcHkoeFtrZXldKTtcbiAgICB9XG4gICAgcmV0dXJuIHJldDtcbiAgfVxuXG4gIHJldHVybiB4O1xufVxuIl19
@@ -1,22 +0,0 @@
1
- /**
2
- * Calculate differences of immutable elements
3
- */
4
- export declare class DiffableCollection<T extends Eq<T>> {
5
- readonly additions: T[];
6
- readonly removals: T[];
7
- private readonly oldElements;
8
- private readonly newElements;
9
- addOld(...elements: T[]): void;
10
- addNew(...elements: T[]): void;
11
- calculateDiff(): void;
12
- get hasChanges(): boolean;
13
- get hasAdditions(): boolean;
14
- get hasRemovals(): boolean;
15
- }
16
- /**
17
- * Things that can be compared to themselves (by value)
18
- */
19
- interface Eq<T> {
20
- equal(other: T): boolean;
21
- }
22
- export {};
@@ -1,47 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DiffableCollection = void 0;
4
- /**
5
- * Calculate differences of immutable elements
6
- */
7
- class DiffableCollection {
8
- constructor() {
9
- this.additions = [];
10
- this.removals = [];
11
- this.oldElements = [];
12
- this.newElements = [];
13
- }
14
- addOld(...elements) {
15
- this.oldElements.push(...elements);
16
- }
17
- addNew(...elements) {
18
- this.newElements.push(...elements);
19
- }
20
- calculateDiff() {
21
- this.additions.push(...difference(this.newElements, this.oldElements));
22
- this.removals.push(...difference(this.oldElements, this.newElements));
23
- }
24
- get hasChanges() {
25
- return this.additions.length + this.removals.length > 0;
26
- }
27
- get hasAdditions() {
28
- return this.additions.length > 0;
29
- }
30
- get hasRemovals() {
31
- return this.removals.length > 0;
32
- }
33
- }
34
- exports.DiffableCollection = DiffableCollection;
35
- /**
36
- * Whether a collection contains some element (by value)
37
- */
38
- function contains(element, xs) {
39
- return xs.some(x => x.equal(element));
40
- }
41
- /**
42
- * Return collection except for elements
43
- */
44
- function difference(collection, elements) {
45
- return collection.filter(x => !contains(x, elements));
46
- }
47
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlmZmFibGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmYWJsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQTs7R0FFRztBQUNILE1BQWEsa0JBQWtCO0lBQS9CO1FBQ2tCLGNBQVMsR0FBUSxFQUFFLENBQUM7UUFDcEIsYUFBUSxHQUFRLEVBQUUsQ0FBQztRQUVsQixnQkFBVyxHQUFRLEVBQUUsQ0FBQztRQUN0QixnQkFBVyxHQUFRLEVBQUUsQ0FBQztJQ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fQ==
@@ -1,6 +0,0 @@
1
- /**
2
- * Render a two-dimensional array to a visually attractive table
3
- *
4
- * First row is considered the table header.
5
- */
6
- export declare function formatTable(cells: string[][], columns: number | undefined): string;
@@ -1,109 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formatTable = void 0;
4
- const chalk = require("chalk");
5
- const string_width_1 = require("string-width");
6
- const table = require("table");
7
- /**
8
- * Render a two-dimensional array to a visually attractive table
9
- *
10
- * First row is considered the table header.
11
- */
12
- function formatTable(cells, columns) {
13
- return table.table(cells, {
14
- border: TABLE_BORDER_CHARACTERS,
15
- columns: buildColumnConfig(columns !== undefined ? calculateColumnWidths(cells, columns) : undefined),
16
- drawHorizontalLine: (line) => {
17
- // Numbering like this: [line 0] [header = row[0]] [line 1] [row 1] [line 2] [content 2] [line 3]
18
- return (line < 2 || line === cells.length) || lineBetween(cells[line - 1], cells[line]);
19
- },
20
- }).trimRight();
21
- }
22
- exports.formatTable = formatTable;
23
- /**
24
- * Whether we should draw a line between two rows
25
- *
26
- * Draw horizontal line if 2nd column values are different.
27
- */
28
- function lineBetween(rowA, rowB) {
29
- return rowA[1] !== rowB[1];
30
- }
31
- function buildColumnConfig(widths) {
32
- if (widths === undefined) {
33
- return undefined;
34
- }
35
- const ret = {};
36
- widths.forEach((width, i) => {
37
- if (width === undefined) {
38
- return;
39
- }
40
- ret[i] = { width };
41
- });
42
- return ret;
43
- }
44
- /**
45
- * Calculate column widths given a terminal width
46
- *
47
- * We do this by calculating a fair share for every column. Extra width smaller
48
- * than the fair share is evenly distributed over all columns that exceed their
49
- * fair share.
50
- */
51
- function calculateColumnWidths(rows, terminalWidth) {
52
- // The terminal is sometimes reported to be 0. Also if the terminal is VERY narrow,
53
- // just assume a reasonable minimum size.
54
- terminalWidth = Math.max(terminalWidth, 40);
55
- // use 'string-width' to not count ANSI chars as actual character width
56
- const columns = rows[0].map((_, i) => Math.max(...rows.map(row => string_width_1.default(String(row[i])))));
57
- // If we have no terminal width, do nothing
58
- const contentWidth = terminalWidth - 2 - columns.length * 3;
59
- // If we don't exceed the terminal width, do nothing
60
- if (sum(columns) <= contentWidth) {
61
- return columns;
62
- }
63
- const fairShare = Math.min(contentWidth / columns.length);
64
- const smallColumns = columns.filter(w => w < fairShare);
65
- let distributableWidth = contentWidth - sum(smallColumns);
66
- const fairDistributable = Math.floor(distributableWidth / (columns.length - smallColumns.length));
67
- const ret = new Array();
68
- for (const requestedWidth of columns) {
69
- if (requestedWidth < fairShare) {
70
- // Small column gets what they want
71
- ret.push(requestedWidth);
72
- }
73
- else {
74
- // Last column gets all remaining, otherwise get fair redist share
75
- const width = distributableWidth < 2 * fairDistributable ? distributableWidth : fairDistributable;
76
- ret.push(width);
77
- distributableWidth -= width;
78
- }
79
- }
80
- return ret;
81
- }
82
- function sum(xs) {
83
- let total = 0;
84
- for (const x of xs) {
85
- total += x;
86
- }
87
- return total;
88
- }
89
- // What color the table is going to be
90
- const tableColor = chalk.gray;
91
- // Unicode table characters with a color
92
- const TABLE_BORDER_CHARACTERS = {
93
- topBody: tableColor('─'),
94
- topJoin: tableColor('┬'),
95
- topLeft: tableColor('┌'),
96
- topRight: tableColor('┐'),
97
- bottomBody: tableColor('─'),
98
- bottomJoin: tableColor('┴'),
99
- bottomLeft: tableColor('└'),
100
- bottomRight: tableColor('┘'),
101
- bodyLeft: tableColor('│'),
102
- bodyRight: tableColor('│'),
103
- bodyJoin: tableColor('│'),
104
- joinBody: tableColor('─'),
105
- joinLeft: tableColor('├'),
106
- joinRight: tableColor('┤'),
107
- joinJoin: tableColor('┼'),
108
- };
109
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybWF0LXRhYmxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZm9ybWF0LXRhYmxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLCtCQUErQjtBQUMvQiwrQ0FB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2luOiB0YWJsZUNvbG9yKCfilKwnKSxcbiAgdG9wTGVmdDogdGFibGVDb2xvcign4pSMJyksXG4gIHRvcFJpZ2h0OiB0YWJsZUNvbG9yKCfilJAnKSxcbiAgYm90dG9tQm9keTogdGFibGVDb2xvcign4pSAJyksXG4gIGJvdHRvbUpvaW46IHRhYmxlQ29sb3IoJ+KUtCcpLFxuICBib3R0b21MZWZ0OiB0YWJsZUNvbG9yKCfilJQnKSxcbiAgYm90dG9tUmlnaHQ6IHRhYmxlQ29sb3IoJ+KUmCcpLFxuICBib2R5TGVmdDogdGFibGVDb2xvcign4pSCJyksXG4gIGJvZHlSaWdodDogdGFibGVDb2xvcign4pSCJyksXG4gIGJvZHlKb2luOiB0YWJsZUNvbG9yKCfilIInKSxcbiAgam9pbkJvZHk6IHRhYmxlQ29sb3IoJ+KUgCcpLFxuICBqb2luTGVmdDogdGFibGVDb2xvcign4pScJyksXG4gIGpvaW5SaWdodDogdGFibGVDb2xvcign4pSkJyksXG4gIGpvaW5Kb2luOiB0YWJsZUNvbG9yKCfilLwnKSxcbn07XG4iXX0=
@@ -1,23 +0,0 @@
1
- /// <reference types="node" />
2
- import { TemplateDiff } from './diff/types';
3
- export interface FormatStream extends NodeJS.WritableStream {
4
- columns?: number;
5
- }
6
- /**
7
- * Renders template differences to the process' console.
8
- *
9
- * @param stream The IO stream where to output the rendered diff.
10
- * @param templateDiff TemplateDiff to be rendered to the console.
11
- * @param logicalToPathMap A map from logical ID to construct path. Useful in
12
- * case there is no aws:cdk:path metadata in the template.
13
- * @param context the number of context lines to use in arbitrary JSON diff (defaults to 3).
14
- */
15
- export declare function formatDifferences(stream: FormatStream, templateDiff: TemplateDiff, logicalToPathMap?: {
16
- [logicalId: string]: string;
17
- }, context?: number): void;
18
- /**
19
- * Renders a diff of security changes to the given stream
20
- */
21
- export declare function formatSecurityChanges(stream: NodeJS.WriteStream, templateDiff: TemplateDiff, logicalToPathMap?: {
22
- [logicalId: string]: string;
23
- }, context?: number): void;