swagger-client 3.30.0 → 3.31.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.
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ Swagger Client Version | Release Date | OpenAPI Spec compatibility |
|
|
|
30
30
|
|
|
31
31
|
## Anonymized analytics
|
|
32
32
|
|
|
33
|
-
Swagger Client uses [Scarf](https://scarf.sh/) to collect [anonymized installation analytics](https://github.com/scarf-sh/scarf-js?tab=readme-ov-file#as-a-user-of-a-package-using-scarf-js-what-information-does-scarf-js-send-about-me). These analytics help support the maintainers of this library and ONLY run during installation. To [opt out](https://github.com/scarf-sh/scarf-js?tab=readme-ov-file#as-a-user-of-a-package-using-scarf-js-how-can-i-opt-out-of-analytics), you can set the `
|
|
33
|
+
Swagger Client uses [Scarf](https://scarf.sh/) to collect [anonymized installation analytics](https://github.com/scarf-sh/scarf-js?tab=readme-ov-file#as-a-user-of-a-package-using-scarf-js-what-information-does-scarf-js-send-about-me). These analytics help support the maintainers of this library and ONLY run during installation. To [opt out](https://github.com/scarf-sh/scarf-js?tab=readme-ov-file#as-a-user-of-a-package-using-scarf-js-how-can-i-opt-out-of-analytics), you can set the `scarfSettings.enabled` field to `false` in your project's `package.json`:
|
|
34
34
|
|
|
35
35
|
```
|
|
36
36
|
// package.json
|
|
@@ -180,7 +180,8 @@ function buildRequest(options) {
|
|
|
180
180
|
} = options;
|
|
181
181
|
let {
|
|
182
182
|
parameters,
|
|
183
|
-
parameterBuilders
|
|
183
|
+
parameterBuilders,
|
|
184
|
+
baseURL
|
|
184
185
|
} = options;
|
|
185
186
|
const specIsOAS3 = (0,_helpers_openapi_predicates_js__WEBPACK_IMPORTED_MODULE_12__.isOpenAPI3)(spec);
|
|
186
187
|
if (!parameterBuilders) {
|
|
@@ -223,7 +224,7 @@ function buildRequest(options) {
|
|
|
223
224
|
method,
|
|
224
225
|
pathName
|
|
225
226
|
} = operationRaw;
|
|
226
|
-
|
|
227
|
+
baseURL = baseURL ?? baseUrl({
|
|
227
228
|
spec,
|
|
228
229
|
scheme,
|
|
229
230
|
contextUrl,
|