-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] Add a cacheable-lookup
example
#1
Comments
v1.1.0 released with support for other libraries! https://github.com/forwardemail/tangerine/releases/tag/v1.1.0 see updated README options at https://github.com/forwardemail/tangerine#options and example with |
v1.2.0 released which converts the package to use In v1.2.0 you need to pass your custom request library as I would have done a major semver bump to |
@Kikobeats to answer your question in this issue, yes, your example from above #1 (comment) is accurate! 🎉 The reason being is that |
@Kikobeats we recommend you upgrade to v1.2.0 of |
@Kikobeats see PR szmarczak/cacheable-lookup@3e7889b at szmarczak/cacheable-lookup#77 for docs update there too |
@titanism I think you can drop const got = require('got').extend({
responseType: 'buffer',
decompress: false
})
const tangerine = new Tangerine({
cache: false
}, got) BTW, why you explicitly disabled decompress there? |
I disabled it since I didn't see any popular DoH resolver (e.g. Cloudflare nor Google) using encoded responses. |
Also, I think that we should keep |
@Kikobeats please upgrade to v1.2.2 - this should be a final stable tested released now!!! 🎉 https://github.com/forwardemail/tangerine/releases/tag/v1.2.2 |
In this example:
|
Got should have retries and timeout turned off to work with tangerine. |
According to Got docs, it says there's no default timeout at https://github.com/sindresorhus/got/blob/main/documentation/6-timeout.md. |
The library is mentioned to use it with
cacheable-lookup
has been taking into account.Since
cacheable-lookup
already accepts acache
, what should be a good example, using it with tangerine?Maybe in this way?
The text was updated successfully, but these errors were encountered: