@fedify/fedify 1.8.1-pr.332.1180 → 1.8.1-pr.334.1193
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/{actor-CHLBVvcc.js → actor-BxYrc06V.js} +179 -179
- package/dist/{actor-DY2jOBlC.js → actor-CeBMq8qR.js} +1 -1
- package/dist/{authdocloader-Mr-8Pvno.js → authdocloader-D64rqKxU.js} +3 -3
- package/dist/{authdocloader-CnPexSez.js → authdocloader-mGQvrIQ2.js} +3 -3
- package/dist/{builder-AQzzgVb7.js → builder-BMWyrhEH.js} +4 -43
- package/dist/{client-DrErxHbD.js → client-CTC5x_Sz.js} +1 -1
- package/dist/compat/mod.d.ts +2 -2
- package/dist/compat/transformers.test.js +16 -16
- package/dist/{context-72aRESIE.d.ts → context-B6mUZhs_.d.ts} +1 -214
- package/dist/{docloader-BMNjmXei.js → docloader-BU0Mbf3M.js} +1 -1
- package/dist/{esm-CkeX4Z_e.js → esm-LMB9p-G5.js} +1 -1
- package/dist/federation/builder.test.js +5 -5
- package/dist/federation/collection.test.js +3 -3
- package/dist/federation/handler.test.js +17 -327
- package/dist/federation/inbox.test.js +4 -4
- package/dist/federation/keycache.test.js +4 -4
- package/dist/federation/kv.test.js +3 -3
- package/dist/federation/middleware.test.js +18 -19
- package/dist/federation/mod.d.ts +2 -2
- package/dist/federation/mod.js +10 -10
- package/dist/federation/mq.test.js +3 -3
- package/dist/federation/retry.test.js +3 -3
- package/dist/federation/router.test.js +3 -3
- package/dist/federation/send.test.js +10 -10
- package/dist/{http-B9bZVfoW.js → http-CYR3mIVn.js} +3 -3
- package/dist/{http-BEKI5Hou.js → http-D3g0NXG1.js} +2 -2
- package/dist/{inbox-DdH5OssY.js → inbox-CKssCQNk.js} +1 -1
- package/dist/{key-ClRK_LNW.js → key-BBZcKCrH.js} +2 -2
- package/dist/{key-CF4gUN_w.js → key-CmOXs0Mq.js} +3 -3
- package/dist/{key-BkDKGtUZ.js → key-CuNvhgVd.js} +4 -4
- package/dist/{key-_t2XvsRR.js → key-YOEsvep6.js} +2 -2
- package/dist/{keycache-C1F4HMt-.js → keycache-DGObidvq.js} +1 -1
- package/dist/{keys-3zMMlZii.js → keys-CPhbsrsX.js} +1 -1
- package/dist/{ld-DQJTs3PX.js → ld-D8ugSU-x.js} +2 -2
- package/dist/{lookup-DmrIfsZE.js → lookup-B0_qPExk.js} +1 -1
- package/dist/{lookup-BbrpqrfQ.js → lookup-rBByGTyy.js} +1 -1
- package/dist/{middleware-CTkxtnv3.js → middleware-B_To0NZ3.js} +10 -590
- package/dist/middleware-DbDzHrt7.js +17 -0
- package/dist/middleware-JUbAKlS5.js +26 -0
- package/dist/{middleware-DlG0C99f.js → middleware-u2WBeCjB.js} +14 -555
- package/dist/{mod-OU0GgfW6.d.ts → mod-D9qE4iHP.d.ts} +1 -1
- package/dist/mod.d.ts +3 -3
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +5 -5
- package/dist/nodeinfo/handler.test.js +16 -16
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +3 -3
- package/dist/nodeinfo/types.test.js +3 -3
- package/dist/{owner-DKd1nYEb.js → owner-D1TBvEbO.js} +2 -2
- package/dist/{proof-NSkkFrOi.js → proof-CUsFh6B-.js} +3 -3
- package/dist/{proof-Dk0reBe7.js → proof-CyWfFsKS.js} +2 -2
- package/dist/runtime/authdocloader.test.js +9 -9
- package/dist/runtime/docloader.test.js +4 -4
- package/dist/runtime/key.test.js +5 -5
- package/dist/runtime/langstr.test.js +3 -3
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +3 -3
- package/dist/runtime/url.test.js +3 -3
- package/dist/{send-D1L-K83i.js → send-CrjrTnXW.js} +2 -2
- package/dist/sig/http.test.js +8 -8
- package/dist/sig/key.test.js +6 -6
- package/dist/sig/ld.test.js +7 -7
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +7 -7
- package/dist/sig/proof.test.js +7 -7
- package/dist/testing/docloader.test.js +3 -3
- package/dist/testing/mod.d.ts +0 -212
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-3xSoXkQB.js → testing-CROcCUCq.js} +3 -4
- package/dist/{type-Dx19jzWd.js → type-DGlR8Urb.js} +179 -179
- package/dist/{types-Yo_BljxV.js → types-DZdBK266.js} +1 -1
- package/dist/vocab/actor.test.js +5 -5
- package/dist/vocab/lookup.test.js +4 -4
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +4 -4
- package/dist/{vocab-CgUKDr2G.js → vocab-BLQ-_oLb.js} +3 -3
- package/dist/webfinger/handler.test.js +16 -16
- package/dist/webfinger/lookup.test.js +4 -4
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.test.js +3 -3
- package/dist/x/hono.d.ts +1 -1
- package/dist/x/sveltekit.d.ts +1 -1
- package/package.json +1 -1
- package/dist/middleware-CHIEcZ7h.js +0 -17
- package/dist/middleware-DPT6Ob5T.js +0 -26
|
@@ -3,36 +3,36 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Create, Note, Person } from "../type-
|
|
6
|
+
import { Create, Note, Person } from "../type-DGlR8Urb.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
8
|
import { assert } from "../assert-DwEa6glZ.js";
|
|
9
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
|
|
11
|
-
import { acceptsJsonLd, createFederation, handleActor, handleCollection,
|
|
11
|
+
import { acceptsJsonLd, createFederation, handleActor, handleCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-u2WBeCjB.js";
|
|
12
12
|
import "../semver-DCqorrj5.js";
|
|
13
|
-
import "../client-
|
|
14
|
-
import "../lookup-
|
|
13
|
+
import "../client-CTC5x_Sz.js";
|
|
14
|
+
import "../lookup-B0_qPExk.js";
|
|
15
15
|
import "../types-n7HI7VFr.js";
|
|
16
|
-
import "../actor-
|
|
17
|
-
import "../key-
|
|
18
|
-
import { signRequest } from "../http-
|
|
19
|
-
import "../authdocloader-
|
|
20
|
-
import "../ld-
|
|
21
|
-
import "../owner-
|
|
22
|
-
import "../proof-
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
16
|
+
import "../actor-CeBMq8qR.js";
|
|
17
|
+
import "../key-YOEsvep6.js";
|
|
18
|
+
import { signRequest } from "../http-D3g0NXG1.js";
|
|
19
|
+
import "../authdocloader-D64rqKxU.js";
|
|
20
|
+
import "../ld-D8ugSU-x.js";
|
|
21
|
+
import "../owner-D1TBvEbO.js";
|
|
22
|
+
import "../proof-CyWfFsKS.js";
|
|
23
|
+
import "../inbox-CKssCQNk.js";
|
|
24
|
+
import "../builder-BMWyrhEH.js";
|
|
25
25
|
import "../collection-D5V3UzU3.js";
|
|
26
|
-
import "../keycache-
|
|
26
|
+
import "../keycache-DGObidvq.js";
|
|
27
27
|
import "../retry-BnpVRGFC.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-
|
|
28
|
+
import "../send-CrjrTnXW.js";
|
|
29
|
+
import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-CROcCUCq.js";
|
|
30
30
|
import "../std__assert-BQdmxyzF.js";
|
|
31
31
|
import { assertFalse } from "../assert_rejects-AjlKk-Vo.js";
|
|
32
32
|
import "../assert_is_error-CeVBLPsZ.js";
|
|
33
33
|
import "../assert_not_equals-D2R2nl5h.js";
|
|
34
34
|
import "../assert_throws-CqMKbTh_.js";
|
|
35
|
-
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
|
35
|
+
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-CPhbsrsX.js";
|
|
36
36
|
|
|
37
37
|
//#region federation/handler.test.ts
|
|
38
38
|
test("acceptsJsonLd()", () => {
|
|
@@ -1234,315 +1234,5 @@ test("respondWithObjectIfAcceptable", async () => {
|
|
|
1234
1234
|
}), request, { contextLoader: mockDocumentLoader });
|
|
1235
1235
|
assertEquals(response, null);
|
|
1236
1236
|
});
|
|
1237
|
-
test("handleCustomCollection()", async () => {
|
|
1238
|
-
const federation = createFederation({ kv: new MemoryKvStore() });
|
|
1239
|
-
let context = createRequestContext({
|
|
1240
|
-
federation,
|
|
1241
|
-
data: void 0,
|
|
1242
|
-
url: new URL("https://example.com/")
|
|
1243
|
-
});
|
|
1244
|
-
const dispatcher = (_ctx, values, cursor) => {
|
|
1245
|
-
if (values.handle !== "someone") return null;
|
|
1246
|
-
const items = [
|
|
1247
|
-
new Create({ id: new URL("https://example.com/activities/1") }),
|
|
1248
|
-
new Create({ id: new URL("https://example.com/activities/2") }),
|
|
1249
|
-
new Create({ id: new URL("https://example.com/activities/3") })
|
|
1250
|
-
];
|
|
1251
|
-
if (cursor != null) {
|
|
1252
|
-
const idx = parseInt(cursor);
|
|
1253
|
-
return {
|
|
1254
|
-
items: [items[idx]],
|
|
1255
|
-
nextCursor: idx < items.length - 1 ? (idx + 1).toString() : null,
|
|
1256
|
-
prevCursor: idx > 0 ? (idx - 1).toString() : null
|
|
1257
|
-
};
|
|
1258
|
-
}
|
|
1259
|
-
return { items };
|
|
1260
|
-
};
|
|
1261
|
-
const counter = (_ctx, values) => values.handle === "someone" ? 3 : null;
|
|
1262
|
-
const firstCursor = (_ctx, values) => values.handle === "someone" ? "0" : null;
|
|
1263
|
-
const lastCursor = (_ctx, values) => values.handle === "someone" ? "2" : null;
|
|
1264
|
-
const callbacks = {
|
|
1265
|
-
dispatcher,
|
|
1266
|
-
counter,
|
|
1267
|
-
firstCursor,
|
|
1268
|
-
lastCursor
|
|
1269
|
-
};
|
|
1270
|
-
let onNotFoundCalled = null;
|
|
1271
|
-
const onNotFound = (request) => {
|
|
1272
|
-
onNotFoundCalled = request;
|
|
1273
|
-
return new Response("Not found", { status: 404 });
|
|
1274
|
-
};
|
|
1275
|
-
let onNotAcceptableCalled = null;
|
|
1276
|
-
const onNotAcceptable = (request) => {
|
|
1277
|
-
onNotAcceptableCalled = request;
|
|
1278
|
-
return new Response("Not acceptable", { status: 406 });
|
|
1279
|
-
};
|
|
1280
|
-
let onUnauthorizedCalled = null;
|
|
1281
|
-
const onUnauthorized = (request) => {
|
|
1282
|
-
onUnauthorizedCalled = request;
|
|
1283
|
-
return new Response("Unauthorized", { status: 401 });
|
|
1284
|
-
};
|
|
1285
|
-
const errorHandlers = {
|
|
1286
|
-
onNotFound,
|
|
1287
|
-
onNotAcceptable,
|
|
1288
|
-
onUnauthorized
|
|
1289
|
-
};
|
|
1290
|
-
let response = await handleCustomCollection(context.request, {
|
|
1291
|
-
context,
|
|
1292
|
-
name: "custom collection",
|
|
1293
|
-
values: { handle: "someone" },
|
|
1294
|
-
...errorHandlers
|
|
1295
|
-
});
|
|
1296
|
-
assertEquals(response.status, 404);
|
|
1297
|
-
assertEquals(onNotFoundCalled, context.request);
|
|
1298
|
-
assertEquals(onNotAcceptableCalled, null);
|
|
1299
|
-
assertEquals(onUnauthorizedCalled, null);
|
|
1300
|
-
onNotFoundCalled = null;
|
|
1301
|
-
response = await handleCustomCollection(context.request, {
|
|
1302
|
-
context,
|
|
1303
|
-
name: "custom collection",
|
|
1304
|
-
values: { handle: "someone" },
|
|
1305
|
-
collectionCallbacks: { dispatcher },
|
|
1306
|
-
...errorHandlers
|
|
1307
|
-
});
|
|
1308
|
-
assertEquals(response.status, 406);
|
|
1309
|
-
assertEquals(onNotFoundCalled, null);
|
|
1310
|
-
assertEquals(onNotAcceptableCalled, context.request);
|
|
1311
|
-
assertEquals(onUnauthorizedCalled, null);
|
|
1312
|
-
onNotAcceptableCalled = null;
|
|
1313
|
-
context = createRequestContext({
|
|
1314
|
-
...context,
|
|
1315
|
-
request: new Request(context.url, { headers: { Accept: "application/activity+json" } })
|
|
1316
|
-
});
|
|
1317
|
-
response = await handleCustomCollection(context.request, {
|
|
1318
|
-
context,
|
|
1319
|
-
name: "custom collection",
|
|
1320
|
-
values: { handle: "no-one" },
|
|
1321
|
-
collectionCallbacks: { dispatcher },
|
|
1322
|
-
...errorHandlers
|
|
1323
|
-
});
|
|
1324
|
-
assertEquals(response.status, 404);
|
|
1325
|
-
assertEquals(onNotFoundCalled, context.request);
|
|
1326
|
-
assertEquals(onNotAcceptableCalled, null);
|
|
1327
|
-
assertEquals(onUnauthorizedCalled, null);
|
|
1328
|
-
onNotFoundCalled = null;
|
|
1329
|
-
response = await handleCustomCollection(context.request, {
|
|
1330
|
-
context,
|
|
1331
|
-
name: "custom collection",
|
|
1332
|
-
values: { handle: "someone" },
|
|
1333
|
-
collectionCallbacks: { dispatcher },
|
|
1334
|
-
...errorHandlers
|
|
1335
|
-
});
|
|
1336
|
-
assertEquals(response.status, 200);
|
|
1337
|
-
assertEquals(response.headers.get("Content-Type"), "application/activity+json");
|
|
1338
|
-
const createCtx = [
|
|
1339
|
-
"https://w3id.org/identity/v1",
|
|
1340
|
-
"https://www.w3.org/ns/activitystreams",
|
|
1341
|
-
"https://w3id.org/security/data-integrity/v1",
|
|
1342
|
-
{
|
|
1343
|
-
toot: "http://joinmastodon.org/ns#",
|
|
1344
|
-
misskey: "https://misskey-hub.net/ns#",
|
|
1345
|
-
fedibird: "http://fedibird.com/ns#",
|
|
1346
|
-
ChatMessage: "http://litepub.social/ns#ChatMessage",
|
|
1347
|
-
Emoji: "toot:Emoji",
|
|
1348
|
-
Hashtag: "as:Hashtag",
|
|
1349
|
-
sensitive: "as:sensitive",
|
|
1350
|
-
votersCount: {
|
|
1351
|
-
"@id": "toot:votersCount",
|
|
1352
|
-
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
|
1353
|
-
},
|
|
1354
|
-
_misskey_quote: "misskey:_misskey_quote",
|
|
1355
|
-
quoteUri: "fedibird:quoteUri",
|
|
1356
|
-
quoteUrl: "as:quoteUrl",
|
|
1357
|
-
emojiReactions: {
|
|
1358
|
-
"@id": "fedibird:emojiReactions",
|
|
1359
|
-
"@type": "@id"
|
|
1360
|
-
}
|
|
1361
|
-
}
|
|
1362
|
-
];
|
|
1363
|
-
const CONTEXT = [
|
|
1364
|
-
"https://www.w3.org/ns/activitystreams",
|
|
1365
|
-
"https://w3id.org/security/data-integrity/v1",
|
|
1366
|
-
{
|
|
1367
|
-
toot: "http://joinmastodon.org/ns#",
|
|
1368
|
-
misskey: "https://misskey-hub.net/ns#",
|
|
1369
|
-
fedibird: "http://fedibird.com/ns#",
|
|
1370
|
-
ChatMessage: "http://litepub.social/ns#ChatMessage",
|
|
1371
|
-
Emoji: "toot:Emoji",
|
|
1372
|
-
Hashtag: "as:Hashtag",
|
|
1373
|
-
sensitive: "as:sensitive",
|
|
1374
|
-
votersCount: "toot:votersCount",
|
|
1375
|
-
_misskey_quote: "misskey:_misskey_quote",
|
|
1376
|
-
quoteUri: "fedibird:quoteUri",
|
|
1377
|
-
quoteUrl: "as:quoteUrl",
|
|
1378
|
-
emojiReactions: {
|
|
1379
|
-
"@id": "fedibird:emojiReactions",
|
|
1380
|
-
"@type": "@id"
|
|
1381
|
-
}
|
|
1382
|
-
}
|
|
1383
|
-
];
|
|
1384
|
-
assertEquals(await response.json(), {
|
|
1385
|
-
"@context": CONTEXT,
|
|
1386
|
-
id: "https://example.com/",
|
|
1387
|
-
type: "Collection",
|
|
1388
|
-
items: [
|
|
1389
|
-
{
|
|
1390
|
-
"@context": createCtx,
|
|
1391
|
-
type: "Create",
|
|
1392
|
-
id: "https://example.com/activities/1"
|
|
1393
|
-
},
|
|
1394
|
-
{
|
|
1395
|
-
"@context": createCtx,
|
|
1396
|
-
type: "Create",
|
|
1397
|
-
id: "https://example.com/activities/2"
|
|
1398
|
-
},
|
|
1399
|
-
{
|
|
1400
|
-
"@context": createCtx,
|
|
1401
|
-
type: "Create",
|
|
1402
|
-
id: "https://example.com/activities/3"
|
|
1403
|
-
}
|
|
1404
|
-
]
|
|
1405
|
-
});
|
|
1406
|
-
assertEquals(onNotFoundCalled, null);
|
|
1407
|
-
assertEquals(onNotAcceptableCalled, null);
|
|
1408
|
-
assertEquals(onUnauthorizedCalled, null);
|
|
1409
|
-
response = await handleCustomCollection(context.request, {
|
|
1410
|
-
context,
|
|
1411
|
-
name: "custom collection",
|
|
1412
|
-
values: { handle: "someone" },
|
|
1413
|
-
collectionCallbacks: {
|
|
1414
|
-
dispatcher,
|
|
1415
|
-
authorizePredicate: (_ctx, _values, key, keyOwner) => key != null && keyOwner != null
|
|
1416
|
-
},
|
|
1417
|
-
...errorHandlers
|
|
1418
|
-
});
|
|
1419
|
-
assertEquals(response.status, 401);
|
|
1420
|
-
assertEquals(onNotFoundCalled, null);
|
|
1421
|
-
assertEquals(onNotAcceptableCalled, null);
|
|
1422
|
-
assertEquals(onUnauthorizedCalled, context.request);
|
|
1423
|
-
onUnauthorizedCalled = null;
|
|
1424
|
-
context = createRequestContext({
|
|
1425
|
-
...context,
|
|
1426
|
-
getSignedKey: () => Promise.resolve(rsaPublicKey2),
|
|
1427
|
-
getSignedKeyOwner: () => Promise.resolve(new Person({}))
|
|
1428
|
-
});
|
|
1429
|
-
response = await handleCustomCollection(context.request, {
|
|
1430
|
-
context,
|
|
1431
|
-
name: "custom collection",
|
|
1432
|
-
values: { handle: "someone" },
|
|
1433
|
-
collectionCallbacks: {
|
|
1434
|
-
dispatcher,
|
|
1435
|
-
authorizePredicate: (_ctx, _values, key, keyOwner) => key != null && keyOwner != null
|
|
1436
|
-
},
|
|
1437
|
-
...errorHandlers
|
|
1438
|
-
});
|
|
1439
|
-
assertEquals(response.status, 200);
|
|
1440
|
-
assertEquals(response.headers.get("Content-Type"), "application/activity+json");
|
|
1441
|
-
assertEquals(await response.json(), {
|
|
1442
|
-
"@context": CONTEXT,
|
|
1443
|
-
id: "https://example.com/",
|
|
1444
|
-
type: "Collection",
|
|
1445
|
-
items: [
|
|
1446
|
-
{
|
|
1447
|
-
"@context": createCtx,
|
|
1448
|
-
type: "Create",
|
|
1449
|
-
id: "https://example.com/activities/1"
|
|
1450
|
-
},
|
|
1451
|
-
{
|
|
1452
|
-
"@context": createCtx,
|
|
1453
|
-
type: "Create",
|
|
1454
|
-
id: "https://example.com/activities/2"
|
|
1455
|
-
},
|
|
1456
|
-
{
|
|
1457
|
-
"@context": createCtx,
|
|
1458
|
-
type: "Create",
|
|
1459
|
-
id: "https://example.com/activities/3"
|
|
1460
|
-
}
|
|
1461
|
-
]
|
|
1462
|
-
});
|
|
1463
|
-
assertEquals(onNotFoundCalled, null);
|
|
1464
|
-
assertEquals(onNotAcceptableCalled, null);
|
|
1465
|
-
assertEquals(onUnauthorizedCalled, null);
|
|
1466
|
-
response = await handleCustomCollection(context.request, {
|
|
1467
|
-
context,
|
|
1468
|
-
name: "custom collection",
|
|
1469
|
-
values: { handle: "someone" },
|
|
1470
|
-
collectionCallbacks: callbacks,
|
|
1471
|
-
...errorHandlers
|
|
1472
|
-
});
|
|
1473
|
-
assertEquals(response.status, 200);
|
|
1474
|
-
assertEquals(response.headers.get("Content-Type"), "application/activity+json");
|
|
1475
|
-
assertEquals(await response.json(), {
|
|
1476
|
-
"@context": CONTEXT,
|
|
1477
|
-
id: "https://example.com/",
|
|
1478
|
-
type: "Collection",
|
|
1479
|
-
totalItems: 3,
|
|
1480
|
-
first: "https://example.com/?cursor=0",
|
|
1481
|
-
last: "https://example.com/?cursor=2"
|
|
1482
|
-
});
|
|
1483
|
-
assertEquals(onNotFoundCalled, null);
|
|
1484
|
-
assertEquals(onNotAcceptableCalled, null);
|
|
1485
|
-
assertEquals(onUnauthorizedCalled, null);
|
|
1486
|
-
let url = new URL("https://example.com/?cursor=0");
|
|
1487
|
-
context = createRequestContext({
|
|
1488
|
-
...context,
|
|
1489
|
-
url,
|
|
1490
|
-
request: new Request(url, { headers: { Accept: "application/activity+json" } })
|
|
1491
|
-
});
|
|
1492
|
-
response = await handleCustomCollection(context.request, {
|
|
1493
|
-
context,
|
|
1494
|
-
name: "custom collection",
|
|
1495
|
-
values: { handle: "someone" },
|
|
1496
|
-
collectionCallbacks: callbacks,
|
|
1497
|
-
...errorHandlers
|
|
1498
|
-
});
|
|
1499
|
-
assertEquals(response.status, 200);
|
|
1500
|
-
assertEquals(response.headers.get("Content-Type"), "application/activity+json");
|
|
1501
|
-
assertEquals(await response.json(), {
|
|
1502
|
-
"@context": CONTEXT,
|
|
1503
|
-
id: "https://example.com/?cursor=0",
|
|
1504
|
-
type: "CollectionPage",
|
|
1505
|
-
partOf: "https://example.com/",
|
|
1506
|
-
next: "https://example.com/?cursor=1",
|
|
1507
|
-
items: {
|
|
1508
|
-
"@context": createCtx,
|
|
1509
|
-
id: "https://example.com/activities/1",
|
|
1510
|
-
type: "Create"
|
|
1511
|
-
}
|
|
1512
|
-
});
|
|
1513
|
-
assertEquals(onNotFoundCalled, null);
|
|
1514
|
-
assertEquals(onNotAcceptableCalled, null);
|
|
1515
|
-
assertEquals(onUnauthorizedCalled, null);
|
|
1516
|
-
url = new URL("https://example.com/?cursor=2");
|
|
1517
|
-
context = createRequestContext({
|
|
1518
|
-
...context,
|
|
1519
|
-
url,
|
|
1520
|
-
request: new Request(url, { headers: { Accept: "application/activity+json" } })
|
|
1521
|
-
});
|
|
1522
|
-
response = await handleCustomCollection(context.request, {
|
|
1523
|
-
context,
|
|
1524
|
-
name: "custom collection",
|
|
1525
|
-
values: { handle: "someone" },
|
|
1526
|
-
collectionCallbacks: callbacks,
|
|
1527
|
-
...errorHandlers
|
|
1528
|
-
});
|
|
1529
|
-
assertEquals(response.status, 200);
|
|
1530
|
-
assertEquals(response.headers.get("Content-Type"), "application/activity+json");
|
|
1531
|
-
assertEquals(await response.json(), {
|
|
1532
|
-
"@context": CONTEXT,
|
|
1533
|
-
id: "https://example.com/?cursor=2",
|
|
1534
|
-
type: "CollectionPage",
|
|
1535
|
-
partOf: "https://example.com/",
|
|
1536
|
-
prev: "https://example.com/?cursor=1",
|
|
1537
|
-
items: {
|
|
1538
|
-
"@context": createCtx,
|
|
1539
|
-
id: "https://example.com/activities/3",
|
|
1540
|
-
type: "Create"
|
|
1541
|
-
}
|
|
1542
|
-
});
|
|
1543
|
-
assertEquals(onNotFoundCalled, null);
|
|
1544
|
-
assertEquals(onNotAcceptableCalled, null);
|
|
1545
|
-
assertEquals(onUnauthorizedCalled, null);
|
|
1546
|
-
});
|
|
1547
1237
|
|
|
1548
1238
|
//#endregion
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Create, Invite, Offer, Update } from "../type-
|
|
6
|
+
import { Activity, Create, Invite, Offer, Update } from "../type-DGlR8Urb.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
|
-
import "../lookup-
|
|
9
|
-
import { InboxListenerSet } from "../inbox-
|
|
10
|
-
import { test } from "../testing-
|
|
8
|
+
import "../lookup-B0_qPExk.js";
|
|
9
|
+
import { InboxListenerSet } from "../inbox-CKssCQNk.js";
|
|
10
|
+
import { test } from "../testing-CROcCUCq.js";
|
|
11
11
|
import "../assert_is_error-CeVBLPsZ.js";
|
|
12
12
|
import { assertThrows } from "../assert_throws-CqMKbTh_.js";
|
|
13
13
|
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, Multikey } from "../type-
|
|
6
|
+
import { CryptographicKey, Multikey } from "../type-DGlR8Urb.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
8
|
import { assert } from "../assert-DwEa6glZ.js";
|
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-C9QtN-X9.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
|
|
11
|
-
import "../lookup-
|
|
12
|
-
import { KvKeyCache } from "../keycache-
|
|
13
|
-
import { test } from "../testing-
|
|
11
|
+
import "../lookup-B0_qPExk.js";
|
|
12
|
+
import { KvKeyCache } from "../keycache-DGObidvq.js";
|
|
13
|
+
import { test } from "../testing-CROcCUCq.js";
|
|
14
14
|
|
|
15
15
|
//#region federation/keycache.test.ts
|
|
16
16
|
test("KvKeyCache.set()", async () => {
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-DGlR8Urb.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
8
|
import "../assert-DwEa6glZ.js";
|
|
9
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
|
|
11
|
-
import "../lookup-
|
|
12
|
-
import { test } from "../testing-
|
|
11
|
+
import "../lookup-B0_qPExk.js";
|
|
12
|
+
import { test } from "../testing-CROcCUCq.js";
|
|
13
13
|
import "../std__assert-BQdmxyzF.js";
|
|
14
14
|
import "../assert_rejects-AjlKk-Vo.js";
|
|
15
15
|
import "../assert_is_error-CeVBLPsZ.js";
|
|
@@ -3,37 +3,37 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Announce, Create, FetchError, Invite, Multikey, Note, Object as Object$1, Offer, Person, fetchDocumentLoader, getTypeId } from "../type-
|
|
6
|
+
import { Activity, Announce, Create, FetchError, Invite, Multikey, Note, Object as Object$1, Offer, Person, fetchDocumentLoader, getTypeId } from "../type-DGlR8Urb.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
8
|
import { assert } from "../assert-DwEa6glZ.js";
|
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-C9QtN-X9.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
|
|
11
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-
|
|
11
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-u2WBeCjB.js";
|
|
12
12
|
import "../semver-DCqorrj5.js";
|
|
13
|
-
import "../client-
|
|
14
|
-
import { RouterError, lookupObject } from "../lookup-
|
|
13
|
+
import "../client-CTC5x_Sz.js";
|
|
14
|
+
import { RouterError, lookupObject } from "../lookup-B0_qPExk.js";
|
|
15
15
|
import "../types-n7HI7VFr.js";
|
|
16
|
-
import "../actor-
|
|
17
|
-
import "../key-
|
|
18
|
-
import { signRequest, verifyRequest } from "../http-
|
|
19
|
-
import { getAuthenticatedDocumentLoader } from "../authdocloader-
|
|
20
|
-
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-
|
|
21
|
-
import { doesActorOwnKey } from "../owner-
|
|
22
|
-
import { signObject, verifyObject } from "../proof-
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
16
|
+
import "../actor-CeBMq8qR.js";
|
|
17
|
+
import "../key-YOEsvep6.js";
|
|
18
|
+
import { signRequest, verifyRequest } from "../http-D3g0NXG1.js";
|
|
19
|
+
import { getAuthenticatedDocumentLoader } from "../authdocloader-D64rqKxU.js";
|
|
20
|
+
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-D8ugSU-x.js";
|
|
21
|
+
import { doesActorOwnKey } from "../owner-D1TBvEbO.js";
|
|
22
|
+
import { signObject, verifyObject } from "../proof-CyWfFsKS.js";
|
|
23
|
+
import "../inbox-CKssCQNk.js";
|
|
24
|
+
import "../builder-BMWyrhEH.js";
|
|
25
25
|
import "../collection-D5V3UzU3.js";
|
|
26
|
-
import "../keycache-
|
|
26
|
+
import "../keycache-DGObidvq.js";
|
|
27
27
|
import "../retry-BnpVRGFC.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
28
|
+
import "../send-CrjrTnXW.js";
|
|
29
|
+
import { mockDocumentLoader, test } from "../testing-CROcCUCq.js";
|
|
30
30
|
import { assertStrictEquals } from "../std__assert-BQdmxyzF.js";
|
|
31
31
|
import { assertFalse, assertRejects } from "../assert_rejects-AjlKk-Vo.js";
|
|
32
32
|
import "../assert_is_error-CeVBLPsZ.js";
|
|
33
33
|
import { assertNotEquals } from "../assert_not_equals-D2R2nl5h.js";
|
|
34
34
|
import { assertThrows } from "../assert_throws-CqMKbTh_.js";
|
|
35
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
|
36
|
-
import { esm_default } from "../esm-
|
|
35
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-CPhbsrsX.js";
|
|
36
|
+
import { esm_default } from "../esm-LMB9p-G5.js";
|
|
37
37
|
|
|
38
38
|
//#region testing/fixtures/example.com/person.json
|
|
39
39
|
var __context$1 = ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1"];
|
|
@@ -264,7 +264,6 @@ test({
|
|
|
264
264
|
assertThrows(() => ctx.getLikedUri("handle"), RouterError);
|
|
265
265
|
assertThrows(() => ctx.getFeaturedUri("handle"), RouterError);
|
|
266
266
|
assertThrows(() => ctx.getFeaturedTagsUri("handle"), RouterError);
|
|
267
|
-
assertThrows(() => ctx.getCollectionUri("test", { id: "123" }), RouterError);
|
|
268
267
|
assertEquals(ctx.parseUri(new URL("https://example.com/")), null);
|
|
269
268
|
assertEquals(ctx.parseUri(null), null);
|
|
270
269
|
assertEquals(await ctx.getActorKeyPairs("handle"), []);
|
package/dist/federation/mod.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import "../http-D1uoUH4N.js";
|
|
|
9
9
|
import "../owner-CEv_PfyK.js";
|
|
10
10
|
import "../mod-BFwgZ7_K.js";
|
|
11
11
|
import "../lookup-J_m4YZg0.js";
|
|
12
|
-
import { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher,
|
|
12
|
+
import { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-B6mUZhs_.js";
|
|
13
13
|
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "../mq-DYKDDJmp.js";
|
|
14
14
|
import "../mod-g0xFzAP9.js";
|
|
15
|
-
export { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher,
|
|
15
|
+
export { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, KvKey, KvStore, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
package/dist/federation/mod.js
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
5
|
import "../transformers-ghwJuzGY.js";
|
|
6
|
-
import "../docloader-
|
|
7
|
-
import "../actor-
|
|
8
|
-
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
|
9
|
-
import "../lookup-
|
|
10
|
-
import "../key-
|
|
11
|
-
import "../http-
|
|
12
|
-
import "../proof-
|
|
6
|
+
import "../docloader-BU0Mbf3M.js";
|
|
7
|
+
import "../actor-BxYrc06V.js";
|
|
8
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-B_To0NZ3.js";
|
|
9
|
+
import "../lookup-rBByGTyy.js";
|
|
10
|
+
import "../key-BBZcKCrH.js";
|
|
11
|
+
import "../http-CYR3mIVn.js";
|
|
12
|
+
import "../proof-CUsFh6B-.js";
|
|
13
13
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-C44ekWNP.js";
|
|
14
|
-
import "../types-
|
|
15
|
-
import "../authdocloader-
|
|
16
|
-
import "../vocab-
|
|
14
|
+
import "../types-DZdBK266.js";
|
|
15
|
+
import "../authdocloader-mGQvrIQ2.js";
|
|
16
|
+
import "../vocab-BLQ-_oLb.js";
|
|
17
17
|
|
|
18
18
|
export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-DGlR8Urb.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
8
|
import { assert } from "../assert-DwEa6glZ.js";
|
|
9
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
|
-
import "../lookup-
|
|
11
|
-
import { test } from "../testing-
|
|
10
|
+
import "../lookup-B0_qPExk.js";
|
|
11
|
+
import { test } from "../testing-CROcCUCq.js";
|
|
12
12
|
import { assertGreater, assertGreaterOrEqual } from "../std__assert-BQdmxyzF.js";
|
|
13
13
|
import { assertFalse } from "../assert_rejects-AjlKk-Vo.js";
|
|
14
14
|
import "../assert_is_error-CeVBLPsZ.js";
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-DGlR8Urb.js";
|
|
7
7
|
import { AssertionError, assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
|
-
import "../lookup-
|
|
8
|
+
import "../lookup-B0_qPExk.js";
|
|
9
9
|
import { createExponentialBackoffPolicy } from "../retry-BnpVRGFC.js";
|
|
10
|
-
import { test } from "../testing-
|
|
10
|
+
import { test } from "../testing-CROcCUCq.js";
|
|
11
11
|
import { assertNotEquals } from "../assert_not_equals-D2R2nl5h.js";
|
|
12
12
|
|
|
13
13
|
//#region federation/retry.test.ts
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-DGlR8Urb.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
8
|
import { assert } from "../assert-DwEa6glZ.js";
|
|
9
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
|
-
import { Router, RouterError } from "../lookup-
|
|
11
|
-
import { test } from "../testing-
|
|
10
|
+
import { Router, RouterError } from "../lookup-B0_qPExk.js";
|
|
11
|
+
import { test } from "../testing-CROcCUCq.js";
|
|
12
12
|
import "../std__assert-BQdmxyzF.js";
|
|
13
13
|
import { assertFalse } from "../assert_rejects-AjlKk-Vo.js";
|
|
14
14
|
import "../assert_is_error-CeVBLPsZ.js";
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Application, Endpoints, Group, Person, Service } from "../type-
|
|
6
|
+
import { Activity, Application, Endpoints, Group, Person, Service } from "../type-DGlR8Urb.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-C5gKCm6A.js";
|
|
8
8
|
import { assert } from "../assert-DwEa6glZ.js";
|
|
9
9
|
import "../assert_instance_of-C9QtN-X9.js";
|
|
10
|
-
import "../lookup-
|
|
11
|
-
import "../actor-
|
|
12
|
-
import "../key-
|
|
13
|
-
import { verifyRequest } from "../http-
|
|
14
|
-
import { doesActorOwnKey } from "../owner-
|
|
15
|
-
import { extractInboxes, sendActivity } from "../send-
|
|
16
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
10
|
+
import "../lookup-B0_qPExk.js";
|
|
11
|
+
import "../actor-CeBMq8qR.js";
|
|
12
|
+
import "../key-YOEsvep6.js";
|
|
13
|
+
import { verifyRequest } from "../http-D3g0NXG1.js";
|
|
14
|
+
import { doesActorOwnKey } from "../owner-D1TBvEbO.js";
|
|
15
|
+
import { extractInboxes, sendActivity } from "../send-CrjrTnXW.js";
|
|
16
|
+
import { mockDocumentLoader, test } from "../testing-CROcCUCq.js";
|
|
17
17
|
import "../std__assert-BQdmxyzF.js";
|
|
18
18
|
import { assertFalse, assertRejects } from "../assert_rejects-AjlKk-Vo.js";
|
|
19
19
|
import "../assert_is_error-CeVBLPsZ.js";
|
|
20
20
|
import { assertNotEquals } from "../assert_not_equals-D2R2nl5h.js";
|
|
21
21
|
import "../assert_throws-CqMKbTh_.js";
|
|
22
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-
|
|
23
|
-
import { esm_default } from "../esm-
|
|
22
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-CPhbsrsX.js";
|
|
23
|
+
import { esm_default } from "../esm-LMB9p-G5.js";
|
|
24
24
|
|
|
25
25
|
//#region federation/send.test.ts
|
|
26
26
|
test("extractInboxes()", () => {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { deno_default } from "./docloader-
|
|
6
|
-
import { CryptographicKey } from "./actor-
|
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
|
5
|
+
import { deno_default } from "./docloader-BU0Mbf3M.js";
|
|
6
|
+
import { CryptographicKey } from "./actor-BxYrc06V.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-BBZcKCrH.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, deno_default } from "./type-
|
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
|
6
|
+
import { CryptographicKey, deno_default } from "./type-DGlR8Urb.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-YOEsvep6.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|