@kubb/agent 5.0.0-alpha.35 → 5.0.0-alpha.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1129) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/server/chunks/nitro/nitro.mjs +1451 -20711
  3. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  4. package/.output/server/chunks/routes/api/health.get.mjs +3 -14
  5. package/.output/server/chunks/routes/api/health.get.mjs.map +1 -1
  6. package/.output/server/index.mjs +3 -14
  7. package/.output/server/index.mjs.map +1 -1
  8. package/.output/server/package.json +2 -77
  9. package/package.json +6 -20
  10. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/ajv.js +0 -50
  11. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/compile/codegen/code.js +0 -156
  12. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/compile/codegen/index.js +0 -697
  13. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/compile/codegen/scope.js +0 -143
  14. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/compile/errors.js +0 -123
  15. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/compile/index.js +0 -249
  16. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/compile/names.js +0 -29
  17. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/compile/ref_error.js +0 -12
  18. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/compile/resolve.js +0 -155
  19. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/compile/rules.js +0 -26
  20. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/compile/util.js +0 -178
  21. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/compile/validate/applicability.js +0 -19
  22. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/compile/validate/boolSchema.js +0 -50
  23. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/compile/validate/dataType.js +0 -203
  24. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/compile/validate/defaults.js +0 -35
  25. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/compile/validate/index.js +0 -534
  26. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/compile/validate/keyword.js +0 -124
  27. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/compile/validate/subschema.js +0 -81
  28. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/core.js +0 -632
  29. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/refs/data.json +0 -13
  30. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/refs/json-schema-draft-07.json +0 -151
  31. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/runtime/equal.js +0 -7
  32. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/runtime/ucs2length.js +0 -24
  33. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/runtime/uri.js +0 -6
  34. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/runtime/validation_error.js +0 -11
  35. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/applicator/additionalItems.js +0 -49
  36. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/applicator/additionalProperties.js +0 -107
  37. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/applicator/allOf.js +0 -23
  38. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/applicator/anyOf.js +0 -12
  39. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/applicator/contains.js +0 -95
  40. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/applicator/dependencies.js +0 -85
  41. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/applicator/if.js +0 -66
  42. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/applicator/index.js +0 -44
  43. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/applicator/items.js +0 -52
  44. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/applicator/items2020.js +0 -30
  45. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/applicator/not.js +0 -26
  46. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/applicator/oneOf.js +0 -60
  47. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/applicator/patternProperties.js +0 -75
  48. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/applicator/prefixItems.js +0 -12
  49. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/applicator/properties.js +0 -55
  50. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/applicator/propertyNames.js +0 -38
  51. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/applicator/thenElse.js +0 -13
  52. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/code.js +0 -138
  53. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/core/id.js +0 -10
  54. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/core/index.js +0 -16
  55. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/core/ref.js +0 -132
  56. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/discriminator/index.js +0 -139
  57. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/discriminator/types.js +0 -9
  58. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/draft7.js +0 -17
  59. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/format/format.js +0 -92
  60. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/format/index.js +0 -6
  61. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/metadata.js +0 -26
  62. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/oasContext.js +0 -26
  63. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/validation/const.js +0 -25
  64. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/validation/enum.js +0 -48
  65. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/validation/index.js +0 -37
  66. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/validation/limitItems.js +0 -24
  67. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/validation/limitLength.js +0 -27
  68. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/validation/limitNumber.js +0 -27
  69. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/validation/limitProperties.js +0 -24
  70. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/validation/multipleOf.js +0 -26
  71. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/validation/pattern.js +0 -33
  72. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/validation/readOnly.js +0 -20
  73. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/validation/required.js +0 -86
  74. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/validation/uniqueItems.js +0 -64
  75. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/dist/vocabularies/validation/writeOnly.js +0 -20
  76. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.0/package.json +0 -130
  77. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/2020.js +0 -55
  78. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/compile/codegen/code.js +0 -156
  79. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/compile/codegen/index.js +0 -697
  80. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/compile/codegen/scope.js +0 -143
  81. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/compile/errors.js +0 -123
  82. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/compile/index.js +0 -249
  83. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/compile/names.js +0 -29
  84. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/compile/ref_error.js +0 -12
  85. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/compile/resolve.js +0 -155
  86. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/compile/rules.js +0 -26
  87. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/compile/util.js +0 -178
  88. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/compile/validate/applicability.js +0 -19
  89. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/compile/validate/boolSchema.js +0 -50
  90. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/compile/validate/dataType.js +0 -203
  91. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/compile/validate/defaults.js +0 -35
  92. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/compile/validate/index.js +0 -534
  93. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/compile/validate/keyword.js +0 -124
  94. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/compile/validate/subschema.js +0 -81
  95. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/core.js +0 -632
  96. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/draft4.js +0 -57
  97. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/refs/data.json +0 -13
  98. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/refs/json-schema-2020-12/index.js +0 -30
  99. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/refs/json-schema-2020-12/meta/applicator.json +0 -48
  100. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/refs/json-schema-2020-12/meta/content.json +0 -17
  101. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/refs/json-schema-2020-12/meta/core.json +0 -51
  102. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
  103. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/refs/json-schema-2020-12/meta/meta-data.json +0 -37
  104. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
  105. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/refs/json-schema-2020-12/meta/validation.json +0 -90
  106. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/refs/json-schema-2020-12/schema.json +0 -55
  107. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/refs/json-schema-draft-04.json +0 -138
  108. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/runtime/equal.js +0 -7
  109. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/runtime/ucs2length.js +0 -24
  110. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/runtime/uri.js +0 -6
  111. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/runtime/validation_error.js +0 -11
  112. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/applicator/additionalItems.js +0 -49
  113. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/applicator/additionalProperties.js +0 -107
  114. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/applicator/allOf.js +0 -23
  115. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/applicator/anyOf.js +0 -12
  116. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/applicator/contains.js +0 -95
  117. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/applicator/dependencies.js +0 -85
  118. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/applicator/dependentSchemas.js +0 -11
  119. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/applicator/if.js +0 -66
  120. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/applicator/index.js +0 -44
  121. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/applicator/items.js +0 -52
  122. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/applicator/items2020.js +0 -30
  123. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/applicator/not.js +0 -26
  124. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/applicator/oneOf.js +0 -60
  125. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/applicator/patternProperties.js +0 -75
  126. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/applicator/prefixItems.js +0 -12
  127. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/applicator/properties.js +0 -55
  128. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/applicator/propertyNames.js +0 -38
  129. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/applicator/thenElse.js +0 -13
  130. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/code.js +0 -138
  131. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/core/id.js +0 -10
  132. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/core/index.js +0 -16
  133. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/core/ref.js +0 -132
  134. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/discriminator/index.js +0 -139
  135. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/discriminator/types.js +0 -9
  136. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/draft2020.js +0 -23
  137. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/draft4.js +0 -29
  138. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/dynamic/dynamicAnchor.js +0 -30
  139. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/dynamic/dynamicRef.js +0 -51
  140. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/dynamic/index.js +0 -9
  141. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/dynamic/recursiveAnchor.js +0 -16
  142. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/dynamic/recursiveRef.js +0 -10
  143. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/format/format.js +0 -92
  144. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/format/index.js +0 -6
  145. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/metadata.js +0 -26
  146. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/next.js +0 -8
  147. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/oasContext.js +0 -26
  148. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/unevaluated/index.js +0 -7
  149. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/unevaluated/unevaluatedItems.js +0 -40
  150. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/unevaluated/unevaluatedProperties.js +0 -84
  151. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/validation/const.js +0 -25
  152. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/validation/dependentRequired.js +0 -12
  153. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/validation/draft04/limitNumber.js +0 -43
  154. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/validation/draft04/limitNumberExclusive.js +0 -19
  155. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/validation/enum.js +0 -48
  156. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/validation/index.js +0 -37
  157. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/validation/limitContains.js +0 -15
  158. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/validation/limitItems.js +0 -24
  159. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/validation/limitLength.js +0 -27
  160. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/validation/limitNumber.js +0 -27
  161. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/validation/limitProperties.js +0 -24
  162. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/validation/multipleOf.js +0 -26
  163. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/validation/pattern.js +0 -33
  164. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/validation/readOnly.js +0 -20
  165. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/validation/required.js +0 -86
  166. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/validation/uniqueItems.js +0 -64
  167. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/dist/vocabularies/validation/writeOnly.js +0 -20
  168. package/.output/server/node_modules/.nitro/@redocly/ajv@8.18.3/package.json +0 -130
  169. package/.output/server/node_modules/.nitro/picomatch@4.0.4/index.js +0 -17
  170. package/.output/server/node_modules/.nitro/picomatch@4.0.4/lib/constants.js +0 -184
  171. package/.output/server/node_modules/.nitro/picomatch@4.0.4/lib/parse.js +0 -1386
  172. package/.output/server/node_modules/.nitro/picomatch@4.0.4/lib/picomatch.js +0 -349
  173. package/.output/server/node_modules/.nitro/picomatch@4.0.4/lib/scan.js +0 -391
  174. package/.output/server/node_modules/.nitro/picomatch@4.0.4/lib/utils.js +0 -72
  175. package/.output/server/node_modules/.nitro/picomatch@4.0.4/package.json +0 -82
  176. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/bundle.js +0 -302
  177. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/dereference.js +0 -289
  178. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/index.js +0 -216
  179. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/normalize-args.js +0 -55
  180. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/options.js +0 -135
  181. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/parse.js +0 -178
  182. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/parsers/binary.js +0 -35
  183. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/parsers/json.js +0 -62
  184. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/parsers/text.js +0 -42
  185. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/parsers/yaml.js +0 -58
  186. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/pointer.js +0 -334
  187. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/ref.js +0 -308
  188. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/refs.js +0 -244
  189. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/resolve-external.js +0 -143
  190. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/resolvers/file.js +0 -81
  191. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/resolvers/http.js +0 -158
  192. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/convert-path-to-posix.js +0 -14
  193. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/errors.js +0 -170
  194. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/is-windows.js +0 -6
  195. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/maybe.js +0 -24
  196. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/next.js +0 -16
  197. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/plugins.js +0 -132
  198. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/url.js +0 -491
  199. package/.output/server/node_modules/@apidevtools/json-schema-ref-parser/package.json +0 -112
  200. package/.output/server/node_modules/@babel/code-frame/lib/index.js +0 -217
  201. package/.output/server/node_modules/@babel/code-frame/package.json +0 -32
  202. package/.output/server/node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -70
  203. package/.output/server/node_modules/@babel/helper-validator-identifier/lib/index.js +0 -57
  204. package/.output/server/node_modules/@babel/helper-validator-identifier/lib/keyword.js +0 -35
  205. package/.output/server/node_modules/@babel/helper-validator-identifier/package.json +0 -31
  206. package/.output/server/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +0 -6
  207. package/.output/server/node_modules/@babel/runtime/helpers/arrayWithHoles.js +0 -4
  208. package/.output/server/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +0 -5
  209. package/.output/server/node_modules/@babel/runtime/helpers/assertThisInitialized.js +0 -5
  210. package/.output/server/node_modules/@babel/runtime/helpers/classCallCheck.js +0 -4
  211. package/.output/server/node_modules/@babel/runtime/helpers/createClass.js +0 -13
  212. package/.output/server/node_modules/@babel/runtime/helpers/defineProperty.js +0 -10
  213. package/.output/server/node_modules/@babel/runtime/helpers/get.js +0 -11
  214. package/.output/server/node_modules/@babel/runtime/helpers/getPrototypeOf.js +0 -6
  215. package/.output/server/node_modules/@babel/runtime/helpers/inherits.js +0 -14
  216. package/.output/server/node_modules/@babel/runtime/helpers/interopRequireDefault.js +0 -6
  217. package/.output/server/node_modules/@babel/runtime/helpers/iterableToArray.js +0 -4
  218. package/.output/server/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +0 -28
  219. package/.output/server/node_modules/@babel/runtime/helpers/nonIterableRest.js +0 -4
  220. package/.output/server/node_modules/@babel/runtime/helpers/nonIterableSpread.js +0 -4
  221. package/.output/server/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +0 -8
  222. package/.output/server/node_modules/@babel/runtime/helpers/setPrototypeOf.js +0 -6
  223. package/.output/server/node_modules/@babel/runtime/helpers/slicedToArray.js +0 -8
  224. package/.output/server/node_modules/@babel/runtime/helpers/superPropBase.js +0 -6
  225. package/.output/server/node_modules/@babel/runtime/helpers/toConsumableArray.js +0 -8
  226. package/.output/server/node_modules/@babel/runtime/helpers/toPrimitive.js +0 -12
  227. package/.output/server/node_modules/@babel/runtime/helpers/toPropertyKey.js +0 -7
  228. package/.output/server/node_modules/@babel/runtime/helpers/typeof.js +0 -10
  229. package/.output/server/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +0 -9
  230. package/.output/server/node_modules/@babel/runtime/package.json +0 -1107
  231. package/.output/server/node_modules/@humanwhocodes/momoa/api.js +0 -1144
  232. package/.output/server/node_modules/@humanwhocodes/momoa/package.json +0 -49
  233. package/.output/server/node_modules/@readme/better-ajv-errors/lib/helpers.js +0 -129
  234. package/.output/server/node_modules/@readme/better-ajv-errors/lib/index.js +0 -46
  235. package/.output/server/node_modules/@readme/better-ajv-errors/lib/json/get-decorated-data-path.js +0 -47
  236. package/.output/server/node_modules/@readme/better-ajv-errors/lib/json/get-meta-from-path.js +0 -33
  237. package/.output/server/node_modules/@readme/better-ajv-errors/lib/json/index.js +0 -20
  238. package/.output/server/node_modules/@readme/better-ajv-errors/lib/json/utils.js +0 -14
  239. package/.output/server/node_modules/@readme/better-ajv-errors/lib/utils.js +0 -57
  240. package/.output/server/node_modules/@readme/better-ajv-errors/lib/validation-errors/additional-prop.js +0 -53
  241. package/.output/server/node_modules/@readme/better-ajv-errors/lib/validation-errors/base.js +0 -109
  242. package/.output/server/node_modules/@readme/better-ajv-errors/lib/validation-errors/default.js +0 -55
  243. package/.output/server/node_modules/@readme/better-ajv-errors/lib/validation-errors/enum.js +0 -81
  244. package/.output/server/node_modules/@readme/better-ajv-errors/lib/validation-errors/index.js +0 -48
  245. package/.output/server/node_modules/@readme/better-ajv-errors/lib/validation-errors/pattern.js +0 -56
  246. package/.output/server/node_modules/@readme/better-ajv-errors/lib/validation-errors/required.js +0 -64
  247. package/.output/server/node_modules/@readme/better-ajv-errors/lib/validation-errors/unevaluated-prop.js +0 -53
  248. package/.output/server/node_modules/@readme/better-ajv-errors/package.json +0 -68
  249. package/.output/server/node_modules/@readme/http-status-codes/package.json +0 -25
  250. package/.output/server/node_modules/@readme/http-status-codes/src/index.js +0 -142
  251. package/.output/server/node_modules/@readme/openapi-parser/dist/chunk-IYQ77VVR.js +0 -25
  252. package/.output/server/node_modules/@readme/openapi-parser/dist/index.js +0 -923
  253. package/.output/server/node_modules/@readme/openapi-parser/dist/lib/assertions.js +0 -15
  254. package/.output/server/node_modules/@readme/openapi-parser/package.json +0 -84
  255. package/.output/server/node_modules/@readme/openapi-schemas/dist/index.mjs +0 -6153
  256. package/.output/server/node_modules/@readme/openapi-schemas/package.json +0 -67
  257. package/.output/server/node_modules/@readme/postman-to-openapi/package.json +0 -70
  258. package/.output/server/node_modules/@readme/postman-to-openapi/src/index.js +0 -714
  259. package/.output/server/node_modules/@readme/postman-to-openapi/src/md-utils.js +0 -38
  260. package/.output/server/node_modules/@readme/postman-to-openapi/src/var-replacer.js +0 -25
  261. package/.output/server/node_modules/@redocly/config/lib/asyncapi-config-schema.js +0 -53
  262. package/.output/server/node_modules/@redocly/config/lib/common.js +0 -103
  263. package/.output/server/node_modules/@redocly/config/lib/constants/config.js +0 -17
  264. package/.output/server/node_modules/@redocly/config/lib/constants/entities.js +0 -58
  265. package/.output/server/node_modules/@redocly/config/lib/constants/enum.js +0 -6
  266. package/.output/server/node_modules/@redocly/config/lib/constants/shared.js +0 -22
  267. package/.output/server/node_modules/@redocly/config/lib/default-theme-config-schema.js +0 -57
  268. package/.output/server/node_modules/@redocly/config/lib/entities-catalog-config-schema.js +0 -186
  269. package/.output/server/node_modules/@redocly/config/lib/entities-catalog-entity-file-schema.js +0 -283
  270. package/.output/server/node_modules/@redocly/config/lib/ex-theme-config-schemas.js +0 -687
  271. package/.output/server/node_modules/@redocly/config/lib/feedback-config-schema.js +0 -88
  272. package/.output/server/node_modules/@redocly/config/lib/graphql-config-schema.js +0 -157
  273. package/.output/server/node_modules/@redocly/config/lib/index.js +0 -41
  274. package/.output/server/node_modules/@redocly/config/lib/product-override-schema.js +0 -44
  275. package/.output/server/node_modules/@redocly/config/lib/redoc-config-schema.js +0 -120
  276. package/.output/server/node_modules/@redocly/config/lib/reference-docs-config-schema.js +0 -518
  277. package/.output/server/node_modules/@redocly/config/lib/remove-property-recursively.js +0 -28
  278. package/.output/server/node_modules/@redocly/config/lib/reunite-config-schema.js +0 -103
  279. package/.output/server/node_modules/@redocly/config/lib/root-config-schema.js +0 -588
  280. package/.output/server/node_modules/@redocly/config/lib/scorecards-config-schema.js +0 -242
  281. package/.output/server/node_modules/@redocly/config/lib/types/api-functions-types.js +0 -3
  282. package/.output/server/node_modules/@redocly/config/lib/types/catalog-entity-types.js +0 -3
  283. package/.output/server/node_modules/@redocly/config/lib/types/code-walkthrough-types.js +0 -3
  284. package/.output/server/node_modules/@redocly/config/lib/types/config-types.js +0 -3
  285. package/.output/server/node_modules/@redocly/config/lib/types/index.js +0 -21
  286. package/.output/server/node_modules/@redocly/config/lib/types/portal-shared-types.js +0 -18
  287. package/.output/server/node_modules/@redocly/config/package.json +0 -28
  288. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-document.js +0 -100
  289. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-visitor.js +0 -260
  290. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle.js +0 -74
  291. package/.output/server/node_modules/@redocly/openapi-core/lib/config/all.js +0 -315
  292. package/.output/server/node_modules/@redocly/openapi-core/lib/config/builtIn.js +0 -58
  293. package/.output/server/node_modules/@redocly/openapi-core/lib/config/bundle-extends.js +0 -28
  294. package/.output/server/node_modules/@redocly/openapi-core/lib/config/config-resolvers.js +0 -344
  295. package/.output/server/node_modules/@redocly/openapi-core/lib/config/config.js +0 -343
  296. package/.output/server/node_modules/@redocly/openapi-core/lib/config/constants.js +0 -13
  297. package/.output/server/node_modules/@redocly/openapi-core/lib/config/get-resolve-config.js +0 -9
  298. package/.output/server/node_modules/@redocly/openapi-core/lib/config/group-assertion-rules.js +0 -51
  299. package/.output/server/node_modules/@redocly/openapi-core/lib/config/index.js +0 -8
  300. package/.output/server/node_modules/@redocly/openapi-core/lib/config/load.js +0 -98
  301. package/.output/server/node_modules/@redocly/openapi-core/lib/config/minimal.js +0 -294
  302. package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended-strict.js +0 -294
  303. package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended.js +0 -294
  304. package/.output/server/node_modules/@redocly/openapi-core/lib/config/rules.js +0 -35
  305. package/.output/server/node_modules/@redocly/openapi-core/lib/config/spec.js +0 -294
  306. package/.output/server/node_modules/@redocly/openapi-core/lib/config/types.js +0 -2
  307. package/.output/server/node_modules/@redocly/openapi-core/lib/config/utils.js +0 -129
  308. package/.output/server/node_modules/@redocly/openapi-core/lib/config/visitors.js +0 -99
  309. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/arazzo/index.js +0 -2
  310. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async2/index.js +0 -2
  311. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async3/index.js +0 -2
  312. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-helper.js +0 -65
  313. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-in.js +0 -67
  314. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-out.js +0 -67
  315. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-description-override.js +0 -21
  316. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-override.js +0 -14
  317. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/media-type-examples-override.js +0 -58
  318. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/operation-description-override.js +0 -27
  319. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/remove-x-internal.js +0 -68
  320. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/tag-description-override.js +0 -23
  321. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/index.js +0 -19
  322. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/remove-unused-components.js +0 -97
  323. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/index.js +0 -21
  324. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/remove-unused-components.js +0 -120
  325. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/openrpc/index.js +0 -2
  326. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/overlay1/index.js +0 -2
  327. package/.output/server/node_modules/@redocly/openapi-core/lib/detect-spec.js +0 -79
  328. package/.output/server/node_modules/@redocly/openapi-core/lib/env.js +0 -5
  329. package/.output/server/node_modules/@redocly/openapi-core/lib/errors/yaml-parse-error.js +0 -14
  330. package/.output/server/node_modules/@redocly/openapi-core/lib/format/codeframes.js +0 -177
  331. package/.output/server/node_modules/@redocly/openapi-core/lib/format/format.js +0 -365
  332. package/.output/server/node_modules/@redocly/openapi-core/lib/index.js +0 -50
  333. package/.output/server/node_modules/@redocly/openapi-core/lib/js-yaml/index.js +0 -11
  334. package/.output/server/node_modules/@redocly/openapi-core/lib/lint-entity.js +0 -171
  335. package/.output/server/node_modules/@redocly/openapi-core/lib/lint.js +0 -123
  336. package/.output/server/node_modules/@redocly/openapi-core/lib/logger.js +0 -56
  337. package/.output/server/node_modules/@redocly/openapi-core/lib/oas-types.js +0 -35
  338. package/.output/server/node_modules/@redocly/openapi-core/lib/ref-utils.js +0 -110
  339. package/.output/server/node_modules/@redocly/openapi-core/lib/resolve.js +0 -326
  340. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/ajv.js +0 -106
  341. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/criteria-unique.js +0 -68
  342. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/index.js +0 -54
  343. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/outputs-defined.js +0 -139
  344. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/parameters-unique.js +0 -27
  345. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/requestBody-replacements-unique.js +0 -30
  346. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescription-type.js +0 -19
  347. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-name-unique.js +0 -21
  348. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-not-empty.js +0 -15
  349. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onFailure-unique.js +0 -27
  350. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onSuccess-unique.js +0 -27
  351. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/stepId-unique.js +0 -23
  352. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflow-dependsOn.js +0 -53
  353. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflowId-unique.js +0 -19
  354. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/channels-kebab-case.js +0 -16
  355. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/index.js +0 -34
  356. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/no-channel-trailing-slash.js +0 -13
  357. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/channels-kebab-case.js +0 -16
  358. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/index.js +0 -34
  359. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/no-channel-trailing-slash.js +0 -13
  360. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/catalog-entity/entity-key-valid.js +0 -39
  361. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/asserts.js +0 -272
  362. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/index.js +0 -22
  363. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/utils.js +0 -215
  364. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-contact.js +0 -14
  365. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license-strict.js +0 -23
  366. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license.js +0 -14
  367. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-ambiguous-paths.js +0 -42
  368. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-duplicated-tag-names.js +0 -21
  369. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-enum-type-mismatch.js +0 -38
  370. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-http-verbs-in-paths.js +0 -33
  371. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-identical-paths.js +0 -21
  372. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-parameter-examples.js +0 -32
  373. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-schema-examples.js +0 -34
  374. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-mixed-number-range-constraints.js +0 -19
  375. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-path-trailing-slash.js +0 -13
  376. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-required-schema-properties-undefined.js +0 -64
  377. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-schema-type-mismatch.js +0 -19
  378. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-unresolved-refs.js +0 -42
  379. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-2xx-response.js +0 -20
  380. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-4xx-response.js +0 -20
  381. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-description.js +0 -9
  382. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-unique.js +0 -17
  383. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-url-safe.js +0 -15
  384. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId.js +0 -13
  385. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-parameters-unique.js +0 -37
  386. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-singular-tag.js +0 -13
  387. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-summary.js +0 -9
  388. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-tag-defined.js +0 -27
  389. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/parameter-description.js +0 -19
  390. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-declaration-must-exist.js +0 -13
  391. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-http-verbs-order.js +0 -23
  392. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-not-include-query.js +0 -15
  393. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-params-defined.js +0 -145
  394. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-segment-plural.js +0 -30
  395. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/paths-kebab-case.js +0 -17
  396. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/required-string-property-missing-min-length.js +0 -34
  397. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/response-contains-header.js +0 -26
  398. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/scalar-property-missing-example.js +0 -39
  399. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/security-defined.js +0 -62
  400. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/spec-strict-refs.js +0 -27
  401. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/struct.js +0 -150
  402. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tag-description.js +0 -9
  403. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tags-alphabetical.js +0 -18
  404. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/boolean-parameter-prefixes.js +0 -19
  405. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/index.js +0 -93
  406. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/request-mime-type.js +0 -14
  407. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-contains-property.js +0 -34
  408. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-mime-type.js +0 -14
  409. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/array-parameter-serialization.js +0 -26
  410. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/boolean-parameter-prefixes.js +0 -21
  411. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/component-name-unique.js +0 -130
  412. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/index.js +0 -131
  413. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-empty-servers.js +0 -20
  414. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-example-value-and-externalValue.js +0 -13
  415. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-invalid-media-type-examples.js +0 -59
  416. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-example.com.js +0 -15
  417. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-trailing-slash.js +0 -15
  418. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-variables-empty-enum.js +0 -58
  419. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-undefined-server-variable.js +0 -28
  420. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-unused-components.js +0 -83
  421. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/nullable-type-sibling.js +0 -15
  422. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +0 -33
  423. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/request-mime-type.js +0 -28
  424. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-contains-property.js +0 -36
  425. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-mime-type.js +0 -28
  426. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-components-invalid-map-name.js +0 -59
  427. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-discriminator-defaultMapping.js +0 -53
  428. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-example-values.js +0 -31
  429. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-encoding-combinations.js +0 -16
  430. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-tag-parents.js +0 -38
  431. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-querystring-parameters.js +0 -65
  432. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/index.js +0 -20
  433. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/no-unused-components.js +0 -82
  434. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-duplicated-method-params.js +0 -28
  435. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-required-params-after-optional.js +0 -31
  436. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/other/stats.js +0 -190
  437. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/overlay1/index.js +0 -12
  438. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-criteria-xpath.js +0 -20
  439. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.js +0 -30
  440. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-scheme-name-without-openapi.js +0 -25
  441. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/respect-supported-versions.js +0 -18
  442. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-name-reference.js +0 -35
  443. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-required-values.js +0 -60
  444. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/utils.js +0 -181
  445. package/.output/server/node_modules/@redocly/openapi-core/lib/types/arazzo.js +0 -482
  446. package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi2.js +0 -1157
  447. package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi3.js +0 -511
  448. package/.output/server/node_modules/@redocly/openapi-core/lib/types/entity.js +0 -32
  449. package/.output/server/node_modules/@redocly/openapi-core/lib/types/index.js +0 -90
  450. package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-adapter.js +0 -181
  451. package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-draft7.shared.js +0 -101
  452. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas2.js +0 -454
  453. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3.js +0 -828
  454. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_1.js +0 -292
  455. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_2.js +0 -312
  456. package/.output/server/node_modules/@redocly/openapi-core/lib/types/openrpc.js +0 -360
  457. package/.output/server/node_modules/@redocly/openapi-core/lib/types/overlay.js +0 -61
  458. package/.output/server/node_modules/@redocly/openapi-core/lib/types/redocly-yaml.js +0 -577
  459. package/.output/server/node_modules/@redocly/openapi-core/lib/typings/arazzo.js +0 -3
  460. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/assign-config.js +0 -28
  461. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/dequal.js +0 -36
  462. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/does-yaml-file-exist.js +0 -7
  463. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/error.js +0 -3
  464. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-intersection-length.js +0 -11
  465. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-matching-status-code-range.js +0 -4
  466. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-own.js +0 -4
  467. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/identity.js +0 -4
  468. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-custom-rule-id.js +0 -4
  469. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-defined.js +0 -4
  470. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-array.js +0 -4
  471. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-object.js +0 -5
  472. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-array.js +0 -4
  473. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-object.js +0 -6
  474. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-string.js +0 -5
  475. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-ordered.js +0 -27
  476. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-path-parameter.js +0 -4
  477. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-plain-object.js +0 -4
  478. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-string.js +0 -4
  479. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-truthy.js +0 -4
  480. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/keys-of.js +0 -6
  481. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/make-ref-id.js +0 -4
  482. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/next-tick.js +0 -6
  483. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/oas-has-component.js +0 -4
  484. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/omit.js +0 -8
  485. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pause.js +0 -4
  486. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pluralize.js +0 -8
  487. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/read-file-from-url.js +0 -26
  488. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/regex-from-string.js +0 -5
  489. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/scorecards.js +0 -99
  490. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/slash.js +0 -11
  491. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/split-camel-case-into-words.js +0 -13
  492. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/stack.js +0 -7
  493. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/validate-mime-type.js +0 -31
  494. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/yaml-fs-helper.js +0 -23
  495. package/.output/server/node_modules/@redocly/openapi-core/lib/visitors.js +0 -177
  496. package/.output/server/node_modules/@redocly/openapi-core/lib/walk.js +0 -315
  497. package/.output/server/node_modules/@redocly/openapi-core/package.json +0 -74
  498. package/.output/server/node_modules/@stoplight/ordered-object-literal/package.json +0 -53
  499. package/.output/server/node_modules/@stoplight/ordered-object-literal/src/index.cjs +0 -221
  500. package/.output/server/node_modules/@stoplight/types/dist/index.js +0 -129
  501. package/.output/server/node_modules/@stoplight/types/package.json +0 -81
  502. package/.output/server/node_modules/@stoplight/yaml/buildJsonPath.js +0 -41
  503. package/.output/server/node_modules/@stoplight/yaml/dereferenceAnchor.js +0 -38
  504. package/.output/server/node_modules/@stoplight/yaml/getJsonPathForPosition.js +0 -98
  505. package/.output/server/node_modules/@stoplight/yaml/getLocationForJsonPath.js +0 -145
  506. package/.output/server/node_modules/@stoplight/yaml/index.js +0 -16
  507. package/.output/server/node_modules/@stoplight/yaml/lineForPosition.js +0 -31
  508. package/.output/server/node_modules/@stoplight/yaml/package.json +0 -33
  509. package/.output/server/node_modules/@stoplight/yaml/parse.js +0 -5
  510. package/.output/server/node_modules/@stoplight/yaml/parseWithPointers.js +0 -456
  511. package/.output/server/node_modules/@stoplight/yaml/safeStringify.js +0 -5
  512. package/.output/server/node_modules/@stoplight/yaml/trapAccess.js +0 -11
  513. package/.output/server/node_modules/@stoplight/yaml/types.js +0 -6
  514. package/.output/server/node_modules/@stoplight/yaml/utils.js +0 -4
  515. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/common.js +0 -45
  516. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/dumper.js +0 -710
  517. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/exception.js +0 -35
  518. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/index.js +0 -22
  519. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/loader.js +0 -1414
  520. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/mark.js +0 -58
  521. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/scalarInference.js +0 -90
  522. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/schema/core.js +0 -8
  523. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/schema/default_full.js +0 -14
  524. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/schema/default_safe.js +0 -19
  525. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/schema/failsafe.js +0 -10
  526. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/schema/json.js +0 -14
  527. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/schema.js +0 -77
  528. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/binary.js +0 -92
  529. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/bool.js +0 -32
  530. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/float.js +0 -94
  531. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/int.js +0 -159
  532. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/js/regexp.js +0 -64
  533. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/js/undefined.js +0 -22
  534. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/map.js +0 -7
  535. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/merge.js +0 -10
  536. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/null.js +0 -30
  537. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/omap.js +0 -46
  538. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/pairs.js +0 -55
  539. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/seq.js +0 -7
  540. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/set.js +0 -22
  541. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/str.js +0 -7
  542. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type/timestamp.js +0 -70
  543. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/type.js +0 -53
  544. package/.output/server/node_modules/@stoplight/yaml-ast-parser/dist/src/yamlAST.js +0 -81
  545. package/.output/server/node_modules/@stoplight/yaml-ast-parser/package.json +0 -38
  546. package/.output/server/node_modules/ajv-draft-04/dist/index.js +0 -50
  547. package/.output/server/node_modules/ajv-draft-04/dist/refs/json-schema-draft-04.json +0 -138
  548. package/.output/server/node_modules/ajv-draft-04/dist/vocabulary/core.js +0 -13
  549. package/.output/server/node_modules/ajv-draft-04/dist/vocabulary/draft4.js +0 -16
  550. package/.output/server/node_modules/ajv-draft-04/dist/vocabulary/validation/index.js +0 -35
  551. package/.output/server/node_modules/ajv-draft-04/dist/vocabulary/validation/limitNumber.js +0 -44
  552. package/.output/server/node_modules/ajv-draft-04/dist/vocabulary/validation/limitNumberExclusive.js +0 -19
  553. package/.output/server/node_modules/ajv-draft-04/package.json +0 -74
  554. package/.output/server/node_modules/ajv-formats/dist/formats.js +0 -208
  555. package/.output/server/node_modules/ajv-formats/dist/index.js +0 -37
  556. package/.output/server/node_modules/ajv-formats/dist/limit.js +0 -69
  557. package/.output/server/node_modules/ajv-formats/package.json +0 -74
  558. package/.output/server/node_modules/call-me-maybe/package.json +0 -45
  559. package/.output/server/node_modules/call-me-maybe/src/maybe.js +0 -18
  560. package/.output/server/node_modules/call-me-maybe/src/next.js +0 -15
  561. package/.output/server/node_modules/colorette/index.js +0 -82
  562. package/.output/server/node_modules/colorette/package.json +0 -39
  563. package/.output/server/node_modules/compute-gcd/lib/index.js +0 -212
  564. package/.output/server/node_modules/compute-gcd/package.json +0 -73
  565. package/.output/server/node_modules/compute-lcm/lib/index.js +0 -111
  566. package/.output/server/node_modules/compute-lcm/package.json +0 -71
  567. package/.output/server/node_modules/d/index.js +0 -62
  568. package/.output/server/node_modules/d/package.json +0 -92
  569. package/.output/server/node_modules/es5-ext/array/#/e-index-of.js +0 -28
  570. package/.output/server/node_modules/es5-ext/array/from/index.js +0 -3
  571. package/.output/server/node_modules/es5-ext/array/from/is-implemented.js +0 -9
  572. package/.output/server/node_modules/es5-ext/array/from/shim.js +0 -119
  573. package/.output/server/node_modules/es5-ext/array/to-array.js +0 -6
  574. package/.output/server/node_modules/es5-ext/error/custom.js +0 -20
  575. package/.output/server/node_modules/es5-ext/function/_define-length.js +0 -54
  576. package/.output/server/node_modules/es5-ext/function/is-arguments.js +0 -6
  577. package/.output/server/node_modules/es5-ext/function/is-function.js +0 -8
  578. package/.output/server/node_modules/es5-ext/function/noop.js +0 -4
  579. package/.output/server/node_modules/es5-ext/math/sign/index.js +0 -3
  580. package/.output/server/node_modules/es5-ext/math/sign/is-implemented.js +0 -7
  581. package/.output/server/node_modules/es5-ext/math/sign/shim.js +0 -7
  582. package/.output/server/node_modules/es5-ext/number/is-nan/index.js +0 -3
  583. package/.output/server/node_modules/es5-ext/number/is-nan/is-implemented.js +0 -7
  584. package/.output/server/node_modules/es5-ext/number/is-nan/shim.js +0 -6
  585. package/.output/server/node_modules/es5-ext/number/to-integer.js +0 -12
  586. package/.output/server/node_modules/es5-ext/number/to-pos-integer.js +0 -6
  587. package/.output/server/node_modules/es5-ext/object/_iterate.js +0 -30
  588. package/.output/server/node_modules/es5-ext/object/assign/index.js +0 -3
  589. package/.output/server/node_modules/es5-ext/object/assign/is-implemented.js +0 -9
  590. package/.output/server/node_modules/es5-ext/object/assign/shim.js +0 -23
  591. package/.output/server/node_modules/es5-ext/object/for-each.js +0 -3
  592. package/.output/server/node_modules/es5-ext/object/is-callable.js +0 -5
  593. package/.output/server/node_modules/es5-ext/object/is-object.js +0 -7
  594. package/.output/server/node_modules/es5-ext/object/is-value.js +0 -5
  595. package/.output/server/node_modules/es5-ext/object/keys/index.js +0 -3
  596. package/.output/server/node_modules/es5-ext/object/keys/is-implemented.js +0 -10
  597. package/.output/server/node_modules/es5-ext/object/keys/shim.js +0 -7
  598. package/.output/server/node_modules/es5-ext/object/map.js +0 -14
  599. package/.output/server/node_modules/es5-ext/object/mixin.js +0 -26
  600. package/.output/server/node_modules/es5-ext/object/normalize-options.js +0 -20
  601. package/.output/server/node_modules/es5-ext/object/primitive-set.js +0 -10
  602. package/.output/server/node_modules/es5-ext/object/valid-callable.js +0 -6
  603. package/.output/server/node_modules/es5-ext/object/valid-value.js +0 -8
  604. package/.output/server/node_modules/es5-ext/object/validate-stringifiable-value.js +0 -6
  605. package/.output/server/node_modules/es5-ext/object/validate-stringifiable.js +0 -12
  606. package/.output/server/node_modules/es5-ext/package.json +0 -127
  607. package/.output/server/node_modules/es5-ext/safe-to-string.js +0 -12
  608. package/.output/server/node_modules/es5-ext/string/#/contains/index.js +0 -3
  609. package/.output/server/node_modules/es5-ext/string/#/contains/is-implemented.js +0 -8
  610. package/.output/server/node_modules/es5-ext/string/#/contains/shim.js +0 -7
  611. package/.output/server/node_modules/es5-ext/string/is-string.js +0 -13
  612. package/.output/server/node_modules/es5-ext/to-short-string-representation.js +0 -16
  613. package/.output/server/node_modules/es6-symbol/index.js +0 -5
  614. package/.output/server/node_modules/es6-symbol/is-implemented.js +0 -20
  615. package/.output/server/node_modules/es6-symbol/is-symbol.js +0 -9
  616. package/.output/server/node_modules/es6-symbol/lib/private/generate-name.js +0 -28
  617. package/.output/server/node_modules/es6-symbol/lib/private/setup/standard-symbols.js +0 -34
  618. package/.output/server/node_modules/es6-symbol/lib/private/setup/symbol-registry.js +0 -23
  619. package/.output/server/node_modules/es6-symbol/package.json +0 -107
  620. package/.output/server/node_modules/es6-symbol/polyfill.js +0 -86
  621. package/.output/server/node_modules/es6-symbol/validate-symbol.js +0 -8
  622. package/.output/server/node_modules/event-emitter/index.js +0 -132
  623. package/.output/server/node_modules/event-emitter/package.json +0 -34
  624. package/.output/server/node_modules/ext/global-this/implementation.js +0 -31
  625. package/.output/server/node_modules/ext/global-this/index.js +0 -3
  626. package/.output/server/node_modules/ext/global-this/is-implemented.js +0 -7
  627. package/.output/server/node_modules/ext/package.json +0 -152
  628. package/.output/server/node_modules/fast-deep-equal/index.js +0 -46
  629. package/.output/server/node_modules/fast-deep-equal/package.json +0 -61
  630. package/.output/server/node_modules/fast-safe-stringify/index.js +0 -229
  631. package/.output/server/node_modules/fast-safe-stringify/package.json +0 -46
  632. package/.output/server/node_modules/fast-uri/index.js +0 -340
  633. package/.output/server/node_modules/fast-uri/lib/schemes.js +0 -267
  634. package/.output/server/node_modules/fast-uri/lib/utils.js +0 -336
  635. package/.output/server/node_modules/fast-uri/package.json +0 -69
  636. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/base.js +0 -116
  637. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/compiler/ast.js +0 -31
  638. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/compiler/base.js +0 -116
  639. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/compiler/code-gen.js +0 -168
  640. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js +0 -566
  641. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/compiler/helpers.js +0 -228
  642. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js +0 -1166
  643. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js +0 -737
  644. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/compiler/printer.js +0 -186
  645. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/compiler/visitor.js +0 -140
  646. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/compiler/whitespace-control.js +0 -221
  647. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/decorators/inline.js +0 -29
  648. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/decorators.js +0 -16
  649. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/exception.js +0 -64
  650. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js +0 -39
  651. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/helpers/each.js +0 -104
  652. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/helpers/helper-missing.js +0 -25
  653. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/helpers/if.js +0 -46
  654. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/helpers/log.js +0 -26
  655. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/helpers/lookup.js +0 -16
  656. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/helpers/with.js +0 -43
  657. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/helpers.js +0 -57
  658. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js +0 -78
  659. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js +0 -19
  660. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/logger.js +0 -47
  661. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/no-conflict.js +0 -30
  662. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/runtime.js +0 -379
  663. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/safe-string.js +0 -15
  664. package/.output/server/node_modules/handlebars/dist/cjs/handlebars/utils.js +0 -124
  665. package/.output/server/node_modules/handlebars/dist/cjs/handlebars.js +0 -66
  666. package/.output/server/node_modules/handlebars/dist/cjs/handlebars.runtime.js +0 -66
  667. package/.output/server/node_modules/handlebars/lib/index.js +0 -26
  668. package/.output/server/node_modules/handlebars/package.json +0 -134
  669. package/.output/server/node_modules/http2-client/lib/http.js +0 -17
  670. package/.output/server/node_modules/http2-client/lib/https.js +0 -18
  671. package/.output/server/node_modules/http2-client/lib/index.js +0 -21
  672. package/.output/server/node_modules/http2-client/lib/request-options.js +0 -38
  673. package/.output/server/node_modules/http2-client/lib/request.js +0 -586
  674. package/.output/server/node_modules/http2-client/lib/utils.js +0 -67
  675. package/.output/server/node_modules/http2-client/package.json +0 -38
  676. package/.output/server/node_modules/is-promise/index.js +0 -6
  677. package/.output/server/node_modules/is-promise/package.json +0 -23
  678. package/.output/server/node_modules/js-levenshtein/index.js +0 -105
  679. package/.output/server/node_modules/js-levenshtein/package.json +0 -49
  680. package/.output/server/node_modules/js-tokens/index.js +0 -23
  681. package/.output/server/node_modules/js-tokens/package.json +0 -30
  682. package/.output/server/node_modules/js-yaml/dist/js-yaml.mjs +0 -3856
  683. package/.output/server/node_modules/js-yaml/index.js +0 -47
  684. package/.output/server/node_modules/js-yaml/lib/common.js +0 -59
  685. package/.output/server/node_modules/js-yaml/lib/dumper.js +0 -965
  686. package/.output/server/node_modules/js-yaml/lib/exception.js +0 -55
  687. package/.output/server/node_modules/js-yaml/lib/loader.js +0 -1733
  688. package/.output/server/node_modules/js-yaml/lib/schema/core.js +0 -11
  689. package/.output/server/node_modules/js-yaml/lib/schema/default.js +0 -22
  690. package/.output/server/node_modules/js-yaml/lib/schema/failsafe.js +0 -17
  691. package/.output/server/node_modules/js-yaml/lib/schema/json.js +0 -19
  692. package/.output/server/node_modules/js-yaml/lib/schema.js +0 -121
  693. package/.output/server/node_modules/js-yaml/lib/snippet.js +0 -101
  694. package/.output/server/node_modules/js-yaml/lib/type/binary.js +0 -125
  695. package/.output/server/node_modules/js-yaml/lib/type/bool.js +0 -35
  696. package/.output/server/node_modules/js-yaml/lib/type/float.js +0 -97
  697. package/.output/server/node_modules/js-yaml/lib/type/int.js +0 -156
  698. package/.output/server/node_modules/js-yaml/lib/type/map.js +0 -8
  699. package/.output/server/node_modules/js-yaml/lib/type/merge.js +0 -12
  700. package/.output/server/node_modules/js-yaml/lib/type/null.js +0 -35
  701. package/.output/server/node_modules/js-yaml/lib/type/omap.js +0 -44
  702. package/.output/server/node_modules/js-yaml/lib/type/pairs.js +0 -53
  703. package/.output/server/node_modules/js-yaml/lib/type/seq.js +0 -8
  704. package/.output/server/node_modules/js-yaml/lib/type/set.js +0 -29
  705. package/.output/server/node_modules/js-yaml/lib/type/str.js +0 -8
  706. package/.output/server/node_modules/js-yaml/lib/type/timestamp.js +0 -88
  707. package/.output/server/node_modules/js-yaml/lib/type.js +0 -66
  708. package/.output/server/node_modules/js-yaml/package.json +0 -66
  709. package/.output/server/node_modules/json-schema-compare/package.json +0 -52
  710. package/.output/server/node_modules/json-schema-compare/src/index.js +0 -184
  711. package/.output/server/node_modules/json-schema-merge-allof/package.json +0 -57
  712. package/.output/server/node_modules/json-schema-merge-allof/src/common.js +0 -45
  713. package/.output/server/node_modules/json-schema-merge-allof/src/complex-resolvers/items.js +0 -98
  714. package/.output/server/node_modules/json-schema-merge-allof/src/complex-resolvers/properties.js +0 -80
  715. package/.output/server/node_modules/json-schema-merge-allof/src/index.js +0 -343
  716. package/.output/server/node_modules/json-schema-traverse/index.js +0 -93
  717. package/.output/server/node_modules/json-schema-traverse/package.json +0 -43
  718. package/.output/server/node_modules/jsonc-parser/lib/umd/impl/edit.js +0 -201
  719. package/.output/server/node_modules/jsonc-parser/lib/umd/impl/format.js +0 -265
  720. package/.output/server/node_modules/jsonc-parser/lib/umd/impl/parser.js +0 -655
  721. package/.output/server/node_modules/jsonc-parser/lib/umd/impl/scanner.js +0 -456
  722. package/.output/server/node_modules/jsonc-parser/lib/umd/main.js +0 -194
  723. package/.output/server/node_modules/jsonc-parser/package.json +0 -40
  724. package/.output/server/node_modules/jsonpointer/jsonpointer.js +0 -100
  725. package/.output/server/node_modules/jsonpointer/package.json +0 -48
  726. package/.output/server/node_modules/leven/index.js +0 -77
  727. package/.output/server/node_modules/leven/package.json +0 -57
  728. package/.output/server/node_modules/lodash/_DataView.js +0 -7
  729. package/.output/server/node_modules/lodash/_Hash.js +0 -32
  730. package/.output/server/node_modules/lodash/_ListCache.js +0 -32
  731. package/.output/server/node_modules/lodash/_Map.js +0 -7
  732. package/.output/server/node_modules/lodash/_MapCache.js +0 -32
  733. package/.output/server/node_modules/lodash/_Promise.js +0 -7
  734. package/.output/server/node_modules/lodash/_Set.js +0 -7
  735. package/.output/server/node_modules/lodash/_SetCache.js +0 -27
  736. package/.output/server/node_modules/lodash/_Stack.js +0 -27
  737. package/.output/server/node_modules/lodash/_Symbol.js +0 -6
  738. package/.output/server/node_modules/lodash/_Uint8Array.js +0 -6
  739. package/.output/server/node_modules/lodash/_WeakMap.js +0 -7
  740. package/.output/server/node_modules/lodash/_apply.js +0 -21
  741. package/.output/server/node_modules/lodash/_arrayEach.js +0 -22
  742. package/.output/server/node_modules/lodash/_arrayFilter.js +0 -25
  743. package/.output/server/node_modules/lodash/_arrayIncludes.js +0 -17
  744. package/.output/server/node_modules/lodash/_arrayIncludesWith.js +0 -22
  745. package/.output/server/node_modules/lodash/_arrayLikeKeys.js +0 -49
  746. package/.output/server/node_modules/lodash/_arrayMap.js +0 -21
  747. package/.output/server/node_modules/lodash/_arrayPush.js +0 -20
  748. package/.output/server/node_modules/lodash/_arraySome.js +0 -23
  749. package/.output/server/node_modules/lodash/_assignMergeValue.js +0 -20
  750. package/.output/server/node_modules/lodash/_assignValue.js +0 -28
  751. package/.output/server/node_modules/lodash/_assocIndexOf.js +0 -21
  752. package/.output/server/node_modules/lodash/_baseAssign.js +0 -17
  753. package/.output/server/node_modules/lodash/_baseAssignIn.js +0 -17
  754. package/.output/server/node_modules/lodash/_baseAssignValue.js +0 -25
  755. package/.output/server/node_modules/lodash/_baseClone.js +0 -166
  756. package/.output/server/node_modules/lodash/_baseCreate.js +0 -30
  757. package/.output/server/node_modules/lodash/_baseDifference.js +0 -67
  758. package/.output/server/node_modules/lodash/_baseEach.js +0 -14
  759. package/.output/server/node_modules/lodash/_baseFindIndex.js +0 -24
  760. package/.output/server/node_modules/lodash/_baseFlatten.js +0 -38
  761. package/.output/server/node_modules/lodash/_baseFor.js +0 -16
  762. package/.output/server/node_modules/lodash/_baseForOwn.js +0 -16
  763. package/.output/server/node_modules/lodash/_baseGet.js +0 -24
  764. package/.output/server/node_modules/lodash/_baseGetAllKeys.js +0 -20
  765. package/.output/server/node_modules/lodash/_baseGetTag.js +0 -28
  766. package/.output/server/node_modules/lodash/_baseHasIn.js +0 -13
  767. package/.output/server/node_modules/lodash/_baseIndexOf.js +0 -20
  768. package/.output/server/node_modules/lodash/_baseIndexOfWith.js +0 -23
  769. package/.output/server/node_modules/lodash/_baseIntersection.js +0 -74
  770. package/.output/server/node_modules/lodash/_baseIsArguments.js +0 -18
  771. package/.output/server/node_modules/lodash/_baseIsEqual.js +0 -28
  772. package/.output/server/node_modules/lodash/_baseIsEqualDeep.js +0 -83
  773. package/.output/server/node_modules/lodash/_baseIsMap.js +0 -18
  774. package/.output/server/node_modules/lodash/_baseIsMatch.js +0 -62
  775. package/.output/server/node_modules/lodash/_baseIsNaN.js +0 -12
  776. package/.output/server/node_modules/lodash/_baseIsNative.js +0 -47
  777. package/.output/server/node_modules/lodash/_baseIsSet.js +0 -18
  778. package/.output/server/node_modules/lodash/_baseIsTypedArray.js +0 -60
  779. package/.output/server/node_modules/lodash/_baseIteratee.js +0 -31
  780. package/.output/server/node_modules/lodash/_baseKeys.js +0 -30
  781. package/.output/server/node_modules/lodash/_baseKeysIn.js +0 -33
  782. package/.output/server/node_modules/lodash/_baseMap.js +0 -22
  783. package/.output/server/node_modules/lodash/_baseMatches.js +0 -22
  784. package/.output/server/node_modules/lodash/_baseMatchesProperty.js +0 -33
  785. package/.output/server/node_modules/lodash/_baseMerge.js +0 -42
  786. package/.output/server/node_modules/lodash/_baseMergeDeep.js +0 -94
  787. package/.output/server/node_modules/lodash/_baseOrderBy.js +0 -49
  788. package/.output/server/node_modules/lodash/_baseProperty.js +0 -14
  789. package/.output/server/node_modules/lodash/_basePropertyDeep.js +0 -16
  790. package/.output/server/node_modules/lodash/_basePullAll.js +0 -51
  791. package/.output/server/node_modules/lodash/_baseRest.js +0 -17
  792. package/.output/server/node_modules/lodash/_baseSetToString.js +0 -22
  793. package/.output/server/node_modules/lodash/_baseSortBy.js +0 -21
  794. package/.output/server/node_modules/lodash/_baseTimes.js +0 -20
  795. package/.output/server/node_modules/lodash/_baseToString.js +0 -37
  796. package/.output/server/node_modules/lodash/_baseUnary.js +0 -14
  797. package/.output/server/node_modules/lodash/_baseUniq.js +0 -72
  798. package/.output/server/node_modules/lodash/_cacheHas.js +0 -13
  799. package/.output/server/node_modules/lodash/_castArrayLikeObject.js +0 -14
  800. package/.output/server/node_modules/lodash/_castFunction.js +0 -14
  801. package/.output/server/node_modules/lodash/_castPath.js +0 -21
  802. package/.output/server/node_modules/lodash/_cloneArrayBuffer.js +0 -16
  803. package/.output/server/node_modules/lodash/_cloneBuffer.js +0 -35
  804. package/.output/server/node_modules/lodash/_cloneDataView.js +0 -16
  805. package/.output/server/node_modules/lodash/_cloneRegExp.js +0 -17
  806. package/.output/server/node_modules/lodash/_cloneSymbol.js +0 -18
  807. package/.output/server/node_modules/lodash/_cloneTypedArray.js +0 -16
  808. package/.output/server/node_modules/lodash/_compareAscending.js +0 -41
  809. package/.output/server/node_modules/lodash/_compareMultiple.js +0 -44
  810. package/.output/server/node_modules/lodash/_copyArray.js +0 -20
  811. package/.output/server/node_modules/lodash/_copyObject.js +0 -40
  812. package/.output/server/node_modules/lodash/_copySymbols.js +0 -16
  813. package/.output/server/node_modules/lodash/_copySymbolsIn.js +0 -16
  814. package/.output/server/node_modules/lodash/_coreJsData.js +0 -6
  815. package/.output/server/node_modules/lodash/_createAssigner.js +0 -37
  816. package/.output/server/node_modules/lodash/_createBaseEach.js +0 -32
  817. package/.output/server/node_modules/lodash/_createBaseFor.js +0 -25
  818. package/.output/server/node_modules/lodash/_createSet.js +0 -19
  819. package/.output/server/node_modules/lodash/_customDefaultsMerge.js +0 -28
  820. package/.output/server/node_modules/lodash/_defineProperty.js +0 -11
  821. package/.output/server/node_modules/lodash/_equalArrays.js +0 -84
  822. package/.output/server/node_modules/lodash/_equalByTag.js +0 -112
  823. package/.output/server/node_modules/lodash/_equalObjects.js +0 -90
  824. package/.output/server/node_modules/lodash/_freeGlobal.js +0 -4
  825. package/.output/server/node_modules/lodash/_getAllKeys.js +0 -16
  826. package/.output/server/node_modules/lodash/_getAllKeysIn.js +0 -17
  827. package/.output/server/node_modules/lodash/_getMapData.js +0 -18
  828. package/.output/server/node_modules/lodash/_getMatchData.js +0 -24
  829. package/.output/server/node_modules/lodash/_getNative.js +0 -17
  830. package/.output/server/node_modules/lodash/_getPrototype.js +0 -6
  831. package/.output/server/node_modules/lodash/_getRawTag.js +0 -46
  832. package/.output/server/node_modules/lodash/_getSymbols.js +0 -30
  833. package/.output/server/node_modules/lodash/_getSymbolsIn.js +0 -25
  834. package/.output/server/node_modules/lodash/_getTag.js +0 -58
  835. package/.output/server/node_modules/lodash/_getValue.js +0 -13
  836. package/.output/server/node_modules/lodash/_hasPath.js +0 -39
  837. package/.output/server/node_modules/lodash/_hashClear.js +0 -15
  838. package/.output/server/node_modules/lodash/_hashDelete.js +0 -17
  839. package/.output/server/node_modules/lodash/_hashGet.js +0 -30
  840. package/.output/server/node_modules/lodash/_hashHas.js +0 -23
  841. package/.output/server/node_modules/lodash/_hashSet.js +0 -23
  842. package/.output/server/node_modules/lodash/_initCloneArray.js +0 -26
  843. package/.output/server/node_modules/lodash/_initCloneByTag.js +0 -77
  844. package/.output/server/node_modules/lodash/_initCloneObject.js +0 -18
  845. package/.output/server/node_modules/lodash/_isFlattenable.js +0 -20
  846. package/.output/server/node_modules/lodash/_isIndex.js +0 -25
  847. package/.output/server/node_modules/lodash/_isIterateeCall.js +0 -30
  848. package/.output/server/node_modules/lodash/_isKey.js +0 -29
  849. package/.output/server/node_modules/lodash/_isKeyable.js +0 -15
  850. package/.output/server/node_modules/lodash/_isMasked.js +0 -20
  851. package/.output/server/node_modules/lodash/_isPrototype.js +0 -18
  852. package/.output/server/node_modules/lodash/_isStrictComparable.js +0 -15
  853. package/.output/server/node_modules/lodash/_listCacheClear.js +0 -13
  854. package/.output/server/node_modules/lodash/_listCacheDelete.js +0 -35
  855. package/.output/server/node_modules/lodash/_listCacheGet.js +0 -19
  856. package/.output/server/node_modules/lodash/_listCacheHas.js +0 -16
  857. package/.output/server/node_modules/lodash/_listCacheSet.js +0 -26
  858. package/.output/server/node_modules/lodash/_mapCacheClear.js +0 -21
  859. package/.output/server/node_modules/lodash/_mapCacheDelete.js +0 -18
  860. package/.output/server/node_modules/lodash/_mapCacheGet.js +0 -16
  861. package/.output/server/node_modules/lodash/_mapCacheHas.js +0 -16
  862. package/.output/server/node_modules/lodash/_mapCacheSet.js +0 -22
  863. package/.output/server/node_modules/lodash/_mapToArray.js +0 -18
  864. package/.output/server/node_modules/lodash/_matchesStrictComparable.js +0 -20
  865. package/.output/server/node_modules/lodash/_memoizeCapped.js +0 -26
  866. package/.output/server/node_modules/lodash/_nativeCreate.js +0 -6
  867. package/.output/server/node_modules/lodash/_nativeKeys.js +0 -6
  868. package/.output/server/node_modules/lodash/_nativeKeysIn.js +0 -20
  869. package/.output/server/node_modules/lodash/_nodeUtil.js +0 -30
  870. package/.output/server/node_modules/lodash/_objectToString.js +0 -22
  871. package/.output/server/node_modules/lodash/_overArg.js +0 -15
  872. package/.output/server/node_modules/lodash/_overRest.js +0 -36
  873. package/.output/server/node_modules/lodash/_root.js +0 -9
  874. package/.output/server/node_modules/lodash/_safeGet.js +0 -21
  875. package/.output/server/node_modules/lodash/_setCacheAdd.js +0 -19
  876. package/.output/server/node_modules/lodash/_setCacheHas.js +0 -14
  877. package/.output/server/node_modules/lodash/_setToArray.js +0 -18
  878. package/.output/server/node_modules/lodash/_setToString.js +0 -14
  879. package/.output/server/node_modules/lodash/_shortOut.js +0 -37
  880. package/.output/server/node_modules/lodash/_stackClear.js +0 -15
  881. package/.output/server/node_modules/lodash/_stackDelete.js +0 -18
  882. package/.output/server/node_modules/lodash/_stackGet.js +0 -14
  883. package/.output/server/node_modules/lodash/_stackHas.js +0 -14
  884. package/.output/server/node_modules/lodash/_stackSet.js +0 -34
  885. package/.output/server/node_modules/lodash/_strictIndexOf.js +0 -23
  886. package/.output/server/node_modules/lodash/_stringToPath.js +0 -27
  887. package/.output/server/node_modules/lodash/_toKey.js +0 -21
  888. package/.output/server/node_modules/lodash/_toSource.js +0 -26
  889. package/.output/server/node_modules/lodash/cloneDeep.js +0 -29
  890. package/.output/server/node_modules/lodash/constant.js +0 -26
  891. package/.output/server/node_modules/lodash/defaults.js +0 -64
  892. package/.output/server/node_modules/lodash/defaultsDeep.js +0 -30
  893. package/.output/server/node_modules/lodash/eq.js +0 -37
  894. package/.output/server/node_modules/lodash/flatten.js +0 -22
  895. package/.output/server/node_modules/lodash/flattenDeep.js +0 -25
  896. package/.output/server/node_modules/lodash/forEach.js +0 -41
  897. package/.output/server/node_modules/lodash/get.js +0 -33
  898. package/.output/server/node_modules/lodash/hasIn.js +0 -34
  899. package/.output/server/node_modules/lodash/identity.js +0 -21
  900. package/.output/server/node_modules/lodash/intersection.js +0 -30
  901. package/.output/server/node_modules/lodash/intersectionWith.js +0 -41
  902. package/.output/server/node_modules/lodash/isArguments.js +0 -36
  903. package/.output/server/node_modules/lodash/isArray.js +0 -26
  904. package/.output/server/node_modules/lodash/isArrayLike.js +0 -33
  905. package/.output/server/node_modules/lodash/isArrayLikeObject.js +0 -33
  906. package/.output/server/node_modules/lodash/isBoolean.js +0 -29
  907. package/.output/server/node_modules/lodash/isBuffer.js +0 -38
  908. package/.output/server/node_modules/lodash/isEqual.js +0 -35
  909. package/.output/server/node_modules/lodash/isFunction.js +0 -37
  910. package/.output/server/node_modules/lodash/isLength.js +0 -35
  911. package/.output/server/node_modules/lodash/isMap.js +0 -27
  912. package/.output/server/node_modules/lodash/isObject.js +0 -31
  913. package/.output/server/node_modules/lodash/isObjectLike.js +0 -29
  914. package/.output/server/node_modules/lodash/isPlainObject.js +0 -62
  915. package/.output/server/node_modules/lodash/isSet.js +0 -27
  916. package/.output/server/node_modules/lodash/isSymbol.js +0 -29
  917. package/.output/server/node_modules/lodash/isTypedArray.js +0 -27
  918. package/.output/server/node_modules/lodash/keys.js +0 -37
  919. package/.output/server/node_modules/lodash/keysIn.js +0 -32
  920. package/.output/server/node_modules/lodash/last.js +0 -20
  921. package/.output/server/node_modules/lodash/memoize.js +0 -73
  922. package/.output/server/node_modules/lodash/mergeWith.js +0 -39
  923. package/.output/server/node_modules/lodash/noop.js +0 -17
  924. package/.output/server/node_modules/lodash/package.json +0 -19
  925. package/.output/server/node_modules/lodash/property.js +0 -32
  926. package/.output/server/node_modules/lodash/pullAll.js +0 -29
  927. package/.output/server/node_modules/lodash/sortBy.js +0 -48
  928. package/.output/server/node_modules/lodash/stubArray.js +0 -23
  929. package/.output/server/node_modules/lodash/stubFalse.js +0 -18
  930. package/.output/server/node_modules/lodash/toPlainObject.js +0 -32
  931. package/.output/server/node_modules/lodash/toString.js +0 -28
  932. package/.output/server/node_modules/lodash/uniq.js +0 -25
  933. package/.output/server/node_modules/lodash/uniqWith.js +0 -28
  934. package/.output/server/node_modules/lodash/without.js +0 -31
  935. package/.output/server/node_modules/lodash.camelcase/index.js +0 -599
  936. package/.output/server/node_modules/lodash.camelcase/package.json +0 -19
  937. package/.output/server/node_modules/lru-queue/index.js +0 -48
  938. package/.output/server/node_modules/lru-queue/package.json +0 -25
  939. package/.output/server/node_modules/marked/lib/marked.cjs +0 -2811
  940. package/.output/server/node_modules/marked/package.json +0 -93
  941. package/.output/server/node_modules/memoizee/ext/async.js +0 -154
  942. package/.output/server/node_modules/memoizee/ext/dispose.js +0 -27
  943. package/.output/server/node_modules/memoizee/ext/max-age.js +0 -90
  944. package/.output/server/node_modules/memoizee/ext/max.js +0 -32
  945. package/.output/server/node_modules/memoizee/ext/promise.js +0 -147
  946. package/.output/server/node_modules/memoizee/ext/ref-counter.js +0 -42
  947. package/.output/server/node_modules/memoizee/index.js +0 -34
  948. package/.output/server/node_modules/memoizee/lib/configure-map.js +0 -182
  949. package/.output/server/node_modules/memoizee/lib/registered-extensions.js +0 -1
  950. package/.output/server/node_modules/memoizee/lib/resolve-length.js +0 -15
  951. package/.output/server/node_modules/memoizee/lib/resolve-normalize.js +0 -17
  952. package/.output/server/node_modules/memoizee/lib/resolve-resolve.js +0 -19
  953. package/.output/server/node_modules/memoizee/normalizers/get-1.js +0 -29
  954. package/.output/server/node_modules/memoizee/normalizers/get-fixed.js +0 -71
  955. package/.output/server/node_modules/memoizee/normalizers/get-primitive-fixed.js +0 -14
  956. package/.output/server/node_modules/memoizee/normalizers/get.js +0 -90
  957. package/.output/server/node_modules/memoizee/normalizers/primitive.js +0 -9
  958. package/.output/server/node_modules/memoizee/package.json +0 -114
  959. package/.output/server/node_modules/memoizee/plain.js +0 -37
  960. package/.output/server/node_modules/mustache/mustache.js +0 -772
  961. package/.output/server/node_modules/mustache/package.json +0 -67
  962. package/.output/server/node_modules/next-tick/index.js +0 -74
  963. package/.output/server/node_modules/next-tick/package.json +0 -27
  964. package/.output/server/node_modules/node-fetch-h2/lib/index.js +0 -1585
  965. package/.output/server/node_modules/node-fetch-h2/package.json +0 -68
  966. package/.output/server/node_modules/oas/dist/chunk-5EP6HY2E.js +0 -943
  967. package/.output/server/node_modules/oas/dist/chunk-7MARUOFZ.js +0 -24
  968. package/.output/server/node_modules/oas/dist/chunk-HGVFNEKW.js +0 -1684
  969. package/.output/server/node_modules/oas/dist/chunk-LSH3X5NA.js +0 -822
  970. package/.output/server/node_modules/oas/dist/chunk-S27IGTVG.js +0 -95
  971. package/.output/server/node_modules/oas/dist/chunk-VA3NKXX7.js +0 -9
  972. package/.output/server/node_modules/oas/dist/index.js +0 -12
  973. package/.output/server/node_modules/oas/dist/types.js +0 -15
  974. package/.output/server/node_modules/oas/dist/utils.js +0 -19
  975. package/.output/server/node_modules/oas/package.json +0 -113
  976. package/.output/server/node_modules/oas-kit-common/index.js +0 -137
  977. package/.output/server/node_modules/oas-kit-common/package.json +0 -28
  978. package/.output/server/node_modules/oas-normalize/dist/chunk-45XXAYDL.js +0 -19
  979. package/.output/server/node_modules/oas-normalize/dist/chunk-SZISBDLH.js +0 -86
  980. package/.output/server/node_modules/oas-normalize/dist/index.js +0 -248
  981. package/.output/server/node_modules/oas-normalize/package.json +0 -87
  982. package/.output/server/node_modules/oas-resolver/index.js +0 -535
  983. package/.output/server/node_modules/oas-resolver/package.json +0 -40
  984. package/.output/server/node_modules/oas-schema-walker/index.js +0 -125
  985. package/.output/server/node_modules/oas-schema-walker/package.json +0 -27
  986. package/.output/server/node_modules/path-to-regexp/dist/index.js +0 -431
  987. package/.output/server/node_modules/path-to-regexp/package.json +0 -64
  988. package/.output/server/node_modules/picocolors/package.json +0 -25
  989. package/.output/server/node_modules/picocolors/picocolors.js +0 -75
  990. package/.output/server/node_modules/pluralize/package.json +0 -40
  991. package/.output/server/node_modules/pluralize/pluralize.js +0 -503
  992. package/.output/server/node_modules/reftools/lib/clone.js +0 -102
  993. package/.output/server/node_modules/reftools/lib/dereference.js +0 -105
  994. package/.output/server/node_modules/reftools/lib/isref.js +0 -10
  995. package/.output/server/node_modules/reftools/lib/jptr.js +0 -97
  996. package/.output/server/node_modules/reftools/lib/recurse.js +0 -62
  997. package/.output/server/node_modules/reftools/package.json +0 -37
  998. package/.output/server/node_modules/remove-undefined-objects/dist/index.mjs +0 -94
  999. package/.output/server/node_modules/remove-undefined-objects/package.json +0 -47
  1000. package/.output/server/node_modules/semver/classes/comparator.js +0 -143
  1001. package/.output/server/node_modules/semver/classes/range.js +0 -557
  1002. package/.output/server/node_modules/semver/classes/semver.js +0 -333
  1003. package/.output/server/node_modules/semver/functions/clean.js +0 -8
  1004. package/.output/server/node_modules/semver/functions/cmp.js +0 -54
  1005. package/.output/server/node_modules/semver/functions/coerce.js +0 -62
  1006. package/.output/server/node_modules/semver/functions/compare-build.js +0 -9
  1007. package/.output/server/node_modules/semver/functions/compare-loose.js +0 -5
  1008. package/.output/server/node_modules/semver/functions/compare.js +0 -7
  1009. package/.output/server/node_modules/semver/functions/diff.js +0 -60
  1010. package/.output/server/node_modules/semver/functions/eq.js +0 -5
  1011. package/.output/server/node_modules/semver/functions/gt.js +0 -5
  1012. package/.output/server/node_modules/semver/functions/gte.js +0 -5
  1013. package/.output/server/node_modules/semver/functions/inc.js +0 -21
  1014. package/.output/server/node_modules/semver/functions/lt.js +0 -5
  1015. package/.output/server/node_modules/semver/functions/lte.js +0 -5
  1016. package/.output/server/node_modules/semver/functions/major.js +0 -5
  1017. package/.output/server/node_modules/semver/functions/minor.js +0 -5
  1018. package/.output/server/node_modules/semver/functions/neq.js +0 -5
  1019. package/.output/server/node_modules/semver/functions/parse.js +0 -18
  1020. package/.output/server/node_modules/semver/functions/patch.js +0 -5
  1021. package/.output/server/node_modules/semver/functions/prerelease.js +0 -8
  1022. package/.output/server/node_modules/semver/functions/rcompare.js +0 -5
  1023. package/.output/server/node_modules/semver/functions/rsort.js +0 -5
  1024. package/.output/server/node_modules/semver/functions/satisfies.js +0 -12
  1025. package/.output/server/node_modules/semver/functions/sort.js +0 -5
  1026. package/.output/server/node_modules/semver/functions/valid.js +0 -8
  1027. package/.output/server/node_modules/semver/index.js +0 -91
  1028. package/.output/server/node_modules/semver/internal/constants.js +0 -37
  1029. package/.output/server/node_modules/semver/internal/debug.js +0 -11
  1030. package/.output/server/node_modules/semver/internal/identifiers.js +0 -29
  1031. package/.output/server/node_modules/semver/internal/lrucache.js +0 -42
  1032. package/.output/server/node_modules/semver/internal/parse-options.js +0 -17
  1033. package/.output/server/node_modules/semver/internal/re.js +0 -223
  1034. package/.output/server/node_modules/semver/package.json +0 -78
  1035. package/.output/server/node_modules/semver/preload.js +0 -4
  1036. package/.output/server/node_modules/semver/ranges/gtr.js +0 -6
  1037. package/.output/server/node_modules/semver/ranges/intersects.js +0 -9
  1038. package/.output/server/node_modules/semver/ranges/ltr.js +0 -6
  1039. package/.output/server/node_modules/semver/ranges/max-satisfying.js +0 -27
  1040. package/.output/server/node_modules/semver/ranges/min-satisfying.js +0 -26
  1041. package/.output/server/node_modules/semver/ranges/min-version.js +0 -63
  1042. package/.output/server/node_modules/semver/ranges/outside.js +0 -82
  1043. package/.output/server/node_modules/semver/ranges/simplify.js +0 -49
  1044. package/.output/server/node_modules/semver/ranges/subset.js +0 -249
  1045. package/.output/server/node_modules/semver/ranges/to-comparators.js +0 -10
  1046. package/.output/server/node_modules/semver/ranges/valid.js +0 -13
  1047. package/.output/server/node_modules/source-map/lib/array-set.js +0 -121
  1048. package/.output/server/node_modules/source-map/lib/base64-vlq.js +0 -140
  1049. package/.output/server/node_modules/source-map/lib/base64.js +0 -67
  1050. package/.output/server/node_modules/source-map/lib/binary-search.js +0 -111
  1051. package/.output/server/node_modules/source-map/lib/mapping-list.js +0 -79
  1052. package/.output/server/node_modules/source-map/lib/quick-sort.js +0 -114
  1053. package/.output/server/node_modules/source-map/lib/source-map-consumer.js +0 -1145
  1054. package/.output/server/node_modules/source-map/lib/source-map-generator.js +0 -425
  1055. package/.output/server/node_modules/source-map/lib/source-node.js +0 -413
  1056. package/.output/server/node_modules/source-map/lib/util.js +0 -488
  1057. package/.output/server/node_modules/source-map/package.json +0 -73
  1058. package/.output/server/node_modules/source-map/source-map.js +0 -8
  1059. package/.output/server/node_modules/swagger2openapi/index.js +0 -1666
  1060. package/.output/server/node_modules/swagger2openapi/lib/statusCodes.js +0 -19
  1061. package/.output/server/node_modules/swagger2openapi/package.json +0 -63
  1062. package/.output/server/node_modules/timers-ext/max-timeout.js +0 -3
  1063. package/.output/server/node_modules/timers-ext/package.json +0 -97
  1064. package/.output/server/node_modules/timers-ext/valid-timeout.js +0 -10
  1065. package/.output/server/node_modules/tslib/package.json +0 -47
  1066. package/.output/server/node_modules/tslib/tslib.js +0 -484
  1067. package/.output/server/node_modules/type/function/is.js +0 -19
  1068. package/.output/server/node_modules/type/object/is.js +0 -11
  1069. package/.output/server/node_modules/type/package.json +0 -121
  1070. package/.output/server/node_modules/type/plain-function/is.js +0 -11
  1071. package/.output/server/node_modules/type/prototype/is.js +0 -13
  1072. package/.output/server/node_modules/type/value/is.js +0 -6
  1073. package/.output/server/node_modules/validate.io-array/lib/index.js +0 -16
  1074. package/.output/server/node_modules/validate.io-array/package.json +0 -51
  1075. package/.output/server/node_modules/validate.io-function/lib/index.js +0 -45
  1076. package/.output/server/node_modules/validate.io-function/package.json +0 -53
  1077. package/.output/server/node_modules/validate.io-integer/lib/index.js +0 -52
  1078. package/.output/server/node_modules/validate.io-integer/package.json +0 -58
  1079. package/.output/server/node_modules/validate.io-integer-array/lib/index.js +0 -66
  1080. package/.output/server/node_modules/validate.io-integer-array/package.json +0 -58
  1081. package/.output/server/node_modules/validate.io-number/lib/index.js +0 -45
  1082. package/.output/server/node_modules/validate.io-number/package.json +0 -55
  1083. package/.output/server/node_modules/yaml/dist/Document-a8d0fbf9.js +0 -637
  1084. package/.output/server/node_modules/yaml/dist/PlainValue-516d5bc2.js +0 -765
  1085. package/.output/server/node_modules/yaml/dist/Schema-bcc6c2d7.js +0 -469
  1086. package/.output/server/node_modules/yaml/dist/index.js +0 -67
  1087. package/.output/server/node_modules/yaml/dist/parse-cst.js +0 -1507
  1088. package/.output/server/node_modules/yaml/dist/resolveSeq-95613e94.js +0 -1859
  1089. package/.output/server/node_modules/yaml/dist/warnings-793925ce.js +0 -359
  1090. package/.output/server/node_modules/yaml/index.js +0 -1
  1091. package/.output/server/node_modules/yaml/package.json +0 -105
  1092. package/.output/server/node_modules/yaml-ast-parser/dist/src/common.js +0 -45
  1093. package/.output/server/node_modules/yaml-ast-parser/dist/src/dumper.js +0 -644
  1094. package/.output/server/node_modules/yaml-ast-parser/dist/src/exception.js +0 -40
  1095. package/.output/server/node_modules/yaml-ast-parser/dist/src/index.js +0 -22
  1096. package/.output/server/node_modules/yaml-ast-parser/dist/src/loader.js +0 -1416
  1097. package/.output/server/node_modules/yaml-ast-parser/dist/src/mark.js +0 -62
  1098. package/.output/server/node_modules/yaml-ast-parser/dist/src/scalarInference.js +0 -82
  1099. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/core.js +0 -8
  1100. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_full.js +0 -14
  1101. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_safe.js +0 -19
  1102. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/failsafe.js +0 -10
  1103. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/json.js +0 -14
  1104. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema.js +0 -78
  1105. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/binary.js +0 -92
  1106. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/bool.js +0 -32
  1107. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/float.js +0 -95
  1108. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/int.js +0 -155
  1109. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/regexp.js +0 -64
  1110. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/undefined.js +0 -22
  1111. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/map.js +0 -7
  1112. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/merge.js +0 -10
  1113. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/null.js +0 -30
  1114. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/omap.js +0 -46
  1115. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/pairs.js +0 -55
  1116. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/seq.js +0 -7
  1117. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/set.js +0 -22
  1118. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/str.js +0 -7
  1119. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/timestamp.js +0 -70
  1120. package/.output/server/node_modules/yaml-ast-parser/dist/src/type.js +0 -54
  1121. package/.output/server/node_modules/yaml-ast-parser/dist/src/yamlAST.js +0 -82
  1122. package/.output/server/node_modules/yaml-ast-parser/package.json +0 -39
  1123. /package/.output/server/node_modules/{.nitro/picomatch@2.3.2 → picomatch}/index.js +0 -0
  1124. /package/.output/server/node_modules/{.nitro/picomatch@2.3.2 → picomatch}/lib/constants.js +0 -0
  1125. /package/.output/server/node_modules/{.nitro/picomatch@2.3.2 → picomatch}/lib/parse.js +0 -0
  1126. /package/.output/server/node_modules/{.nitro/picomatch@2.3.2 → picomatch}/lib/picomatch.js +0 -0
  1127. /package/.output/server/node_modules/{.nitro/picomatch@2.3.2 → picomatch}/lib/scan.js +0 -0
  1128. /package/.output/server/node_modules/{.nitro/picomatch@2.3.2 → picomatch}/lib/utils.js +0 -0
  1129. /package/.output/server/node_modules/{.nitro/picomatch@2.3.2 → picomatch}/package.json +0 -0
