docusaurus-theme-openapi-docs 4.5.0 → 4.5.1

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.
@@ -78,7 +78,13 @@ const SecuritySchemes_1 = __importDefault(
78
78
  );
79
79
  const sdk = __importStar(require("postman-collection"));
80
80
  function ApiExplorer({ item, infoPath }) {
81
- const postman = new sdk.Request(item.postman ? item.postman.toJSON() : {});
81
+ const postman = new sdk.Request(
82
+ item.postman
83
+ ? sdk.Request.isRequest(item.postman)
84
+ ? item.postman.toJSON()
85
+ : item.postman
86
+ : {}
87
+ );
82
88
  return react_1.default.createElement(
83
89
  react_1.default.Fragment,
84
90
  null,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docusaurus-theme-openapi-docs",
3
3
  "description": "OpenAPI theme for Docusaurus.",
4
- "version": "4.5.0",
4
+ "version": "4.5.1",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -38,7 +38,7 @@
38
38
  "@types/postman-collection": "^3.5.11",
39
39
  "@types/react-modal": "^3.16.3",
40
40
  "concurrently": "^5.2.0",
41
- "docusaurus-plugin-openapi-docs": "^4.5.0",
41
+ "docusaurus-plugin-openapi-docs": "^4.5.1",
42
42
  "docusaurus-plugin-sass": "^0.2.3",
43
43
  "eslint-plugin-prettier": "^5.0.1"
44
44
  },
@@ -81,5 +81,5 @@
81
81
  "engines": {
82
82
  "node": ">=14"
83
83
  },
84
- "gitHead": "cb0ed6e02d7a963d51073e2bfd78d944fbb7ee34"
84
+ "gitHead": "dab3823034dd9ea74a713ee9d729bd45455d3e5c"
85
85
  }
@@ -22,7 +22,11 @@ function ApiExplorer({
22
22
  infoPath: string;
23
23
  }) {
24
24
  const postman = new sdk.Request(
25
- item.postman ? (item.postman as any).toJSON() : {}
25
+ item.postman
26
+ ? sdk.Request.isRequest(item.postman)
27
+ ? (item.postman as any).toJSON()
28
+ : (item.postman as any)
29
+ : {}
26
30
  );
27
31
 
28
32
  return (