tahamajs/IE / Projects /front /node_modules /axios /lib /helpers /toURLEncodedForm.js
tahamajs's picture
download
raw
542 Bytes
'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,
});
}

Xet Storage Details

Size:
542 Bytes
·
Xet hash:
748710f848d6c7c3a274d905eb5bfbf033294821c7210404005374e91428d870

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.