tangerine 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -286,6 +286,8 @@ class Resolver extends dns.promises.Resolver {
|
|
|
286
286
|
// if `cache: false` then caching is disabled
|
|
287
287
|
// but note that this doesn't disable `got` dnsCache which is separate
|
|
288
288
|
// so to turn that off, you need to supply `dnsCache: undefined` in `got` object (?)
|
|
289
|
+
if (this.options.cache === true) this.options.cache = new Map();
|
|
290
|
+
|
|
289
291
|
if (this.options.cache instanceof Map) {
|
|
290
292
|
// each of the types have their own Keyv with prefix
|
|
291
293
|
for (const type of this.constructor.TYPES) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tangerine",
|
|
3
3
|
"description": "Tangerine is the best Node.js drop-in replacement for dns.promises.Resolver using DNS over HTTPS (\"DoH\") via undici with built-in retries, timeouts, smart server rotation, AbortControllers, and caching support for multiple backends via Keyv.",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"author": "Forward Email (https://forwardemail.net)",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/forwardemail/tangerine/issues"
|