docusaurus-theme-openapi-docs 0.0.0-962 → 0.0.0-964
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.
|
@@ -108,7 +108,10 @@ function CodeSnippets({ postman, codeSamples }) {
|
|
|
108
108
|
for (const key in obj) {
|
|
109
109
|
if (typeof obj[key] === "object" && obj[key] !== null) {
|
|
110
110
|
// use name as placeholder if exists
|
|
111
|
-
|
|
111
|
+
const comboAuthId = Object.keys(obj).join(" and ");
|
|
112
|
+
const authOptions =
|
|
113
|
+
clonedAuth?.options?.[key] ?? clonedAuth?.options?.[comboAuthId];
|
|
114
|
+
placeholder = authOptions?.[0]?.name;
|
|
112
115
|
obj[key] = cleanCredentials(obj[key]);
|
|
113
116
|
} else {
|
|
114
117
|
obj[key] = `<${placeholder ?? key}>`;
|
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": "0.0.0-
|
|
4
|
+
"version": "0.0.0-964",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"openapi",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@types/file-saver": "^2.0.5",
|
|
35
35
|
"@types/lodash": "^4.14.176",
|
|
36
36
|
"concurrently": "^5.2.0",
|
|
37
|
-
"docusaurus-plugin-openapi-docs": "0.0.0-
|
|
37
|
+
"docusaurus-plugin-openapi-docs": "0.0.0-964",
|
|
38
38
|
"docusaurus-plugin-sass": "^0.2.3",
|
|
39
39
|
"eslint-plugin-prettier": "^5.0.1"
|
|
40
40
|
},
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"engines": {
|
|
76
76
|
"node": ">=14"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "44cffd1b9f9da64d5649820bfb8abeb5f7e41d1b"
|
|
79
79
|
}
|
|
@@ -60,7 +60,10 @@ function CodeSnippets({ postman, codeSamples }: Props) {
|
|
|
60
60
|
for (const key in obj) {
|
|
61
61
|
if (typeof obj[key] === "object" && obj[key] !== null) {
|
|
62
62
|
// use name as placeholder if exists
|
|
63
|
-
|
|
63
|
+
const comboAuthId = Object.keys(obj).join(" and ");
|
|
64
|
+
const authOptions =
|
|
65
|
+
clonedAuth?.options?.[key] ?? clonedAuth?.options?.[comboAuthId];
|
|
66
|
+
placeholder = authOptions?.[0]?.name;
|
|
64
67
|
obj[key] = cleanCredentials(obj[key]);
|
|
65
68
|
} else {
|
|
66
69
|
obj[key] = `<${placeholder ?? key}>`;
|