swagger-client 3.21.0 → 3.22.0

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.
@@ -1281,6 +1281,15 @@ if (typeof globalThis.Request === 'undefined') {
1281
1281
  if (typeof globalThis.Response === 'undefined') {
1282
1282
  globalThis.Response = _fetch_ponyfill_browser_js__WEBPACK_IMPORTED_MODULE_0__.Response;
1283
1283
  }
1284
+ if (typeof globalThis.FormData === 'undefined') {
1285
+ globalThis.FormData = _fetch_ponyfill_browser_js__WEBPACK_IMPORTED_MODULE_0__.FormData;
1286
+ }
1287
+ if (typeof globalThis.File === 'undefined') {
1288
+ globalThis.File = _fetch_ponyfill_browser_js__WEBPACK_IMPORTED_MODULE_0__.File;
1289
+ }
1290
+ if (typeof globalThis.Blob === 'undefined') {
1291
+ globalThis.Blob = _fetch_ponyfill_browser_js__WEBPACK_IMPORTED_MODULE_0__.Blob;
1292
+ }
1284
1293
 
1285
1294
  /***/ }),
1286
1295
 
@@ -1290,6 +1299,9 @@ if (typeof globalThis.Response === 'undefined') {
1290
1299
  "use strict";
1291
1300
  __webpack_require__.r(__webpack_exports__);
1292
1301
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1302
+ /* harmony export */ Blob: () => (/* binding */ Blob),
1303
+ /* harmony export */ File: () => (/* binding */ File),
1304
+ /* harmony export */ FormData: () => (/* binding */ FormData),
1293
1305
  /* harmony export */ Headers: () => (/* binding */ Headers),
1294
1306
  /* harmony export */ Request: () => (/* binding */ Request),
1295
1307
  /* harmony export */ Response: () => (/* binding */ Response),
@@ -1300,7 +1312,10 @@ const {
1300
1312
  fetch,
1301
1313
  Response,
1302
1314
  Headers,
1303
- Request
1315
+ Request,
1316
+ FormData,
1317
+ File,
1318
+ Blob
1304
1319
  } = globalThis;
1305
1320
 
1306
1321
 
@@ -1511,10 +1526,8 @@ __webpack_require__.r(__webpack_exports__);
1511
1526
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80129);
1512
1527
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__);
1513
1528
  /* 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
-
1529
+ /* harmony import */ var _helpers_fetch_polyfill_node_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71564);
1530
+ /* harmony import */ var _execute_oas3_style_serializer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(56262);
1518
1531
 
1519
1532
 
1520
1533
 
@@ -1672,10 +1685,10 @@ function isFile(obj, navigatorObj) {
1672
1685
  }
1673
1686
  return false;
1674
1687
  }
1675
- if (typeof formdata_node__WEBPACK_IMPORTED_MODULE_2__.File !== 'undefined' && obj instanceof formdata_node__WEBPACK_IMPORTED_MODULE_2__.File) {
1688
+ if (typeof File !== 'undefined' && obj instanceof File) {
1676
1689
  return true;
1677
1690
  }
1678
- if (typeof formdata_node__WEBPACK_IMPORTED_MODULE_2__.Blob !== 'undefined' && obj instanceof formdata_node__WEBPACK_IMPORTED_MODULE_2__.Blob) {
1691
+ if (typeof Blob !== 'undefined' && obj instanceof Blob) {
1679
1692
  return true;
1680
1693
  }
1681
1694
  if (ArrayBuffer.isView(obj)) {
@@ -1706,7 +1719,7 @@ const SEPARATORS = {
1706
1719
  * This sub-class is exclusively used only when Encoding Object
1707
1720
  * is defined within the Media Type Object (OpenAPI 3.x.y).
1708
1721
  */
1709
- class FileWithData extends formdata_node__WEBPACK_IMPORTED_MODULE_2__.File {
1722
+ class FileWithData extends File {
1710
1723
  constructor(data) {
1711
1724
  let name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
1712
1725
  let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
@@ -1824,10 +1837,10 @@ function formatKeyValueBySerializationOption(key, value, skipEncoding, serializa
1824
1837
  const explode = typeof serializationOption.explode === 'undefined' ? style === 'form' : serializationOption.explode;
1825
1838
  // eslint-disable-next-line no-nested-ternary
1826
1839
  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, {
1840
+ const encodeFn = v => (0,_execute_oas3_style_serializer_js__WEBPACK_IMPORTED_MODULE_3__.encodeDisallowedCharacters)(v, {
1828
1841
  escape
1829
1842
  });
1830
- const encodeKeyFn = skipEncoding ? k => k : k => (0,_execute_oas3_style_serializer_js__WEBPACK_IMPORTED_MODULE_4__.encodeDisallowedCharacters)(k, {
1843
+ const encodeKeyFn = skipEncoding ? k => k : k => (0,_execute_oas3_style_serializer_js__WEBPACK_IMPORTED_MODULE_3__.encodeDisallowedCharacters)(k, {
1831
1844
  escape
1832
1845
  });
1833
1846
 
@@ -1876,21 +1889,21 @@ function buildFormData(reqForm) {
1876
1889
  // eslint-disable-next-line no-restricted-syntax
1877
1890
  for (const v of value) {
1878
1891
  if (ArrayBuffer.isView(v)) {
1879
- const blob = new formdata_node__WEBPACK_IMPORTED_MODULE_2__.Blob([v]);
1892
+ const blob = new Blob([v]);
1880
1893
  formData.append(key, blob);
1881
1894
  } else {
1882
1895
  formData.append(key, v);
1883
1896
  }
1884
1897
  }
1885
1898
  } else if (ArrayBuffer.isView(value)) {
1886
- const blob = new formdata_node__WEBPACK_IMPORTED_MODULE_2__.Blob([value]);
1899
+ const blob = new Blob([value]);
1887
1900
  formData.append(key, blob);
1888
1901
  } else {
1889
1902
  formData.append(key, value);
1890
1903
  }
1891
1904
  }
1892
1905
  return formData;
1893
- }, new formdata_node__WEBPACK_IMPORTED_MODULE_2__.FormData());
1906
+ }, new FormData());
1894
1907
  }
1895
1908
 
1896
1909
  // Encodes an object using appropriate serializer.
@@ -42592,30 +42605,6 @@ var PatchError = /** @class */ (function (_super) {
42592
42605
 
42593
42606
 
42594
42607
 
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
42608
  /***/ }),
42620
42609
 
42621
42610
  /***/ 90111: