fumadocs-openapi 10.8.3 → 10.8.4

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 (81) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +20 -1
  2. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.12/node_modules/@scalar/json-magic/dist/bundle/plugins/parse-yaml/index.js +1 -1
  3. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.12/node_modules/@scalar/json-magic/dist/helpers/normalize.js +2 -2
  4. package/dist/node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/array-helper.js +11 -0
  5. package/dist/node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/js2xml.js +256 -0
  6. package/dist/node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/options-helper.js +31 -0
  7. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/compose-collection.js +1 -1
  8. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/compose-doc.js +1 -1
  9. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/compose-node.js +1 -1
  10. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/compose-scalar.js +1 -1
  11. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/composer.js +3 -3
  12. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-block-map.js +1 -1
  13. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +1 -1
  14. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +1 -1
  15. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-end.js +1 -1
  16. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +1 -1
  17. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +1 -1
  18. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-props.js +1 -1
  19. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/util-contains-newline.js +1 -1
  20. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +1 -1
  21. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +1 -1
  22. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/util-map-includes.js +1 -1
  23. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/doc/Document.js +1 -1
  24. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/doc/anchors.js +1 -1
  25. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/doc/applyReviver.js +1 -1
  26. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/doc/createNode.js +1 -1
  27. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/doc/directives.js +1 -1
  28. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/errors.js +1 -1
  29. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/log.js +1 -1
  30. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/Alias.js +1 -1
  31. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/Collection.js +1 -1
  32. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/Node.js +1 -1
  33. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/Pair.js +1 -1
  34. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/Scalar.js +1 -1
  35. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/YAMLMap.js +1 -1
  36. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +1 -1
  37. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +1 -1
  38. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/identity.js +1 -1
  39. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/toJS.js +1 -1
  40. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/cst-visit.js +1 -1
  41. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/lexer.js +27 -15
  42. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/line-counter.js +1 -1
  43. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/parser.js +9 -5
  44. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/public-api.js +1 -1
  45. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/Schema.js +1 -1
  46. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/common/map.js +1 -1
  47. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/common/null.js +1 -1
  48. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/common/seq.js +1 -1
  49. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/common/string.js +1 -1
  50. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/core/bool.js +1 -1
  51. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/core/float.js +1 -1
  52. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/core/int.js +1 -1
  53. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/core/schema.js +1 -1
  54. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/json/schema.js +1 -1
  55. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/tags.js +1 -1
  56. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +1 -1
  57. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +1 -1
  58. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +1 -1
  59. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +1 -1
  60. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +1 -1
  61. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +1 -1
  62. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +1 -1
  63. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +1 -1
  64. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +1 -1
  65. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +1 -1
  66. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +1 -1
  67. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringify.js +1 -1
  68. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +1 -1
  69. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyComment.js +1 -1
  70. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +1 -1
  71. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +1 -1
  72. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyPair.js +1 -1
  73. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyString.js +1 -1
  74. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/visit.js +1 -1
  75. package/dist/requests/media/adapter.js +4 -2
  76. package/dist/requests/string-utils.js +4 -2
  77. package/package.json +7 -6
  78. /package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/index.js +0 -0
  79. /package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/cst-scalar.js +0 -0
  80. /package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/cst.js +0 -0
  81. /package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/index.js +0 -0
@@ -4,7 +4,7 @@ import { Collection } from "./Collection.js";
4
4
  import { addPairToJSMap } from "./addPairToJSMap.js";
5
5
  import { Pair, createPair } from "./Pair.js";
6
6
  import { stringifyCollection } from "../stringify/stringifyCollection.js";
7
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/nodes/YAMLMap.js
7
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/YAMLMap.js
8
8
  function findPair(items, key) {
9
9
  const k = isScalar(key) ? key.value : key;
10
10
  for (const it of items) if (isPair(it)) {
@@ -4,7 +4,7 @@ import { isScalarValue } from "./Scalar.js";
4
4
  import { createNode } from "../doc/createNode.js";
5
5
  import { Collection } from "./Collection.js";
6
6
  import { stringifyCollection } from "../stringify/stringifyCollection.js";
7
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/nodes/YAMLSeq.js
7
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/YAMLSeq.js
8
8
  var YAMLSeq = class extends Collection {
9
9
  static get tagName() {
10
10
  return "tag:yaml.org,2002:seq";
@@ -3,7 +3,7 @@ import { toJS } from "./toJS.js";
3
3
  import { createStringifyContext } from "../stringify/stringify.js";
4
4
  import { warn } from "../log.js";
5
5
  import { addMergeToJSMap, isMergeKey } from "../schema/yaml-1.1/merge.js";
6
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js
6
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js
7
7
  function addPairToJSMap(ctx, map, { key, value }) {
8
8
  if (isNode(key) && key.addToJSMap) key.addToJSMap(ctx, map, value);
9
9
  else if (isMergeKey(ctx, key)) addMergeToJSMap(ctx, map, value);
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/nodes/identity.js
1
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/identity.js
2
2
  const ALIAS = Symbol.for("yaml.alias");
3
3
  const DOC = Symbol.for("yaml.document");
4
4
  const MAP = Symbol.for("yaml.map");
@@ -1,5 +1,5 @@
1
1
  import { hasAnchor } from "./identity.js";
2
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/nodes/toJS.js
2
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/toJS.js
3
3
  /**
4
4
  * Recursively convert any node or its contents to native JavaScript
5
5
  *
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/parse/cst-visit.js
1
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst-visit.js
2
2
  const BREAK = Symbol("break visit");
3
3
  const SKIP = Symbol("skip children");
4
4
  const REMOVE = Symbol("remove item");
@@ -1,5 +1,5 @@
1
1
  import "./cst.js";
2
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/parse/lexer.js
2
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/lexer.js
3
3
  function isEmpty(ch) {
4
4
  switch (ch) {
5
5
  case void 0:
@@ -211,7 +211,7 @@ var Lexer = class {
211
211
  const n = (yield* this.pushCount(1)) + (yield* this.pushSpaces(true));
212
212
  this.indentNext = this.indentValue + 1;
213
213
  this.indentValue += n;
214
- return yield* this.parseBlockStart();
214
+ return "block-start";
215
215
  }
216
216
  return "doc";
217
217
  }
@@ -455,22 +455,34 @@ var Lexer = class {
455
455
  return 0;
456
456
  }
457
457
  *pushIndicators() {
458
- switch (this.charAt(0)) {
459
- case "!": return (yield* this.pushTag()) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
460
- case "&": return (yield* this.pushUntil(isNotAnchorChar)) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
461
- case "-":
462
- case "?":
463
- case ":": {
464
- const inFlow = this.flowLevel > 0;
465
- const ch1 = this.charAt(1);
466
- if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
467
- if (!inFlow) this.indentNext = this.indentValue + 1;
468
- else if (this.flowKey) this.flowKey = false;
469
- return (yield* this.pushCount(1)) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
458
+ let n = 0;
459
+ loop: while (true) {
460
+ switch (this.charAt(0)) {
461
+ case "!":
462
+ n += yield* this.pushTag();
463
+ n += yield* this.pushSpaces(true);
464
+ continue loop;
465
+ case "&":
466
+ n += yield* this.pushUntil(isNotAnchorChar);
467
+ n += yield* this.pushSpaces(true);
468
+ continue loop;
469
+ case "-":
470
+ case "?":
471
+ case ":": {
472
+ const inFlow = this.flowLevel > 0;
473
+ const ch1 = this.charAt(1);
474
+ if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
475
+ if (!inFlow) this.indentNext = this.indentValue + 1;
476
+ else if (this.flowKey) this.flowKey = false;
477
+ n += yield* this.pushCount(1);
478
+ n += yield* this.pushSpaces(true);
479
+ continue loop;
480
+ }
470
481
  }
471
482
  }
483
+ break loop;
472
484
  }
473
- return 0;
485
+ return n;
474
486
  }
475
487
  *pushTag() {
476
488
  if (this.charAt(1) === "<") {
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/parse/line-counter.js
1
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/line-counter.js
2
2
  /**
3
3
  * Tracks newlines during parsing in order to provide an efficient API for
4
4
  * determining the one-indexed `{ line, col }` position for any offset
@@ -1,6 +1,6 @@
1
1
  import { tokenType } from "./cst.js";
2
2
  import { Lexer } from "./lexer.js";
3
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/parse/parser.js
3
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/parser.js
4
4
  function includesToken(list, type) {
5
5
  for (let i = 0; i < list.length; ++i) if (list[i].type === type) return true;
6
6
  return false;
@@ -50,14 +50,18 @@ function getFirstKeyStartProps(prev) {
50
50
  while (prev[++i]?.type === "space");
51
51
  return prev.splice(i, prev.length);
52
52
  }
53
+ function arrayPushArray(target, source) {
54
+ if (source.length < 1e5) Array.prototype.push.apply(target, source);
55
+ else for (let i = 0; i < source.length; ++i) target.push(source[i]);
56
+ }
53
57
  function fixFlowSeqItems(fc) {
54
58
  if (fc.start.type === "flow-seq-start") {
55
59
  for (const it of fc.items) if (it.sep && !it.value && !includesToken(it.start, "explicit-key-ind") && !includesToken(it.sep, "map-value-ind")) {
56
60
  if (it.key) it.value = it.key;
57
61
  delete it.key;
58
- if (isFlowToken(it.value)) if (it.value.end) Array.prototype.push.apply(it.value.end, it.sep);
62
+ if (isFlowToken(it.value)) if (it.value.end) arrayPushArray(it.value.end, it.sep);
59
63
  else it.value.end = it.sep;
60
- else Array.prototype.push.apply(it.start, it.sep);
64
+ else arrayPushArray(it.start, it.sep);
61
65
  delete it.sep;
62
66
  }
63
67
  }
@@ -428,7 +432,7 @@ var Parser = class {
428
432
  if (this.atIndentedComment(it.start, map.indent)) {
429
433
  const end = map.items[map.items.length - 2]?.value?.end;
430
434
  if (Array.isArray(end)) {
431
- Array.prototype.push.apply(end, it.start);
435
+ arrayPushArray(end, it.start);
432
436
  end.push(this.sourceToken);
433
437
  map.items.pop();
434
438
  return;
@@ -626,7 +630,7 @@ var Parser = class {
626
630
  if (this.atIndentedComment(it.start, seq.indent)) {
627
631
  const end = seq.items[seq.items.length - 2]?.value?.end;
628
632
  if (Array.isArray(end)) {
629
- Array.prototype.push.apply(end, it.start);
633
+ arrayPushArray(end, it.start);
630
634
  end.push(this.sourceToken);
631
635
  seq.items.pop();
632
636
  return;
@@ -4,7 +4,7 @@ import { YAMLParseError, prettifyError } from "./errors.js";
4
4
  import { Composer } from "./compose/composer.js";
5
5
  import { LineCounter } from "./parse/line-counter.js";
6
6
  import { Parser } from "./parse/parser.js";
7
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/public-api.js
7
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/public-api.js
8
8
  function parseOptions(options) {
9
9
  const prettyErrors = options.prettyErrors !== false;
10
10
  return {
@@ -3,7 +3,7 @@ import { map } from "./common/map.js";
3
3
  import { seq } from "./common/seq.js";
4
4
  import { string } from "./common/string.js";
5
5
  import { coreKnownTags, getTags } from "./tags.js";
6
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/schema/Schema.js
6
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/Schema.js
7
7
  const sortMapEntriesByKey = (a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0;
8
8
  var Schema = class Schema {
9
9
  constructor({ compat, customTags, merge, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
@@ -1,6 +1,6 @@
1
1
  import { isMap } from "../../nodes/identity.js";
2
2
  import { YAMLMap } from "../../nodes/YAMLMap.js";
3
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/schema/common/map.js
3
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/map.js
4
4
  const map = {
5
5
  collection: "map",
6
6
  default: true,
@@ -1,5 +1,5 @@
1
1
  import { Scalar } from "../../nodes/Scalar.js";
2
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/schema/common/null.js
2
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/null.js
3
3
  const nullTag = {
4
4
  identify: (value) => value == null,
5
5
  createNode: () => new Scalar(null),
@@ -1,6 +1,6 @@
1
1
  import { isSeq } from "../../nodes/identity.js";
2
2
  import { YAMLSeq } from "../../nodes/YAMLSeq.js";
3
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/schema/common/seq.js
3
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/seq.js
4
4
  const seq = {
5
5
  collection: "seq",
6
6
  default: true,
@@ -1,5 +1,5 @@
1
1
  import { stringifyString } from "../../stringify/stringifyString.js";
2
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/schema/common/string.js
2
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/string.js
3
3
  const string = {
4
4
  identify: (value) => typeof value === "string",
5
5
  default: true,
@@ -1,5 +1,5 @@
1
1
  import { Scalar } from "../../nodes/Scalar.js";
2
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/schema/core/bool.js
2
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/bool.js
3
3
  const boolTag = {
4
4
  identify: (value) => typeof value === "boolean",
5
5
  default: true,
@@ -1,6 +1,6 @@
1
1
  import { Scalar } from "../../nodes/Scalar.js";
2
2
  import { stringifyNumber } from "../../stringify/stringifyNumber.js";
3
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/schema/core/float.js
3
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/float.js
4
4
  const floatNaN = {
5
5
  identify: (value) => typeof value === "number",
6
6
  default: true,
@@ -1,5 +1,5 @@
1
1
  import { stringifyNumber } from "../../stringify/stringifyNumber.js";
2
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/schema/core/int.js
2
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/int.js
3
3
  const intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
4
4
  const intResolve = (str, offset, radix, { intAsBigInt }) => intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix);
5
5
  function intStringify(node, radix, prefix) {
@@ -5,7 +5,7 @@ import { nullTag } from "../common/null.js";
5
5
  import { boolTag } from "./bool.js";
6
6
  import { float, floatExp, floatNaN } from "./float.js";
7
7
  import { int, intHex, intOct } from "./int.js";
8
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/schema/core/schema.js
8
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/schema.js
9
9
  const schema = [
10
10
  map,
11
11
  seq,
@@ -1,7 +1,7 @@
1
1
  import { Scalar } from "../../nodes/Scalar.js";
2
2
  import { map } from "../common/map.js";
3
3
  import { seq } from "../common/seq.js";
4
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/schema/json/schema.js
4
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/json/schema.js
5
5
  function intIdentify(value) {
6
6
  return typeof value === "bigint" || Number.isInteger(value);
7
7
  }
@@ -14,7 +14,7 @@ import { omap } from "./yaml-1.1/omap.js";
14
14
  import { set } from "./yaml-1.1/set.js";
15
15
  import { floatTime, intTime, timestamp } from "./yaml-1.1/timestamp.js";
16
16
  import { schema as schema$2 } from "./yaml-1.1/schema.js";
17
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/schema/tags.js
17
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/tags.js
18
18
  const schemas = new Map([
19
19
  ["core", schema],
20
20
  ["failsafe", [
@@ -1,6 +1,6 @@
1
1
  import { Scalar } from "../../nodes/Scalar.js";
2
2
  import { stringifyString } from "../../stringify/stringifyString.js";
3
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js
3
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js
4
4
  const binary = {
5
5
  identify: (value) => value instanceof Uint8Array,
6
6
  default: false,
@@ -1,5 +1,5 @@
1
1
  import { Scalar } from "../../nodes/Scalar.js";
2
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js
2
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js
3
3
  function boolStringify({ value, source }, ctx) {
4
4
  if (source && (value ? trueTag : falseTag).test.test(source)) return source;
5
5
  return value ? ctx.options.trueStr : ctx.options.falseStr;
@@ -1,6 +1,6 @@
1
1
  import { Scalar } from "../../nodes/Scalar.js";
2
2
  import { stringifyNumber } from "../../stringify/stringifyNumber.js";
3
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js
3
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js
4
4
  const floatNaN = {
5
5
  identify: (value) => typeof value === "number",
6
6
  default: true,
@@ -1,5 +1,5 @@
1
1
  import { stringifyNumber } from "../../stringify/stringifyNumber.js";
2
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js
2
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js
3
3
  const intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
4
4
  function intResolve(str, offset, radix, { intAsBigInt }) {
5
5
  const sign = str[0];
@@ -1,6 +1,6 @@
1
1
  import { isAlias, isMap, isScalar, isSeq } from "../../nodes/identity.js";
2
2
  import { Scalar } from "../../nodes/Scalar.js";
3
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js
3
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js
4
4
  const MERGE_KEY = "<<";
5
5
  const merge = {
6
6
  identify: (value) => value === MERGE_KEY || typeof value === "symbol" && value.description === MERGE_KEY,
@@ -3,7 +3,7 @@ import { toJS } from "../../nodes/toJS.js";
3
3
  import { YAMLMap } from "../../nodes/YAMLMap.js";
4
4
  import { YAMLSeq } from "../../nodes/YAMLSeq.js";
5
5
  import { createPairs, resolvePairs } from "./pairs.js";
6
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js
6
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js
7
7
  var YAMLOMap = class YAMLOMap extends YAMLSeq {
8
8
  constructor() {
9
9
  super();
@@ -2,7 +2,7 @@ import { isMap, isPair, isSeq } from "../../nodes/identity.js";
2
2
  import { Scalar } from "../../nodes/Scalar.js";
3
3
  import { Pair, createPair } from "../../nodes/Pair.js";
4
4
  import { YAMLSeq } from "../../nodes/YAMLSeq.js";
5
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js
5
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js
6
6
  function resolvePairs(seq, onError) {
7
7
  if (isSeq(seq)) for (let i = 0; i < seq.items.length; ++i) {
8
8
  let item = seq.items[i];
@@ -11,7 +11,7 @@ import { float, floatExp, floatNaN } from "./float.js";
11
11
  import { int, intBin, intHex, intOct } from "./int.js";
12
12
  import { set } from "./set.js";
13
13
  import { floatTime, intTime, timestamp } from "./timestamp.js";
14
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js
14
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js
15
15
  const schema = [
16
16
  map,
17
17
  seq,
@@ -1,7 +1,7 @@
1
1
  import { isMap, isPair, isScalar } from "../../nodes/identity.js";
2
2
  import { Pair, createPair } from "../../nodes/Pair.js";
3
3
  import { YAMLMap, findPair } from "../../nodes/YAMLMap.js";
4
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js
4
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js
5
5
  var YAMLSet = class YAMLSet extends YAMLMap {
6
6
  constructor(schema) {
7
7
  super(schema);
@@ -1,5 +1,5 @@
1
1
  import { stringifyNumber } from "../../stringify/stringifyNumber.js";
2
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js
2
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js
3
3
  /** Internal types handle bigint as number, because TS can't figure it out. */
4
4
  function parseSexagesimal(str, asBigInt) {
5
5
  const sign = str[0];
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/stringify/foldFlowLines.js
1
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/foldFlowLines.js
2
2
  const FOLD_FLOW = "flow";
3
3
  const FOLD_BLOCK = "block";
4
4
  const FOLD_QUOTED = "quoted";
@@ -2,7 +2,7 @@ import { isAlias, isCollection, isNode, isPair, isScalar } from "../nodes/identi
2
2
  import { anchorIsValid } from "../doc/anchors.js";
3
3
  import { stringifyComment } from "./stringifyComment.js";
4
4
  import { stringifyString } from "./stringifyString.js";
5
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/stringify/stringify.js
5
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringify.js
6
6
  function createStringifyContext(doc, options) {
7
7
  const opt = Object.assign({
8
8
  blockQuote: true,
@@ -1,7 +1,7 @@
1
1
  import { isNode, isPair } from "../nodes/identity.js";
2
2
  import { indentComment, lineComment } from "./stringifyComment.js";
3
3
  import { stringify } from "./stringify.js";
4
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/stringify/stringifyCollection.js
4
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyCollection.js
5
5
  function stringifyCollection(collection, ctx, options) {
6
6
  return (ctx.inFlow ?? collection.flow ? stringifyFlowCollection : stringifyBlockCollection)(collection, ctx, options);
7
7
  }
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/stringify/stringifyComment.js
1
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyComment.js
2
2
  /**
3
3
  * Stringifies a comment.
4
4
  *
@@ -1,7 +1,7 @@
1
1
  import { isNode } from "../nodes/identity.js";
2
2
  import { indentComment, lineComment } from "./stringifyComment.js";
3
3
  import { createStringifyContext, stringify } from "./stringify.js";
4
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/stringify/stringifyDocument.js
4
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyDocument.js
5
5
  function stringifyDocument(doc, options) {
6
6
  const lines = [];
7
7
  let hasDirectives = options.directives === true;
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/stringify/stringifyNumber.js
1
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyNumber.js
2
2
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
3
3
  if (typeof value === "bigint") return String(value);
4
4
  const num = typeof value === "number" ? value : Number(value);
@@ -2,7 +2,7 @@ import { isCollection, isNode, isScalar, isSeq } from "../nodes/identity.js";
2
2
  import { Scalar } from "../nodes/Scalar.js";
3
3
  import { indentComment, lineComment } from "./stringifyComment.js";
4
4
  import { stringify } from "./stringify.js";
5
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/stringify/stringifyPair.js
5
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyPair.js
6
6
  function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
7
7
  const { allNullValues, doc, indent, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
8
8
  let keyComment = isNode(key) && key.comment || null;
@@ -1,6 +1,6 @@
1
1
  import { Scalar } from "../nodes/Scalar.js";
2
2
  import { FOLD_BLOCK, FOLD_FLOW, FOLD_QUOTED, foldFlowLines } from "./foldFlowLines.js";
3
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/stringify/stringifyString.js
3
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyString.js
4
4
  const getFoldOptions = (ctx, isBlock) => ({
5
5
  indentAtStart: isBlock ? ctx.indent.length : ctx.indentAtStart,
6
6
  lineWidth: ctx.options.lineWidth,
@@ -1,5 +1,5 @@
1
1
  import { isAlias, isCollection, isDocument, isMap, isNode, isPair, isScalar, isSeq } from "./nodes/identity.js";
2
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/visit.js
2
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/visit.js
3
3
  const BREAK = Symbol("break visit");
4
4
  const SKIP = Symbol("skip children");
5
5
  const REMOVE = Symbol("remove node");
@@ -1,7 +1,9 @@
1
+ import { __toESM } from "../../_virtual/_rolldown/runtime.js";
2
+ import { require_js2xml } from "../../node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/js2xml.js";
1
3
  import { backtickQuote, inputToString, tripleDoubleQuote } from "../string-utils.js";
2
4
  import "./resolve-adapter.js";
3
- import js2xml from "xml-js/lib/js2xml.js";
4
5
  //#region src/requests/media/adapter.ts
6
+ var import_js2xml = /* @__PURE__ */ __toESM(require_js2xml(), 1);
5
7
  const defaultAdapters = {
6
8
  "application/json": {
7
9
  encode(data) {
@@ -13,7 +15,7 @@ const defaultAdapters = {
13
15
  },
14
16
  "application/xml": {
15
17
  encode(data) {
16
- return js2xml(data.body, {
18
+ return (0, import_js2xml.default)(data.body, {
17
19
  compact: true,
18
20
  spaces: 2
19
21
  });
@@ -1,5 +1,7 @@
1
- import js2xml from "xml-js/lib/js2xml.js";
1
+ import { __toESM } from "../_virtual/_rolldown/runtime.js";
2
+ import { require_js2xml } from "../node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/js2xml.js";
2
3
  //#region src/requests/string-utils.ts
4
+ var import_js2xml = /* @__PURE__ */ __toESM(require_js2xml(), 1);
3
5
  /**
4
6
  * Convert input value to hardcoded string (with quotes)
5
7
  */
@@ -13,7 +15,7 @@ function inputToString(value, format = "application/json") {
13
15
  for (const key in value) if (value[key]) params.set(key, String(value[key]));
14
16
  return params.toString();
15
17
  }
16
- return js2xml(value, {
18
+ return (0, import_js2xml.default)(value, {
17
19
  compact: true,
18
20
  spaces: 2
19
21
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-openapi",
3
- "version": "10.8.3",
3
+ "version": "10.8.4",
4
4
  "description": "Generate MDX docs for your OpenAPI spec",
5
5
  "keywords": [
6
6
  "Docs",
@@ -51,12 +51,11 @@
51
51
  "github-slugger": "^2.0.0",
52
52
  "hast-util-to-jsx-runtime": "^2.3.6",
53
53
  "js-yaml": "^4.1.1",
54
- "lucide-react": "^1.14.0",
54
+ "lucide-react": "^1.16.0",
55
55
  "remark": "^15.0.1",
56
56
  "remark-rehype": "^11.1.2",
57
57
  "shiki": "^4.0.2",
58
58
  "tailwind-merge": "^3.6.0",
59
- "xml-js": "^1.6.11",
60
59
  "@fumari/stf": "1.0.5"
61
60
  },
62
61
  "devDependencies": {
@@ -66,14 +65,15 @@
66
65
  "@scalar/openapi-upgrader": "^0.2.7",
67
66
  "@tailwindcss/oxide": "^4.3.0",
68
67
  "@types/js-yaml": "^4.0.9",
69
- "@types/node": "25.6.2",
68
+ "@types/node": "25.7.0",
70
69
  "@types/react": "^19.2.14",
71
70
  "fast-content-type-parse": "^3.0.0",
72
71
  "json-schema-typed": "^8.0.2",
73
72
  "tailwindcss": "^4.3.0",
74
73
  "tsdown": "0.22.0",
75
- "fumadocs-core": "16.8.11",
74
+ "xml-js": "^1.6.11",
76
75
  "fumadocs-ui": "16.8.11",
76
+ "fumadocs-core": "16.8.11",
77
77
  "tsconfig": "0.0.0"
78
78
  },
79
79
  "peerDependencies": {
@@ -103,7 +103,8 @@
103
103
  "@scalar/openapi-upgrader": "0.2.7",
104
104
  "fast-content-type-parse": "3.0.0",
105
105
  "pathe": "2.0.3",
106
- "yaml": "2.8.4"
106
+ "xml-js": "1.6.11",
107
+ "yaml": "2.9.0"
107
108
  },
108
109
  "scripts": {
109
110
  "build": "tsdown",