@aws-sdk/util-dns 3.972.20 → 3.972.22
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/dist-cjs/index.js +1 -1
- package/dist-es/NodeDnsLookupHostResolver.js +1 -1
- package/dist-es/archive/NodeDnsResolveHostResolver.js +1 -1
- package/dist-types/NodeDnsLookupHostResolver.d.ts +1 -1
- package/dist-types/ts3.4/DnsCache.d.ts +1 -1
- package/dist-types/ts3.4/HostResolver.browser.d.ts +1 -5
- package/dist-types/ts3.4/NodeDnsLookupHostResolver.d.ts +3 -11
- package/dist-types/ts3.4/archive/NodeDnsResolveHostResolver.d.ts +1 -5
- package/dist-types/ts3.4/util/HostAddressEntryCollection.d.ts +1 -3
- package/dist-types/ts3.4/util/HostEntryTable.d.ts +1 -1
- package/package.json +39 -39
package/dist-cjs/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HostAddressType } from "@aws-sdk/types";
|
|
2
|
-
import { ALL, promises as dnsPromises, V4MAPPED } from "dns";
|
|
2
|
+
import { ALL, promises as dnsPromises, V4MAPPED } from "node:dns";
|
|
3
3
|
import { HostEntryTable } from "./util/HostEntryTable";
|
|
4
4
|
const NODE_DNS_FAMILY_TO_HOST_ADDRESS_TYPE = {
|
|
5
5
|
4: HostAddressType.A,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HostAddress, HostResolver as IHostResolver, HostResolverArguments } from "@aws-sdk/types";
|
|
2
|
-
import type { LookupAddress, LookupAllOptions } from "dns";
|
|
2
|
+
import type { LookupAddress, LookupAllOptions } from "node:dns";
|
|
3
3
|
import type { DnsCache } from "./DnsCache";
|
|
4
4
|
/**
|
|
5
5
|
* Node.js dns.lookup() function type used in {@link NodeDnsLookupHostResolver}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
HostAddress,
|
|
3
|
-
HostResolver as IHostResolver,
|
|
4
|
-
HostResolverArguments,
|
|
5
|
-
} from "@aws-sdk/types";
|
|
1
|
+
import { HostAddress, HostResolver as IHostResolver, HostResolverArguments } from "@aws-sdk/types";
|
|
6
2
|
export declare class HostResolver implements IHostResolver {
|
|
7
3
|
resolveAddress(args: HostResolverArguments): Promise<HostAddress[]>;
|
|
8
4
|
reportFailureOnAddress(addr: HostAddress): void;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
HostResolver as IHostResolver,
|
|
4
|
-
HostResolverArguments,
|
|
5
|
-
} from "@aws-sdk/types";
|
|
6
|
-
import { LookupAddress, LookupAllOptions } from "dns";
|
|
1
|
+
import { HostAddress, HostResolver as IHostResolver, HostResolverArguments } from "@aws-sdk/types";
|
|
2
|
+
import { LookupAddress, LookupAllOptions } from "node:dns";
|
|
7
3
|
import { DnsCache } from "./DnsCache";
|
|
8
4
|
interface NodeDnsLookupFn {
|
|
9
5
|
(hostname: string, options: LookupAllOptions): Promise<LookupAddress[]>;
|
|
@@ -20,11 +16,7 @@ export declare class NodeDnsLookupHostResolver implements IHostResolver {
|
|
|
20
16
|
private ttlMs;
|
|
21
17
|
private cache;
|
|
22
18
|
private nodeDnsLookup;
|
|
23
|
-
constructor({
|
|
24
|
-
ttlMs,
|
|
25
|
-
cache,
|
|
26
|
-
nodeDnsLookup,
|
|
27
|
-
}?: NodeDnsLookupHostResolverConfig);
|
|
19
|
+
constructor({ ttlMs, cache, nodeDnsLookup }?: NodeDnsLookupHostResolverConfig);
|
|
28
20
|
resolveAddress(args: HostResolverArguments): Promise<HostAddress[]>;
|
|
29
21
|
reportFailureOnAddress(addr: HostAddress): void;
|
|
30
22
|
purgeCache(args?: HostResolverArguments): void;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
HostAddress,
|
|
3
|
-
HostResolver as IHostResolver,
|
|
4
|
-
HostResolverArguments,
|
|
5
|
-
} from "@aws-sdk/types";
|
|
1
|
+
import { HostAddress, HostResolver as IHostResolver, HostResolverArguments } from "@aws-sdk/types";
|
|
6
2
|
export declare class NodeDnsResolveHostResolver implements IHostResolver {
|
|
7
3
|
resolveAddress(args: HostResolverArguments): Promise<HostAddress[]>;
|
|
8
4
|
reportFailureOnAddress(addr: HostAddress): void;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { DnsCacheEntryCollection } from "../DnsCache";
|
|
2
2
|
import { HostAddressEntry } from "./HostEntry";
|
|
3
|
-
export declare class HostAddressEntryCollection
|
|
4
|
-
implements DnsCacheEntryCollection
|
|
5
|
-
{
|
|
3
|
+
export declare class HostAddressEntryCollection implements DnsCacheEntryCollection {
|
|
6
4
|
data: HostAddressEntry[];
|
|
7
5
|
readonly length: number;
|
|
8
6
|
cycle(collection?: HostAddressEntryCollection): HostAddressEntry;
|
|
@@ -7,7 +7,7 @@ export declare class HostEntryTable implements DnsCache {
|
|
|
7
7
|
set(
|
|
8
8
|
args: HostResolverArguments,
|
|
9
9
|
addresses: HostAddress[],
|
|
10
|
-
nextTimestampToProcessMs: number
|
|
10
|
+
nextTimestampToProcessMs: number,
|
|
11
11
|
): void;
|
|
12
12
|
get(hostName: string): HostEntry | undefined;
|
|
13
13
|
delete(hostName: string): void;
|
package/package.json
CHANGED
|
@@ -1,9 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-dns",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.22",
|
|
4
4
|
"description": "Implementations of DNS host resolvers.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"dns"
|
|
7
|
+
],
|
|
8
|
+
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/util-dns",
|
|
9
|
+
"license": "Apache-2.0",
|
|
10
|
+
"author": {
|
|
11
|
+
"name": "AWS SDK for JavaScript Team",
|
|
12
|
+
"url": "https://aws.amazon.com/sdk-for-javascript/"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
17
|
+
"directory": "packages-internal/util-dns"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist-*/**"
|
|
21
|
+
],
|
|
22
|
+
"sideEffects": false,
|
|
5
23
|
"main": "./dist-cjs/index.js",
|
|
6
24
|
"module": "./dist-es/index.js",
|
|
25
|
+
"browser": {
|
|
26
|
+
"./dist-es/HostResolver": "./dist-es/HostResolver.browser",
|
|
27
|
+
"./dist-es/NodeDnsLookupHostResolver": false,
|
|
28
|
+
"./dist-es/index": "./dist-es/index.browser"
|
|
29
|
+
},
|
|
30
|
+
"types": "./dist-types/index.d.ts",
|
|
31
|
+
"typesVersions": {
|
|
32
|
+
"<4.5": {
|
|
33
|
+
"types/*": [
|
|
34
|
+
"types/ts3.4/*"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"react-native": {
|
|
39
|
+
"./dist-es/index": "./dist-es/index.browser",
|
|
40
|
+
"./dist-es/HostResolver": "./dist-es/HostResolver.browser",
|
|
41
|
+
"./dist-es/NodeDnsLookupHostResolver": false
|
|
42
|
+
},
|
|
7
43
|
"scripts": {
|
|
8
44
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
9
45
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
@@ -17,17 +53,8 @@
|
|
|
17
53
|
"test:browser": "yarn g:vitest run -c vitest.config.browser.mts",
|
|
18
54
|
"test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.mts"
|
|
19
55
|
},
|
|
20
|
-
"keywords": [
|
|
21
|
-
"dns"
|
|
22
|
-
],
|
|
23
|
-
"sideEffects": false,
|
|
24
|
-
"author": {
|
|
25
|
-
"name": "AWS SDK for JavaScript Team",
|
|
26
|
-
"url": "https://aws.amazon.com/sdk-for-javascript/"
|
|
27
|
-
},
|
|
28
|
-
"license": "Apache-2.0",
|
|
29
56
|
"dependencies": {
|
|
30
|
-
"@aws-sdk/types": "^3.974.
|
|
57
|
+
"@aws-sdk/types": "^3.974.3",
|
|
31
58
|
"tslib": "^2.6.2"
|
|
32
59
|
},
|
|
33
60
|
"devDependencies": {
|
|
@@ -36,36 +63,9 @@
|
|
|
36
63
|
"concurrently": "7.0.0",
|
|
37
64
|
"downlevel-dts": "0.10.1",
|
|
38
65
|
"premove": "4.0.0",
|
|
39
|
-
"typescript": "~
|
|
66
|
+
"typescript": "~6.0.3"
|
|
40
67
|
},
|
|
41
|
-
"types": "./dist-types/index.d.ts",
|
|
42
68
|
"engines": {
|
|
43
69
|
"node": ">= 14.0.0"
|
|
44
|
-
},
|
|
45
|
-
"typesVersions": {
|
|
46
|
-
"<4.5": {
|
|
47
|
-
"types/*": [
|
|
48
|
-
"types/ts3.4/*"
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"files": [
|
|
53
|
-
"dist-*/**"
|
|
54
|
-
],
|
|
55
|
-
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/util-dns",
|
|
56
|
-
"repository": {
|
|
57
|
-
"type": "git",
|
|
58
|
-
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
59
|
-
"directory": "packages-internal/util-dns"
|
|
60
|
-
},
|
|
61
|
-
"browser": {
|
|
62
|
-
"./dist-es/HostResolver": "./dist-es/HostResolver.browser",
|
|
63
|
-
"./dist-es/NodeDnsLookupHostResolver": false,
|
|
64
|
-
"./dist-es/index": "./dist-es/index.browser"
|
|
65
|
-
},
|
|
66
|
-
"react-native": {
|
|
67
|
-
"./dist-es/index": "./dist-es/index.browser",
|
|
68
|
-
"./dist-es/HostResolver": "./dist-es/HostResolver.browser",
|
|
69
|
-
"./dist-es/NodeDnsLookupHostResolver": false
|
|
70
70
|
}
|
|
71
71
|
}
|