@fedify/relay 2.0.36-dev.2647 → 2.0.36-dev.2729
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/litepub.test.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { n as exportSpki, r as getDocumentLoader, t as isRelayFollowerData } from "./types-
|
|
4
|
+
import { n as exportSpki, r as getDocumentLoader, t as isRelayFollowerData } from "./types-Bls99U3s.js";
|
|
5
5
|
import { MemoryKvStore, signRequest } from "@fedify/fedify";
|
|
6
6
|
import { createRelay } from "@fedify/relay";
|
|
7
7
|
import { Accept, Announce, Create, Delete, Follow, Move, Note, Person, Undo, Update } from "@fedify/vocab";
|
package/dist/mastodon.test.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { n as exportSpki, r as getDocumentLoader, t as isRelayFollowerData } from "./types-
|
|
4
|
+
import { n as exportSpki, r as getDocumentLoader, t as isRelayFollowerData } from "./types-Bls99U3s.js";
|
|
5
5
|
import { MemoryKvStore, signRequest } from "@fedify/fedify";
|
|
6
6
|
import { createRelay } from "@fedify/relay";
|
|
7
7
|
import { Create, Delete, Follow, Move, Note, Person, Undo, Update } from "@fedify/vocab";
|
|
@@ -6,7 +6,7 @@ import { getLogger } from "@logtape/logtape";
|
|
|
6
6
|
import dns from "node:dns/promises";
|
|
7
7
|
import { isIP } from "node:net";
|
|
8
8
|
import process$1 from "node:process";
|
|
9
|
-
//#region ../vocab-runtime/dist/
|
|
9
|
+
//#region ../vocab-runtime/dist/crypto-key-BoTl83Lh.js
|
|
10
10
|
const grants = /* @__PURE__ */ new WeakMap();
|
|
11
11
|
/**
|
|
12
12
|
* Issues a grant for the given URL's origin and addresses. This does not
|
|
@@ -731,6 +731,17 @@ function logUnpinned(url) {
|
|
|
731
731
|
protocol: url.protocol
|
|
732
732
|
});
|
|
733
733
|
}
|
|
734
|
+
/**
|
|
735
|
+
* Narrows a {@link CryptoKeyLike} to the ambient `CryptoKey` type, for passing
|
|
736
|
+
* it to `crypto.subtle` or to APIs that still declare the ambient type.
|
|
737
|
+
*
|
|
738
|
+
* This is internal to Fedify and is not exported from the package entry point.
|
|
739
|
+
* @param key The key to narrow.
|
|
740
|
+
* @returns The same key, typed as the ambient `CryptoKey`.
|
|
741
|
+
*/
|
|
742
|
+
function asCryptoKey(key) {
|
|
743
|
+
return key;
|
|
744
|
+
}
|
|
734
745
|
//#endregion
|
|
735
746
|
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/platform/node/globalThis.js
|
|
736
747
|
/** only globals that common to node and browsers are allowed */
|
|
@@ -26412,7 +26423,7 @@ const preloadedContexts = {
|
|
|
26412
26423
|
"https://purl.archive.org/miscellany": miscellany_default
|
|
26413
26424
|
};
|
|
26414
26425
|
var name = "@fedify/vocab-runtime";
|
|
26415
|
-
var version = "2.0.36-dev.
|
|
26426
|
+
var version = "2.0.36-dev.2729+88a727c8";
|
|
26416
26427
|
/**
|
|
26417
26428
|
* Error thrown when fetching a JSON-LD document failed.
|
|
26418
26429
|
*/
|
|
@@ -27231,7 +27242,7 @@ constants.reduce((prev, tupple) => {
|
|
|
27231
27242
|
*/
|
|
27232
27243
|
async function exportSpki(key) {
|
|
27233
27244
|
validateCryptoKey(key);
|
|
27234
|
-
let pem = a(await crypto.subtle.exportKey("spki", key));
|
|
27245
|
+
let pem = a(await crypto.subtle.exportKey("spki", asCryptoKey(key)));
|
|
27235
27246
|
pem = (pem.match(/.{1,64}/g) || []).join("\n");
|
|
27236
27247
|
return `-----BEGIN PUBLIC KEY-----\n${pem}\n-----END PUBLIC KEY-----\n`;
|
|
27237
27248
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/relay",
|
|
3
|
-
"version": "2.0.36-dev.
|
|
3
|
+
"version": "2.0.36-dev.2729+88a727c8",
|
|
4
4
|
"description": "ActivityPub relay support for Fedify",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Fedify",
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@js-temporal/polyfill": "^0.5.1",
|
|
52
52
|
"@logtape/logtape": "^2.0.0",
|
|
53
|
-
"@fedify/vocab": "2.0.36-dev.
|
|
54
|
-
"@fedify/fedify": "^2.0.36-dev.
|
|
53
|
+
"@fedify/vocab": "2.0.36-dev.2729+88a727c8",
|
|
54
|
+
"@fedify/fedify": "^2.0.36-dev.2729+88a727c8"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"tsdown": "^0.21.6",
|
|
58
58
|
"typescript": "^6.0.0",
|
|
59
59
|
"urlpattern-polyfill": "^10.1.0",
|
|
60
|
-
"@fedify/vocab-runtime": "^2.0.36-dev.
|
|
60
|
+
"@fedify/vocab-runtime": "^2.0.36-dev.2729+88a727c8"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build:self": "tsdown",
|