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/es/execute/index.js
CHANGED
|
@@ -105,6 +105,7 @@ export function execute({
|
|
|
105
105
|
|
|
106
106
|
// Build a request, which can be handled by the `http.js` implementation.
|
|
107
107
|
export function buildRequest(options) {
|
|
108
|
+
var _baseURL;
|
|
108
109
|
const {
|
|
109
110
|
spec,
|
|
110
111
|
operationId,
|
|
@@ -122,7 +123,8 @@ export function buildRequest(options) {
|
|
|
122
123
|
} = options;
|
|
123
124
|
let {
|
|
124
125
|
parameters,
|
|
125
|
-
parameterBuilders
|
|
126
|
+
parameterBuilders,
|
|
127
|
+
baseURL
|
|
126
128
|
} = options;
|
|
127
129
|
const specIsOAS3 = isOpenAPI3(spec);
|
|
128
130
|
if (!parameterBuilders) {
|
|
@@ -165,7 +167,7 @@ export function buildRequest(options) {
|
|
|
165
167
|
method,
|
|
166
168
|
pathName
|
|
167
169
|
} = operationRaw;
|
|
168
|
-
|
|
170
|
+
baseURL = (_baseURL = baseURL) !== null && _baseURL !== void 0 ? _baseURL : baseUrl({
|
|
169
171
|
spec,
|
|
170
172
|
scheme,
|
|
171
173
|
contextUrl,
|
package/lib/execute/index.js
CHANGED
|
@@ -114,6 +114,7 @@ function execute({
|
|
|
114
114
|
|
|
115
115
|
// Build a request, which can be handled by the `http.js` implementation.
|
|
116
116
|
function buildRequest(options) {
|
|
117
|
+
var _baseURL;
|
|
117
118
|
const {
|
|
118
119
|
spec,
|
|
119
120
|
operationId,
|
|
@@ -131,7 +132,8 @@ function buildRequest(options) {
|
|
|
131
132
|
} = options;
|
|
132
133
|
let {
|
|
133
134
|
parameters,
|
|
134
|
-
parameterBuilders
|
|
135
|
+
parameterBuilders,
|
|
136
|
+
baseURL
|
|
135
137
|
} = options;
|
|
136
138
|
const specIsOAS3 = (0, _openapiPredicates.isOpenAPI3)(spec);
|
|
137
139
|
if (!parameterBuilders) {
|
|
@@ -174,7 +176,7 @@ function buildRequest(options) {
|
|
|
174
176
|
method,
|
|
175
177
|
pathName
|
|
176
178
|
} = operationRaw;
|
|
177
|
-
|
|
179
|
+
baseURL = (_baseURL = baseURL) != null ? _baseURL : baseUrl({
|
|
178
180
|
spec,
|
|
179
181
|
scheme,
|
|
180
182
|
contextUrl,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "swagger-client",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.31.0",
|
|
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",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"license": "Apache-2.0",
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@babel/runtime-corejs3": "^7.22.15",
|
|
76
|
-
"@scarf/scarf": "=1.
|
|
76
|
+
"@scarf/scarf": "=1.4.0",
|
|
77
77
|
"@swagger-api/apidom-core": ">=1.0.0-alpha.9 <1.0.0-beta.0",
|
|
78
78
|
"@swagger-api/apidom-error": ">=1.0.0-alpha.9 <1.0.0-beta.0",
|
|
79
79
|
"@swagger-api/apidom-json-pointer": ">=1.0.0-alpha.9 <1.0.0-beta.0",
|