@fedify/fedify 0.8.0-dev.139 → 0.8.0-dev.142
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @fedify/fedify might be problematic. Click here for more details.
- package/CHANGES.md +4 -0
- package/esm/_dnt.shims.js +3 -0
- package/esm/federation/handler.js +2 -2
- package/esm/federation/kv.js +8 -3
- package/esm/federation/middleware.js +1 -2
- package/esm/federation/mq.js +1 -0
- package/esm/httpsig/mod.js +4 -5
- package/esm/runtime/docloader.js +4 -5
- package/esm/vocab/vocab.js +671 -95
- package/package.json +3 -3
- package/types/_dnt.shims.d.ts +4 -1
- package/types/_dnt.shims.d.ts.map +1 -1
- package/types/_dnt.test_shims.d.ts.map +1 -1
- package/types/federation/kv.d.ts +2 -2
- package/types/federation/kv.d.ts.map +1 -1
- package/types/federation/middleware.d.ts +1 -2
- package/types/federation/middleware.d.ts.map +1 -1
- package/types/federation/mq.d.ts +2 -2
- package/types/federation/mq.d.ts.map +1 -1
- package/types/httpsig/mod.d.ts +1 -2
- package/types/httpsig/mod.d.ts.map +1 -1
- package/types/runtime/docloader.d.ts +1 -2
- package/types/runtime/docloader.d.ts.map +1 -1
- package/types/vocab/vocab.d.ts +385 -386
- package/types/vocab/vocab.d.ts.map +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fedify/fedify",
|
3
|
-
"version": "0.8.0-dev.
|
3
|
+
"version": "0.8.0-dev.142+46e7ae0a",
|
4
4
|
"description": "An ActivityPub server framework",
|
5
5
|
"keywords": [
|
6
6
|
"ActivityPub",
|
@@ -76,7 +76,6 @@
|
|
76
76
|
"test": "node test_runner.js"
|
77
77
|
},
|
78
78
|
"dependencies": {
|
79
|
-
"@js-temporal/polyfill": "^0.4.4",
|
80
79
|
"@logtape/logtape": "^0.2.2",
|
81
80
|
"@phensley/language-tag": "^1.8.0",
|
82
81
|
"jsonld": "^8.3.2",
|
@@ -84,7 +83,8 @@
|
|
84
83
|
"url-template": "^3.1.1",
|
85
84
|
"@deno/shim-deno": "~0.18.0",
|
86
85
|
"@deno/shim-crypto": "~0.3.1",
|
87
|
-
"urlpattern-polyfill": "~10.0.0"
|
86
|
+
"urlpattern-polyfill": "~10.0.0",
|
87
|
+
"@js-temporal/polyfill": "^0.4.4"
|
88
88
|
},
|
89
89
|
"devDependencies": {
|
90
90
|
"@types/node": "^20.9.0",
|
package/types/_dnt.shims.d.ts
CHANGED
@@ -3,9 +3,12 @@ export { Deno } from "@deno/shim-deno";
|
|
3
3
|
export { crypto, type Crypto, type SubtleCrypto, type AlgorithmIdentifier, type Algorithm, type RsaOaepParams, type BufferSource, type AesCtrParams, type AesCbcParams, type AesGcmParams, type CryptoKey, type KeyAlgorithm, type KeyType, type KeyUsage, type EcdhKeyDeriveParams, type HkdfParams, type HashAlgorithmIdentifier, type Pbkdf2Params, type AesDerivedKeyParams, type HmacImportParams, type JsonWebKey, type RsaOtherPrimesInfo, type KeyFormat, type RsaHashedKeyGenParams, type RsaKeyGenParams, type BigInteger, type EcKeyGenParams, type NamedCurve, type CryptoKeyPair, type AesKeyGenParams, type HmacKeyGenParams, type RsaHashedImportParams, type EcKeyImportParams, type AesKeyAlgorithm, type RsaPssParams, type EcdsaParams } from "@deno/shim-crypto";
|
4
4
|
import { URLPattern as URLPattern } from "urlpattern-polyfill";
|
5
5
|
export { URLPattern as URLPattern } from "urlpattern-polyfill";
|
6
|
-
|
6
|
+
import { Temporal as Temporal } from "@js-temporal/polyfill";
|
7
|
+
export { Temporal as Temporal } from "@js-temporal/polyfill";
|
8
|
+
export declare const dntGlobalThis: Omit<typeof globalThis, "crypto" | "Deno" | "URLPattern" | "Temporal"> & {
|
7
9
|
Deno: typeof Deno;
|
8
10
|
crypto: import("@deno/shim-crypto").Crypto;
|
9
11
|
URLPattern: typeof URLPattern;
|
12
|
+
Temporal: typeof Temporal;
|
10
13
|
};
|
11
14
|
//# sourceMappingURL=_dnt.shims.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,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K,YAAY,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,KAAK,YAAY,EAAE,KAAK,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,UAAU,EAAE,KAAK,uBAAuB,EAAE,KAAK,YAAY,EAAE,KAAK,mBAAmB,EAAE,KAAK,gBAAgB,EAAE,KAAK,UAAU,EAAE,KAAK,kBAAkB,EAAE,KAAK,SAAS,EAAE,KAAK,qBAAqB,EAAE,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE,KAAK,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrvB,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AASnD,eAAO,MAAM,aAAa;;;;;;CAA2C,CAAC"}
|
package/types/federation/kv.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import { Temporal } from "@js-temporal/polyfill";
|
2
1
|
/**
|
3
2
|
* A key for a key-value store. An array of one or more strings.
|
4
3
|
*
|
5
4
|
* @since 0.5.0
|
6
5
|
*/
|
6
|
+
import * as dntShim from "../_dnt.shims.js";
|
7
7
|
export type KvKey = readonly [string] | readonly [string, ...string[]];
|
8
8
|
/**
|
9
9
|
* Additional options for setting a value in a key-value store.
|
@@ -14,7 +14,7 @@ export interface KvStoreSetOptions {
|
|
14
14
|
/**
|
15
15
|
* The time-to-live (TTL) for the value.
|
16
16
|
*/
|
17
|
-
ttl?: Temporal.Duration;
|
17
|
+
ttl?: dntShim.Temporal.Duration;
|
18
18
|
}
|
19
19
|
/**
|
20
20
|
* An abstract interface for a key-value store.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"kv.d.ts","sourceRoot":"","sources":["../../src/federation/kv.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"kv.d.ts","sourceRoot":"","sources":["../../src/federation/kv.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAE5C,MAAM,MAAM,KAAK,GAAG,SAAS,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;AAEvE;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;CACjC;AAED;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACtB;;;;;OAKG;IACH,GAAG,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,KAAK,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC;IAErD;;;;;OAKG;IACH,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5E;;;OAGG;IACH,MAAM,CAAC,GAAG,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACnC;AAED;;;;;GAKG;AACH,qBAAa,aAAc,YAAW,OAAO;;IAO3C;;OAEG;IACH,GAAG,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,KAAK,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;IAcpD;;OAEG;IACH,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAS3E;;OAEG;IACH,MAAM,CAAC,GAAG,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;CAKlC"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/// <reference types="node" />
|
2
2
|
/// <reference types="node" />
|
3
3
|
import * as dntShim from "../_dnt.shims.js";
|
4
|
-
import { Temporal } from "@js-temporal/polyfill";
|
5
4
|
import { type AuthenticatedDocumentLoaderFactory, type DocumentLoader } from "../runtime/docloader.js";
|
6
5
|
import type { Actor, Recipient } from "../vocab/actor.js";
|
7
6
|
import { Activity, type Object } from "../vocab/mod.js";
|
@@ -58,7 +57,7 @@ export interface FederationParameters {
|
|
58
57
|
* @since 0.6.0
|
59
58
|
*/
|
60
59
|
onOutboxError?: OutboxErrorHandler;
|
61
|
-
backoffSchedule?: Temporal.Duration[];
|
60
|
+
backoffSchedule?: dntShim.Temporal.Duration[];
|
62
61
|
}
|
63
62
|
/**
|
64
63
|
* Prefixes for namespacing keys in the Deno KV store.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../src/federation/middleware.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;
|
1
|
+
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../src/federation/middleware.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAK5C,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,cAAc,EAIpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CA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,yBAAyB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IAEpD;;;;;OAKG;IACH,SAAS,CACP,SAAS,EAAE,kBAAkB,CAAC,YAAY,CAAC,GAC1C,yBAAyB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;CACrD;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB,CAAC,YAAY;IAC/C;;;;;;OAMG;IACH,EAAE,CAAC,SAAS,SAAS,QAAQ,EAE3B,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,SAAS,EACvC,QAAQ,EAAE,aAAa,CAAC,YAAY,EAAE,SAAS,CAAC,GAC/C,mBAAmB,CAAC,YAAY,CAAC,CAAC;IAErC;;;;;;OAMG;IACH,OAAO,CACL,OAAO,EAAE,iBAAiB,CAAC,YAAY,CAAC,GACvC,mBAAmB,CAAC,YAAY,CAAC,CAAC;CACtC;AAED,UAAU,2BAA4B,SAAQ,mBAAmB;IAC/D,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
package/types/federation/mq.d.ts
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
import type { Temporal } from "@js-temporal/polyfill";
|
2
1
|
/**
|
3
2
|
* Additional options for enqueuing a message in a queue.
|
4
3
|
*
|
5
4
|
* @since 0.5.0
|
6
5
|
*/
|
6
|
+
import * as dntShim from "../_dnt.shims.js";
|
7
7
|
export interface MessageQueueEnqueueOptions {
|
8
8
|
/**
|
9
9
|
* The delay before the message is enqueued. No delay by default.
|
10
10
|
*/
|
11
|
-
delay?: Temporal.Duration;
|
11
|
+
delay?: dntShim.Temporal.Duration;
|
12
12
|
}
|
13
13
|
/**
|
14
14
|
* An abstract interface for a message queue.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mq.d.ts","sourceRoot":"","sources":["../../src/federation/mq.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"mq.d.ts","sourceRoot":"","sources":["../../src/federation/mq.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAE5C,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;CACnC;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,OAAO,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE3E;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;CAC/D;AAED;;;;;GAKG;AACH,qBAAa,qBAAsB,YAAW,YAAY;;IAGxD;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAAC;IAU1E;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,IAAI;CAG9D"}
|
package/types/httpsig/mod.d.ts
CHANGED
@@ -7,7 +7,6 @@
|
|
7
7
|
* @module
|
8
8
|
*/
|
9
9
|
import * as dntShim from "../_dnt.shims.js";
|
10
|
-
import { Temporal } from "@js-temporal/polyfill";
|
11
10
|
import type { DocumentLoader } from "../runtime/docloader.js";
|
12
11
|
import { type Actor } from "../vocab/actor.js";
|
13
12
|
import { type Activity, CryptographicKey } from "../vocab/vocab.js";
|
@@ -36,7 +35,7 @@ export declare function sign(request: Request, privateKey: dntShim.CryptoKey, ke
|
|
36
35
|
* @returns The public key of the verified signature, or `null` if the signature
|
37
36
|
* could not be verified.
|
38
37
|
*/
|
39
|
-
export declare function verify(request: Request, documentLoader: DocumentLoader, currentTime?: Temporal.Instant): Promise<CryptographicKey | null>;
|
38
|
+
export declare function verify(request: Request, documentLoader: DocumentLoader, currentTime?: dntShim.Temporal.Instant): Promise<CryptographicKey | null>;
|
40
39
|
/**
|
41
40
|
* Checks if the actor of the given activity owns the specified key.
|
42
41
|
* @param activity The activity to check.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/httpsig/mod.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/httpsig/mod.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAI5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,KAAK,KAAK,EAAW,MAAM,mBAAmB,CAAC;AACxD,OAAO,EACL,KAAK,QAAQ,EACb,gBAAgB,EAEjB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAEvE;;;;;;;;GAQG;AACH,wBAAsB,IAAI,CACxB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,OAAO,CAAC,SAAS,EAC7B,KAAK,EAAE,GAAG,GACT,OAAO,CAAC,OAAO,CAAC,CAuClB;AAQD;;;;;;;;;;;;;GAaG;AACH,wBAAsB,MAAM,CAC1B,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,EAC9B,WAAW,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,OAAO,GACrC,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAyGlC;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,QAAQ,EAAE,QAAQ,EAClB,GAAG,EAAE,gBAAgB,EACrB,cAAc,EAAE,cAAc,GAC7B,OAAO,CAAC,OAAO,CAAC,CAUlB;AAED;;;;;;;GAOG;AACH,wBAAsB,WAAW,CAC/B,KAAK,EAAE,GAAG,GAAG,gBAAgB,EAC7B,cAAc,EAAE,cAAc,GAC7B,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,CAwCvB"}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
2
|
import * as dntShim from "../_dnt.shims.js";
|
3
|
-
import { Temporal } from "@js-temporal/polyfill";
|
4
3
|
import type { KvKey, KvStore } from "../federation/kv.js";
|
5
4
|
/**
|
6
5
|
* A remote JSON-LD document and its context fetched by
|
@@ -95,7 +94,7 @@ export interface KvCacheParameters {
|
|
95
94
|
* - `https://w3id.org/security/v1` for 30 days
|
96
95
|
* - Everything else for 5 minutes
|
97
96
|
*/
|
98
|
-
rules?: [string | URL | dntShim.URLPattern, Temporal.Duration][];
|
97
|
+
rules?: [string | URL | dntShim.URLPattern, dntShim.Temporal.Duration][];
|
99
98
|
}
|
100
99
|
/**
|
101
100
|
* Decorates a {@link DocumentLoader} with a cache backed by a {@link Deno.Kv}.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"docloader.d.ts","sourceRoot":"","sources":["../../src/runtime/docloader.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,
|
1
|
+
{"version":3,"file":"docloader.d.ts","sourceRoot":"","sources":["../../src/runtime/docloader.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAI1D;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,EAAE,M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