swagger-client 3.21.0 → 3.22.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.
@@ -11,27 +11,6 @@
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
14
- /***/ 28599:
15
- /***/ ((module) => {
16
-
17
- "use strict";
18
- /*globals self, window */
19
-
20
-
21
- /*eslint-disable @mysticatea/prettier */
22
- const { AbortController, AbortSignal } =
23
- typeof self !== "undefined" ? self :
24
- typeof window !== "undefined" ? window :
25
- /* otherwise */ undefined
26
- /*eslint-enable @mysticatea/prettier */
27
-
28
- module.exports = AbortController
29
- module.exports.AbortSignal = AbortSignal
30
- module.exports["default"] = AbortController
31
-
32
-
33
- /***/ }),
34
-
35
14
  /***/ 58061:
36
15
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
37
16
 
@@ -1182,6 +1161,40 @@ function queryBuilder(_ref5) {
1182
1161
  }
1183
1162
  }
1184
1163
 
1164
+ /***/ }),
1165
+
1166
+ /***/ 39041:
1167
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1168
+
1169
+ "use strict";
1170
+ __webpack_require__.r(__webpack_exports__);
1171
+ /* harmony import */ var _abortcontroller_ponyfill_browser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9832);
1172
+
1173
+ if (typeof globalThis.AbortController === 'undefined') {
1174
+ globalThis.AbortController = _abortcontroller_ponyfill_browser_js__WEBPACK_IMPORTED_MODULE_0__.AbortController;
1175
+ }
1176
+ if (typeof globalThis.AbortSignal === 'undefined') {
1177
+ globalThis.AbortSignal = _abortcontroller_ponyfill_browser_js__WEBPACK_IMPORTED_MODULE_0__.AbortSignal;
1178
+ }
1179
+
1180
+ /***/ }),
1181
+
1182
+ /***/ 9832:
1183
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1184
+
1185
+ "use strict";
1186
+ __webpack_require__.r(__webpack_exports__);
1187
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1188
+ /* harmony export */ AbortController: () => (/* binding */ AbortController),
1189
+ /* harmony export */ AbortSignal: () => (/* binding */ AbortSignal)
1190
+ /* harmony export */ });
1191
+ // we're targeting browsers that already support fetch API
1192
+ const {
1193
+ AbortController,
1194
+ AbortSignal
1195
+ } = globalThis;
1196
+
1197
+
1185
1198
  /***/ }),
1186
1199
 
1187
1200
  /***/ 602:
@@ -1281,6 +1294,15 @@ if (typeof globalThis.Request === 'undefined') {
1281
1294
  if (typeof globalThis.Response === 'undefined') {
1282
1295
  globalThis.Response = _fetch_ponyfill_browser_js__WEBPACK_IMPORTED_MODULE_0__.Response;
1283
1296
  }
1297
+ if (typeof globalThis.FormData === 'undefined') {
1298
+ globalThis.FormData = _fetch_ponyfill_browser_js__WEBPACK_IMPORTED_MODULE_0__.FormData;
1299
+ }
1300
+ if (typeof globalThis.File === 'undefined') {
1301
+ globalThis.File = _fetch_ponyfill_browser_js__WEBPACK_IMPORTED_MODULE_0__.File;
1302
+ }
1303
+ if (typeof globalThis.Blob === 'undefined') {
1304
+ globalThis.Blob = _fetch_ponyfill_browser_js__WEBPACK_IMPORTED_MODULE_0__.Blob;
1305
+ }
1284
1306
 
1285
1307
  /***/ }),
1286
1308
 
