@dnscmp/types 0.0.1 → 0.0.3
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 +28 -28
- package/index.d.ts +10 -10
- package/package.json +23 -23
package/README.md
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
# @dnscmp/types
|
|
2
|
-
|
|
3
|
-
Shared TypeScript types for the dnscmp packages. No runtime code.
|
|
4
|
-
|
|
5
|
-
## Types
|
|
6
|
-
|
|
7
|
-
### `DnsProvider`
|
|
8
|
-
|
|
9
|
-
Input to [`@dnscmp/core`](../core). Represents a named DNS provider with one or more resolvers (identified by IP) to test.
|
|
10
|
-
|
|
11
|
-
```ts
|
|
12
|
-
interface DnsProvider {
|
|
13
|
-
name: string;
|
|
14
|
-
resolvers: readonly string[];
|
|
15
|
-
}
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
### `DnsResult`
|
|
19
|
-
|
|
20
|
-
Output from [`@dnscmp/core`](../core). Contains the provider name, the fastest resolver IP, and the average query time across tested domains.
|
|
21
|
-
|
|
22
|
-
```ts
|
|
23
|
-
interface DnsResult {
|
|
24
|
-
name: string;
|
|
25
|
-
resolver: string;
|
|
26
|
-
avg: number | null; // null if the provider failed to respond
|
|
27
|
-
}
|
|
28
|
-
```
|
|
1
|
+
# @dnscmp/types
|
|
2
|
+
|
|
3
|
+
Shared TypeScript types for the dnscmp packages. No runtime code.
|
|
4
|
+
|
|
5
|
+
## Types
|
|
6
|
+
|
|
7
|
+
### `DnsProvider`
|
|
8
|
+
|
|
9
|
+
Input to [`@dnscmp/core`](../core). Represents a named DNS provider with one or more resolvers (identified by IP) to test.
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
interface DnsProvider {
|
|
13
|
+
name: string;
|
|
14
|
+
resolvers: readonly string[];
|
|
15
|
+
}
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### `DnsResult`
|
|
19
|
+
|
|
20
|
+
Output from [`@dnscmp/core`](../core). Contains the provider name, the fastest resolver IP, and the average query time across tested domains.
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
interface DnsResult {
|
|
24
|
+
name: string;
|
|
25
|
+
resolver: string;
|
|
26
|
+
avg: number | null; // null if the provider failed to respond
|
|
27
|
+
}
|
|
28
|
+
```
|
package/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface DnsProvider {
|
|
2
|
-
name: string;
|
|
3
|
-
resolvers: readonly string[];
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export interface DnsResult {
|
|
7
|
-
name: string;
|
|
8
|
-
resolver: string;
|
|
9
|
-
avg: number | null;
|
|
10
|
-
}
|
|
1
|
+
export interface DnsProvider {
|
|
2
|
+
name: string;
|
|
3
|
+
resolvers: readonly string[];
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface DnsResult {
|
|
7
|
+
name: string;
|
|
8
|
+
resolver: string;
|
|
9
|
+
avg: number | null;
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@dnscmp/types",
|
|
3
|
-
"description": "Shared TypeScript types for dnscmp packages.",
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"exports": {
|
|
7
|
-
".": "./index.d.ts"
|
|
8
|
-
},
|
|
9
|
-
"files": [
|
|
10
|
-
"index.d.ts"
|
|
11
|
-
],
|
|
12
|
-
"homepage": "https://github.com/oBusk/dnscmp#readme",
|
|
13
|
-
"bugs": {
|
|
14
|
-
"url": "https://github.com/oBusk/dnscmp/issues"
|
|
15
|
-
},
|
|
16
|
-
"repository": {
|
|
17
|
-
"type": "git",
|
|
18
|
-
"url": "git+https://github.com/oBusk/dnscmp",
|
|
19
|
-
"directory": "packages/types"
|
|
20
|
-
},
|
|
21
|
-
"license": "MIT",
|
|
22
|
-
"author": "Oscar Busk (https://github.com/oBusk)"
|
|
23
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@dnscmp/types",
|
|
3
|
+
"description": "Shared TypeScript types for dnscmp packages.",
|
|
4
|
+
"version": "0.0.3",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./index.d.ts"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"index.d.ts"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://github.com/oBusk/dnscmp#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/oBusk/dnscmp/issues"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/oBusk/dnscmp.git",
|
|
19
|
+
"directory": "packages/types"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"author": "Oscar Busk (https://github.com/oBusk)"
|
|
23
|
+
}
|