Hello, Do you think could be possible to expose a more affordable interface in order to make it easy to accommodate any project using `got`? This is the thing I have on mind: ```js const got = require('@ctrl/cloudflare')(require('got') ``` Internally it can do the thing suggested on the readme: ```js const decorator = got = async (...opts) => { let res try { res = await got(...opts); } catch (error) { res = await catchCloudflare(error, ...opts); } if (res) return res throw error } ``` In fact, that could be a good moment to create `cookieJar` is it isn't been passed as a parameter. Feeling something like this could reduce the friction of adopting the library a lot. Thoughts? 🙂
Hello,
Do you think could be possible to expose a more affordable interface in order to make it easy to accommodate any project using
got?This is the thing I have on mind:
Internally it can do the thing suggested on the readme:
In fact, that could be a good moment to create
cookieJaris it isn't been passed as a parameter.Feeling something like this could reduce the friction of adopting the library a lot. Thoughts? 🙂