@@ -1290,6 +1312,9 @@ if (typeof globalThis.Response === 'undefined') {
1290
1312
  "use strict";
1291
1313
  __webpack_require__.r(__webpack_exports__);
1292
1314
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1315
+ /* harmony export */ Blob: () => (/* binding */ Blob),
1316
+ /* harmony export */ File: () => (/* binding */ File),
1317
+ /* harmony export */ FormData: () => (/* binding */ FormData),
1293
1318
  /* harmony export */ Headers: () => (/* binding */ Headers),
1294
1319
  /* harmony export */ Request: () => (/* binding */ Request),
1295
1320
  /* harmony export */ Response: () => (/* binding */ Response),
@@ -1300,7 +1325,10 @@ const {
1300
1325
  fetch,
1301
1326
  Response,
1302
1327
  Headers,
1303
- Request
1328
+ Request,
1329
+ FormData,
1330
+ File,
1331
+ Blob
1304
1332
  } = globalThis;
1305
1333
 
1306
1334
 
@@ -1511,10 +1539,8 @@ __webpack_require__.r(__webpack_exports__);
1511
1539
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80129);
1512
1540
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__);
1513
1541
  /* harmony import */ var js_yaml__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1272);
1514
- /* harmony import */ var formdata_node__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(37824);
1515
- /* harmony import */ var _helpers_fetch_polyfill_node_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71564);
1516
- /* harmony import */ var _execute_oas3_style_serializer_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(56262);
1517
-
1542
+ /* harmony import */ var _helpers_fetch_polyfill_node_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71564);
1543
+ /* harmony import */ var _execute_oas3_style_serializer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(56262);
1518
1544
 
1519
1545
 
1520
1546
 
@@ -1672,10 +1698,10 @@ function isFile(obj, navigatorObj) {
1672
1698
  }
1673
1699
  return false;
1674
1700
  }
1675
- if (typeof formdata_node__WEBPACK_IMPORTED_MODULE_2__.File !== 'undefined' && obj instanceof formdata_node__WEBPACK_IMPORTED_MODULE_2__.File) {
1701
+ if (typeof File !== 'undefined' && obj instanceof File) {
1676
1702
  return true;
1677
1703
  }
1678
- if (typeof formdata_node__WEBPACK_IMPORTED_MODULE_2__.Blob !== 'undefined' && obj instanceof formdata_node__WEBPACK_IMPORTED_MODULE_2__.Blob) {
1704
+ if (typeof Blob !== 'undefined' && obj instanceof Blob) {
1679
1705
  return true;
1680
1706
  }
1681
1707
  if (ArrayBuffer.isView(obj)) {
@@ -1706,7 +1732,7 @@ const SEPARATORS = {
1706
1732
  * This sub-class is exclusively used only when Encoding Object
1707
1733
  * is defined within the Media Type Object (OpenAPI 3.x.y).
1708
1734
  */
1709
- class FileWithData extends formdata_node__WEBPACK_IMPORTED_MODULE_2__.File {
1735
+ class FileWithData extends File {
1710
1736
  constructor(data) {
1711
1737
  let name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
1712
1738
  let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
@@ -1824,10 +1850,10 @@ function formatKeyValueBySerializationOption(key, value, skipEncoding, serializa
1824
1850
  const explode = typeof serializationOption.explode === 'undefined' ? style === 'form' : serializationOption.explode;
1825
1851
  // eslint-disable-next-line no-nested-ternary
1826
1852
  const escape = skipEncoding ? false : serializationOption && serializationOption.allowReserved ? 'unsafe' : 'reserved';
1827
- const encodeFn = v => (0,_execute_oas3_style_serializer_js__WEBPACK_IMPORTED_MODULE_4__.encodeDisallowedCharacters)(v, {
1853
+ const encodeFn = v => (0,_execute_oas3_style_serializer_js__WEBPACK_IMPORTED_MODULE_3__.encodeDisallowedCharacters)(v, {
1828
1854
  escape
1829
1855
  });
1830
- const encodeKeyFn = skipEncoding ? k => k : k => (0,_execute_oas3_style_serializer_js__WEBPACK_IMPORTED_MODULE_4__.encodeDisallowedCharacters)(k, {
1856
+ const encodeKeyFn = skipEncoding ? k => k : k => (0,_execute_oas3_style_serializer_js__WEBPACK_IMPORTED_MODULE_3__.encodeDisallowedCharacters)(k, {
1831
1857
  escape
1832
1858
  });
1833
1859
 
@@ -1876,21 +1902,21 @@ function buildFormData(reqForm) {
1876
1902
  // eslint-disable-next-line no-restricted-syntax
1877
1903
  for (const v of value) {
1878
1904
  if (ArrayBuffer.isView(v)) {
1879
- const blob = new formdata_node__WEBPACK_IMPORTED_MODULE_2__.Blob([v]);
1905
+ const blob = new Blob([v]);
1880
1906
  formData.append(key, blob);
1881
1907
  } else {
1882
1908
  formData.append(key, v);
1883
1909
  }
1884
1910
  }
1885
1911
  } else if (ArrayBuffer.isView(value)) {
1886
- const blob = new formdata_node__WEBPACK_IMPORTED_MODULE_2__.Blob([value]);
1912
+ const blob = new Blob([value]);
1887
1913
  formData.append(key, blob);
1888
1914
  } else {
1889
1915
  formData.append(key, value);
1890
1916
  }
1891
1917
  }
1892
1918
  return formData;
1893
- }, new formdata_node__WEBPACK_IMPORTED_MODULE_2__.FormData());
1919
+ }, new FormData());
1894
1920
  }
1895
1921
 
1896
1922
  // Encodes an object using appropriate serializer.
@@ -3404,11 +3430,10 @@ __webpack_require__.r(__webpack_exports__);
3404
3430
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3405
3431
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
3406
3432
  /* harmony export */ });
3407
- /* harmony import */ var abort_controller__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28599);
3408
- /* harmony import */ var abort_controller__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(abort_controller__WEBPACK_IMPORTED_MODULE_0__);
3409
3433
  /* harmony import */ var _swagger_api_apidom_reference_configuration_empty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82995);
3410
3434
  /* harmony import */ var _swagger_api_apidom_reference_configuration_empty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(62423);
3411
- /* harmony import */ var _helpers_fetch_polyfill_node_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71564);
3435
+ /* harmony import */ var _helpers_fetch_polyfill_node_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71564);
3436
+ /* harmony import */ var _helpers_abortcontroller_polyfill_node_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39041);
3412
3437
  /* harmony import */ var _http_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28288);
