axios 1.18.1 → 1.19.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 +64 -0
- package/dist/axios.js +352 -92
- package/dist/axios.min.js +3 -3
- package/dist/axios.min.js.map +1 -1
- package/dist/browser/axios.cjs +420 -97
- package/dist/esm/axios.js +420 -97
- package/dist/esm/axios.min.js +2 -2
- package/dist/esm/axios.min.js.map +1 -1
- package/dist/node/axios.cjs +474 -114
- package/index.d.cts +98 -74
- package/index.d.ts +96 -68
- package/lib/adapters/http.js +7 -18
- package/lib/core/Axios.js +24 -6
- package/lib/core/AxiosError.js +33 -2
- package/lib/core/AxiosHeaders.js +124 -1
- package/lib/core/buildFullPath.js +45 -7
- package/lib/core/mergeConfig.js +18 -3
- package/lib/core/setFormDataHeaders.js +27 -0
- package/lib/env/data.js +1 -1
- package/lib/helpers/HttpStatusCode.js +1 -0
- package/lib/helpers/combineURLs.js +11 -3
- package/lib/helpers/composeSignals.js +12 -1
- package/lib/helpers/estimateDataURLDecodedBytes.js +115 -54
- package/lib/helpers/formDataToJSON.js +11 -5
- package/lib/helpers/parseHeaders.js +5 -3
- package/lib/helpers/progressEventReducer.js +3 -3
- package/lib/helpers/resolveConfig.js +1 -15
- package/lib/helpers/shouldBypassProxy.js +120 -1
- package/lib/helpers/toFormData.js +3 -2
- package/lib/platform/node/classes/Buffer.js +11 -0
- package/lib/utils.js +17 -5
- package/package.json +21 -19
package/README.md
CHANGED
|
@@ -296,6 +296,67 @@
|
|
|
296
296
|
</p>
|
|
297
297
|
</td>
|
|
298
298
|
</tr>
|
|
299
|
+
<tr width="33.333333333333336%">
|
|
300
|
+
<td align="center" width="33.333333333333336%">
|
|
301
|
+
<a
|
|
302
|
+
href="https://www.jbo88b.com/vn/?utm_source=axios_docs_website&utm_medium=website&utm_campaign=axios_open_collective_sponsorship"
|
|
303
|
+
style="padding: 10px; display: inline-block"
|
|
304
|
+
target="_blank"
|
|
305
|
+
>
|
|
306
|
+
<img
|
|
307
|
+
width="71px"
|
|
308
|
+
height="70px"
|
|
309
|
+
src="https://images.opencollective.com/jbo-vietnam/3fc6159/avatar.png"
|
|
310
|
+
alt="JBO Vietnam"
|
|
311
|
+
/>
|
|
312
|
+
</a>
|
|
313
|
+
<p
|
|
314
|
+
align="center"
|
|
315
|
+
>
|
|
316
|
+
JBO Vietnam is a prominent online entertainment brand in Vietnam, offering sports betting, esports, online casino games, and a wide range of other exciting games.
|
|
317
|
+
</p>
|
|
318
|
+
<p align="center">
|
|
319
|
+
<a
|
|
320
|
+
href="https://www.jbo88b.com/vn/?utm_source=axios_docs_website&utm_medium=website&utm_campaign=axios_open_collective_sponsorship"
|
|
321
|
+
target="_blank"
|
|
322
|
+
><b>jbo88b.com</b></a
|
|
323
|
+
>
|
|
324
|
+
</p>
|
|
325
|
+
</td>
|
|
326
|
+
<td align="center" width="33.333333333333336%">
|
|
327
|
+
<a
|
|
328
|
+
href="https://www.jbo579.com/th/?utm_source=axios_docs_website&utm_medium=website&utm_campaign=axios_open_collective_sponsorship"
|
|
329
|
+
style="padding: 10px; display: inline-block"
|
|
330
|
+
target="_blank"
|
|
331
|
+
>
|
|
332
|
+
<img
|
|
333
|
+
width="71px"
|
|
334
|
+
height="70px"
|
|
335
|
+
src="https://images.opencollective.com/jbo-thailand/d17e84f/avatar.png"
|
|
336
|
+
alt="JBO Thailand"
|
|
337
|
+
/>
|
|
338
|
+
</a>
|
|
339
|
+
<p
|
|
340
|
+
align="center"
|
|
341
|
+
>
|
|
342
|
+
JBO Thailand is a prominent online entertainment brand in Thailand, offering sports betting, esports, online casino games, and a wide range of other exciting games.
|
|
343
|
+
</p>
|
|
344
|
+
<p align="center">
|
|
345
|
+
<a
|
|
346
|
+
href="https://www.jbo579.com/th/?utm_source=axios_docs_website&utm_medium=website&utm_campaign=axios_open_collective_sponsorship"
|
|
347
|
+
target="_blank"
|
|
348
|
+
><b>jbo88b.com</b></a
|
|
349
|
+
>
|
|
350
|
+
</p>
|
|
351
|
+
</td>
|
|
352
|
+
<td align="center" width="33.333333333333336%">
|
|
353
|
+
<a
|
|
354
|
+
href="https://opencollective.com/axios/contribute"
|
|
355
|
+
target="_blank"
|
|
356
|
+
>💜 Become a sponsor</a
|
|
357
|
+
>
|
|
358
|
+
</td>
|
|
359
|
+
</tr>
|
|
299
360
|
</table>
|
|
300
361
|
|
|
301
362
|
<!--<div>marker</div>-->
|
|
@@ -699,6 +760,9 @@ These config options are available for requests. Only `url` is required. Request
|
|
|
699
760
|
// Axios prepends `baseURL` to `url` unless `url` is absolute and `allowAbsoluteUrls` is set to true.
|
|
700
761
|
// It can be convenient to set `baseURL` for an instance of axios to pass relative URLs
|
|
701
762
|
// to the methods of that instance.
|
|
763
|
+
// `baseURL` is not a security boundary. If `url` is attacker-controlled, validate it
|
|
764
|
+
// before passing it to axios. Relative URLs can contain `..` segments that resolve
|
|
765
|
+
// outside an intended path prefix after the final URL is parsed.
|
|
702
766
|
baseURL: 'https://some-domain.com/api/',
|
|
703
767
|
|
|
704
768
|
// `allowAbsoluteUrls` determines whether or not absolute URLs will override a configured `baseUrl`.
|