@@ -1,1859 +0,0 @@
1
- 'use strict';
2
-
3
- var PlainValue = require('./PlainValue-516d5bc2.js');
4
-
5
- function addCommentBefore(str, indent, comment) {
6
- if (!comment) return str;
7
- const cc = comment.replace(/[\s\S]^/gm, `$&${indent}#`);
8
- return `#${cc}\n${indent}${str}`;
9
- }
10
- function addComment(str, indent, comment) {
11
- return !comment ? str : comment.indexOf('\n') === -1 ? `${str} #${comment}` : `${str}\n` + comment.replace(/^/gm, `${indent || ''}#`);
12
- }
13
-
14
- class Node {}
15
-
16
- function toJSON(value, arg, ctx) {
17
- if (Array.isArray(value)) return value.map((v, i) => toJSON(v, String(i), ctx));
18
- if (value && typeof value.toJSON === 'function') {
19
- const anchor = ctx && ctx.anchors && ctx.anchors.get(value);
20
- if (anchor) ctx.onCreate = res => {
21
- anchor.res = res;
22
- delete ctx.onCreate;
23
- };
24
- const res = value.toJSON(arg, ctx);
25
- if (anchor && ctx.onCreate) ctx.onCreate(res);
26
- return res;
27
- }
28
- if ((!ctx || !ctx.keep) && typeof value === 'bigint') return Number(value);
29
- return value;
30
- }
31
-
32
- class Scalar extends Node {
33
- constructor(value) {
34
- super();
35
- this.value = value;
36
- }
37
- toJSON(arg, ctx) {
38
- return ctx && ctx.keep ? this.value : toJSON(this.value, arg, ctx);
39
- }
40
- toString() {
41
- return String(this.value);
42
- }
43
- }
44
-
45
- function collectionFromPath(schema, path, value) {
46
- let v = value;
47
- for (let i = path.length - 1; i >= 0; --i) {
48
- const k = path[i];
49
- if (Number.isInteger(k) && k >= 0) {
50
- const a = [];
51
- a[k] = v;
52
- v = a;
53
- } else {
54
- const o = {};
55
- Object.defineProperty(o, k, {
56
- value: v,
57
- writable: true,
58
- enumerable: true,
59
- configurable: true
60
- });
61
- v = o;
62
- }
63
- }
64
- return schema.createNode(v, false);
65
- }
66
-
67
- // null, undefined, or an empty non-string iterable (e.g. [])
68
- const isEmptyPath = path => path == null || typeof path === 'object' && path[Symbol.iterator]().next().done;
69
- class Collection extends Node {
70
- constructor(schema) {
71
- super();
72
- PlainValue._defineProperty(this, "items", []);
73
- this.schema = schema;
74
- }
75
- addIn(path, value) {
76
- if (isEmptyPath(path)) this.add(value);else {
77
- const [key, ...rest] = path;
78
- const node = this.get(key, true);
79
- if (node instanceof Collection) node.addIn(rest, value);else if (node === undefined && this.schema) this.set(key, collectionFromPath(this.schema, rest, value));else throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`);
80
- }
81
- }
82
- deleteIn([key, ...rest]) {
83
- if (rest.length === 0) return this.delete(key);
84
- const node = this.get(key, true);
85
- if (node instanceof Collection) return node.deleteIn(rest);else throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`);
86
- }
87
- getIn([key, ...rest], keepScalar) {
88
- const node = this.get(key, true);
89
- if (rest.length === 0) return !keepScalar && node instanceof Scalar ? node.value : node;else return node instanceof Collection ? node.getIn(rest, keepScalar) : undefined;
90
- }
91
- hasAllNullValues() {
92
- return this.items.every(node => {
93
- if (!node || node.type !== 'PAIR') return false;
94
- const n = node.value;
95
- return n == null || n instanceof Scalar && n.value == null && !n.commentBefore && !n.comment && !n.tag;
96
- });
97
- }
98
- hasIn([key, ...rest]) {
99
- if (rest.length === 0) return this.has(key);
100
- const node = this.get(key, true);
101
- return node instanceof Collection ? node.hasIn(rest) : false;
102
- }
103
- setIn([key, ...rest], value) {
104
- if (rest.length === 0) {
105
- this.set(key, value);
106
- } else {
107
- const node = this.get(key, true);
108
- if (node instanceof Collection) node.setIn(rest, value);else if (node === undefined && this.schema) this.set(key, collectionFromPath(this.schema, rest, value));else throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`);
109
- }
110
- }
111
-
112
- // overridden in implementations
113
- /* istanbul ignore next */
114
- toJSON() {
115
- return null;
116
- }
117
- toString(ctx, {
118
- blockItem,
119
- flowChars,
120
- isMap,
121
- itemIndent
122
- }, onComment, onChompKeep) {
123
- const {
124
- indent,
125
- indentStep,
126
- stringify
127
- } = ctx;
128
- const inFlow = this.type === PlainValue.Type.FLOW_MAP || this.type === PlainValue.Type.FLOW_SEQ || ctx.inFlow;
129
- if (inFlow) itemIndent += indentStep;
130
- const allNullValues = isMap && this.hasAllNullValues();
131
- ctx = Object.assign({}, ctx, {
132
- allNullValues,
133
- indent: itemIndent,
134
- inFlow,
135
- type: null
136
- });
137
- let chompKeep = false;
138
- let hasItemWithNewLine = false;
139
- const nodes = this.items.reduce((nodes, item, i) => {
140
- let comment;
141
- if (item) {
142
- if (!chompKeep && item.spaceBefore) nodes.push({
143
- type: 'comment',
144
- str: ''
145
- });
146
- if (item.commentBefore) item.commentBefore.match(/^.*$/gm).forEach(line => {
147
- nodes.push({
148
- type: 'comment',
149
- str: `#${line}`
150
- });
151
- });
152
- if (item.comment) comment = item.comment;
153
- if (inFlow && (!chompKeep && item.spaceBefore || item.commentBefore || item.comment || item.key && (item.key.commentBefore || item.key.comment) || item.value && (item.value.commentBefore || item.value.comment))) hasItemWithNewLine = true;
154
- }
155
- chompKeep = false;
156
- let str = stringify(item, ctx, () => comment = null, () => chompKeep = true);
157
- if (inFlow && !hasItemWithNewLine && str.includes('\n')) hasItemWithNewLine = true;
158
- if (inFlow && i < this.items.length - 1) str += ',';
159
- str = addComment(str, itemIndent, comment);
160
- if (chompKeep && (comment || inFlow)) chompKeep = false;
161
- nodes.push({
162
- type: 'item',
163
- str
164
- });
165
- return nodes;
166
- }, []);
167
- let str;
168
- if (nodes.length === 0) {
169
- str = flowChars.start + flowChars.end;
170
- } else if (inFlow) {
171
- const {
172
- start,
173
- end
174
- } = flowChars;
175
- const strings = nodes.map(n => n.str);
176
- if (hasItemWithNewLine || strings.reduce((sum, str) => sum + str.length + 2, 2) > Collection.maxFlowStringSingleLineLength) {
177
- str = start;
178
- for (const s of strings) {
179
- str += s ? `\n${indentStep}${indent}${s}` : '\n';
180
- }
181
- str += `\n${indent}${end}`;
182
- } else {
183
- str = `${start} ${strings.join(' ')} ${end}`;
184
- }
185
- } else {
186
- const strings = nodes.map(blockItem);
187
- str = strings.shift();
188
- for (const s of strings) str += s ? `\n${indent}${s}` : '\n';
189
- }
190
- if (this.comment) {
191
- str += '\n' + this.comment.replace(/^/gm, `${indent}#`);
192
- if (onComment) onComment();
193
- } else if (chompKeep && onChompKeep) onChompKeep();
194
- return str;
195
- }
196
- }
197
- PlainValue._defineProperty(Collection, "maxFlowStringSingleLineLength", 60);
198
-
199
- function asItemIndex(key) {
200
- let idx = key instanceof Scalar ? key.value : key;
201
- if (idx && typeof idx === 'string') idx = Number(idx);
202
- return Number.isInteger(idx) && idx >= 0 ? idx : null;
203
- }
204
- class YAMLSeq extends Collection {
205
- add(value) {
206
- this.items.push(value);
207
- }
208
- delete(key) {
209
- const idx = asItemIndex(key);
210
- if (typeof idx !== 'number') return false;
211
- const del = this.items.splice(idx, 1);
212
- return del.length > 0;
213
- }
214
- get(key, keepScalar) {
215
- const idx = asItemIndex(key);
216
- if (typeof idx !== 'number') return undefined;
217
- const it = this.items[idx];
218
- return !keepScalar && it instanceof Scalar ? it.value : it;
219
- }
220
- has(key) {
221
- const idx = asItemIndex(key);
222
- return typeof idx === 'number' && idx < this.items.length;
223
- }
224
- set(key, value) {
225
- const idx = asItemIndex(key);
226
- if (typeof idx !== 'number') throw new Error(`Expected a valid index, not ${key}.`);
227
- this.items[idx] = value;
228
- }
229
- toJSON(_, ctx) {
230
- const seq = [];
231
- if (ctx && ctx.onCreate) ctx.onCreate(seq);
232
- let i = 0;
233
- for (const item of this.items) seq.push(toJSON(item, String(i++), ctx));
234
- return seq;
235
- }
236
- toString(ctx, onComment, onChompKeep) {
237
- if (!ctx) return JSON.stringify(this);
238
- return super.toString(ctx, {
239
- blockItem: n => n.type === 'comment' ? n.str : `- ${n.str}`,
240
- flowChars: {
241
- start: '[',
242
- end: ']'
243
- },
244
- isMap: false,
245
- itemIndent: (ctx.indent || '') + ' '
246
- }, onComment, onChompKeep);
247
- }
248
- }
249
-
250
- const stringifyKey = (key, jsKey, ctx) => {
251
- if (jsKey === null) return '';
252
- if (typeof jsKey !== 'object') return String(jsKey);
253
- if (key instanceof Node && ctx && ctx.doc) return key.toString({
254
- anchors: Object.create(null),
255
- doc: ctx.doc,
256
- indent: '',
257
- indentStep: ctx.indentStep,
258
- inFlow: true,
259
- inStringifyKey: true,
260
- stringify: ctx.stringify
261
- });
262
- return JSON.stringify(jsKey);
263
- };
264
- class Pair extends Node {
265
- constructor(key, value = null) {
266
- super();
267
- this.key = key;
268
- this.value = value;
269
- this.type = Pair.Type.PAIR;
270
- }
271
- get commentBefore() {
272
- return this.key instanceof Node ? this.key.commentBefore : undefined;
273
- }
274
- set commentBefore(cb) {
275
- if (this.key == null) this.key = new Scalar(null);
276
- if (this.key instanceof Node) this.key.commentBefore = cb;else {
277
- const msg = 'Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.';
278
- throw new Error(msg);
279
- }
280
- }
281
- addToJSMap(ctx, map) {
282
- const key = toJSON(this.key, '', ctx);
283
- if (map instanceof Map) {
284
- const value = toJSON(this.value, key, ctx);
285
- map.set(key, value);
286
- } else if (map instanceof Set) {
287
- map.add(key);
288
- } else {
289
- const stringKey = stringifyKey(this.key, key, ctx);
290
- const value = toJSON(this.value, stringKey, ctx);
291
- if (stringKey in map) Object.defineProperty(map, stringKey, {
292
- value,
293
- writable: true,
294
- enumerable: true,
295
- configurable: true
296
- });else map[stringKey] = value;
297
- }
298
- return map;
299
- }
300
- toJSON(_, ctx) {
301
- const pair = ctx && ctx.mapAsMap ? new Map() : {};
302
- return this.addToJSMap(ctx, pair);
303
- }
304
- toString(ctx, onComment, onChompKeep) {
305
- if (!ctx || !ctx.doc) return JSON.stringify(this);
306
- const {
307
- indent: indentSize,
308
- indentSeq,
309
- simpleKeys
310
- } = ctx.doc.options;
311
- let {
312
- key,
313
- value
314
- } = this;
315
- let keyComment = key instanceof Node && key.comment;
316
- if (simpleKeys) {
317
- if (keyComment) {
318
- throw new Error('With simple keys, key nodes cannot have comments');
319
- }
320
- if (key instanceof Collection) {
321
- const msg = 'With simple keys, collection cannot be used as a key value';
322
- throw new Error(msg);
323
- }
324
- }
325
- let explicitKey = !simpleKeys && (!key || keyComment || (key instanceof Node ? key instanceof Collection || key.type === PlainValue.Type.BLOCK_FOLDED || key.type === PlainValue.Type.BLOCK_LITERAL : typeof key === 'object'));
326
- const {
327
- doc,
328
- indent,
329
- indentStep,
330
- stringify
331
- } = ctx;
332
- ctx = Object.assign({}, ctx, {
333
- implicitKey: !explicitKey,
334
- indent: indent + indentStep
335
- });
336
- let chompKeep = false;
337
- let str = stringify(key, ctx, () => keyComment = null, () => chompKeep = true);
338
- str = addComment(str, ctx.indent, keyComment);
339
- if (!explicitKey && str.length > 1024) {
340
- if (simpleKeys) throw new Error('With simple keys, single line scalar must not span more than 1024 characters');
341
- explicitKey = true;
342
- }
343
- if (ctx.allNullValues && !simpleKeys) {
344
- if (this.comment) {
345
- str = addComment(str, ctx.indent, this.comment);
346
- if (onComment) onComment();
347
- } else if (chompKeep && !keyComment && onChompKeep) onChompKeep();
348
- return ctx.inFlow && !explicitKey ? str : `? ${str}`;
349
- }
350
- str = explicitKey ? `? ${str}\n${indent}:` : `${str}:`;
351
- if (this.comment) {
352
- // expected (but not strictly required) to be a single-line comment
353
- str = addComment(str, ctx.indent, this.comment);
354
- if (onComment) onComment();
355
- }
356
- let vcb = '';
357
- let valueComment = null;
358
- if (value instanceof Node) {
359
- if (value.spaceBefore) vcb = '\n';
360
- if (value.commentBefore) {
361
- const cs = value.commentBefore.replace(/^/gm, `${ctx.indent}#`);
362
- vcb += `\n${cs}`;
363
- }
364
- valueComment = value.comment;
365
- } else if (value && typeof value === 'object') {
366
- value = doc.schema.createNode(value, true);
367
- }
368
- ctx.implicitKey = false;
369
- if (!explicitKey && !this.comment && value instanceof Scalar) ctx.indentAtStart = str.length + 1;
370
- chompKeep = false;
371
- if (!indentSeq && indentSize >= 2 && !ctx.inFlow && !explicitKey && value instanceof YAMLSeq && value.type !== PlainValue.Type.FLOW_SEQ && !value.tag && !doc.anchors.getName(value)) {
372
- // If indentSeq === false, consider '- ' as part of indentation where possible
373
- ctx.indent = ctx.indent.substr(2);
374
- }
375
- const valueStr = stringify(value, ctx, () => valueComment = null, () => chompKeep = true);
376
- let ws = ' ';
377
- if (vcb || this.comment) {
378
- ws = `${vcb}\n${ctx.indent}`;
379
- } else if (!explicitKey && value instanceof Collection) {
380
- const flow = valueStr[0] === '[' || valueStr[0] === '{';
381
- if (!flow || valueStr.includes('\n')) ws = `\n${ctx.indent}`;
382
- } else if (valueStr[0] === '\n') ws = '';
383
- if (chompKeep && !valueComment && onChompKeep) onChompKeep();
384
- return addComment(str + ws + valueStr, ctx.indent, valueComment);
385
- }
386
- }
387
- PlainValue._defineProperty(Pair, "Type", {
388
- PAIR: 'PAIR',
389
- MERGE_PAIR: 'MERGE_PAIR'
390
- });
391
-
392
- const getAliasCount = (node, anchors) => {
393
- if (node instanceof Alias) {
394
- const anchor = anchors.get(node.source);
395
- return anchor.count * anchor.aliasCount;
396
- } else if (node instanceof Collection) {
397
- let count = 0;
398
- for (const item of node.items) {
399
- const c = getAliasCount(item, anchors);
400
- if (c > count) count = c;
401
- }
402
- return count;
403
- } else if (node instanceof Pair) {
404
- const kc = getAliasCount(node.key, anchors);
405
- const vc = getAliasCount(node.value, anchors);
406
- return Math.max(kc, vc);
407
- }
408
- return 1;
409
- };
410
- class Alias extends Node {
411
- static stringify({
412
- range,
413
- source
414
- }, {
415
- anchors,
416
- doc,
417
- implicitKey,
418
- inStringifyKey
419
- }) {
420
- let anchor = Object.keys(anchors).find(a => anchors[a] === source);
421
- if (!anchor && inStringifyKey) anchor = doc.anchors.getName(source) || doc.anchors.newName();
422
- if (anchor) return `*${anchor}${implicitKey ? ' ' : ''}`;
423
- const msg = doc.anchors.getName(source) ? 'Alias node must be after source node' : 'Source node not found for alias node';
424
- throw new Error(`${msg} [${range}]`);
425
- }
426
- constructor(source) {
427
- super();
428
- this.source = source;
429
- this.type = PlainValue.Type.ALIAS;
430
- }
431
- set tag(t) {
432
- throw new Error('Alias nodes cannot have tags');
433
- }
434
- toJSON(arg, ctx) {
435
- if (!ctx) return toJSON(this.source, arg, ctx);
436
- const {
437
- anchors,
438
- maxAliasCount
439
- } = ctx;
440
- const anchor = anchors.get(this.source);
441
- /* istanbul ignore if */
442
- if (!anchor || anchor.res === undefined) {
443
- const msg = 'This should not happen: Alias anchor was not resolved?';
444
- if (this.cstNode) throw new PlainValue.YAMLReferenceError(this.cstNode, msg);else throw new ReferenceError(msg);
445
- }
446
- if (maxAliasCount >= 0) {
447
- anchor.count += 1;
448
- if (anchor.aliasCount === 0) anchor.aliasCount = getAliasCount(this.source, anchors);
449
- if (anchor.count * anchor.aliasCount > maxAliasCount) {
450
- const msg = 'Excessive alias count indicates a resource exhaustion attack';
451
- if (this.cstNode) throw new PlainValue.YAMLReferenceError(this.cstNode, msg);else throw new ReferenceError(msg);
452
- }
453
- }
454
- return anchor.res;
455
- }
456
-
457
- // Only called when stringifying an alias mapping key while constructing
458
- // Object output.
459
- toString(ctx) {
460
- return Alias.stringify(this, ctx);
461
- }
462
- }
463
- PlainValue._defineProperty(Alias, "default", true);
464
-
465
- function findPair(items, key) {
466
- const k = key instanceof Scalar ? key.value : key;
467
- for (const it of items) {
468
- if (it instanceof Pair) {
469
- if (it.key === key || it.key === k) return it;
470
- if (it.key && it.key.value === k) return it;
471
- }
472
- }
473
- return undefined;
474
- }
475
- class YAMLMap extends Collection {
476
- add(pair, overwrite) {
477
- if (!pair) pair = new Pair(pair);else if (!(pair instanceof Pair)) pair = new Pair(pair.key || pair, pair.value);
478
- const prev = findPair(this.items, pair.key);
479
- const sortEntries = this.schema && this.schema.sortMapEntries;
480
- if (prev) {
481
- if (overwrite) prev.value = pair.value;else throw new Error(`Key ${pair.key} already set`);
482
- } else if (sortEntries) {
483
- const i = this.items.findIndex(item => sortEntries(pair, item) < 0);
484
- if (i === -1) this.items.push(pair);else this.items.splice(i, 0, pair);
485
- } else {
486
- this.items.push(pair);
487
- }
488
- }
489
- delete(key) {
490
- const it = findPair(this.items, key);
491
- if (!it) return false;
492
- const del = this.items.splice(this.items.indexOf(it), 1);
493
- return del.length > 0;
494
- }
495
- get(key, keepScalar) {
496
- const it = findPair(this.items, key);
497
- const node = it && it.value;
498
- return !keepScalar && node instanceof Scalar ? node.value : node;
499
- }
500
- has(key) {
501
- return !!findPair(this.items, key);
502
- }
503
- set(key, value) {
504
- this.add(new Pair(key, value), true);
505
- }
506
-
507
- /**
508
- * @param {*} arg ignored
509
- * @param {*} ctx Conversion context, originally set in Document#toJSON()
510
- * @param {Class} Type If set, forces the returned collection type
511
- * @returns {*} Instance of Type, Map, or Object
512
- */
513
- toJSON(_, ctx, Type) {
514
- const map = Type ? new Type() : ctx && ctx.mapAsMap ? new Map() : {};
515
- if (ctx && ctx.onCreate) ctx.onCreate(map);
516
- for (const item of this.items) item.addToJSMap(ctx, map);
517
- return map;
518
- }
519
- toString(ctx, onComment, onChompKeep) {
520
- if (!ctx) return JSON.stringify(this);
521
- for (const item of this.items) {
522
- if (!(item instanceof Pair)) throw new Error(`Map items must all be pairs; found ${JSON.stringify(item)} instead`);
523
- }
524
- return super.toString(ctx, {
525
- blockItem: n => n.str,
526
- flowChars: {
527
- start: '{',
528
- end: '}'
529
- },
530
- isMap: true,
531
- itemIndent: ctx.indent || ''
532
- }, onComment, onChompKeep);
533
- }
534
- }
535
-
536
- const MERGE_KEY = '<<';
537
- class Merge extends Pair {
538
- constructor(pair) {
539
- if (pair instanceof Pair) {
540
- let seq = pair.value;
541
- if (!(seq instanceof YAMLSeq)) {
542
- seq = new YAMLSeq();
543
- seq.items.push(pair.value);
544
- seq.range = pair.value.range;
545
- }
546
- super(pair.key, seq);
547
- this.range = pair.range;
548
- } else {
549
- super(new Scalar(MERGE_KEY), new YAMLSeq());
550
- }
551
- this.type = Pair.Type.MERGE_PAIR;
552
- }
553
-
554
- // If the value associated with a merge key is a single mapping node, each of
555
- // its key/value pairs is inserted into the current mapping, unless the key
556
- // already exists in it. If the value associated with the merge key is a
557
- // sequence, then this sequence is expected to contain mapping nodes and each
558
- // of these nodes is merged in turn according to its order in the sequence.
559
- // Keys in mapping nodes earlier in the sequence override keys specified in
560
- // later mapping nodes. -- http://yaml.org/type/merge.html
561
- addToJSMap(ctx, map) {
562
- for (const {
563
- source
564
- } of this.value.items) {
565
- if (!(source instanceof YAMLMap)) throw new Error('Merge sources must be maps');
566
- const srcMap = source.toJSON(null, ctx, Map);
567
- for (const [key, value] of srcMap) {
568
- if (map instanceof Map) {
569
- if (!map.has(key)) map.set(key, value);
570
- } else if (map instanceof Set) {
571
- map.add(key);
572
- } else if (!Object.prototype.hasOwnProperty.call(map, key)) {
573
- Object.defineProperty(map, key, {
574
- value,
575
- writable: true,
576
- enumerable: true,
577
- configurable: true
578
- });
579
- }
580
- }
581
- }
582
- return map;
583
- }
584
- toString(ctx, onComment) {
585
- const seq = this.value;
586
- if (seq.items.length > 1) return super.toString(ctx, onComment);
587
- this.value = seq.items[0];
588
- const str = super.toString(ctx, onComment);
589
- this.value = seq;
590
- return str;
591
- }
592
- }
593
-
594
- const binaryOptions = {
595
- defaultType: PlainValue.Type.BLOCK_LITERAL,
596
- lineWidth: 76
597
- };
598
- const boolOptions = {
599
- trueStr: 'true',
600
- falseStr: 'false'
601
- };
602
- const intOptions = {
603
- asBigInt: false
604
- };
605
- const nullOptions = {
606
- nullStr: 'null'
607
- };
608
- const strOptions = {
609
- defaultType: PlainValue.Type.PLAIN,
610
- doubleQuoted: {
611
- jsonEncoding: false,
612
- minMultiLineLength: 40
613
- },
614
- fold: {
615
- lineWidth: 80,
616
- minContentWidth: 20
617
- }
618
- };
619
-
620
- // falls back to string on no match
621
- function resolveScalar(str, tags, scalarFallback) {
622
- for (const {
623
- format,
624
- test,
625
- resolve
626
- } of tags) {
627
- if (test) {
628
- const match = str.match(test);
629
- if (match) {
630
- let res = resolve.apply(null, match);
631
- if (!(res instanceof Scalar)) res = new Scalar(res);
632
- if (format) res.format = format;
633
- return res;
634
- }
635
- }
636
- }
637
- if (scalarFallback) str = scalarFallback(str);
638
- return new Scalar(str);
639
- }
640
-
641
- const FOLD_FLOW = 'flow';
642
- const FOLD_BLOCK = 'block';
643
- const FOLD_QUOTED = 'quoted';
644
-
645
- // presumes i+1 is at the start of a line
646
- // returns index of last newline in more-indented block
647
- const consumeMoreIndentedLines = (text, i) => {
648
- let ch = text[i + 1];
649
- while (ch === ' ' || ch === '\t') {
650
- do {
651
- ch = text[i += 1];
652
- } while (ch && ch !== '\n');
653
- ch = text[i + 1];
654
- }
655
- return i;
656
- };
657
-
658
- /**
659
- * Tries to keep input at up to `lineWidth` characters, splitting only on spaces
660
- * not followed by newlines or spaces unless `mode` is `'quoted'`. Lines are
661
- * terminated with `\n` and started with `indent`.
662
- *
663
- * @param {string} text
664
- * @param {string} indent
665
- * @param {string} [mode='flow'] `'block'` prevents more-indented lines
666
- * from being folded; `'quoted'` allows for `\` escapes, including escaped
667
- * newlines
668
- * @param {Object} options
669
- * @param {number} [options.indentAtStart] Accounts for leading contents on
670
- * the first line, defaulting to `indent.length`
671
- * @param {number} [options.lineWidth=80]
672
- * @param {number} [options.minContentWidth=20] Allow highly indented lines to
673
- * stretch the line width or indent content from the start
674
- * @param {function} options.onFold Called once if the text is folded
675
- * @param {function} options.onFold Called once if any line of text exceeds
676
- * lineWidth characters
677
- */
678
- function foldFlowLines(text, indent, mode, {
679
- indentAtStart,
680
- lineWidth = 80,
681
- minContentWidth = 20,
682
- onFold,
683
- onOverflow
684
- }) {
685
- if (!lineWidth || lineWidth < 0) return text;
686
- const endStep = Math.max(1 + minContentWidth, 1 + lineWidth - indent.length);
687
- if (text.length <= endStep) return text;
688
- const folds = [];
689
- const escapedFolds = {};
690
- let end = lineWidth - indent.length;
691
- if (typeof indentAtStart === 'number') {
692
- if (indentAtStart > lineWidth - Math.max(2, minContentWidth)) folds.push(0);else end = lineWidth - indentAtStart;
693
- }
694
- let split = undefined;
695
- let prev = undefined;
696
- let overflow = false;
697
- let i = -1;
698
- let escStart = -1;
699
- let escEnd = -1;
700
- if (mode === FOLD_BLOCK) {
701
- i = consumeMoreIndentedLines(text, i);
702
- if (i !== -1) end = i + endStep;
703
- }
704
- for (let ch; ch = text[i += 1];) {
705
- if (mode === FOLD_QUOTED && ch === '\\') {
706
- escStart = i;
707
- switch (text[i + 1]) {
708
- case 'x':
709
- i += 3;
710
- break;
711
- case 'u':
712
- i += 5;
713
- break;
714
- case 'U':
715
- i += 9;
716
- break;
717
- default:
718
- i += 1;
719
- }
720
- escEnd = i;
721
- }
722
- if (ch === '\n') {
723
- if (mode === FOLD_BLOCK) i = consumeMoreIndentedLines(text, i);
724
- end = i + endStep;
725
- split = undefined;
726
- } else {
727
- if (ch === ' ' && prev && prev !== ' ' && prev !== '\n' && prev !== '\t') {
728
- // space surrounded by non-space can be replaced with newline + indent
729
- const next = text[i + 1];
730
- if (next && next !== ' ' && next !== '\n' && next !== '\t') split = i;
731
- }
732
- if (i >= end) {
733
- if (split) {
734
- folds.push(split);
735
- end = split + endStep;
736
- split = undefined;
737
- } else if (mode === FOLD_QUOTED) {
738
- // white-space collected at end may stretch past lineWidth
739
- while (prev === ' ' || prev === '\t') {
740
- prev = ch;
741
- ch = text[i += 1];
742
- overflow = true;
743
- }
744
- // Account for newline escape, but don't break preceding escape
745
- const j = i > escEnd + 1 ? i - 2 : escStart - 1;
746
- // Bail out if lineWidth & minContentWidth are shorter than an escape string
747
- if (escapedFolds[j]) return text;
748
- folds.push(j);
749
- escapedFolds[j] = true;
750
- end = j + endStep;
751
- split = undefined;
752
- } else {
753
- overflow = true;
754
- }
755
- }
756
- }
757
- prev = ch;
758
- }
759
- if (overflow && onOverflow) onOverflow();
760
- if (folds.length === 0) return text;
761
- if (onFold) onFold();
762
- let res = text.slice(0, folds[0]);
763
- for (let i = 0; i < folds.length; ++i) {
764
- const fold = folds[i];
765
- const end = folds[i + 1] || text.length;
766
- if (fold === 0) res = `\n${indent}${text.slice(0, end)}`;else {
767
- if (mode === FOLD_QUOTED && escapedFolds[fold]) res += `${text[fold]}\\`;
768
- res += `\n${indent}${text.slice(fold + 1, end)}`;
769
- }
770
- }
771
- return res;
772
- }
773
-
774
- const getFoldOptions = ({
775
- indentAtStart
776
- }) => indentAtStart ? Object.assign({
777
- indentAtStart
778
- }, strOptions.fold) : strOptions.fold;
779
-
780
- // Also checks for lines starting with %, as parsing the output as YAML 1.1 will
781
- // presume that's starting a new document.
782
- const containsDocumentMarker = str => /^(%|---|\.\.\.)/m.test(str);
783
- function lineLengthOverLimit(str, lineWidth, indentLength) {
784
- if (!lineWidth || lineWidth < 0) return false;
785
- const limit = lineWidth - indentLength;
786
- const strLen = str.length;
787
- if (strLen <= limit) return false;
788
- for (let i = 0, start = 0; i < strLen; ++i) {
789
- if (str[i] === '\n') {
790
- if (i - start > limit) return true;
791
- start = i + 1;
792
- if (strLen - start <= limit) return false;
793
- }
794
- }
795
- return true;
796
- }
797
- function doubleQuotedString(value, ctx) {
798
- const {
799
- implicitKey
800
- } = ctx;
801
- const {
802
- jsonEncoding,
803
- minMultiLineLength
804
- } = strOptions.doubleQuoted;
805
- const json = JSON.stringify(value);
806
- if (jsonEncoding) return json;
807
- const indent = ctx.indent || (containsDocumentMarker(value) ? ' ' : '');
808
- let str = '';
809
- let start = 0;
810
- for (let i = 0, ch = json[i]; ch; ch = json[++i]) {
811
- if (ch === ' ' && json[i + 1] === '\\' && json[i + 2] === 'n') {
812
- // space before newline needs to be escaped to not be folded
813
- str += json.slice(start, i) + '\\ ';
814
- i += 1;
815
- start = i;
816
- ch = '\\';
817
- }
818
- if (ch === '\\') switch (json[i + 1]) {
819
- case 'u':
820
- {
821
- str += json.slice(start, i);
822
- const code = json.substr(i + 2, 4);
823
- switch (code) {
824
- case '0000':
825
- str += '\\0';
826
- break;
827
- case '0007':
828
- str += '\\a';
829
- break;
830
- case '000b':
831
- str += '\\v';
832
- break;
833
- case '001b':
834
- str += '\\e';
835
- break;
836
- case '0085':
837
- str += '\\N';
838
- break;
839
- case '00a0':
840
- str += '\\_';
841
- break;
842
- case '2028':
843
- str += '\\L';
844
- break;
845
- case '2029':
846
- str += '\\P';
847
- break;
848
- default:
849
- if (code.substr(0, 2) === '00') str += '\\x' + code.substr(2);else str += json.substr(i, 6);
850
- }
851
- i += 5;
852
- start = i + 1;
853
- }
854
- break;
855
- case 'n':
856
- if (implicitKey || json[i + 2] === '"' || json.length < minMultiLineLength) {
857
- i += 1;
858
- } else {
859
- // folding will eat first newline
860
- str += json.slice(start, i) + '\n\n';
861
- while (json[i + 2] === '\\' && json[i + 3] === 'n' && json[i + 4] !== '"') {
862
- str += '\n';
863
- i += 2;
864
- }
865
- str += indent;
866
- // space after newline needs to be escaped to not be folded
867
- if (json[i + 2] === ' ') str += '\\';
868
- i += 1;
869
- start = i + 1;
870
- }
871
- break;
872
- default:
873
- i += 1;
874
- }
875
- }
876
- str = start ? str + json.slice(start) : json;
877
- return implicitKey ? str : foldFlowLines(str, indent, FOLD_QUOTED, getFoldOptions(ctx));
878
- }
879
- function singleQuotedString(value, ctx) {
880
- if (ctx.implicitKey) {
881
- if (/\n/.test(value)) return doubleQuotedString(value, ctx);
882
- } else {
883
- // single quoted string can't have leading or trailing whitespace around newline
884
- if (/[ \t]\n|\n[ \t]/.test(value)) return doubleQuotedString(value, ctx);
885
- }
886
- const indent = ctx.indent || (containsDocumentMarker(value) ? ' ' : '');
887
- const res = "'" + value.replace(/'/g, "''").replace(/\n+/g, `$&\n${indent}`) + "'";
888
- return ctx.implicitKey ? res : foldFlowLines(res, indent, FOLD_FLOW, getFoldOptions(ctx));
889
- }
890
- function blockString({
891
- comment,
892
- type,
893
- value
894
- }, ctx, onComment, onChompKeep) {
895
- // 1. Block can't end in whitespace unless the last line is non-empty.
896
- // 2. Strings consisting of only whitespace are best rendered explicitly.
897
- if (/\n[\t ]+$/.test(value) || /^\s*$/.test(value)) {
898
- return doubleQuotedString(value, ctx);
899
- }
900
- const indent = ctx.indent || (ctx.forceBlockIndent || containsDocumentMarker(value) ? ' ' : '');
901
- const indentSize = indent ? '2' : '1'; // root is at -1
902
- const literal = type === PlainValue.Type.BLOCK_FOLDED ? false : type === PlainValue.Type.BLOCK_LITERAL ? true : !lineLengthOverLimit(value, strOptions.fold.lineWidth, indent.length);
903
- let header = literal ? '|' : '>';
904
- if (!value) return header + '\n';
905
- let wsStart = '';
906
- let wsEnd = '';
907
- value = value.replace(/[\n\t ]*$/, ws => {
908
- const n = ws.indexOf('\n');
909
- if (n === -1) {
910
- header += '-'; // strip
911
- } else if (value === ws || n !== ws.length - 1) {
912
- header += '+'; // keep
913
- if (onChompKeep) onChompKeep();
914
- }
915
- wsEnd = ws.replace(/\n$/, '');
916
- return '';
917
- }).replace(/^[\n ]*/, ws => {
918
- if (ws.indexOf(' ') !== -1) header += indentSize;
919
- const m = ws.match(/ +$/);
920
- if (m) {
921
- wsStart = ws.slice(0, -m[0].length);
922
- return m[0];
923
- } else {
924
- wsStart = ws;
925
- return '';
926
- }
927
- });
928
- if (wsEnd) wsEnd = wsEnd.replace(/\n+(?!\n|$)/g, `$&${indent}`);
929
- if (wsStart) wsStart = wsStart.replace(/\n+/g, `$&${indent}`);
930
- if (comment) {
931
- header += ' #' + comment.replace(/ ?[\r\n]+/g, ' ');
932
- if (onComment) onComment();
933
- }
934
- if (!value) return `${header}${indentSize}\n${indent}${wsEnd}`;
935
- if (literal) {
936
- value = value.replace(/\n+/g, `$&${indent}`);
937
- return `${header}\n${indent}${wsStart}${value}${wsEnd}`;
938
- }
939
- value = value.replace(/\n+/g, '\n$&').replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, '$1$2') // more-indented lines aren't folded
940
- // ^ ind.line ^ empty ^ capture next empty lines only at end of indent
941
- .replace(/\n+/g, `$&${indent}`);
942
- const body = foldFlowLines(`${wsStart}${value}${wsEnd}`, indent, FOLD_BLOCK, strOptions.fold);
943
- return `${header}\n${indent}${body}`;
944
- }
945
- function plainString(item, ctx, onComment, onChompKeep) {
946
- const {
947
- comment,
948
- type,
949
- value
950
- } = item;
951
- const {
952
- actualString,
953
- implicitKey,
954
- indent,
955
- inFlow
956
- } = ctx;
957
- if (implicitKey && /[\n[\]{},]/.test(value) || inFlow && /[[\]{},]/.test(value)) {
958
- return doubleQuotedString(value, ctx);
959
- }
960
- if (!value || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(value)) {
961
- // not allowed:
962
- // - empty string, '-' or '?'
963
- // - start with an indicator character (except [?:-]) or /[?-] /
964
- // - '\n ', ': ' or ' \n' anywhere
965
- // - '#' not preceded by a non-space char
966
- // - end with ' ' or ':'
967
- return implicitKey || inFlow || value.indexOf('\n') === -1 ? value.indexOf('"') !== -1 && value.indexOf("'") === -1 ? singleQuotedString(value, ctx) : doubleQuotedString(value, ctx) : blockString(item, ctx, onComment, onChompKeep);
968
- }
969
- if (!implicitKey && !inFlow && type !== PlainValue.Type.PLAIN && value.indexOf('\n') !== -1) {
970
- // Where allowed & type not set explicitly, prefer block style for multiline strings
971
- return blockString(item, ctx, onComment, onChompKeep);
972
- }
973
- if (indent === '' && containsDocumentMarker(value)) {
974
- ctx.forceBlockIndent = true;
975
- return blockString(item, ctx, onComment, onChompKeep);
976
- }
977
- const str = value.replace(/\n+/g, `$&\n${indent}`);
978
- // Verify that output will be parsed as a string, as e.g. plain numbers and
979
- // booleans get parsed with those types in v1.2 (e.g. '42', 'true' & '0.9e-3'),
980
- // and others in v1.1.
981
- if (actualString) {
982
- const {
983
- tags
984
- } = ctx.doc.schema;
985
- const resolved = resolveScalar(str, tags, tags.scalarFallback).value;
986
- if (typeof resolved !== 'string') return doubleQuotedString(value, ctx);
987
- }
988
- const body = implicitKey ? str : foldFlowLines(str, indent, FOLD_FLOW, getFoldOptions(ctx));
989
- if (comment && !inFlow && (body.indexOf('\n') !== -1 || comment.indexOf('\n') !== -1)) {
990
- if (onComment) onComment();
991
- return addCommentBefore(body, indent, comment);
992
- }
993
- return body;
994
- }
995
- function stringifyString(item, ctx, onComment, onChompKeep) {
996
- const {
997
- defaultType
998
- } = strOptions;
999
- const {
1000
- implicitKey,
1001
- inFlow
1002
- } = ctx;
1003
- let {
1004
- type,
1005
- value
1006
- } = item;
1007
- if (typeof value !== 'string') {
1008
- value = String(value);
1009
- item = Object.assign({}, item, {
1010
- value
1011
- });
1012
- }
1013
- const _stringify = _type => {
1014
- switch (_type) {
1015
- case PlainValue.Type.BLOCK_FOLDED:
1016
- case PlainValue.Type.BLOCK_LITERAL:
1017
- return blockString(item, ctx, onComment, onChompKeep);
1018
- case PlainValue.Type.QUOTE_DOUBLE:
1019
- return doubleQuotedString(value, ctx);
1020
- case PlainValue.Type.QUOTE_SINGLE:
1021
- return singleQuotedString(value, ctx);
1022
- case PlainValue.Type.PLAIN:
1023
- return plainString(item, ctx, onComment, onChompKeep);
1024
- default:
1025
- return null;
1026
- }
1027
- };
1028
- if (type !== PlainValue.Type.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(value)) {
1029
- // force double quotes on control characters
1030
- type = PlainValue.Type.QUOTE_DOUBLE;
1031
- } else if ((implicitKey || inFlow) && (type === PlainValue.Type.BLOCK_FOLDED || type === PlainValue.Type.BLOCK_LITERAL)) {
1032
- // should not happen; blocks are not valid inside flow containers
1033
- type = PlainValue.Type.QUOTE_DOUBLE;
1034
- }
1035
- let res = _stringify(type);
1036
- if (res === null) {
1037
- res = _stringify(defaultType);
1038
- if (res === null) throw new Error(`Unsupported default string type ${defaultType}`);
1039
- }
1040
- return res;
1041
- }
1042
-
1043
- function stringifyNumber({
1044
- format,
1045
- minFractionDigits,
1046
- tag,
1047
- value
1048
- }) {
1049
- if (typeof value === 'bigint') return String(value);
1050
- if (!isFinite(value)) return isNaN(value) ? '.nan' : value < 0 ? '-.inf' : '.inf';
1051
- let n = JSON.stringify(value);
1052
- if (!format && minFractionDigits && (!tag || tag === 'tag:yaml.org,2002:float') && /^\d/.test(n)) {
1053
- let i = n.indexOf('.');
1054
- if (i < 0) {
1055
- i = n.length;
1056
- n += '.';
1057
- }
1058
- let d = minFractionDigits - (n.length - i - 1);
1059
- while (d-- > 0) n += '0';
1060
- }
1061
- return n;
1062
- }
1063
-
1064
- function checkFlowCollectionEnd(errors, cst) {
1065
- let char, name;
1066
- switch (cst.type) {
1067
- case PlainValue.Type.FLOW_MAP:
1068
- char = '}';
1069
- name = 'flow map';
1070
- break;
1071
- case PlainValue.Type.FLOW_SEQ:
1072
- char = ']';
1073
- name = 'flow sequence';
1074
- break;
1075
- default:
1076
- errors.push(new PlainValue.YAMLSemanticError(cst, 'Not a flow collection!?'));
1077
- return;
1078
- }
1079
- let lastItem;
1080
- for (let i = cst.items.length - 1; i >= 0; --i) {
1081
- const item = cst.items[i];
1082
- if (!item || item.type !== PlainValue.Type.COMMENT) {
1083
- lastItem = item;
1084
- break;
1085
- }
1086
- }
1087
- if (lastItem && lastItem.char !== char) {
1088
- const msg = `Expected ${name} to end with ${char}`;
1089
- let err;
1090
- if (typeof lastItem.offset === 'number') {
1091
- err = new PlainValue.YAMLSemanticError(cst, msg);
1092
- err.offset = lastItem.offset + 1;
1093
- } else {
1094
- err = new PlainValue.YAMLSemanticError(lastItem, msg);
1095
- if (lastItem.range && lastItem.range.end) err.offset = lastItem.range.end - lastItem.range.start;
1096
- }
1097
- errors.push(err);
1098
- }
1099
- }
1100
- function checkFlowCommentSpace(errors, comment) {
1101
- const prev = comment.context.src[comment.range.start - 1];
1102
- if (prev !== '\n' && prev !== '\t' && prev !== ' ') {
1103
- const msg = 'Comments must be separated from other tokens by white space characters';
1104
- errors.push(new PlainValue.YAMLSemanticError(comment, msg));
1105
- }
1106
- }
1107
- function getLongKeyError(source, key) {
1108
- const sk = String(key);
1109
- const k = sk.substr(0, 8) + '...' + sk.substr(-8);
1110
- return new PlainValue.YAMLSemanticError(source, `The "${k}" key is too long`);
1111
- }
1112
- function resolveComments(collection, comments) {
1113
- for (const {
1114
- afterKey,
1115
- before,
1116
- comment
1117
- } of comments) {
1118
- let item = collection.items[before];
1119
- if (!item) {
1120
- if (comment !== undefined) {
1121
- if (collection.comment) collection.comment += '\n' + comment;else collection.comment = comment;
1122
- }
1123
- } else {
1124
- if (afterKey && item.value) item = item.value;
1125
- if (comment === undefined) {
1126
- if (afterKey || !item.commentBefore) item.spaceBefore = true;
1127
- } else {
1128
- if (item.commentBefore) item.commentBefore += '\n' + comment;else item.commentBefore = comment;
1129
- }
1130
- }
1131
- }
1132
- }
1133
-
1134
- // on error, will return { str: string, errors: Error[] }
1135
- function resolveString(doc, node) {
1136
- const res = node.strValue;
1137
- if (!res) return '';
1138
- if (typeof res === 'string') return res;
1139
- res.errors.forEach(error => {
1140
- if (!error.source) error.source = node;
1141
- doc.errors.push(error);
1142
- });
1143
- return res.str;
1144
- }
1145
-
1146
- function resolveTagHandle(doc, node) {
1147
- const {
1148
- handle,
1149
- suffix
1150
- } = node.tag;
1151
- let prefix = doc.tagPrefixes.find(p => p.handle === handle);
1152
- if (!prefix) {
1153
- const dtp = doc.getDefaults().tagPrefixes;
1154
- if (dtp) prefix = dtp.find(p => p.handle === handle);
1155
- if (!prefix) throw new PlainValue.YAMLSemanticError(node, `The ${handle} tag handle is non-default and was not declared.`);
1156
- }
1157
- if (!suffix) throw new PlainValue.YAMLSemanticError(node, `The ${handle} tag has no suffix.`);
1158
- if (handle === '!' && (doc.version || doc.options.version) === '1.0') {
1159
- if (suffix[0] === '^') {
1160
- doc.warnings.push(new PlainValue.YAMLWarning(node, 'YAML 1.0 ^ tag expansion is not supported'));
1161
- return suffix;
1162
- }
1163
- if (/[:/]/.test(suffix)) {
1164
- // word/foo -> tag:word.yaml.org,2002:foo
1165
- const vocab = suffix.match(/^([a-z0-9-]+)\/(.*)/i);
1166
- return vocab ? `tag:${vocab[1]}.yaml.org,2002:${vocab[2]}` : `tag:${suffix}`;
1167
- }
1168
- }
1169
- return prefix.prefix + decodeURIComponent(suffix);
1170
- }
1171
- function resolveTagName(doc, node) {
1172
- const {
1173
- tag,
1174
- type
1175
- } = node;
1176
- let nonSpecific = false;
1177
- if (tag) {
1178
- const {
1179
- handle,
1180
- suffix,
1181
- verbatim
1182
- } = tag;
1183
- if (verbatim) {
1184
- if (verbatim !== '!' && verbatim !== '!!') return verbatim;
1185
- const msg = `Verbatim tags aren't resolved, so ${verbatim} is invalid.`;
1186
- doc.errors.push(new PlainValue.YAMLSemanticError(node, msg));
1187
- } else if (handle === '!' && !suffix) {
1188
- nonSpecific = true;
1189
- } else {
1190
- try {
1191
- return resolveTagHandle(doc, node);
1192
- } catch (error) {
1193
- doc.errors.push(error);
1194
- }
1195
- }
1196
- }
1197
- switch (type) {
1198
- case PlainValue.Type.BLOCK_FOLDED:
1199
- case PlainValue.Type.BLOCK_LITERAL:
1200
- case PlainValue.Type.QUOTE_DOUBLE:
1201
- case PlainValue.Type.QUOTE_SINGLE:
1202
- return PlainValue.defaultTags.STR;
1203
- case PlainValue.Type.FLOW_MAP:
1204
- case PlainValue.Type.MAP:
1205
- return PlainValue.defaultTags.MAP;
1206
- case PlainValue.Type.FLOW_SEQ:
1207
- case PlainValue.Type.SEQ:
1208
- return PlainValue.defaultTags.SEQ;
1209
- case PlainValue.Type.PLAIN:
1210
- return nonSpecific ? PlainValue.defaultTags.STR : null;
1211
- default:
1212
- return null;
1213
- }
1214
- }
1215
-
1216
- function resolveByTagName(doc, node, tagName) {
1217
- const {
1218
- tags
1219
- } = doc.schema;
1220
- const matchWithTest = [];
1221
- for (const tag of tags) {
1222
- if (tag.tag === tagName) {
1223
- if (tag.test) matchWithTest.push(tag);else {
1224
- const res = tag.resolve(doc, node);
1225
- return res instanceof Collection ? res : new Scalar(res);
1226
- }
1227
- }
1228
- }
1229
- const str = resolveString(doc, node);
1230
- if (typeof str === 'string' && matchWithTest.length > 0) return resolveScalar(str, matchWithTest, tags.scalarFallback);
1231
- return null;
1232
- }
1233
- function getFallbackTagName({
1234
- type
1235
- }) {
1236
- switch (type) {
1237
- case PlainValue.Type.FLOW_MAP:
1238
- case PlainValue.Type.MAP:
1239
- return PlainValue.defaultTags.MAP;
1240
- case PlainValue.Type.FLOW_SEQ:
1241
- case PlainValue.Type.SEQ:
1242
- return PlainValue.defaultTags.SEQ;
1243
- default:
1244
- return PlainValue.defaultTags.STR;
1245
- }
1246
- }
1247
- function resolveTag(doc, node, tagName) {
1248
- try {
1249
- const res = resolveByTagName(doc, node, tagName);
1250
- if (res) {
1251
- if (tagName && node.tag) res.tag = tagName;
1252
- return res;
1253
- }
1254
- } catch (error) {
1255
- if (error instanceof PlainValue.YAMLError) {
1256
- if (!error.source) error.source = node;
1257
- doc.errors.push(error);
1258
- } else {
1259
- const msg = error instanceof Error ? error.message : String(error);
1260
- doc.errors.push(new PlainValue.YAMLSemanticError(node, msg));
1261
- }
1262
- return null;
1263
- }
1264
- try {
1265
- const fallback = getFallbackTagName(node);
1266
- if (!fallback) throw new Error(`The tag ${tagName} is unavailable`);
1267
- const msg = `The tag ${tagName} is unavailable, falling back to ${fallback}`;
1268
- doc.warnings.push(new PlainValue.YAMLWarning(node, msg));
1269
- const res = resolveByTagName(doc, node, fallback);
1270
- res.tag = tagName;
1271
- return res;
1272
- } catch (error) {
1273
- const refError = new PlainValue.YAMLReferenceError(node, error.message);
1274
- refError.stack = error.stack;
1275
- doc.errors.push(refError);
1276
- return null;
1277
- }
1278
- }
1279
-
1280
- const isCollectionItem = node => {
1281
- if (!node) return false;
1282
- const {
1283
- type
1284
- } = node;
1285
- return type === PlainValue.Type.MAP_KEY || type === PlainValue.Type.MAP_VALUE || type === PlainValue.Type.SEQ_ITEM;
1286
- };
1287
- function resolveNodeProps(errors, node) {
1288
- const comments = {
1289
- before: [],
1290
- after: []
1291
- };
1292
- let hasAnchor = false;
1293
- let hasTag = false;
1294
- const props = isCollectionItem(node.context.parent) ? node.context.parent.props.concat(node.props) : node.props;
1295
- for (const {
1296
- start,
1297
- end
1298
- } of props) {
1299
- switch (node.context.src[start]) {
1300
- case PlainValue.Char.COMMENT:
1301
- {
1302
- if (!node.commentHasRequiredWhitespace(start)) {
1303
- const msg = 'Comments must be separated from other tokens by white space characters';
1304
- errors.push(new PlainValue.YAMLSemanticError(node, msg));
1305
- }
1306
- const {
1307
- header,
1308
- valueRange
1309
- } = node;
1310
- const cc = valueRange && (start > valueRange.start || header && start > header.start) ? comments.after : comments.before;
1311
- cc.push(node.context.src.slice(start + 1, end));
1312
- break;
1313
- }
1314
-
1315
- // Actual anchor & tag resolution is handled by schema, here we just complain
1316
- case PlainValue.Char.ANCHOR:
1317
- if (hasAnchor) {
1318
- const msg = 'A node can have at most one anchor';
1319
- errors.push(new PlainValue.YAMLSemanticError(node, msg));
1320
- }
1321
- hasAnchor = true;
1322
- break;
1323
- case PlainValue.Char.TAG:
1324
- if (hasTag) {
1325
- const msg = 'A node can have at most one tag';
1326
- errors.push(new PlainValue.YAMLSemanticError(node, msg));
1327
- }
1328
- hasTag = true;
1329
- break;
1330
- }
1331
- }
1332
- return {
1333
- comments,
1334
- hasAnchor,
1335
- hasTag
1336
- };
1337
- }
1338
- function resolveNodeValue(doc, node) {
1339
- const {
1340
- anchors,
1341
- errors,
1342
- schema
1343
- } = doc;
1344
- if (node.type === PlainValue.Type.ALIAS) {
1345
- const name = node.rawValue;
1346
- const src = anchors.getNode(name);
1347
- if (!src) {
1348
- const msg = `Aliased anchor not found: ${name}`;
1349
- errors.push(new PlainValue.YAMLReferenceError(node, msg));
1350
- return null;
1351
- }
1352
-
1353
- // Lazy resolution for circular references
1354
- const res = new Alias(src);
1355
- anchors._cstAliases.push(res);
1356
- return res;
1357
- }
1358
- const tagName = resolveTagName(doc, node);
1359
- if (tagName) return resolveTag(doc, node, tagName);
1360
- if (node.type !== PlainValue.Type.PLAIN) {
1361
- const msg = `Failed to resolve ${node.type} node here`;
1362
- errors.push(new PlainValue.YAMLSyntaxError(node, msg));
1363
- return null;
1364
- }
1365
- try {
1366
- const str = resolveString(doc, node);
1367
- return resolveScalar(str, schema.tags, schema.tags.scalarFallback);
1368
- } catch (error) {
1369
- if (!error.source) error.source = node;
1370
- errors.push(error);
1371
- return null;
1372
- }
1373
- }
1374
-
1375
- // sets node.resolved on success
1376
- function resolveNode(doc, node) {
1377
- if (!node) return null;
1378
- if (node.error) doc.errors.push(node.error);
1379
- const {
1380
- comments,
1381
- hasAnchor,
1382
- hasTag
1383
- } = resolveNodeProps(doc.errors, node);
1384
- if (hasAnchor) {
1385
- const {
1386
- anchors
1387
- } = doc;
1388
- const name = node.anchor;
1389
- const prev = anchors.getNode(name);
1390
- // At this point, aliases for any preceding node with the same anchor
1391
- // name have already been resolved, so it may safely be renamed.
1392
- if (prev) anchors.map[anchors.newName(name)] = prev;
1393
- // During parsing, we need to store the CST node in anchors.map as
1394
- // anchors need to be available during resolution to allow for
1395
- // circular references.
1396
- anchors.map[name] = node;
1397
- }
1398
- if (node.type === PlainValue.Type.ALIAS && (hasAnchor || hasTag)) {
1399
- const msg = 'An alias node must not specify any properties';
1400
- doc.errors.push(new PlainValue.YAMLSemanticError(node, msg));
1401
- }
1402
- const res = resolveNodeValue(doc, node);
1403
- if (res) {
1404
- res.range = [node.range.start, node.range.end];
1405
- if (doc.options.keepCstNodes) res.cstNode = node;
1406
- if (doc.options.keepNodeTypes) res.type = node.type;
1407
- const cb = comments.before.join('\n');
1408
- if (cb) {
1409
- res.commentBefore = res.commentBefore ? `${res.commentBefore}\n${cb}` : cb;
1410
- }
1411
- const ca = comments.after.join('\n');
1412
- if (ca) res.comment = res.comment ? `${res.comment}\n${ca}` : ca;
1413
- }
1414
- return node.resolved = res;
1415
- }
1416
-
1417
- function resolveMap(doc, cst) {
1418
- if (cst.type !== PlainValue.Type.MAP && cst.type !== PlainValue.Type.FLOW_MAP) {
1419
- const msg = `A ${cst.type} node cannot be resolved as a mapping`;
1420
- doc.errors.push(new PlainValue.YAMLSyntaxError(cst, msg));
1421
- return null;
1422
- }
1423
- const {
1424
- comments,
1425
- items
1426
- } = cst.type === PlainValue.Type.FLOW_MAP ? resolveFlowMapItems(doc, cst) : resolveBlockMapItems(doc, cst);
1427
- const map = new YAMLMap();
1428
- map.items = items;
1429
- resolveComments(map, comments);
1430
- let hasCollectionKey = false;
1431
- for (let i = 0; i < items.length; ++i) {
1432
- const {
1433
- key: iKey
1434
- } = items[i];
1435
- if (iKey instanceof Collection) hasCollectionKey = true;
1436
- if (doc.schema.merge && iKey && iKey.value === MERGE_KEY) {
1437
- items[i] = new Merge(items[i]);
1438
- const sources = items[i].value.items;
1439
- let error = null;
1440
- sources.some(node => {
1441
- if (node instanceof Alias) {
1442
- // During parsing, alias sources are CST nodes; to account for
1443
- // circular references their resolved values can't be used here.
1444
- const {
1445
- type
1446
- } = node.source;
1447
- if (type === PlainValue.Type.MAP || type === PlainValue.Type.FLOW_MAP) return false;
1448
- return error = 'Merge nodes aliases can only point to maps';
1449
- }
1450
- return error = 'Merge nodes can only have Alias nodes as values';
1451
- });
1452
- if (error) doc.errors.push(new PlainValue.YAMLSemanticError(cst, error));
1453
- } else {
1454
- for (let j = i + 1; j < items.length; ++j) {
1455
- const {
1456
- key: jKey
1457
- } = items[j];
1458
- if (iKey === jKey || iKey && jKey && Object.prototype.hasOwnProperty.call(iKey, 'value') && iKey.value === jKey.value) {
1459
- const msg = `Map keys must be unique; "${iKey}" is repeated`;
1460
- doc.errors.push(new PlainValue.YAMLSemanticError(cst, msg));
1461
- break;
1462
- }
1463
- }
1464
- }
1465
- }
1466
- if (hasCollectionKey && !doc.options.mapAsMap) {
1467
- const warn = 'Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.';
1468
- doc.warnings.push(new PlainValue.YAMLWarning(cst, warn));
1469
- }
1470
- cst.resolved = map;
1471
- return map;
1472
- }
1473
- const valueHasPairComment = ({
1474
- context: {
1475
- lineStart,
1476
- node,
1477
- src
1478
- },
1479
- props
1480
- }) => {
1481
- if (props.length === 0) return false;
1482
- const {
1483
- start
1484
- } = props[0];
1485
- if (node && start > node.valueRange.start) return false;
1486
- if (src[start] !== PlainValue.Char.COMMENT) return false;
1487
- for (let i = lineStart; i < start; ++i) if (src[i] === '\n') return false;
1488
- return true;
1489
- };
1490
- function resolvePairComment(item, pair) {
1491
- if (!valueHasPairComment(item)) return;
1492
- const comment = item.getPropValue(0, PlainValue.Char.COMMENT, true);
1493
- let found = false;
1494
- const cb = pair.value.commentBefore;
1495
- if (cb && cb.startsWith(comment)) {
1496
- pair.value.commentBefore = cb.substr(comment.length + 1);
1497
- found = true;
1498
- } else {
1499
- const cc = pair.value.comment;
1500
- if (!item.node && cc && cc.startsWith(comment)) {
1501
- pair.value.comment = cc.substr(comment.length + 1);
1502
- found = true;
1503
- }
1504
- }
1505
- if (found) pair.comment = comment;
1506
- }
1507
- function resolveBlockMapItems(doc, cst) {
1508
- const comments = [];
1509
- const items = [];
1510
- let key = undefined;
1511
- let keyStart = null;
1512
- for (let i = 0; i < cst.items.length; ++i) {
1513
- const item = cst.items[i];
1514
- switch (item.type) {
1515
- case PlainValue.Type.BLANK_LINE:
1516
- comments.push({
1517
- afterKey: !!key,
1518
- before: items.length
1519
- });
1520
- break;
1521
- case PlainValue.Type.COMMENT:
1522
- comments.push({
1523
- afterKey: !!key,
1524
- before: items.length,
1525
- comment: item.comment
1526
- });
1527
- break;
1528
- case PlainValue.Type.MAP_KEY:
1529
- if (key !== undefined) items.push(new Pair(key));
1530
- if (item.error) doc.errors.push(item.error);
1531
- key = resolveNode(doc, item.node);
1532
- keyStart = null;
1533
- break;
1534
- case PlainValue.Type.MAP_VALUE:
1535
- {
1536
- if (key === undefined) key = null;
1537
- if (item.error) doc.errors.push(item.error);
1538
- if (!item.context.atLineStart && item.node && item.node.type === PlainValue.Type.MAP && !item.node.context.atLineStart) {
1539
- const msg = 'Nested mappings are not allowed in compact mappings';
1540
- doc.errors.push(new PlainValue.YAMLSemanticError(item.node, msg));
1541
- }
1542
- let valueNode = item.node;
1543
- if (!valueNode && item.props.length > 0) {
1544
- // Comments on an empty mapping value need to be preserved, so we
1545
- // need to construct a minimal empty node here to use instead of the
1546
- // missing `item.node`. -- eemeli/yaml#19
1547
- valueNode = new PlainValue.PlainValue(PlainValue.Type.PLAIN, []);
1548
- valueNode.context = {
1549
- parent: item,
1550
- src: item.context.src
1551
- };
1552
- const pos = item.range.start + 1;
1553
- valueNode.range = {
1554
- start: pos,
1555
- end: pos
1556
- };
1557
- valueNode.valueRange = {
1558
- start: pos,
1559
- end: pos
1560
- };
1561
- if (typeof item.range.origStart === 'number') {
1562
- const origPos = item.range.origStart + 1;
1563
- valueNode.range.origStart = valueNode.range.origEnd = origPos;
1564
- valueNode.valueRange.origStart = valueNode.valueRange.origEnd = origPos;
1565
- }
1566
- }
1567
- const pair = new Pair(key, resolveNode(doc, valueNode));
1568
- resolvePairComment(item, pair);
1569
- items.push(pair);
1570
- if (key && typeof keyStart === 'number') {
1571
- if (item.range.start > keyStart + 1024) doc.errors.push(getLongKeyError(cst, key));
1572
- }
1573
- key = undefined;
1574
- keyStart = null;
1575
- }
1576
- break;
1577
- default:
1578
- if (key !== undefined) items.push(new Pair(key));
1579
- key = resolveNode(doc, item);
1580
- keyStart = item.range.start;
1581
- if (item.error) doc.errors.push(item.error);
1582
- next: for (let j = i + 1;; ++j) {
1583
- const nextItem = cst.items[j];
1584
- switch (nextItem && nextItem.type) {
1585
- case PlainValue.Type.BLANK_LINE:
1586
- case PlainValue.Type.COMMENT:
1587
- continue next;
1588
- case PlainValue.Type.MAP_VALUE:
1589
- break next;
1590
- default:
1591
- {
1592
- const msg = 'Implicit map keys need to be followed by map values';
1593
- doc.errors.push(new PlainValue.YAMLSemanticError(item, msg));
1594
- break next;
1595
- }
1596
- }
1597
- }
1598
- if (item.valueRangeContainsNewline) {
1599
- const msg = 'Implicit map keys need to be on a single line';
1600
- doc.errors.push(new PlainValue.YAMLSemanticError(item, msg));
1601
- }
1602
- }
1603
- }
1604
- if (key !== undefined) items.push(new Pair(key));
1605
- return {
1606
- comments,
1607
- items
1608
- };
1609
- }
1610
- function resolveFlowMapItems(doc, cst) {
1611
- const comments = [];
1612
- const items = [];
1613
- let key = undefined;
1614
- let explicitKey = false;
1615
- let next = '{';
1616
- for (let i = 0; i < cst.items.length; ++i) {
1617
- const item = cst.items[i];
1618
- if (typeof item.char === 'string') {
1619
- const {
1620
- char,
1621
- offset
1622
- } = item;
1623
- if (char === '?' && key === undefined && !explicitKey) {
1624
- explicitKey = true;
1625
- next = ':';
1626
- continue;
1627
- }
1628
- if (char === ':') {
1629
- if (key === undefined) key = null;
1630
- if (next === ':') {
1631
- next = ',';
1632
- continue;
1633
- }
1634
- } else {
1635
- if (explicitKey) {
1636
- if (key === undefined && char !== ',') key = null;
1637
- explicitKey = false;
1638
- }
1639
- if (key !== undefined) {
1640
- items.push(new Pair(key));
1641
- key = undefined;
1642
- if (char === ',') {
1643
- next = ':';
1644
- continue;
1645
- }
1646
- }
1647
- }
1648
- if (char === '}') {
1649
- if (i === cst.items.length - 1) continue;
1650
- } else if (char === next) {
1651
- next = ':';
1652
- continue;
1653
- }
1654
- const msg = `Flow map contains an unexpected ${char}`;
1655
- const err = new PlainValue.YAMLSyntaxError(cst, msg);
1656
- err.offset = offset;
1657
- doc.errors.push(err);
1658
- } else if (item.type === PlainValue.Type.BLANK_LINE) {
1659
- comments.push({
1660
- afterKey: !!key,
1661
- before: items.length
1662
- });
1663
- } else if (item.type === PlainValue.Type.COMMENT) {
1664
- checkFlowCommentSpace(doc.errors, item);
1665
- comments.push({
1666
- afterKey: !!key,
1667
- before: items.length,
1668
- comment: item.comment
1669
- });
1670
- } else if (key === undefined) {
1671
- if (next === ',') doc.errors.push(new PlainValue.YAMLSemanticError(item, 'Separator , missing in flow map'));
1672
- key = resolveNode(doc, item);
1673
- } else {
1674
- if (next !== ',') doc.errors.push(new PlainValue.YAMLSemanticError(item, 'Indicator : missing in flow map entry'));
1675
- items.push(new Pair(key, resolveNode(doc, item)));
1676
- key = undefined;
1677
- explicitKey = false;
1678
- }
1679
- }
1680
- checkFlowCollectionEnd(doc.errors, cst);
1681
- if (key !== undefined) items.push(new Pair(key));
1682
- return {
1683
- comments,
1684
- items
1685
- };
1686
- }
1687
-
1688
- function resolveSeq(doc, cst) {
1689
- if (cst.type !== PlainValue.Type.SEQ && cst.type !== PlainValue.Type.FLOW_SEQ) {
1690
- const msg = `A ${cst.type} node cannot be resolved as a sequence`;
1691
- doc.errors.push(new PlainValue.YAMLSyntaxError(cst, msg));
1692
- return null;
1693
- }
1694
- const {
1695
- comments,
1696
- items
1697
- } = cst.type === PlainValue.Type.FLOW_SEQ ? resolveFlowSeqItems(doc, cst) : resolveBlockSeqItems(doc, cst);
1698
- const seq = new YAMLSeq();
1699
- seq.items = items;
1700
- resolveComments(seq, comments);
1701
- if (!doc.options.mapAsMap && items.some(it => it instanceof Pair && it.key instanceof Collection)) {
1702
- const warn = 'Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.';
1703
- doc.warnings.push(new PlainValue.YAMLWarning(cst, warn));
1704
- }
1705
- cst.resolved = seq;
1706
- return seq;
1707
- }
1708
- function resolveBlockSeqItems(doc, cst) {
1709
- const comments = [];
1710
- const items = [];
1711
- for (let i = 0; i < cst.items.length; ++i) {
1712
- const item = cst.items[i];
1713
- switch (item.type) {
1714
- case PlainValue.Type.BLANK_LINE:
1715
- comments.push({
1716
- before: items.length
1717
- });
1718
- break;
1719
- case PlainValue.Type.COMMENT:
1720
- comments.push({
1721
- comment: item.comment,
1722
- before: items.length
1723
- });
1724
- break;
1725
- case PlainValue.Type.SEQ_ITEM:
1726
- if (item.error) doc.errors.push(item.error);
1727
- items.push(resolveNode(doc, item.node));
1728
- if (item.hasProps) {
1729
- const msg = 'Sequence items cannot have tags or anchors before the - indicator';
1730
- doc.errors.push(new PlainValue.YAMLSemanticError(item, msg));
1731
- }
1732
- break;
1733
- default:
1734
- if (item.error) doc.errors.push(item.error);
1735
- doc.errors.push(new PlainValue.YAMLSyntaxError(item, `Unexpected ${item.type} node in sequence`));
1736
- }
1737
- }
1738
- return {
1739
- comments,
1740
- items
1741
- };
1742
- }
1743
- function resolveFlowSeqItems(doc, cst) {
1744
- const comments = [];
1745
- const items = [];
1746
- let explicitKey = false;
1747
- let key = undefined;
1748
- let keyStart = null;
1749
- let next = '[';
1750
- let prevItem = null;
1751
- for (let i = 0; i < cst.items.length; ++i) {
1752
- const item = cst.items[i];
1753
- if (typeof item.char === 'string') {
1754
- const {
1755
- char,
1756
- offset
1757
- } = item;
1758
- if (char !== ':' && (explicitKey || key !== undefined)) {
1759
- if (explicitKey && key === undefined) key = next ? items.pop() : null;
1760
- items.push(new Pair(key));
1761
- explicitKey = false;
1762
- key = undefined;
1763
- keyStart = null;
1764
- }
1765
- if (char === next) {
1766
- next = null;
1767
- } else if (!next && char === '?') {
1768
- explicitKey = true;
1769
- } else if (next !== '[' && char === ':' && key === undefined) {
1770
- if (next === ',') {
1771
- key = items.pop();
1772
- if (key instanceof Pair) {
1773
- const msg = 'Chaining flow sequence pairs is invalid';
1774
- const err = new PlainValue.YAMLSemanticError(cst, msg);
1775
- err.offset = offset;
1776
- doc.errors.push(err);
1777
- }
1778
- if (!explicitKey && typeof keyStart === 'number') {
1779
- const keyEnd = item.range ? item.range.start : item.offset;
1780
- if (keyEnd > keyStart + 1024) doc.errors.push(getLongKeyError(cst, key));
1781
- const {
1782
- src
1783
- } = prevItem.context;
1784
- for (let i = keyStart; i < keyEnd; ++i) if (src[i] === '\n') {
1785
- const msg = 'Implicit keys of flow sequence pairs need to be on a single line';
1786
- doc.errors.push(new PlainValue.YAMLSemanticError(prevItem, msg));
1787
- break;
1788
- }
1789
- }
1790
- } else {
1791
- key = null;
1792
- }
1793
- keyStart = null;
1794
- explicitKey = false;
1795
- next = null;
1796
- } else if (next === '[' || char !== ']' || i < cst.items.length - 1) {
1797
- const msg = `Flow sequence contains an unexpected ${char}`;
1798
- const err = new PlainValue.YAMLSyntaxError(cst, msg);
1799
- err.offset = offset;
1800
- doc.errors.push(err);
1801
- }
1802
- } else if (item.type === PlainValue.Type.BLANK_LINE) {
1803
- comments.push({
1804
- before: items.length
1805
- });
1806
- } else if (item.type === PlainValue.Type.COMMENT) {
1807
- checkFlowCommentSpace(doc.errors, item);
1808
- comments.push({
1809
- comment: item.comment,
1810
- before: items.length
1811
- });
1812
- } else {
1813
- if (next) {
1814
- const msg = `Expected a ${next} in flow sequence`;
1815
- doc.errors.push(new PlainValue.YAMLSemanticError(item, msg));
1816
- }
1817
- const value = resolveNode(doc, item);
1818
- if (key === undefined) {
1819
- items.push(value);
1820
- prevItem = item;
1821
- } else {
1822
- items.push(new Pair(key, value));
1823
- key = undefined;
1824
- }
1825
- keyStart = item.range.start;
1826
- next = ',';
1827
- }
1828
- }
1829
- checkFlowCollectionEnd(doc.errors, cst);
1830
- if (key !== undefined) items.push(new Pair(key));
1831
- return {
1832
- comments,
1833
- items
1834
- };
1835
- }
1836
-
1837
- exports.Alias = Alias;
1838
- exports.Collection = Collection;
1839
- exports.Merge = Merge;
1840
- exports.Node = Node;
1841
- exports.Pair = Pair;
1842
- exports.Scalar = Scalar;
1843
- exports.YAMLMap = YAMLMap;
1844
- exports.YAMLSeq = YAMLSeq;
1845
- exports.addComment = addComment;
1846
- exports.binaryOptions = binaryOptions;
1847
- exports.boolOptions = boolOptions;
1848
- exports.findPair = findPair;
1849
- exports.intOptions = intOptions;
1850
- exports.isEmptyPath = isEmptyPath;
1851
- exports.nullOptions = nullOptions;
1852
- exports.resolveMap = resolveMap;
1853
- exports.resolveNode = resolveNode;
1854
- exports.resolveSeq = resolveSeq;
1855
- exports.resolveString = resolveString;
1856
- exports.strOptions = strOptions;
1857
- exports.stringifyNumber = stringifyNumber;
1858
- exports.stringifyString = stringifyString;
1859
- exports.toJSON = toJSON;