@fedify/webfinger 2.1.0-dev.403 → 2.1.0-dev.406

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/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/webfinger",
3
- "version": "2.1.0-dev.403+0ce42c7c",
3
+ "version": "2.1.0-dev.406+61a21e4e",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./src/mod.ts"
@@ -1405,7 +1405,7 @@ var esm_default = FetchMock_default;
1405
1405
  //#endregion
1406
1406
  //#region deno.json
1407
1407
  var name = "@fedify/webfinger";
1408
- var version = "2.1.0-dev.403+0ce42c7c";
1408
+ var version = "2.1.0-dev.406+61a21e4e";
1409
1409
  var license = "MIT";
1410
1410
  var exports$1 = { ".": "./src/mod.ts" };
1411
1411
  var description = "WebFinger client library for Fedify";
@@ -1407,7 +1407,7 @@ var esm_default = FetchMock_default;
1407
1407
  //#endregion
1408
1408
  //#region deno.json
1409
1409
  var name = "@fedify/webfinger";
1410
- var version = "2.1.0-dev.403+0ce42c7c";
1410
+ var version = "2.1.0-dev.406+61a21e4e";
1411
1411
  var license = "MIT";
1412
1412
  var exports = { ".": "./src/mod.ts" };
1413
1413
  var description = "WebFinger client library for Fedify";
package/dist/mod.cjs CHANGED
@@ -27,7 +27,7 @@ const __opentelemetry_api = __toESM(require("@opentelemetry/api"));
27
27
 
28
28
  //#region deno.json
29
29
  var name = "@fedify/webfinger";
30
- var version = "2.1.0-dev.403+0ce42c7c";
30
+ var version = "2.1.0-dev.406+61a21e4e";
31
31
  var license = "MIT";
32
32
  var exports$1 = { ".": "./src/mod.ts" };
33
33
  var description = "WebFinger client library for Fedify";
package/dist/mod.d.cts CHANGED
@@ -3,110 +3,110 @@ import { TracerProvider } from "@opentelemetry/api";
3
3
 
4
4
  //#region src/jrd.d.ts
