This commit is contained in:
wuxu
2026-03-31 17:51:43 +08:00
commit 8d726651e2
4756 changed files with 984942 additions and 0 deletions

19
node_modules/axios/lib/helpers/toURLEncodedForm.js generated vendored Normal file
View File

@@ -0,0 +1,19 @@
'use strict';
import utils from '../utils.js';
import toFormData from './toFormData.js';
import platform from '../platform/index.js';
export default function toURLEncodedForm(data, options) {
return toFormData(data, new platform.classes.URLSearchParams(), {
visitor: function (value, key, path, helpers) {
if (platform.isNode && utils.isBuffer(value)) {
this.append(key, value.toString('base64'));
return false;
}
return helpers.defaultVisitor.apply(this, arguments);
},
...options,
});
}