@kubb/agent 4.33.0 → 4.33.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (392) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/server/chunks/nitro/nitro.mjs +3554 -2113
  3. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  4. package/.output/server/chunks/routes/api/health.get.mjs +5 -5
  5. package/.output/server/index.mjs +5 -5
  6. package/.output/server/node_modules/.nitro/picomatch@4.0.3/index.js +17 -0
  7. package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/constants.js +180 -0
  8. package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/parse.js +1085 -0
  9. package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/picomatch.js +341 -0
  10. package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/scan.js +391 -0
  11. package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/utils.js +72 -0
  12. package/.output/server/node_modules/.nitro/picomatch@4.0.3/package.json +83 -0
  13. package/.output/server/node_modules/@redocly/ajv/dist/2020.js +55 -0
  14. package/.output/server/node_modules/@redocly/ajv/dist/ajv.js +50 -0
  15. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/code.js +156 -0
  16. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/index.js +697 -0
  17. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/scope.js +143 -0
  18. package/.output/server/node_modules/@redocly/ajv/dist/compile/errors.js +123 -0
  19. package/.output/server/node_modules/@redocly/ajv/dist/compile/index.js +249 -0
  20. package/.output/server/node_modules/@redocly/ajv/dist/compile/names.js +29 -0
  21. package/.output/server/node_modules/@redocly/ajv/dist/compile/ref_error.js +12 -0
  22. package/.output/server/node_modules/@redocly/ajv/dist/compile/resolve.js +155 -0
  23. package/.output/server/node_modules/@redocly/ajv/dist/compile/rules.js +26 -0
  24. package/.output/server/node_modules/@redocly/ajv/dist/compile/util.js +178 -0
  25. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/applicability.js +19 -0
  26. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/boolSchema.js +50 -0
  27. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/dataType.js +203 -0
  28. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/defaults.js +35 -0
  29. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/index.js +534 -0
  30. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/keyword.js +124 -0
  31. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/subschema.js +81 -0
  32. package/.output/server/node_modules/@redocly/ajv/dist/core.js +632 -0
  33. package/.output/server/node_modules/@redocly/ajv/dist/draft4.js +56 -0
  34. package/.output/server/node_modules/@redocly/ajv/dist/refs/data.json +13 -0
  35. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  36. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  37. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  38. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  39. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  40. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  41. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  42. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  43. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  44. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-04.json +138 -0
  45. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-07.json +151 -0
  46. package/.output/server/node_modules/@redocly/ajv/dist/runtime/equal.js +7 -0
  47. package/.output/server/node_modules/@redocly/ajv/dist/runtime/ucs2length.js +24 -0
  48. package/.output/server/node_modules/@redocly/ajv/dist/runtime/uri.js +6 -0
  49. package/.output/server/node_modules/@redocly/ajv/dist/runtime/validation_error.js +11 -0
  50. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  51. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalProperties.js +107 -0
  52. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  53. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  54. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/contains.js +95 -0
  55. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  56. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  57. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/if.js +66 -0
  58. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/index.js +44 -0
  59. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items.js +52 -0
  60. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  61. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/not.js +26 -0
  62. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  63. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  64. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  65. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/properties.js +55 -0
  66. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  67. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  68. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/code.js +138 -0
  69. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/id.js +10 -0
  70. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/index.js +16 -0
  71. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/ref.js +132 -0
  72. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/index.js +139 -0
  73. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/types.js +9 -0
  74. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft2020.js +23 -0
  75. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft4.js +29 -0
  76. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft7.js +17 -0
  77. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  78. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  79. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/index.js +9 -0
  80. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  81. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  82. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/format.js +92 -0
  83. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/index.js +6 -0
  84. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/metadata.js +26 -0
  85. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/next.js +8 -0
  86. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/oasContext.js +26 -0
  87. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  88. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  89. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +84 -0
  90. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/const.js +25 -0
  91. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  92. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumber.js +43 -0
  93. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumberExclusive.js +19 -0
  94. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/enum.js +48 -0
  95. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/index.js +37 -0
  96. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  97. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  98. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  99. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  100. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  101. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  102. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/pattern.js +33 -0
  103. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/readOnly.js +20 -0
  104. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/required.js +86 -0
  105. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  106. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/writeOnly.js +20 -0
  107. package/.output/server/node_modules/@redocly/ajv/package.json +130 -0
  108. package/.output/server/node_modules/@redocly/config/lib/common.js +103 -0
  109. package/.output/server/node_modules/@redocly/config/lib/constants/config.js +17 -0
  110. package/.output/server/node_modules/@redocly/config/lib/constants/entities.js +58 -0
  111. package/.output/server/node_modules/@redocly/config/lib/constants/enum.js +6 -0
  112. package/.output/server/node_modules/@redocly/config/lib/constants/shared.js +22 -0
  113. package/.output/server/node_modules/@redocly/config/lib/default-theme-config-schema.js +54 -0
  114. package/.output/server/node_modules/@redocly/config/lib/entities-catalog-config-schema.js +186 -0
  115. package/.output/server/node_modules/@redocly/config/lib/entities-catalog-entity-file-schema.js +283 -0
  116. package/.output/server/node_modules/@redocly/config/lib/ex-theme-config-schemas.js +682 -0
  117. package/.output/server/node_modules/@redocly/config/lib/feedback-config-schema.js +88 -0
  118. package/.output/server/node_modules/@redocly/config/lib/graphql-config-schema.js +157 -0
  119. package/.output/server/node_modules/@redocly/config/lib/index.js +41 -0
  120. package/.output/server/node_modules/@redocly/config/lib/product-override-schema.js +43 -0
  121. package/.output/server/node_modules/@redocly/config/lib/redoc-config-schema.js +120 -0
  122. package/.output/server/node_modules/@redocly/config/lib/reference-docs-config-schema.js +518 -0
  123. package/.output/server/node_modules/@redocly/config/lib/remove-property-recursively.js +25 -0
  124. package/.output/server/node_modules/@redocly/config/lib/reunite-config-schema.js +103 -0
  125. package/.output/server/node_modules/@redocly/config/lib/root-config-schema.js +558 -0
  126. package/.output/server/node_modules/@redocly/config/lib/scorecards-config-schema.js +242 -0
  127. package/.output/server/node_modules/@redocly/config/lib/types/api-functions-types.js +3 -0
  128. package/.output/server/node_modules/@redocly/config/lib/types/catalog-entity-types.js +3 -0
  129. package/.output/server/node_modules/@redocly/config/lib/types/code-walkthrough-types.js +3 -0
  130. package/.output/server/node_modules/@redocly/config/lib/types/config-types.js +3 -0
  131. package/.output/server/node_modules/@redocly/config/lib/types/index.js +21 -0
  132. package/.output/server/node_modules/@redocly/config/lib/types/portal-shared-types.js +18 -0
  133. package/.output/server/node_modules/@redocly/config/package.json +28 -0
  134. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-document.js +85 -0
  135. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-visitor.js +257 -0
  136. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle.js +74 -0
  137. package/.output/server/node_modules/@redocly/openapi-core/lib/config/all.js +310 -0
  138. package/.output/server/node_modules/@redocly/openapi-core/lib/config/builtIn.js +58 -0
  139. package/.output/server/node_modules/@redocly/openapi-core/lib/config/bundle-extends.js +27 -0
  140. package/.output/server/node_modules/@redocly/openapi-core/lib/config/config-resolvers.js +335 -0
  141. package/.output/server/node_modules/@redocly/openapi-core/lib/config/config.js +338 -0
  142. package/.output/server/node_modules/@redocly/openapi-core/lib/config/constants.js +13 -0
  143. package/.output/server/node_modules/@redocly/openapi-core/lib/config/get-resolve-config.js +9 -0
  144. package/.output/server/node_modules/@redocly/openapi-core/lib/config/group-assertion-rules.js +51 -0
  145. package/.output/server/node_modules/@redocly/openapi-core/lib/config/index.js +8 -0
  146. package/.output/server/node_modules/@redocly/openapi-core/lib/config/load.js +98 -0
  147. package/.output/server/node_modules/@redocly/openapi-core/lib/config/minimal.js +289 -0
  148. package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended-strict.js +289 -0
  149. package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended.js +289 -0
  150. package/.output/server/node_modules/@redocly/openapi-core/lib/config/rules.js +35 -0
  151. package/.output/server/node_modules/@redocly/openapi-core/lib/config/spec.js +289 -0
  152. package/.output/server/node_modules/@redocly/openapi-core/lib/config/types.js +2 -0
  153. package/.output/server/node_modules/@redocly/openapi-core/lib/config/utils.js +129 -0
  154. package/.output/server/node_modules/@redocly/openapi-core/lib/config/visitors.js +99 -0
  155. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/arazzo/index.js +2 -0
  156. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async2/index.js +2 -0
  157. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async3/index.js +2 -0
  158. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-helper.js +65 -0
  159. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-in.js +14 -0
  160. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-out.js +14 -0
  161. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-description-override.js +21 -0
  162. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-override.js +14 -0
  163. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/media-type-examples-override.js +58 -0
  164. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/operation-description-override.js +27 -0
  165. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/remove-x-internal.js +68 -0
  166. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/tag-description-override.js +23 -0
  167. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/index.js +19 -0
  168. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/remove-unused-components.js +88 -0
  169. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/index.js +21 -0
  170. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/remove-unused-components.js +116 -0
  171. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/openrpc/index.js +2 -0
  172. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/overlay1/index.js +2 -0
  173. package/.output/server/node_modules/@redocly/openapi-core/lib/detect-spec.js +79 -0
  174. package/.output/server/node_modules/@redocly/openapi-core/lib/env.js +5 -0
  175. package/.output/server/node_modules/@redocly/openapi-core/lib/errors/yaml-parse-error.js +14 -0
  176. package/.output/server/node_modules/@redocly/openapi-core/lib/format/codeframes.js +177 -0
  177. package/.output/server/node_modules/@redocly/openapi-core/lib/format/format.js +365 -0
  178. package/.output/server/node_modules/@redocly/openapi-core/lib/index.js +49 -0
  179. package/.output/server/node_modules/@redocly/openapi-core/lib/js-yaml/index.js +11 -0
  180. package/.output/server/node_modules/@redocly/openapi-core/lib/lint-entity.js +171 -0
  181. package/.output/server/node_modules/@redocly/openapi-core/lib/lint.js +123 -0
  182. package/.output/server/node_modules/@redocly/openapi-core/lib/logger.js +56 -0
  183. package/.output/server/node_modules/@redocly/openapi-core/lib/oas-types.js +35 -0
  184. package/.output/server/node_modules/@redocly/openapi-core/lib/ref-utils.js +109 -0
  185. package/.output/server/node_modules/@redocly/openapi-core/lib/resolve.js +326 -0
  186. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/ajv.js +106 -0
  187. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/criteria-unique.js +68 -0
  188. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/index.js +52 -0
  189. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/outputs-defined.js +139 -0
  190. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/parameters-unique.js +27 -0
  191. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/requestBody-replacements-unique.js +30 -0
  192. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescription-type.js +19 -0
  193. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-name-unique.js +21 -0
  194. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-not-empty.js +15 -0
  195. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onFailure-unique.js +27 -0
  196. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onSuccess-unique.js +27 -0
  197. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/stepId-unique.js +23 -0
  198. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflow-dependsOn.js +53 -0
  199. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflowId-unique.js +19 -0
  200. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/channels-kebab-case.js +16 -0
  201. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/index.js +32 -0
  202. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/no-channel-trailing-slash.js +13 -0
  203. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/channels-kebab-case.js +16 -0
  204. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/index.js +32 -0
  205. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/no-channel-trailing-slash.js +13 -0
  206. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/catalog-entity/entity-key-valid.js +39 -0
  207. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/asserts.js +269 -0
  208. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/index.js +22 -0
  209. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/utils.js +215 -0
  210. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-contact.js +14 -0
  211. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license-strict.js +23 -0
  212. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license.js +14 -0
  213. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-ambiguous-paths.js +42 -0
  214. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-duplicated-tag-names.js +21 -0
  215. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-enum-type-mismatch.js +38 -0
  216. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-http-verbs-in-paths.js +31 -0
  217. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-identical-paths.js +21 -0
  218. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-parameter-examples.js +32 -0
  219. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-schema-examples.js +34 -0
  220. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-path-trailing-slash.js +13 -0
  221. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-required-schema-properties-undefined.js +78 -0
  222. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-schema-type-mismatch.js +19 -0
  223. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-unresolved-refs.js +42 -0
  224. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-2xx-response.js +20 -0
  225. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-4xx-response.js +20 -0
  226. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-description.js +9 -0
  227. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-unique.js +17 -0
  228. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-url-safe.js +15 -0
  229. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId.js +13 -0
  230. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-parameters-unique.js +37 -0
  231. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-singular-tag.js +13 -0
  232. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-summary.js +9 -0
  233. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-tag-defined.js +27 -0
  234. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/parameter-description.js +19 -0
  235. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-declaration-must-exist.js +13 -0
  236. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-http-verbs-order.js +23 -0
  237. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-not-include-query.js +15 -0
  238. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-params-defined.js +145 -0
  239. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-segment-plural.js +30 -0
  240. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/paths-kebab-case.js +17 -0
  241. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/required-string-property-missing-min-length.js +34 -0
  242. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/response-contains-header.js +26 -0
  243. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/scalar-property-missing-example.js +39 -0
  244. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/security-defined.js +62 -0
  245. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/spec-strict-refs.js +27 -0
  246. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/struct.js +150 -0
  247. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tag-description.js +9 -0
  248. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tags-alphabetical.js +18 -0
  249. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/boolean-parameter-prefixes.js +19 -0
  250. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/index.js +93 -0
  251. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/request-mime-type.js +14 -0
  252. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-contains-property.js +34 -0
  253. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-mime-type.js +14 -0
  254. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/array-parameter-serialization.js +26 -0
  255. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/boolean-parameter-prefixes.js +21 -0
  256. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/component-name-unique.js +130 -0
  257. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/index.js +129 -0
  258. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-empty-servers.js +20 -0
  259. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-example-value-and-externalValue.js +13 -0
  260. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-invalid-media-type-examples.js +59 -0
  261. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-example.com.js +15 -0
  262. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-trailing-slash.js +15 -0
  263. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-variables-empty-enum.js +58 -0
  264. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-undefined-server-variable.js +28 -0
  265. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-unused-components.js +83 -0
  266. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/nullable-type-sibling.js +15 -0
  267. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +33 -0
  268. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/request-mime-type.js +28 -0
  269. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-contains-property.js +36 -0
  270. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-mime-type.js +28 -0
  271. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-components-invalid-map-name.js +59 -0
  272. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-discriminator-defaultMapping.js +32 -0
  273. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-example-values.js +31 -0
  274. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-encoding-combinations.js +16 -0
  275. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-tag-parents.js +38 -0
  276. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-querystring-parameters.js +65 -0
  277. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/index.js +20 -0
  278. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/no-unused-components.js +82 -0
  279. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-duplicated-method-params.js +28 -0
  280. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-required-params-after-optional.js +31 -0
  281. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/other/stats.js +190 -0
  282. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/overlay1/index.js +12 -0
  283. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-criteria-xpath.js +20 -0
  284. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.js +30 -0
  285. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-scheme-name-without-openapi.js +25 -0
  286. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/respect-supported-versions.js +18 -0
  287. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-name-reference.js +35 -0
  288. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-required-values.js +60 -0
  289. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/utils.js +172 -0
  290. package/.output/server/node_modules/@redocly/openapi-core/lib/types/arazzo.js +482 -0
  291. package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi2.js +1157 -0
  292. package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi3.js +511 -0
  293. package/.output/server/node_modules/@redocly/openapi-core/lib/types/entity.js +32 -0
  294. package/.output/server/node_modules/@redocly/openapi-core/lib/types/index.js +90 -0
  295. package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-adapter.js +181 -0
  296. package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-draft7.shared.js +101 -0
  297. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas2.js +454 -0
  298. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3.js +828 -0
  299. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_1.js +292 -0
  300. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_2.js +306 -0
  301. package/.output/server/node_modules/@redocly/openapi-core/lib/types/openrpc.js +360 -0
  302. package/.output/server/node_modules/@redocly/openapi-core/lib/types/overlay.js +61 -0
  303. package/.output/server/node_modules/@redocly/openapi-core/lib/types/redocly-yaml.js +573 -0
  304. package/.output/server/node_modules/@redocly/openapi-core/lib/typings/arazzo.js +3 -0
  305. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/assign-config.js +28 -0
  306. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/dequal.js +36 -0
  307. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/does-yaml-file-exist.js +7 -0
  308. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/error.js +3 -0
  309. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-intersection-length.js +11 -0
  310. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-matching-status-code-range.js +4 -0
  311. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-own.js +4 -0
  312. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/identity.js +4 -0
  313. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-custom-rule-id.js +4 -0
  314. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-defined.js +4 -0
  315. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-array.js +4 -0
  316. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-object.js +5 -0
  317. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-array.js +4 -0
  318. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-object.js +6 -0
  319. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-string.js +5 -0
  320. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-ordered.js +27 -0
  321. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-path-parameter.js +4 -0
  322. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-plain-object.js +4 -0
  323. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-string.js +4 -0
  324. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-truthy.js +4 -0
  325. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/keys-of.js +6 -0
  326. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/make-ref-id.js +4 -0
  327. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/next-tick.js +6 -0
  328. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/oas-has-component.js +4 -0
  329. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/omit.js +8 -0
  330. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pause.js +4 -0
  331. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pluralize.js +8 -0
  332. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/read-file-from-url.js +26 -0
  333. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/regex-from-string.js +5 -0
  334. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/scorecards.js +99 -0
  335. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/slash.js +11 -0
  336. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/split-camel-case-into-words.js +13 -0
  337. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/stack.js +7 -0
  338. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/validate-mime-type.js +31 -0
  339. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/yaml-fs-helper.js +23 -0
  340. package/.output/server/node_modules/@redocly/openapi-core/lib/visitors.js +177 -0
  341. package/.output/server/node_modules/@redocly/openapi-core/lib/walk.js +303 -0
  342. package/.output/server/node_modules/@redocly/openapi-core/package.json +74 -0
  343. package/.output/server/node_modules/ajv-formats/dist/formats.js +208 -0
  344. package/.output/server/node_modules/ajv-formats/dist/index.js +37 -0
  345. package/.output/server/node_modules/ajv-formats/dist/limit.js +69 -0
  346. package/.output/server/node_modules/ajv-formats/package.json +74 -0
  347. package/.output/server/node_modules/colorette/index.js +82 -0
  348. package/.output/server/node_modules/colorette/package.json +39 -0
  349. package/.output/server/node_modules/js-levenshtein/index.js +105 -0
  350. package/.output/server/node_modules/js-levenshtein/package.json +49 -0
  351. package/.output/server/node_modules/pluralize/package.json +40 -0
  352. package/.output/server/node_modules/pluralize/pluralize.js +503 -0
  353. package/.output/server/node_modules/yaml-ast-parser/dist/src/common.js +45 -0
  354. package/.output/server/node_modules/yaml-ast-parser/dist/src/dumper.js +644 -0
  355. package/.output/server/node_modules/yaml-ast-parser/dist/src/exception.js +40 -0
  356. package/.output/server/node_modules/yaml-ast-parser/dist/src/index.js +22 -0
  357. package/.output/server/node_modules/yaml-ast-parser/dist/src/loader.js +1416 -0
  358. package/.output/server/node_modules/yaml-ast-parser/dist/src/mark.js +62 -0
  359. package/.output/server/node_modules/yaml-ast-parser/dist/src/scalarInference.js +82 -0
  360. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/core.js +8 -0
  361. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_full.js +14 -0
  362. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_safe.js +19 -0
  363. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/failsafe.js +10 -0
  364. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/json.js +14 -0
  365. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema.js +78 -0
  366. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/binary.js +92 -0
  367. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/bool.js +32 -0
  368. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/float.js +95 -0
  369. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/int.js +155 -0
  370. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/regexp.js +64 -0
  371. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/undefined.js +22 -0
  372. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/map.js +7 -0
  373. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/merge.js +10 -0
  374. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/null.js +30 -0
  375. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/omap.js +46 -0
  376. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/pairs.js +55 -0
  377. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/seq.js +7 -0
  378. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/set.js +22 -0
  379. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/str.js +7 -0
  380. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/timestamp.js +70 -0
  381. package/.output/server/node_modules/yaml-ast-parser/dist/src/type.js +54 -0
  382. package/.output/server/node_modules/yaml-ast-parser/dist/src/yamlAST.js +82 -0
  383. package/.output/server/node_modules/yaml-ast-parser/package.json +39 -0
  384. package/.output/server/package.json +9 -1
  385. package/package.json +18 -17
  386. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/index.js +0 -0
  387. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/constants.js +0 -0
  388. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/parse.js +0 -0
  389. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/picomatch.js +0 -0
  390. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/scan.js +0 -0
  391. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/utils.js +0 -0
  392. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/package.json +0 -0
