tangerine 1.5.9 → 1.6.0
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/README.md +1 -1
- package/index.js +3 -2
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
</div>
|
|
16
16
|
<hr />
|
|
17
17
|
<div align="center">
|
|
18
|
-
⚡ <a href="#tangerine-benchmarks"><i><u><strong>AS FAST AS</strong></u></i></a> native <a href="https://nodejs.org/api/dns.html" target="_blank">Node.js <code>dns</code></a>! 🚀 • Supports Node
|
|
18
|
+
⚡ <a href="#tangerine-benchmarks"><i><u><strong>AS FAST AS</strong></u></i></a> native <a href="https://nodejs.org/api/dns.html" target="_blank">Node.js <code>dns</code></a>! 🚀 • Supports Node v17+ with ESM/CJS • Made for <a href="https://forwardemail.net" target="_blank"><strong>Forward Email</strong></a>.
|
|
19
19
|
</div>
|
|
20
20
|
<hr />
|
|
21
21
|
|
package/index.js
CHANGED
|
@@ -17,7 +17,6 @@ const pMap = require('p-map');
|
|
|
17
17
|
const pWaitFor = require('p-wait-for');
|
|
18
18
|
const packet = require('dns-packet');
|
|
19
19
|
const semver = require('semver');
|
|
20
|
-
const structuredClone = require('@ungap/structured-clone').default;
|
|
21
20
|
const { getService } = require('port-numbers');
|
|
22
21
|
const pkg = require('./package.json');
|
|
23
22
|
|
|
@@ -1072,7 +1071,9 @@ class Tangerine extends dns.promises.Resolver {
|
|
|
1072
1071
|
}
|
|
1073
1072
|
|
|
1074
1073
|
debug('request', { url, options });
|
|
1075
|
-
const t = setTimeout(() =>
|
|
1074
|
+
const t = setTimeout(() => {
|
|
1075
|
+
if (!abortController?.signal?.aborted) abortController.abort();
|
|
1076
|
+
}, timeout);
|
|
1076
1077
|
const response = await this.request(url, options);
|
|
1077
1078
|
clearTimeout(t);
|
|
1078
1079
|
return response;
|
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 (with TTL and purge support).",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.6.0",
|
|
5
5
|
"author": "Forward Email (https://forwardemail.net)",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/forwardemail/nodejs-dns-over-https-tangerine/issues"
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
"Forward Email (https://forwardemail.net)"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@ungap/structured-clone": "^1.2.0",
|
|
14
13
|
"auto-bind": "4",
|
|
15
14
|
"dns-packet": "^5.6.1",
|
|
16
15
|
"dohdec": "^5.0.3",
|
|
@@ -57,7 +56,7 @@
|
|
|
57
56
|
"xo": "^0.58.0"
|
|
58
57
|
},
|
|
59
58
|
"engines": {
|
|
60
|
-
"node": ">=
|
|
59
|
+
"node": ">=17"
|
|
61
60
|
},
|
|
62
61
|
"files": [
|
|
63
62
|
"index.js"
|