swagger-client 3.25.1 → 3.25.2
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/README.md +1 -2
- package/dist/swagger-client.browser.js +3821 -3821
- package/dist/swagger-client.browser.min.js +1 -1
- package/dist/swagger-client.browser.min.js.map +1 -1
- package/es/helpers/fetch-polyfill.node.js +7 -8
- package/lib/helpers/fetch-polyfill.node.js +7 -8
- package/package.json +5 -5
- package/es/helpers/fetch-ponyfill-undici.node.js +0 -4
- package/lib/helpers/fetch-ponyfill-undici.node.js +0 -13
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { fetch as fetchU, Headers as HeaderU, Request as RequestU, Response as ResponseU, FormData as FormDataU, File as FileU, Blob as BlobU } from './fetch-ponyfill-undici.node.js';
|
|
2
1
|
import { fetch as fetchNF, Headers as HeadersNF, Request as RequestNF, Response as ResponseNF, FormData as FormDataNF, File as FileNF, Blob as BlobNF } from './fetch-ponyfill-node-fetch.node.js';
|
|
3
2
|
if (typeof globalThis.fetch === 'undefined') {
|
|
4
|
-
globalThis.fetch =
|
|
3
|
+
globalThis.fetch = fetchNF;
|
|
5
4
|
}
|
|
6
5
|
if (typeof globalThis.Headers === 'undefined') {
|
|
7
|
-
globalThis.Headers =
|
|
6
|
+
globalThis.Headers = HeadersNF;
|
|
8
7
|
}
|
|
9
8
|
if (typeof globalThis.Request === 'undefined') {
|
|
10
|
-
globalThis.Request =
|
|
9
|
+
globalThis.Request = RequestNF;
|
|
11
10
|
}
|
|
12
11
|
if (typeof globalThis.Response === 'undefined') {
|
|
13
|
-
globalThis.Response =
|
|
12
|
+
globalThis.Response = ResponseNF;
|
|
14
13
|
}
|
|
15
14
|
if (typeof globalThis.FormData === 'undefined') {
|
|
16
|
-
globalThis.FormData =
|
|
15
|
+
globalThis.FormData = FormDataNF;
|
|
17
16
|
}
|
|
18
17
|
if (typeof globalThis.File === 'undefined') {
|
|
19
|
-
globalThis.File =
|
|
18
|
+
globalThis.File = FileNF;
|
|
20
19
|
}
|
|
21
20
|
if (typeof globalThis.Blob === 'undefined') {
|
|
22
|
-
globalThis.Blob =
|
|
21
|
+
globalThis.Blob = BlobNF;
|
|
23
22
|
}
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _fetchPonyfillUndiciNode = require("./fetch-ponyfill-undici.node.js");
|
|
4
3
|
var _fetchPonyfillNodeFetchNode = require("./fetch-ponyfill-node-fetch.node.js");
|
|
5
4
|
if (typeof globalThis.fetch === 'undefined') {
|
|
6
|
-
globalThis.fetch =
|
|
5
|
+
globalThis.fetch = _fetchPonyfillNodeFetchNode.fetch;
|
|
7
6
|
}
|
|
8
7
|
if (typeof globalThis.Headers === 'undefined') {
|
|
9
|
-
globalThis.Headers =
|
|
8
|
+
globalThis.Headers = _fetchPonyfillNodeFetchNode.Headers;
|
|
10
9
|
}
|
|
11
10
|
if (typeof globalThis.Request === 'undefined') {
|
|
12
|
-
globalThis.Request =
|
|
11
|
+
globalThis.Request = _fetchPonyfillNodeFetchNode.Request;
|
|
13
12
|
}
|
|
14
13
|
if (typeof globalThis.Response === 'undefined') {
|
|
15
|
-
globalThis.Response =
|
|
14
|
+
globalThis.Response = _fetchPonyfillNodeFetchNode.Response;
|
|
16
15
|
}
|
|
17
16
|
if (typeof globalThis.FormData === 'undefined') {
|
|
18
|
-
globalThis.FormData =
|
|
17
|
+
globalThis.FormData = _fetchPonyfillNodeFetchNode.FormData;
|
|
19
18
|
}
|
|
20
19
|
if (typeof globalThis.File === 'undefined') {
|
|
21
|
-
globalThis.File =
|
|
20
|
+
globalThis.File = _fetchPonyfillNodeFetchNode.File;
|
|
22
21
|
}
|
|
23
22
|
if (typeof globalThis.Blob === 'undefined') {
|
|
24
|
-
globalThis.Blob =
|
|
23
|
+
globalThis.Blob = _fetchPonyfillNodeFetchNode.Blob;
|
|
25
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "swagger-client",
|
|
3
|
-
"version": "3.25.
|
|
3
|
+
"version": "3.25.2",
|
|
4
4
|
"description": "SwaggerJS - a collection of interfaces for OAI specs",
|
|
5
5
|
"browser": {
|
|
6
6
|
"./src/helpers/btoa.node.js": "./src/helpers/btoa.browser.js",
|
|
@@ -102,7 +102,8 @@
|
|
|
102
102
|
"rimraf": "=5.0.5",
|
|
103
103
|
"source-map-explorer": "^2.5.3",
|
|
104
104
|
"terser-webpack-plugin": "^5.0.3",
|
|
105
|
-
"
|
|
105
|
+
"undici": "^5.28.3",
|
|
106
|
+
"webpack": "=5.90.3",
|
|
106
107
|
"webpack-bundle-size-analyzer": "=3.1.0",
|
|
107
108
|
"webpack-cli": "=5.1.4",
|
|
108
109
|
"webpack-stats-plugin": "=1.1.3"
|
|
@@ -119,11 +120,10 @@
|
|
|
119
120
|
"fast-json-patch": "^3.0.0-1",
|
|
120
121
|
"is-plain-object": "^5.0.0",
|
|
121
122
|
"js-yaml": "^4.1.0",
|
|
122
|
-
"node-fetch-commonjs": "^3.3.1",
|
|
123
123
|
"node-abort-controller": "^3.1.1",
|
|
124
|
+
"node-fetch-commonjs": "^3.3.2",
|
|
124
125
|
"qs": "^6.10.2",
|
|
125
|
-
"traverse": "~0.6.6"
|
|
126
|
-
"undici": "^5.24.0"
|
|
126
|
+
"traverse": "~0.6.6"
|
|
127
127
|
},
|
|
128
128
|
"overrides": {
|
|
129
129
|
"@swagger-api/apidom-reference": {
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.Blob = void 0;
|
|
5
|
-
var _buffer = require("buffer");
|
|
6
|
-
var _undici = require("undici");
|
|
7
|
-
exports.fetch = _undici.fetch;
|
|
8
|
-
exports.Response = _undici.Response;
|
|
9
|
-
exports.Headers = _undici.Headers;
|
|
10
|
-
exports.Request = _undici.Request;
|
|
11
|
-
exports.FormData = _undici.FormData;
|
|
12
|
-
exports.File = _undici.File;
|
|
13
|
-
const BlobU = exports.Blob = typeof _undici.fetch === 'undefined' ? undefined : _buffer.Blob;
|