@fedify/webfinger 2.0.0-dev.0 → 2.0.0-dev.158
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 +141 -0
- package/deno.json +1 -1
- package/dist/lookup.test.cjs +143 -5
- package/dist/lookup.test.js +144 -5
- package/dist/mod.cjs +1 -1
- package/dist/mod.js +1 -1
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
<!-- deno-fmt-ignore-file -->
|
|
2
|
+
|
|
3
|
+
@fedify/webfinger: WebFinger client library for ActivityPub
|
|
4
|
+
===========================================================
|
|
5
|
+
|
|
6
|
+
[![JSR][JSR badge]][JSR]
|
|
7
|
+
[![npm][npm badge]][npm]
|
|
8
|
+
|
|
9
|
+
This package provides a WebFinger client implementation for looking up
|
|
10
|
+
ActivityPub actors and other resources in the fediverse. It is part of the
|
|
11
|
+
[Fedify] framework but can be used independently.
|
|
12
|
+
|
|
13
|
+
[JSR]: https://jsr.io/@fedify/webfinger
|
|
14
|
+
[JSR badge]: https://jsr.io/badges/@fedify/webfinger
|
|
15
|
+
[npm]: https://www.npmjs.com/package/@fedify/webfinger
|
|
16
|
+
[npm badge]: https://img.shields.io/npm/v/@fedify/webfinger?logo=npm
|
|
17
|
+
[Fedify]: https://fedify.dev/
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
Features
|
|
21
|
+
--------
|
|
22
|
+
|
|
23
|
+
- WebFinger resource lookup ([RFC 7033])
|
|
24
|
+
- Support for `acct:` URI scheme
|
|
25
|
+
- Automatic HTTPS URL construction
|
|
26
|
+
- Configurable redirect handling
|
|
27
|
+
- OpenTelemetry integration for tracing
|
|
28
|
+
- Private IP address validation for security
|
|
29
|
+
|
|
30
|
+
[RFC 7033]: https://datatracker.ietf.org/doc/html/rfc7033
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
Installation
|
|
34
|
+
------------
|
|
35
|
+
|
|
36
|
+
~~~~ bash
|
|
37
|
+
deno add jsr:@fedify/webfinger # Deno
|
|
38
|
+
npm add @fedify/webfinger # npm
|
|
39
|
+
pnpm add @fedify/webfinger # pnpm
|
|
40
|
+
yarn add @fedify/webfinger # Yarn
|
|
41
|
+
bun add @fedify/webfinger # Bun
|
|
42
|
+
~~~~
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
Usage
|
|
46
|
+
-----
|
|
47
|
+
|
|
48
|
+
### Looking up a WebFinger resource
|
|
49
|
+
|
|
50
|
+
You can look up a WebFinger resource using the `lookupWebFinger()` function:
|
|
51
|
+
|
|
52
|
+
~~~~ typescript
|
|
53
|
+
import { lookupWebFinger } from "@fedify/webfinger";
|
|
54
|
+
|
|
55
|
+
// Look up by acct: URI
|
|
56
|
+
const result = await lookupWebFinger("acct:alice@example.com");
|
|
57
|
+
|
|
58
|
+
// Look up by URL
|
|
59
|
+
const result2 = await lookupWebFinger("https://example.com/users/alice");
|
|
60
|
+
~~~~
|
|
61
|
+
|
|
62
|
+
### Working with the result
|
|
63
|
+
|
|
64
|
+
The result is a `ResourceDescriptor` object containing the subject, aliases,
|
|
65
|
+
properties, and links:
|
|
66
|
+
|
|
67
|
+
~~~~ typescript
|
|
68
|
+
import { lookupWebFinger } from "@fedify/webfinger";
|
|
69
|
+
|
|
70
|
+
const result = await lookupWebFinger("acct:alice@example.com");
|
|
71
|
+
if (result != null) {
|
|
72
|
+
console.log("Subject:", result.subject);
|
|
73
|
+
console.log("Aliases:", result.aliases);
|
|
74
|
+
|
|
75
|
+
// Find the ActivityPub actor URL
|
|
76
|
+
const actorLink = result.links?.find(
|
|
77
|
+
(link) => link.rel === "self" && link.type === "application/activity+json"
|
|
78
|
+
);
|
|
79
|
+
if (actorLink?.href != null) {
|
|
80
|
+
console.log("Actor URL:", actorLink.href);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
~~~~
|
|
84
|
+
|
|
85
|
+
### Configuration options
|
|
86
|
+
|
|
87
|
+
The `lookupWebFinger()` function accepts various options:
|
|
88
|
+
|
|
89
|
+
~~~~ typescript
|
|
90
|
+
import { lookupWebFinger } from "@fedify/webfinger";
|
|
91
|
+
|
|
92
|
+
const result = await lookupWebFinger("acct:alice@example.com", {
|
|
93
|
+
// Custom User-Agent header
|
|
94
|
+
userAgent: "MyApp/1.0",
|
|
95
|
+
|
|
96
|
+
// Maximum redirects to follow (default: 5)
|
|
97
|
+
maxRedirection: 3,
|
|
98
|
+
|
|
99
|
+
// AbortSignal for cancellation
|
|
100
|
+
signal: AbortSignal.timeout(5000),
|
|
101
|
+
});
|
|
102
|
+
~~~~
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
API
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
### Functions
|
|
109
|
+
|
|
110
|
+
- `lookupWebFinger(resource, options?)`: Looks up a WebFinger resource and
|
|
111
|
+
returns a `ResourceDescriptor` or `null` if not found.
|
|
112
|
+
|
|
113
|
+
### Types
|
|
114
|
+
|
|
115
|
+
- `ResourceDescriptor`: Describes a WebFinger resource with subject, aliases,
|
|
116
|
+
properties, and links.
|
|
117
|
+
- `Link`: Represents a link in a WebFinger response with relation type, media
|
|
118
|
+
type, href, titles, and properties.
|
|
119
|
+
- `LookupWebFingerOptions`: Options for the `lookupWebFinger()` function.
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
Documentation
|
|
123
|
+
-------------
|
|
124
|
+
|
|
125
|
+
For comprehensive documentation, please refer to:
|
|
126
|
+
|
|
127
|
+
- [WebFinger documentation](https://fedify.dev/manual/webfinger)
|
|
128
|
+
- [API reference](https://jsr.io/@fedify/webfinger/doc/~)
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
Related packages
|
|
132
|
+
----------------
|
|
133
|
+
|
|
134
|
+
- *@fedify/fedify*: The main Fedify framework
|
|
135
|
+
- *@fedify/vocab*: Activity Vocabulary library
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
License
|
|
139
|
+
-------
|
|
140
|
+
|
|
141
|
+
[MIT License](https://github.com/fedify-dev/fedify/blob/main/LICENSE)
|
package/deno.json
CHANGED
package/dist/lookup.test.cjs
CHANGED
|
@@ -24,13 +24,151 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
}) : target, mod));
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
27
|
-
const
|
|
27
|
+
const __logtape_logtape = __toESM(require("@logtape/logtape"));
|
|
28
|
+
const __opentelemetry_api = __toESM(require("@opentelemetry/api"));
|
|
28
29
|
const es_toolkit = __toESM(require("es-toolkit"));
|
|
29
30
|
const node_assert_strict = __toESM(require("node:assert/strict"));
|
|
30
31
|
const __fedify_vocab_runtime = __toESM(require("@fedify/vocab-runtime"));
|
|
31
|
-
const __logtape_logtape = __toESM(require("@logtape/logtape"));
|
|
32
|
-
const __opentelemetry_api = __toESM(require("@opentelemetry/api"));
|
|
33
32
|
|
|
33
|
+
//#region ../fixture/dist/mod.js
|
|
34
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
35
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
36
|
+
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function.");
|
|
37
|
+
});
|
|
38
|
+
const logger$1 = (0, __logtape_logtape.getLogger)(["fixture", "docloader"]);
|
|
39
|
+
const testDefinitions = [];
|
|
40
|
+
function test(name$1, options, fn) {
|
|
41
|
+
const def = typeof name$1 === "string" ? typeof options === "function" ? {
|
|
42
|
+
name: name$1,
|
|
43
|
+
fn: options
|
|
44
|
+
} : {
|
|
45
|
+
name: name$1,
|
|
46
|
+
...options,
|
|
47
|
+
fn
|
|
48
|
+
} : name$1;
|
|
49
|
+
testDefinitions.push(def);
|
|
50
|
+
if ("Deno" in globalThis) {
|
|
51
|
+
const func = def.fn;
|
|
52
|
+
Deno.test({
|
|
53
|
+
...def,
|
|
54
|
+
async fn(t) {
|
|
55
|
+
const records = [];
|
|
56
|
+
await (0, __logtape_logtape.configure)({
|
|
57
|
+
sinks: {
|
|
58
|
+
buffer(record) {
|
|
59
|
+
if (record.category.length > 1 && record.category[0] === "logtape" && record.category[1] === "meta") return;
|
|
60
|
+
records.push(record);
|
|
61
|
+
},
|
|
62
|
+
console: (0, __logtape_logtape.getConsoleSink)()
|
|
63
|
+
},
|
|
64
|
+
filters: {},
|
|
65
|
+
loggers: [{
|
|
66
|
+
category: [],
|
|
67
|
+
sinks: [Deno.env.get("LOG") === "always" ? "console" : "buffer"]
|
|
68
|
+
}]
|
|
69
|
+
});
|
|
70
|
+
try {
|
|
71
|
+
await func(t);
|
|
72
|
+
} catch (e) {
|
|
73
|
+
const consoleSink = (0, __logtape_logtape.getConsoleSink)();
|
|
74
|
+
for (const record of records) consoleSink(record);
|
|
75
|
+
throw e;
|
|
76
|
+
} finally {
|
|
77
|
+
await (0, __logtape_logtape.reset)();
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
} else if ("Bun" in globalThis) {
|
|
82
|
+
let failed = void 0;
|
|
83
|
+
async function step(defOrNameOrFn, fn$2) {
|
|
84
|
+
let def$1;
|
|
85
|
+
if (typeof defOrNameOrFn === "string") def$1 = {
|
|
86
|
+
name: defOrNameOrFn,
|
|
87
|
+
fn: fn$2
|
|
88
|
+
};
|
|
89
|
+
else if (typeof defOrNameOrFn === "function") def$1 = {
|
|
90
|
+
name: defOrNameOrFn.name,
|
|
91
|
+
fn: defOrNameOrFn
|
|
92
|
+
};
|
|
93
|
+
else def$1 = defOrNameOrFn;
|
|
94
|
+
if (def$1.ignore) return true;
|
|
95
|
+
try {
|
|
96
|
+
await def$1.fn({
|
|
97
|
+
name: def$1.name,
|
|
98
|
+
origin: "",
|
|
99
|
+
step
|
|
100
|
+
});
|
|
101
|
+
} catch (e) {
|
|
102
|
+
failed ??= e;
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
return true;
|
|
106
|
+
}
|
|
107
|
+
const ctx = {
|
|
108
|
+
name: def.name,
|
|
109
|
+
origin: "",
|
|
110
|
+
step
|
|
111
|
+
};
|
|
112
|
+
async function fn$1() {
|
|
113
|
+
await def.fn(ctx);
|
|
114
|
+
if (failed) throw failed;
|
|
115
|
+
}
|
|
116
|
+
const bunTest = Bun.jest(caller()).test;
|
|
117
|
+
if (def.ignore) bunTest.skip(def.name, fn$1);
|
|
118
|
+
else if (def.only) bunTest.only(def.name, fn$1);
|
|
119
|
+
else bunTest(def.name, fn$1);
|
|
120
|
+
} else try {
|
|
121
|
+
const { test: nodeTest } = __require("node:test");
|
|
122
|
+
nodeTest(def.name, {
|
|
123
|
+
only: def.only,
|
|
124
|
+
skip: def.ignore
|
|
125
|
+
}, async (t) => {
|
|
126
|
+
await def.fn(intoDenoTestContext(def.name, t));
|
|
127
|
+
});
|
|
128
|
+
} catch {}
|
|
129
|
+
}
|
|
130
|
+
function intoDenoTestContext(name$1, ctx) {
|
|
131
|
+
async function step(defOrNameOrFn, fn) {
|
|
132
|
+
let def;
|
|
133
|
+
if (typeof defOrNameOrFn === "string") def = {
|
|
134
|
+
name: defOrNameOrFn,
|
|
135
|
+
fn
|
|
136
|
+
};
|
|
137
|
+
else if (typeof defOrNameOrFn === "function") def = {
|
|
138
|
+
name: defOrNameOrFn.name,
|
|
139
|
+
fn: defOrNameOrFn
|
|
140
|
+
};
|
|
141
|
+
else def = defOrNameOrFn;
|
|
142
|
+
let failed = false;
|
|
143
|
+
await ctx.test(def.name, async (ctx2) => {
|
|
144
|
+
try {
|
|
145
|
+
await def.fn(intoDenoTestContext(def.name, ctx2));
|
|
146
|
+
} catch (e) {
|
|
147
|
+
failed = true;
|
|
148
|
+
throw e;
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
return failed;
|
|
152
|
+
}
|
|
153
|
+
const denoCtx = {
|
|
154
|
+
name: name$1,
|
|
155
|
+
origin: ctx.filePath ?? "",
|
|
156
|
+
step
|
|
157
|
+
};
|
|
158
|
+
return denoCtx;
|
|
159
|
+
}
|
|
160
|
+
/** Retrieve caller test file. */
|
|
161
|
+
function caller() {
|
|
162
|
+
const Trace = Error;
|
|
163
|
+
const _ = Trace.prepareStackTrace;
|
|
164
|
+
Trace.prepareStackTrace = (_$1, stack$1) => stack$1;
|
|
165
|
+
const { stack } = /* @__PURE__ */ new Error();
|
|
166
|
+
Trace.prepareStackTrace = _;
|
|
167
|
+
const caller$1 = stack[2];
|
|
168
|
+
return caller$1.getFileName().replaceAll("\\", "/");
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
//#endregion
|
|
34
172
|
//#region ../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js
|
|
35
173
|
var require_glob_to_regexp = __commonJS({ "../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js"(exports, module) {
|
|
36
174
|
module.exports = function(glob$1, opts) {
|
|
@@ -1267,7 +1405,7 @@ var esm_default = FetchMock_default;
|
|
|
1267
1405
|
//#endregion
|
|
1268
1406
|
//#region deno.json
|
|
1269
1407
|
var name = "@fedify/webfinger";
|
|
1270
|
-
var version = "2.0.0";
|
|
1408
|
+
var version = "2.0.0-dev.158+628cd89e";
|
|
1271
1409
|
var license = "MIT";
|
|
1272
1410
|
var exports$1 = { ".": "./src/mod.ts" };
|
|
1273
1411
|
var description = "WebFinger client library for Fedify";
|
|
@@ -1421,7 +1559,7 @@ async function lookupWebFingerInternal(resource, options = {}) {
|
|
|
1421
1559
|
|
|
1422
1560
|
//#endregion
|
|
1423
1561
|
//#region src/lookup.test.ts
|
|
1424
|
-
|
|
1562
|
+
test({
|
|
1425
1563
|
name: "lookupWebFinger()",
|
|
1426
1564
|
sanitizeOps: false,
|
|
1427
1565
|
sanitizeResources: false,
|
package/dist/lookup.test.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import "node:module";
|
|
2
|
-
import {
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
import { configure, getConsoleSink, getLogger, reset } from "@logtape/logtape";
|
|
3
|
+
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
3
4
|
import { withTimeout } from "es-toolkit";
|
|
4
5
|
import { deepStrictEqual } from "node:assert/strict";
|
|
5
6
|
import { UrlError, getUserAgent, validatePublicUrl } from "@fedify/vocab-runtime";
|
|
6
|
-
import { getLogger } from "@logtape/logtape";
|
|
7
|
-
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
8
7
|
|
|
9
8
|
//#region rolldown:runtime
|
|
10
9
|
var __create = Object.create;
|
|
@@ -30,6 +29,146 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
29
|
value: mod,
|
|
31
30
|
enumerable: true
|
|
32
31
|
}) : target, mod));
|
|
32
|
+
var __require$1 = /* @__PURE__ */ createRequire(import.meta.url);
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region ../fixture/dist/mod.js
|
|
36
|
+
var __require = /* @__PURE__ */ ((x) => typeof __require$1 !== "undefined" ? __require$1 : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof __require$1 !== "undefined" ? __require$1 : a)[b] }) : x)(function(x) {
|
|
37
|
+
if (typeof __require$1 !== "undefined") return __require$1.apply(this, arguments);
|
|
38
|
+
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function.");
|
|
39
|
+
});
|
|
40
|
+
const logger$1 = getLogger(["fixture", "docloader"]);
|
|
41
|
+
const testDefinitions = [];
|
|
42
|
+
function test(name$1, options, fn) {
|
|
43
|
+
const def = typeof name$1 === "string" ? typeof options === "function" ? {
|
|
44
|
+
name: name$1,
|
|
45
|
+
fn: options
|
|
46
|
+
} : {
|
|
47
|
+
name: name$1,
|
|
48
|
+
...options,
|
|
49
|
+
fn
|
|
50
|
+
} : name$1;
|
|
51
|
+
testDefinitions.push(def);
|
|
52
|
+
if ("Deno" in globalThis) {
|
|
53
|
+
const func = def.fn;
|
|
54
|
+
Deno.test({
|
|
55
|
+
...def,
|
|
56
|
+
async fn(t) {
|
|
57
|
+
const records = [];
|
|
58
|
+
await configure({
|
|
59
|
+
sinks: {
|
|
60
|
+
buffer(record) {
|
|
61
|
+
if (record.category.length > 1 && record.category[0] === "logtape" && record.category[1] === "meta") return;
|
|
62
|
+
records.push(record);
|
|
63
|
+
},
|
|
64
|
+
console: getConsoleSink()
|
|
65
|
+
},
|
|
66
|
+
filters: {},
|
|
67
|
+
loggers: [{
|
|
68
|
+
category: [],
|
|
69
|
+
sinks: [Deno.env.get("LOG") === "always" ? "console" : "buffer"]
|
|
70
|
+
}]
|
|
71
|
+
});
|
|
72
|
+
try {
|
|
73
|
+
await func(t);
|
|
74
|
+
} catch (e) {
|
|
75
|
+
const consoleSink = getConsoleSink();
|
|
76
|
+
for (const record of records) consoleSink(record);
|
|
77
|
+
throw e;
|
|
78
|
+
} finally {
|
|
79
|
+
await reset();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
} else if ("Bun" in globalThis) {
|
|
84
|
+
let failed = void 0;
|
|
85
|
+
async function step(defOrNameOrFn, fn$2) {
|
|
86
|
+
let def$1;
|
|
87
|
+
if (typeof defOrNameOrFn === "string") def$1 = {
|
|
88
|
+
name: defOrNameOrFn,
|
|
89
|
+
fn: fn$2
|
|
90
|
+
};
|
|
91
|
+
else if (typeof defOrNameOrFn === "function") def$1 = {
|
|
92
|
+
name: defOrNameOrFn.name,
|
|
93
|
+
fn: defOrNameOrFn
|
|
94
|
+
};
|
|
95
|
+
else def$1 = defOrNameOrFn;
|
|
96
|
+
if (def$1.ignore) return true;
|
|
97
|
+
try {
|
|
98
|
+
await def$1.fn({
|
|
99
|
+
name: def$1.name,
|
|
100
|
+
origin: "",
|
|
101
|
+
step
|
|
102
|
+
});
|
|
103
|
+
} catch (e) {
|
|
104
|
+
failed ??= e;
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
109
|
+
const ctx = {
|
|
110
|
+
name: def.name,
|
|
111
|
+
origin: "",
|
|
112
|
+
step
|
|
113
|
+
};
|
|
114
|
+
async function fn$1() {
|
|
115
|
+
await def.fn(ctx);
|
|
116
|
+
if (failed) throw failed;
|
|
117
|
+
}
|
|
118
|
+
const bunTest = Bun.jest(caller()).test;
|
|
119
|
+
if (def.ignore) bunTest.skip(def.name, fn$1);
|
|
120
|
+
else if (def.only) bunTest.only(def.name, fn$1);
|
|
121
|
+
else bunTest(def.name, fn$1);
|
|
122
|
+
} else try {
|
|
123
|
+
const { test: nodeTest } = __require("node:test");
|
|
124
|
+
nodeTest(def.name, {
|
|
125
|
+
only: def.only,
|
|
126
|
+
skip: def.ignore
|
|
127
|
+
}, async (t) => {
|
|
128
|
+
await def.fn(intoDenoTestContext(def.name, t));
|
|
129
|
+
});
|
|
130
|
+
} catch {}
|
|
131
|
+
}
|
|
132
|
+
function intoDenoTestContext(name$1, ctx) {
|
|
133
|
+
async function step(defOrNameOrFn, fn) {
|
|
134
|
+
let def;
|
|
135
|
+
if (typeof defOrNameOrFn === "string") def = {
|
|
136
|
+
name: defOrNameOrFn,
|
|
137
|
+
fn
|
|
138
|
+
};
|
|
139
|
+
else if (typeof defOrNameOrFn === "function") def = {
|
|
140
|
+
name: defOrNameOrFn.name,
|
|
141
|
+
fn: defOrNameOrFn
|
|
142
|
+
};
|
|
143
|
+
else def = defOrNameOrFn;
|
|
144
|
+
let failed = false;
|
|
145
|
+
await ctx.test(def.name, async (ctx2) => {
|
|
146
|
+
try {
|
|
147
|
+
await def.fn(intoDenoTestContext(def.name, ctx2));
|
|
148
|
+
} catch (e) {
|
|
149
|
+
failed = true;
|
|
150
|
+
throw e;
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
return failed;
|
|
154
|
+
}
|
|
155
|
+
const denoCtx = {
|
|
156
|
+
name: name$1,
|
|
157
|
+
origin: ctx.filePath ?? "",
|
|
158
|
+
step
|
|
159
|
+
};
|
|
160
|
+
return denoCtx;
|
|
161
|
+
}
|
|
162
|
+
/** Retrieve caller test file. */
|
|
163
|
+
function caller() {
|
|
164
|
+
const Trace = Error;
|
|
165
|
+
const _ = Trace.prepareStackTrace;
|
|
166
|
+
Trace.prepareStackTrace = (_$1, stack$1) => stack$1;
|
|
167
|
+
const { stack } = /* @__PURE__ */ new Error();
|
|
168
|
+
Trace.prepareStackTrace = _;
|
|
169
|
+
const caller$1 = stack[2];
|
|
170
|
+
return caller$1.getFileName().replaceAll("\\", "/");
|
|
171
|
+
}
|
|
33
172
|
|
|
34
173
|
//#endregion
|
|
35
174
|
//#region ../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js
|
|
@@ -1268,7 +1407,7 @@ var esm_default = FetchMock_default;
|
|
|
1268
1407
|
//#endregion
|
|
1269
1408
|
//#region deno.json
|
|
1270
1409
|
var name = "@fedify/webfinger";
|
|
1271
|
-
var version = "2.0.0";
|
|
1410
|
+
var version = "2.0.0-dev.158+628cd89e";
|
|
1272
1411
|
var license = "MIT";
|
|
1273
1412
|
var exports = { ".": "./src/mod.ts" };
|
|
1274
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.0.0";
|
|
30
|
+
var version = "2.0.0-dev.158+628cd89e";
|
|
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.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.0.0";
|
|
7
|
+
var version = "2.0.0-dev.158+628cd89e";
|
|
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.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.158+628cd89e",
|
|
4
4
|
"homepage": "https://fedify.dev/",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@logtape/logtape": "^1.3.5",
|
|
61
61
|
"@opentelemetry/api": "^1.9.0",
|
|
62
62
|
"es-toolkit": "1.43.0",
|
|
63
|
-
"@fedify/vocab-runtime": "2.0.0"
|
|
63
|
+
"@fedify/vocab-runtime": "2.0.0-dev.158+628cd89e"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"build": "tsdown",
|