Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const stringify = params => qs.stringify(
cleanDeep(params, { emptyObjects: false, undefinedValues: false }),
{
addQueryPrefix: true,
encoder: str => str.toString().replace(/ /g, '%20').replace(/,/g, '%2C').replace(/:/g, '%3A')
}
)
export const stringify = params => qs.stringify(
cleanDeep(params, { emptyObjects: false, undefinedValues: false }),
{
addQueryPrefix: true,
encoder: str => str.toString().replace(/ /g, '%20').replace(/,/g, '%2C').replace(/:/g, '%3A')
}
)
export const applyCompat = node => {
const renamed = rename(node, key => {
if (key === 'attributes') {
return 'attrs'
}
if (key === 'children') {
return 'childs'
}
return key
})
return omitDeep(clean(renamed), ['type'])
}