Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
2 lines
308 B
Plaintext
2 lines
308 B
Plaintext
const e=require(`../../utils/format-fields.cjs`);function t(t){return()=>{let n=t();return n.method===`GET`&&n.params&&(n.method=`SEARCH`,n.body=JSON.stringify({query:{...n.params,fields:e.formatFields(n.params.fields??[])}}),delete n.params),n}}exports.withSearch=t;
|
|
//# sourceMappingURL=with-search.cjs.map |