3413
3438
 
3414
3439
 
@@ -3432,7 +3457,7 @@ const HttpResolverSwaggerClient = _swagger_api_apidom_reference_configuration_em
3432
3457
  },
3433
3458
  async read(file) {
3434
3459
  const client = this.getHttpClient();
3435
- const controller = new (abort_controller__WEBPACK_IMPORTED_MODULE_0___default())();
3460
+ const controller = new AbortController();
3436
3461
  const {
3437
3462
  signal
3438
3463
  } = controller;
@@ -42592,30 +42617,6 @@ var PatchError = /** @class */ (function (_super) {
42592
42617
 
42593
42618
 
42594
42619
 
42595
- /***/ }),
42596
-
42597
- /***/ 37824:
42598
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
42599
-
42600
- "use strict";
42601
- __webpack_require__.r(__webpack_exports__);
42602
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
42603
- /* harmony export */ Blob: () => (/* binding */ Blob),
42604
- /* harmony export */ File: () => (/* binding */ File),
42605
- /* harmony export */ FormData: () => (/* binding */ FormData)
42606
- /* harmony export */ });
42607
- const globalObject = (function () {
42608
- if (typeof globalThis !== "undefined") {
42609
- return globalThis;
42610
- }
42611
- if (typeof self !== "undefined") {
42612
- return self;
42613
- }
42614
- return window;
42615
- }());
42616
- const { FormData, Blob, File } = globalObject;
42617
-
42618
-
42619
42620
  /***/ }),
42620
42621
 
42621
42622
  /***/ 90111: