docusaurus-plugin-openapi-docs 0.0.0-390 → 0.0.0-391

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.
@@ -56,7 +56,7 @@ async function loadAndBundleSpec(specUrlOrObject, parseJsonRefs) {
56
56
  // bundleOpts["dereference"] = true;
57
57
  const { bundle: { parsed }, } = await (0, bundle_1.bundle)(bundleOpts);
58
58
  if (parseJsonRefs) {
59
- const resolved = resolveJsonRefs(parsed);
59
+ const resolved = await resolveJsonRefs(parsed);
60
60
  return typeof resolved === Object
61
61
  ? resolved.swagger !== undefined
62
62
  ? convertSwagger2OpenAPI(resolved)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docusaurus-plugin-openapi-docs",
3
3
  "description": "OpenAPI plugin for Docusaurus.",
4
- "version": "0.0.0-390",
4
+ "version": "0.0.0-391",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -63,5 +63,5 @@
63
63
  "engines": {
64
64
  "node": ">=14"
65
65
  },
66
- "gitHead": "0773c12511d7ba04e31ad3420ba9ec084c517690"
66
+ "gitHead": "f61f756a734fd90ac876ce7af67f68e4204aa35d"
67
67
  }
@@ -63,7 +63,7 @@ export async function loadAndBundleSpec(
63
63
  bundle: { parsed },
64
64
  } = await bundle(bundleOpts);
65
65
  if (parseJsonRefs) {
66
- const resolved = resolveJsonRefs(parsed);
66
+ const resolved = await resolveJsonRefs(parsed);
67
67
  return typeof resolved === Object
68
68
  ? resolved.swagger !== undefined
69
69
  ? convertSwagger2OpenAPI(resolved)