docusaurus-theme-openapi-docs 0.0.0-beta.665 → 0.0.0-beta.666
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.
|
@@ -133,11 +133,13 @@ async function makeRequest(request, proxy, _body) {
|
|
|
133
133
|
break;
|
|
134
134
|
}
|
|
135
135
|
case "formdata": {
|
|
136
|
+
// The Content-Type header will be set automatically based on the type of body.
|
|
137
|
+
myHeaders.delete("Content-Type");
|
|
136
138
|
myBody = new FormData();
|
|
137
|
-
if (Array.isArray(body.formdata)) {
|
|
138
|
-
for (const data of body.formdata) {
|
|
139
|
-
if (data.key && data.value) {
|
|
140
|
-
myBody.append(data.key, data.value);
|
|
139
|
+
if (Array.isArray(request.body.formdata.members)) {
|
|
140
|
+
for (const data of request.body.formdata.members) {
|
|
141
|
+
if (data.key && data.value.content) {
|
|
142
|
+
myBody.append(data.key, data.value.content);
|
|
141
143
|
}
|
|
142
144
|
}
|
|
143
145
|
}
|
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-beta.
|
|
4
|
+
"version": "0.0.0-beta.666",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"openapi",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"clsx": "^1.1.1",
|
|
45
45
|
"copy-text-to-clipboard": "^3.1.0",
|
|
46
46
|
"crypto-js": "^4.1.1",
|
|
47
|
-
"docusaurus-plugin-openapi-docs": "0.0.0-beta.
|
|
47
|
+
"docusaurus-plugin-openapi-docs": "0.0.0-beta.666",
|
|
48
48
|
"docusaurus-plugin-sass": "^0.2.3",
|
|
49
49
|
"file-saver": "^2.0.5",
|
|
50
50
|
"lodash": "^4.17.20",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=14"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "3f2b753b94ae0148c4bbf2c5dbf54db5fa3d30c7"
|
|
72
72
|
}
|
|
@@ -152,11 +152,14 @@ async function makeRequest(
|
|
|
152
152
|
break;
|
|
153
153
|
}
|
|
154
154
|
case "formdata": {
|
|
155
|
+
// The Content-Type header will be set automatically based on the type of body.
|
|
156
|
+
myHeaders.delete("Content-Type");
|
|
157
|
+
|
|
155
158
|
myBody = new FormData();
|
|
156
|
-
if (Array.isArray(body.formdata)) {
|
|
157
|
-
for (const data of body.formdata) {
|
|
158
|
-
if (data.key && data.value) {
|
|
159
|
-
myBody.append(data.key, data.value);
|
|
159
|
+
if (Array.isArray(request.body.formdata.members)) {
|
|
160
|
+
for (const data of request.body.formdata.members) {
|
|
161
|
+
if (data.key && data.value.content) {
|
|
162
|
+
myBody.append(data.key, data.value.content);
|
|
160
163
|
}
|
|
161
164
|
}
|
|
162
165
|
}
|