5
5
  /**
6
- * Describes a resource. See also
7
- * [RFC 7033 section 4.4](https://datatracker.ietf.org/doc/html/rfc7033#section-4.4).
8
- */
6
+ * Describes a resource. See also
7
+ * [RFC 7033 section 4.4](https://datatracker.ietf.org/doc/html/rfc7033#section-4.4).
8
+ */
9
9
  interface ResourceDescriptor {
10
10
  /**
11
- * A URI that identifies the entity that this descriptor describes.
12
- */
11
+ * A URI that identifies the entity that this descriptor describes.
12
+ */
13
13
  readonly subject?: string;
14
14
  /**
15
- * URIs that identify the same entity as the `subject`.
16
- */
15
+ * URIs that identify the same entity as the `subject`.
16
+ */
17
17
  readonly aliases?: readonly string[];
18
18
  /**
19
- * Conveys additional information about the `subject` of this descriptor.
20
- */
19
+ * Conveys additional information about the `subject` of this descriptor.
20
+ */
21
21
  readonly properties?: Readonly<Record<string, string>>;
22
22
  /**
23
- * Links to other resources.
24
- */
23
+ * Links to other resources.
24
+ */
25
25
  readonly links?: readonly Link[];
26
26
  }
27
27
  /**
28
- * Represents a link. See also
29
- * [RFC 7033 section 4.4.4](https://datatracker.ietf.org/doc/html/rfc7033#section-4.4.4).
30
- */
28
+ * Represents a link. See also
29
+ * [RFC 7033 section 4.4.4](https://datatracker.ietf.org/doc/html/rfc7033#section-4.4.4).
30
+ */
31
31
  interface Link {
32
32
  /**
33
- * The link's relation type, which is either a URI or a registered relation
34
- * type (see [RFC 5988](https://datatracker.ietf.org/doc/html/rfc5988)).
35
- */
33
+ * The link's relation type, which is either a URI or a registered relation
34
+ * type (see [RFC 5988](https://datatracker.ietf.org/doc/html/rfc5988)).
35
+ */
36
36
  readonly rel: string;
37
37
  /**
38
- * The media type of the target resource (see
39
- * [RFC 6838](https://datatracker.ietf.org/doc/html/rfc6838)).
40
- */
38
+ * The media type of the target resource (see
39
+ * [RFC 6838](https://datatracker.ietf.org/doc/html/rfc6838)).
40
+ */
41
41
  readonly type?: string;
42
42
  /**
43
- * A URI pointing to the target resource.
44
- */
43
+ * A URI pointing to the target resource.
44
+ */
45
45
  readonly href?: string;
46
46
  /**
47
- * Human-readable titles describing the link relation. If the language is
48
- * unknown or unspecified, the key is `"und"`.
49
- */
47
+ * Human-readable titles describing the link relation. If the language is
48
+ * unknown or unspecified, the key is `"und"`.
49
+ */
50
50
  readonly titles?: Readonly<Record<string, string>>;
51
51
  /**
52
- * Conveys additional information about the link relation.
53
- */
52
+ * Conveys additional information about the link relation.
53
+ */
54
54
  readonly properties?: Readonly<Record<string, string>>;
55
55
  /**
56
- * A URI Template (RFC 6570) that can be used to construct URIs by
57
- * substituting variables. Used primarily for subscription endpoints
58
- * where parameters like account URIs need to be dynamically inserted.
59
- * @since 1.9.0
60
- */
56
+ * A URI Template (RFC 6570) that can be used to construct URIs by
57
+ * substituting variables. Used primarily for subscription endpoints
58
+ * where parameters like account URIs need to be dynamically inserted.
59
+ * @since 1.9.0
60
+ */
61
61
  readonly template?: string;
62
62
  }
63
63
  //#endregion
64
64
  //#region src/lookup.d.ts
65
65
  /**
66
- * Options for {@link lookupWebFinger}.
67
- * @since 1.3.0
68
- */
66
+ * Options for {@link lookupWebFinger}.
67
+ * @since 1.3.0
68
+ */
69
69
  interface LookupWebFingerOptions {
70
70
  /**
71
- * The options for making `User-Agent` header.
72
- * If a string is given, it is used as the `User-Agent` header value.
73
- * If an object is given, it is passed to {@link getUserAgent} to generate
74
- * the `User-Agent` header value.
75
- */
71
+ * The options for making `User-Agent` header.
72
+ * If a string is given, it is used as the `User-Agent` header value.
73
+ * If an object is given, it is passed to {@link getUserAgent} to generate
74
+ * the `User-Agent` header value.
75
+ */
76
76
  userAgent?: GetUserAgentOptions | string;
77
77
  /**
78
- * Whether to allow private IP addresses in the URL.
79
- *
80
- * Mostly useful for testing purposes. *Do not use this in production.*
81
- *
82
- * Turned off by default.
83
- * @since 1.4.0
84
- */
78
+ * Whether to allow private IP addresses in the URL.
79
+ *
80
+ * Mostly useful for testing purposes. *Do not use this in production.*
81
+ *
82
+ * Turned off by default.
83
+ * @since 1.4.0
84
+ */
85
85
  allowPrivateAddress?: boolean;
86
86
  /**
87
- * The maximum number of redirections to follow.
88
- * @default `5`
89
- * @since 1.8.0
90
- */
87
+ * The maximum number of redirections to follow.
88
+ * @default `5`
89
+ * @since 1.8.0
90
+ */
91
91
  maxRedirection?: number;
92
92
  /**
93
- * The OpenTelemetry tracer provider. If omitted, the global tracer provider
94
- * is used.
95
- */
93
+ * The OpenTelemetry tracer provider. If omitted, the global tracer provider
94
+ * is used.
95
+ */
96
96
  tracerProvider?: TracerProvider;
97
97
  /**
98
- * AbortSignal for cancelling the request.
99
- * @since 1.8.0
100
- */
98
+ * AbortSignal for cancelling the request.
99
+ * @since 1.8.0
100
+ */
101
101
  signal?: AbortSignal;
102
102
  }
103
103
  /**
104
- * Looks up a WebFinger resource.
105
- * @param resource The resource URL to look up.
106
- * @param options Extra options for looking up the resource.
107
- * @returns The resource descriptor, or `null` if not found.
108
- * @since 0.2.0
109
- */
104
+ * Looks up a WebFinger resource.
105
+ * @param resource The resource URL to look up.
106
+ * @param options Extra options for looking up the resource.
107
+ * @returns The resource descriptor, or `null` if not found.
108
+ * @since 0.2.0
109
+ */
110
110
  declare function lookupWebFinger(resource: URL | string, options?: LookupWebFingerOptions): Promise<ResourceDescriptor | null>;
111
111
  //#endregion
112
112
  export { Link, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger };
package/dist/mod.d.ts CHANGED
@@ -3,110 +3,110 @@ import { TracerProvider } from "@opentelemetry/api";
3
3
 
4
4
  //#region src/jrd.d.ts
5
5
  /**
6
- * Describes a resource. See also
7
- * [RFC 7033 section 4.4](https://datatracker.ietf.org/doc/html/rfc7033#section-4.4).
8
- */
6
+ * Describes a resource. See also
7
+ * [RFC 7033 section 4.4](https://datatracker.ietf.org/doc/html/rfc7033#section-4.4).
8
+ */
9
9
  interface ResourceDescriptor {
10
10
  /**
11
- * A URI that identifies the entity that this descriptor describes.
12
- */
11
+ * A URI that identifies the entity that this descriptor describes.
12
+ */
13
13
  readonly subject?: string;
14
14
  /**
15
- * URIs that identify the same entity as the `subject`.
16
- */
15
+ * URIs that identify the same entity as the `subject`.
16
+ */
17
17
  readonly aliases?: readonly string[];
18
18
  /**
19
- * Conveys additional information about the `subject` of this descriptor.
20
- */
19
+ * Conveys additional information about the `subject` of this descriptor.
20
+ */
21
21
  readonly properties?: Readonly<Record<string, string>>;
22
22
  /**
23
- * Links to other resources.
24
- */
23
+ * Links to other resources.
24
+ */
25
25
  readonly links?: readonly Link[];
26
26
  }
27
27
  /**
28
- * Represents a link. See also
29
- * [RFC 7033 section 4.4.4](https://datatracker.ietf.org/doc/html/rfc7033#section-4.4.4).
30
- */
28
+ * Represents a link. See also
29
+ * [RFC 7033 section 4.4.4](https://datatracker.ietf.org/doc/html/rfc7033#section-4.4.4).
30
+ */
31
31
  interface Link {
32
32
  /**
33
- * The link's relation type, which is either a URI or a registered relation
34
- * type (see [RFC 5988](https://datatracker.ietf.org/doc/html/rfc5988)).
35
- */
33
+ * The link's relation type, which is either a URI or a registered relation
34
+ * type (see [RFC 5988](https://datatracker.ietf.org/doc/html/rfc5988)).
35
+ */
36
36
  readonly rel: string;
37
37
  /**
38
- * The media type of the target resource (see
39
- * [RFC 6838](https://datatracker.ietf.org/doc/html/rfc6838)).
40
- */
38
+ * The media type of the target resource (see
39
+ * [RFC 6838](https://datatracker.ietf.org/doc/html/rfc6838)).
40
+ */
41
41
  readonly type?: string;
42
42
  /**
43
- * A URI pointing to the target resource.
44
- */
43
+ * A URI pointing to the target resource.
44
+ */
45
45
  readonly href?: string;
46
46
  /**
47
- * Human-readable titles describing the link relation. If the language is
48
- * unknown or unspecified, the key is `"und"`.
49
- */
47
+ * Human-readable titles describing the link relation. If the language is
48
+ * unknown or unspecified, the key is `"und"`.
49
+ */
50
50
  readonly titles?: Readonly<Record<string, string>>;
51
51
  /**
52
- * Conveys additional information about the link relation.
53
- */
52
+ * Conveys additional information about the link relation.
53
+ */
54
54
  readonly properties?: Readonly<Record<string, string>>;
55
55
  /**
56
- * A URI Template (RFC 6570) that can be used to construct URIs by
57
- * substituting variables. Used primarily for subscription endpoints
58
- * where parameters like account URIs need to be dynamically inserted.
59
- * @since 1.9.0
60
- */
56
+ * A URI Template (RFC 6570) that can be used to construct URIs by
57
+ * substituting variables. Used primarily for subscription endpoints
58
+ * where parameters like account URIs need to be dynamically inserted.
59
+ * @since 1.9.0
60
+ */
61
61
  readonly template?: string;
62
62
  }
63
63
  //#endregion
64
64
  //#region src/lookup.d.ts
65
65
  /**
66
- * Options for {@link lookupWebFinger}.
67
- * @since 1.3.0
68
- */
66
+ * Options for {@link lookupWebFinger}.
67
+ * @since 1.3.0
68
+ */
69
69
  interface LookupWebFingerOptions {
70
70
  /**
71
- * The options for making `User-Agent` header.
72
- * If a string is given, it is used as the `User-Agent` header value.
73
- * If an object is given, it is passed to {@link getUserAgent} to generate
74
- * the `User-Agent` header value.
75
- */
71
+ * The options for making `User-Agent` header.
72
+ * If a string is given, it is used as the `User-Agent` header value.
73
+ * If an object is given, it is passed to {@link getUserAgent} to generate
74
+ * the `User-Agent` header value.
75
+ */
76
76
  userAgent?: GetUserAgentOptions | string;
77
77
  /**
78
- * Whether to allow private IP addresses in the URL.
79
- *
80
- * Mostly useful for testing purposes. *Do not use this in production.*
81
- *
82
- * Turned off by default.
83
- * @since 1.4.0
84
- */
78
+ * Whether to allow private IP addresses in the URL.
79
+ *
80
+ * Mostly useful for testing purposes. *Do not use this in production.*
81
+ *
82
+ * Turned off by default.
83
+ * @since 1.4.0
84
+ */
85
85
  allowPrivateAddress?: boolean;
86
86
  /**
87
- * The maximum number of redirections to follow.
88
- * @default `5`
89
- * @since 1.8.0
90
- */
87
+ * The maximum number of redirections to follow.
88
+ * @default `5`
89
+ * @since 1.8.0
90
+ */
91
91
  maxRedirection?: number;
92
92
  /**
93
- * The OpenTelemetry tracer provider. If omitted, the global tracer provider
94
- * is used.
95
- */
93
+ * The OpenTelemetry tracer provider. If omitted, the global tracer provider
94
+ * is used.
95
+ */
96
96
  tracerProvider?: TracerProvider;
97
97
  /**
98
- * AbortSignal for cancelling the request.
99
- * @since 1.8.0
100
- */
98
+ * AbortSignal for cancelling the request.
99
+ * @since 1.8.0
100
+ */
101
101
  signal?: AbortSignal;
102
102
  }
103
103
  /**
104
- * Looks up a WebFinger resource.
105
- * @param resource The resource URL to look up.
106
- * @param options Extra options for looking up the resource.
107
- * @returns The resource descriptor, or `null` if not found.
108
- * @since 0.2.0
109
- */
104
+ * Looks up a WebFinger resource.
105
+ * @param resource The resource URL to look up.
106
+ * @param options Extra options for looking up the resource.
107
+ * @returns The resource descriptor, or `null` if not found.
108
+ * @since 0.2.0
109
+ */
110
110
  declare function lookupWebFinger(resource: URL | string, options?: LookupWebFingerOptions): Promise<ResourceDescriptor | null>;
111
111
  //#endregion
112
112
  export { Link, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger };
package/dist/mod.js CHANGED
@@ -4,7 +4,7 @@ import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
4
4
 
5
5
  //#region deno.json
6
6
  var name = "@fedify/webfinger";
7
- var version = "2.1.0-dev.403+0ce42c7c";
7
+ var version = "2.1.0-dev.406+61a21e4e";
8
8
  var license = "MIT";
9
9
  var exports = { ".": "./src/mod.ts" };
10
10
  var description = "WebFinger client library for Fedify";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/webfinger",
3
- "version": "2.1.0-dev.403+0ce42c7c",
3
+ "version": "2.1.0-dev.406+61a21e4e",
4
4
  "homepage": "https://fedify.dev/",
5
5
  "repository": {
6
6
  "type": "git",
@@ -60,7 +60,7 @@
60
60
  "@logtape/logtape": "^2.0.0",
61
61
  "@opentelemetry/api": "^1.9.0",
62
62
  "es-toolkit": "1.43.0",
63
- "@fedify/vocab-runtime": "2.1.0-dev.403+0ce42c7c"
63
+ "@fedify/vocab-runtime": "2.1.0-dev.406+61a21e4e"
64
64
  },
65
65
  "scripts": {
66
66
  "build:self": "tsdown",
package/tsdown.config.ts CHANGED
@@ -5,7 +5,7 @@ import { defineConfig } from "tsdown";
5
5
  export default [
6
6
  defineConfig({
7
7
  entry: ["src/mod.ts"],
8
- dts: true,
8
+ dts: { compilerOptions: { isolatedDeclarations: true, declaration: true } },
9
9
  format: ["esm", "cjs"],
10
10
  platform: "node",
11
11
  external: [/^node:/],