openapi-ts-request 1.8.3 → 1.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openapi-ts-request",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.4",
|
|
4
4
|
"description": "Swagger2/OpenAPI3/Apifox to TypeScript/JavaScript, request client(support any client), request mock service, enum and enum translation, react-query/vue-query, type field label, JSON Schemas",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
{%- for file in api.file -%}
|
|
65
65
|
{{ file.title | safe }}
|
|
66
66
|
{{- "?" if not api.file.required -}}
|
|
67
|
-
: File {{ "[]" if file.multiple }}
|
|
67
|
+
: globalThis.File {{ "[]" if file.multiple }}
|
|
68
68
|
{{ ";" if not loop.last }}
|
|
69
69
|
{%- endfor -%}
|
|
70
70
|
{%- endif -%}
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
{% endif %}
|
|
106
106
|
if (item !== undefined && item !== null) {
|
|
107
107
|
{% if genType === "ts" %}
|
|
108
|
-
if (typeof item === 'object' && !(item instanceof File)) {
|
|
108
|
+
if (typeof item === 'object' && !(item instanceof globalThis.File)) {
|
|
109
109
|
if (item instanceof Array) {
|
|
110
110
|
item.forEach((f) => formData.append(ele, f || ''));
|
|
111
111
|
} else {
|