@gopowerteam/request 0.1.12 → 0.1.13
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/dist/index.cjs +6 -5
- package/dist/index.js +6 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -200,16 +200,17 @@ var _RequestService = class {
|
|
|
200
200
|
options.paramsPath,
|
|
201
201
|
options.service
|
|
202
202
|
);
|
|
203
|
-
const queryString = import_qs.default.stringify(
|
|
204
|
-
|
|
205
|
-
_RequestService.config.qs || {
|
|
203
|
+
const queryString = import_qs.default.stringify(options.paramsQuery, {
|
|
204
|
+
...{
|
|
206
205
|
arrayFormat: "repeat",
|
|
207
206
|
skipNulls: true,
|
|
208
207
|
allowDots: true,
|
|
209
208
|
encodeValuesOnly: true,
|
|
210
209
|
encode: true
|
|
211
|
-
}
|
|
212
|
-
|
|
210
|
+
},
|
|
211
|
+
..._RequestService.config.qs || {},
|
|
212
|
+
addQueryPrefix: true
|
|
213
|
+
});
|
|
213
214
|
return `${baseURL}${pathURL}${queryString}`;
|
|
214
215
|
}
|
|
215
216
|
};
|
package/dist/index.js
CHANGED
|
@@ -159,16 +159,17 @@ var _RequestService = class {
|
|
|
159
159
|
options.paramsPath,
|
|
160
160
|
options.service
|
|
161
161
|
);
|
|
162
|
-
const queryString = qs.stringify(
|
|
163
|
-
|
|
164
|
-
_RequestService.config.qs || {
|
|
162
|
+
const queryString = qs.stringify(options.paramsQuery, {
|
|
163
|
+
...{
|
|
165
164
|
arrayFormat: "repeat",
|
|
166
165
|
skipNulls: true,
|
|
167
166
|
allowDots: true,
|
|
168
167
|
encodeValuesOnly: true,
|
|
169
168
|
encode: true
|
|
170
|
-
}
|
|
171
|
-
|
|
169
|
+
},
|
|
170
|
+
..._RequestService.config.qs || {},
|
|
171
|
+
addQueryPrefix: true
|
|
172
|
+
});
|
|
172
173
|
return `${baseURL}${pathURL}${queryString}`;
|
|
173
174
|
}
|
|
174
175
|
};
|