@@ -0,0 +1,62 @@
1
+ 'use strict';
2
+ var common = require("./common");
3
+ var Mark = (function () {
4
+ function Mark(name, buffer, position, line, column) {
5
+ this.name = name;
6
+ this.buffer = buffer;
7
+ this.position = position;
8
+ this.line = line;
9
+ this.column = column;
10
+ }
11
+ Mark.prototype.getSnippet = function (indent, maxLength) {
12
+ if (indent === void 0) { indent = 0; }
13
+ if (maxLength === void 0) { maxLength = 75; }
14
+ var head, start, tail, end, snippet;
15
+ if (!this.buffer) {
16
+ return null;
17
+ }
18
+ indent = indent || 4;
19
+ maxLength = maxLength || 75;
20
+ head = '';
21
+ start = this.position;
22
+ while (start > 0 && -1 === '\x00\r\n\x85\u2028\u2029'.indexOf(this.buffer.charAt(start - 1))) {
23
+ start -= 1;
24
+ if (this.position - start > (maxLength / 2 - 1)) {
25
+ head = ' ... ';
26
+ start += 5;
27
+ break;
28
+ }
29
+ }
30
+ tail = '';
31
+ end = this.position;
32
+ while (end < this.buffer.length && -1 === '\x00\r\n\x85\u2028\u2029'.indexOf(this.buffer.charAt(end))) {
33
+ end += 1;
34
+ if (end - this.position > (maxLength / 2 - 1)) {
35
+ tail = ' ... ';
36
+ end -= 5;
37
+ break;
38
+ }
39
+ }
40
+ snippet = this.buffer.slice(start, end);
41
+ return common.repeat(' ', indent) + head + snippet + tail + '\n' +
42
+ common.repeat(' ', indent + this.position - start + head.length) + '^';
43
+ };
44
+ Mark.prototype.toString = function (compact) {
45
+ if (compact === void 0) { compact = true; }
46
+ var snippet, where = '';
47
+ if (this.name) {
48
+ where += 'in "' + this.name + '" ';
49
+ }
50
+ where += 'at line ' + (this.line + 1) + ', column ' + (this.column + 1);
51
+ if (!compact) {
52
+ snippet = this.getSnippet();
53
+ if (snippet) {
54
+ where += ':\n' + snippet;
55
+ }
56
+ }
57
+ return where;
58
+ };
59
+ return Mark;
60
+ }());
61
+ module.exports = Mark;
62
+ //# sourceMappingURL=mark.js.map
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ function parseYamlBoolean(input) {
4
+ if (["true", "True", "TRUE"].lastIndexOf(input) >= 0) {
5
+ return true;
6
+ }
7
+ else if (["false", "False", "FALSE"].lastIndexOf(input) >= 0) {
8
+ return false;
9
+ }
10
+ throw "Invalid boolean \"" + input + "\"";
11
+ }
12
+ exports.parseYamlBoolean = parseYamlBoolean;
13
+ function safeParseYamlInteger(input) {
14
+ if (input.lastIndexOf('0o', 0) === 0) {
15
+ return parseInt(input.substring(2), 8);
16
+ }
17
+ return parseInt(input);
18
+ }
19
+ function parseYamlInteger(input) {
20
+ var result = safeParseYamlInteger(input);
21
+ if (isNaN(result)) {
22
+ throw "Invalid integer \"" + input + "\"";
23
+ }
24
+ return result;
25
+ }
26
+ exports.parseYamlInteger = parseYamlInteger;
27
+ function parseYamlFloat(input) {
28
+ if ([".nan", ".NaN", ".NAN"].lastIndexOf(input) >= 0) {
29
+ return NaN;
30
+ }
31
+ var infinity = /^([-+])?(?:\.inf|\.Inf|\.INF)$/;
32
+ var match = infinity.exec(input);
33
+ if (match) {
34
+ return (match[1] === '-') ? -Infinity : Infinity;
35
+ }
36
+ var result = parseFloat(input);
37
+ if (!isNaN(result)) {
38
+ return result;
39
+ }
40
+ throw "Invalid float \"" + input + "\"";
41
+ }
42
+ exports.parseYamlFloat = parseYamlFloat;
43
+ var ScalarType;
44
+ (function (ScalarType) {
45
+ ScalarType[ScalarType["null"] = 0] = "null";
46
+ ScalarType[ScalarType["bool"] = 1] = "bool";
47
+ ScalarType[ScalarType["int"] = 2] = "int";
48
+ ScalarType[ScalarType["float"] = 3] = "float";
49
+ ScalarType[ScalarType["string"] = 4] = "string";
50
+ })(ScalarType = exports.ScalarType || (exports.ScalarType = {}));
51
+ function determineScalarType(node) {
52
+ if (node === undefined) {
53
+ return ScalarType.null;
54
+ }
55
+ if (node.doubleQuoted || !node.plainScalar || node['singleQuoted']) {
56
+ return ScalarType.string;
57
+ }
58
+ var value = node.value;
59
+ if (["null", "Null", "NULL", "~", ''].indexOf(value) >= 0) {
60
+ return ScalarType.null;
61
+ }
62
+ if (value === null || value === undefined) {
63
+ return ScalarType.null;
64
+ }
65
+ if (["true", "True", "TRUE", "false", "False", "FALSE"].indexOf(value) >= 0) {
66
+ return ScalarType.bool;
67
+ }
68
+ var base10 = /^[-+]?[0-9]+$/;
69
+ var base8 = /^0o[0-7]+$/;
70
+ var base16 = /^0x[0-9a-fA-F]+$/;
71
+ if (base10.test(value) || base8.test(value) || base16.test(value)) {
72
+ return ScalarType.int;
73
+ }
74
+ var float = /^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/;
75
+ var infinity = /^[-+]?(\.inf|\.Inf|\.INF)$/;
76
+ if (float.test(value) || infinity.test(value) || [".nan", ".NaN", ".NAN"].indexOf(value) >= 0) {
77
+ return ScalarType.float;
78
+ }
79
+ return ScalarType.string;
80
+ }
81
+ exports.determineScalarType = determineScalarType;
82
+ //# sourceMappingURL=scalarInference.js.map
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+ var schema_1 = require("../schema");
3
+ module.exports = new schema_1.Schema({
4
+ include: [
5
+ require('./json')
6
+ ]
7
+ });
8
+ //# sourceMappingURL=core.js.map
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+ var schema_1 = require("../schema");
3
+ var schema = new schema_1.Schema({
4
+ include: [
5
+ require('./default_safe')
6
+ ],
7
+ explicit: [
8
+ require('../type/js/undefined'),
9
+ require('../type/js/regexp')
10
+ ]
11
+ });
12
+ schema_1.Schema.DEFAULT = schema;
13
+ module.exports = schema;
14
+ //# sourceMappingURL=default_full.js.map
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+ var schema_1 = require("../schema");
3
+ var schema = new schema_1.Schema({
4
+ include: [
5
+ require('./core')
6
+ ],
7
+ implicit: [
8
+ require('../type/timestamp'),
9
+ require('../type/merge')
10
+ ],
11
+ explicit: [
12
+ require('../type/binary'),
13
+ require('../type/omap'),
14
+ require('../type/pairs'),
15
+ require('../type/set')
16
+ ]
17
+ });
18
+ module.exports = schema;
19
+ //# sourceMappingURL=default_safe.js.map
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+ var schema_1 = require("../schema");
3
+ module.exports = new schema_1.Schema({
4
+ explicit: [
5
+ require('../type/str'),
6
+ require('../type/seq'),
7
+ require('../type/map')
8
+ ]
9
+ });
10
+ //# sourceMappingURL=failsafe.js.map
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+ var schema_1 = require("../schema");
3
+ module.exports = new schema_1.Schema({
4
+ include: [
5
+ require('./failsafe')
6
+ ],
7
+ implicit: [
8
+ require('../type/null'),
9
+ require('../type/bool'),
10
+ require('../type/int'),
11
+ require('../type/float')
12
+ ]
13
+ });
14
+ //# sourceMappingURL=json.js.map
@@ -0,0 +1,78 @@
1
+ 'use strict';
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var common = require("./common");
4
+ var YAMLException = require("./exception");
5
+ var type_1 = require("./type");
6
+ function compileList(schema, name, result) {
7
+ var exclude = [];
8
+ schema.include.forEach(function (includedSchema) {
9
+ result = compileList(includedSchema, name, result);
10
+ });
11
+ schema[name].forEach(function (currentType) {
12
+ result.forEach(function (previousType, previousIndex) {
13
+ if (previousType.tag === currentType.tag) {
14
+ exclude.push(previousIndex);
15
+ }
16
+ });
17
+ result.push(currentType);
18
+ });
19
+ return result.filter(function (type, index) {
20
+ return -1 === exclude.indexOf(index);
21
+ });
22
+ }
23
+ function compileMap() {
24
+ var result = {}, index, length;
25
+ function collectType(type) {
26
+ result[type.tag] = type;
27
+ }
28
+ for (index = 0, length = arguments.length; index < length; index += 1) {
29
+ arguments[index].forEach(collectType);
30
+ }
31
+ return result;
32
+ }
33
+ var Schema = (function () {
34
+ function Schema(definition) {
35
+ this.include = definition.include || [];
36
+ this.implicit = definition.implicit || [];
37
+ this.explicit = definition.explicit || [];
38
+ this.implicit.forEach(function (type) {
39
+ if (type.loadKind && 'scalar' !== type.loadKind) {
40
+ throw new YAMLException('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.');
41
+ }
42
+ });
43
+ this.compiledImplicit = compileList(this, 'implicit', []);
44
+ this.compiledExplicit = compileList(this, 'explicit', []);
45
+ this.compiledTypeMap = compileMap(this.compiledImplicit, this.compiledExplicit);
46
+ }
47
+ Schema.DEFAULT = null;
48
+ Schema.create = function createSchema() {
49
+ var schemas, types;
50
+ switch (arguments.length) {
51
+ case 1:
52
+ schemas = Schema.DEFAULT;
53
+ types = arguments[0];
54
+ break;
55
+ case 2:
56
+ schemas = arguments[0];
57
+ types = arguments[1];
58
+ break;
59
+ default:
60
+ throw new YAMLException('Wrong number of arguments for Schema.create function');
61
+ }
62
+ schemas = common.toArray(schemas);
63
+ types = common.toArray(types);
64
+ if (!schemas.every(function (schema) { return schema instanceof Schema; })) {
65
+ throw new YAMLException('Specified list of super schemas (or a single Schema object) contains a non-Schema object.');
66
+ }
67
+ if (!types.every(function (type) { return type instanceof type_1.Type; })) {
68
+ throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.');
69
+ }
70
+ return new Schema({
71
+ include: schemas,
72
+ explicit: types
73
+ });
74
+ };
75
+ return Schema;
76
+ }());
77
+ exports.Schema = Schema;
78
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1,92 @@
1
+ 'use strict';
2
+ var NodeBuffer = require('buffer').Buffer;
3
+ var type_1 = require("../type");
4
+ var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r';
5
+ function resolveYamlBinary(data) {
6
+ if (null === data) {
7
+ return false;
8
+ }
9
+ var code, idx, bitlen = 0, len = 0, max = data.length, map = BASE64_MAP;
10
+ for (idx = 0; idx < max; idx++) {
11
+ code = map.indexOf(data.charAt(idx));
12
+ if (code > 64) {
13
+ continue;
14
+ }
15
+ if (code < 0) {
16
+ return false;
17
+ }
18
+ bitlen += 6;
19
+ }
20
+ return (bitlen % 8) === 0;
21
+ }
22
+ function constructYamlBinary(data) {
23
+ var code, idx, tailbits, input = data.replace(/[\r\n=]/g, ''), max = input.length, map = BASE64_MAP, bits = 0, result = [];
24
+ for (idx = 0; idx < max; idx++) {
25
+ if ((idx % 4 === 0) && idx) {
26
+ result.push((bits >> 16) & 0xFF);
27
+ result.push((bits >> 8) & 0xFF);
28
+ result.push(bits & 0xFF);
29
+ }
30
+ bits = (bits << 6) | map.indexOf(input.charAt(idx));
31
+ }
32
+ tailbits = (max % 4) * 6;
33
+ if (tailbits === 0) {
34
+ result.push((bits >> 16) & 0xFF);
35
+ result.push((bits >> 8) & 0xFF);
36
+ result.push(bits & 0xFF);
37
+ }
38
+ else if (tailbits === 18) {
39
+ result.push((bits >> 10) & 0xFF);
40
+ result.push((bits >> 2) & 0xFF);
41
+ }
42
+ else if (tailbits === 12) {
43
+ result.push((bits >> 4) & 0xFF);
44
+ }
45
+ if (NodeBuffer) {
46
+ return new NodeBuffer(result);
47
+ }
48
+ return result;
49
+ }
50
+ function representYamlBinary(object) {
51
+ var result = '', bits = 0, idx, tail, max = object.length, map = BASE64_MAP;
52
+ for (idx = 0; idx < max; idx++) {
53
+ if ((idx % 3 === 0) && idx) {
54
+ result += map[(bits >> 18) & 0x3F];
55
+ result += map[(bits >> 12) & 0x3F];
56
+ result += map[(bits >> 6) & 0x3F];
57
+ result += map[bits & 0x3F];
58
+ }
59
+ bits = (bits << 8) + object[idx];
60
+ }
61
+ tail = max % 3;
62
+ if (tail === 0) {
63
+ result += map[(bits >> 18) & 0x3F];
64
+ result += map[(bits >> 12) & 0x3F];
65
+ result += map[(bits >> 6) & 0x3F];
66
+ result += map[bits & 0x3F];
67
+ }
68
+ else if (tail === 2) {
69
+ result += map[(bits >> 10) & 0x3F];
70
+ result += map[(bits >> 4) & 0x3F];
71
+ result += map[(bits << 2) & 0x3F];
72
+ result += map[64];
73
+ }
74
+ else if (tail === 1) {
75
+ result += map[(bits >> 2) & 0x3F];
76
+ result += map[(bits << 4) & 0x3F];
77
+ result += map[64];
78
+ result += map[64];
79
+ }
80
+ return result;
81
+ }
82
+ function isBinary(object) {
83
+ return NodeBuffer && NodeBuffer.isBuffer(object);
84
+ }
85
+ module.exports = new type_1.Type('tag:yaml.org,2002:binary', {
86
+ kind: 'scalar',
87
+ resolve: resolveYamlBinary,
88
+ construct: constructYamlBinary,
89
+ predicate: isBinary,
90
+ represent: representYamlBinary
91
+ });
92
+ //# sourceMappingURL=binary.js.map
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ 'use strict';
3
+ var type_1 = require("../type");
4
+ function resolveYamlBoolean(data) {
5
+ if (null === data) {
6
+ return false;
7
+ }
8
+ var max = data.length;
9
+ return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) ||
10
+ (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE'));
11
+ }
12
+ function constructYamlBoolean(data) {
13
+ return data === 'true' ||
14
+ data === 'True' ||
15
+ data === 'TRUE';
16
+ }
17
+ function isBoolean(object) {
18
+ return '[object Boolean]' === Object.prototype.toString.call(object);
19
+ }
20
+ module.exports = new type_1.Type('tag:yaml.org,2002:bool', {
21
+ kind: 'scalar',
22
+ resolve: resolveYamlBoolean,
23
+ construct: constructYamlBoolean,
24
+ predicate: isBoolean,
25
+ represent: {
26
+ lowercase: function (object) { return object ? 'true' : 'false'; },
27
+ uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; },
28
+ camelcase: function (object) { return object ? 'True' : 'False'; }
29
+ },
30
+ defaultStyle: 'lowercase'
31
+ });
32
+ //# sourceMappingURL=bool.js.map
@@ -0,0 +1,95 @@
1
+ 'use strict';
2
+ var common = require("../common");
3
+ var type_1 = require("../type");
4
+ var YAML_FLOAT_PATTERN = new RegExp('^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?' +
5
+ '|\\.[0-9_]+(?:[eE][-+][0-9]+)?' +
6
+ '|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*' +
7
+ '|[-+]?\\.(?:inf|Inf|INF)' +
8
+ '|\\.(?:nan|NaN|NAN))$');
9
+ function resolveYamlFloat(data) {
10
+ if (null === data) {
11
+ return false;
12
+ }
13
+ var value, sign, base, digits;
14
+ if (!YAML_FLOAT_PATTERN.test(data)) {
15
+ return false;
16
+ }
17
+ return true;
18
+ }
19
+ function constructYamlFloat(data) {
20
+ var value, sign, base, digits;
21
+ value = data.replace(/_/g, '').toLowerCase();
22
+ sign = '-' === value[0] ? -1 : 1;
23
+ digits = [];
24
+ if (0 <= '+-'.indexOf(value[0])) {
25
+ value = value.slice(1);
26
+ }
27
+ if ('.inf' === value) {
28
+ return (1 === sign) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
29
+ }
30
+ else if ('.nan' === value) {
31
+ return NaN;
32
+ }
33
+ else if (0 <= value.indexOf(':')) {
34
+ value.split(':').forEach(function (v) {
35
+ digits.unshift(parseFloat(v, 10));
36
+ });
37
+ value = 0.0;
38
+ base = 1;
39
+ digits.forEach(function (d) {
40
+ value += d * base;
41
+ base *= 60;
42
+ });
43
+ return sign * value;
44
+ }
45
+ return sign * parseFloat(value, 10);
46
+ }
47
+ function representYamlFloat(object, style) {
48
+ if (isNaN(object)) {
49
+ switch (style) {
50
+ case 'lowercase':
51
+ return '.nan';
52
+ case 'uppercase':
53
+ return '.NAN';
54
+ case 'camelcase':
55
+ return '.NaN';
56
+ }
57
+ }
58
+ else if (Number.POSITIVE_INFINITY === object) {
59
+ switch (style) {
60
+ case 'lowercase':
61
+ return '.inf';
62
+ case 'uppercase':
63
+ return '.INF';
64
+ case 'camelcase':
65
+ return '.Inf';
66
+ }
67
+ }
68
+ else if (Number.NEGATIVE_INFINITY === object) {
69
+ switch (style) {
70
+ case 'lowercase':
71
+ return '-.inf';
72
+ case 'uppercase':
73
+ return '-.INF';
74
+ case 'camelcase':
75
+ return '-.Inf';
76
+ }
77
+ }
78
+ else if (common.isNegativeZero(object)) {
79
+ return '-0.0';
80
+ }
81
+ return object.toString(10);
82
+ }
83
+ function isFloat(object) {
84
+ return ('[object Number]' === Object.prototype.toString.call(object)) &&
85
+ (0 !== object % 1 || common.isNegativeZero(object));
86
+ }
87
+ module.exports = new type_1.Type('tag:yaml.org,2002:float', {
88
+ kind: 'scalar',
89
+ resolve: resolveYamlFloat,
90
+ construct: constructYamlFloat,
91
+ predicate: isFloat,
92
+ represent: representYamlFloat,
93
+ defaultStyle: 'lowercase'
94
+ });
95
+ //# sourceMappingURL=float.js.map
@@ -0,0 +1,155 @@
1
+ 'use strict';
2
+ var common = require("../common");
3
+ var type_1 = require("../type");
4
+ function isHexCode(c) {
5
+ return ((0x30 <= c) && (c <= 0x39)) ||
6
+ ((0x41 <= c) && (c <= 0x46)) ||
7
+ ((0x61 <= c) && (c <= 0x66));
8
+ }
9
+ function isOctCode(c) {
10
+ return ((0x30 <= c) && (c <= 0x37));
11
+ }
12
+ function isDecCode(c) {
13
+ return ((0x30 <= c) && (c <= 0x39));
14
+ }
15
+ function resolveYamlInteger(data) {
16
+ if (null === data) {
17
+ return false;
18
+ }
19
+ var max = data.length, index = 0, hasDigits = false, ch;
20
+ if (!max) {
21
+ return false;
22
+ }
23
+ ch = data[index];
24
+ if (ch === '-' || ch === '+') {
25
+ ch = data[++index];
26
+ }
27
+ if (ch === '0') {
28
+ if (index + 1 === max) {
29
+ return true;
30
+ }
31
+ ch = data[++index];
32
+ if (ch === 'b') {
33
+ index++;
34
+ for (; index < max; index++) {
35
+ ch = data[index];
36
+ if (ch === '_') {
37
+ continue;
38
+ }
39
+ if (ch !== '0' && ch !== '1') {
40
+ return false;
41
+ }
42
+ hasDigits = true;
43
+ }
44
+ return hasDigits;
45
+ }
46
+ if (ch === 'x') {
47
+ index++;
48
+ for (; index < max; index++) {
49
+ ch = data[index];
50
+ if (ch === '_') {
51
+ continue;
52
+ }
53
+ if (!isHexCode(data.charCodeAt(index))) {
54
+ return false;
55
+ }
56
+ hasDigits = true;
57
+ }
58
+ return hasDigits;
59
+ }
60
+ for (; index < max; index++) {
61
+ ch = data[index];
62
+ if (ch === '_') {
63
+ continue;
64
+ }
65
+ if (!isOctCode(data.charCodeAt(index))) {
66
+ return false;
67
+ }
68
+ hasDigits = true;
69
+ }
70
+ return hasDigits;
71
+ }
72
+ for (; index < max; index++) {
73
+ ch = data[index];
74
+ if (ch === '_') {
75
+ continue;
76
+ }
77
+ if (ch === ':') {
78
+ break;
79
+ }
80
+ if (!isDecCode(data.charCodeAt(index))) {
81
+ return false;
82
+ }
83
+ hasDigits = true;
84
+ }
85
+ if (!hasDigits) {
86
+ return false;
87
+ }
88
+ if (ch !== ':') {
89
+ return true;
90
+ }
91
+ return /^(:[0-5]?[0-9])+$/.test(data.slice(index));
92
+ }
93
+ function constructYamlInteger(data) {
94
+ var value = data, sign = 1, ch, base, digits = [];
95
+ if (value.indexOf('_') !== -1) {
96
+ value = value.replace(/_/g, '');
97
+ }
98
+ ch = value[0];
99
+ if (ch === '-' || ch === '+') {
100
+ if (ch === '-') {
101
+ sign = -1;
102
+ }
103
+ value = value.slice(1);
104
+ ch = value[0];
105
+ }
106
+ if ('0' === value) {
107
+ return 0;
108
+ }
109
+ if (ch === '0') {
110
+ if (value[1] === 'b') {
111
+ return sign * parseInt(value.slice(2), 2);
112
+ }
113
+ if (value[1] === 'x') {
114
+ return sign * parseInt(value, 16);
115
+ }
116
+ return sign * parseInt(value, 8);
117
+ }
118
+ if (value.indexOf(':') !== -1) {
119
+ value.split(':').forEach(function (v) {
120
+ digits.unshift(parseInt(v, 10));
121
+ });
122
+ value = 0;
123
+ base = 1;
124
+ digits.forEach(function (d) {
125
+ value += (d * base);
126
+ base *= 60;
127
+ });
128
+ return sign * value;
129
+ }
130
+ return sign * parseInt(value, 10);
131
+ }
132
+ function isInteger(object) {
133
+ return ('[object Number]' === Object.prototype.toString.call(object)) &&
134
+ (0 === object % 1 && !common.isNegativeZero(object));
135
+ }
136
+ module.exports = new type_1.Type('tag:yaml.org,2002:int', {
137
+ kind: 'scalar',
138
+ resolve: resolveYamlInteger,
139
+ construct: constructYamlInteger,
140
+ predicate: isInteger,
141
+ represent: {
142
+ binary: function (object) { return '0b' + object.toString(2); },
143
+ octal: function (object) { return '0' + object.toString(8); },
144
+ decimal: function (object) { return object.toString(10); },
145
+ hexadecimal: function (object) { return '0x' + object.toString(16).toUpperCase(); }
146
+ },
147
+ defaultStyle: 'decimal',
148
+ styleAliases: {
149
+ binary: [2, 'bin'],
150
+ octal: [8, 'oct'],
151
+ decimal: [10, 'dec'],
152
+ hexadecimal: [16, 'hex']
153
+ }
154
+ });
155
+ //# sourceMappingURL=int.js.map