@fedify/fedify 1.3.0-dev.477 → 1.3.0-dev.481
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGES.md +14 -0
- package/esm/federation/send.js +12 -1
- package/esm/runtime/key.js +1 -1
- package/esm/sig/http.js +1 -1
- package/esm/vocab/lookup.js +1 -1
- package/package.json +1 -1
- package/types/deps/jsr.io/@std/async/{1.0.7 → 1.0.8}/delay.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/concat.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/copy.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/ends_with.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/equals.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/includes_needle.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/index_of_needle.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/last_index_of_needle.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/repeat.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/starts_with.d.ts.map +1 -1
- package/types/federation/send.d.ts.map +1 -1
- /package/esm/deps/jsr.io/@std/async/{1.0.7 → 1.0.8}/delay.js +0 -0
- /package/esm/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/concat.js +0 -0
- /package/esm/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/copy.js +0 -0
- /package/esm/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/ends_with.js +0 -0
- /package/esm/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/equals.js +0 -0
- /package/esm/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/includes_needle.js +0 -0
- /package/esm/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/index_of_needle.js +0 -0
- /package/esm/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/last_index_of_needle.js +0 -0
- /package/esm/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/mod.js +0 -0
- /package/esm/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/repeat.js +0 -0
- /package/esm/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/starts_with.js +0 -0
- /package/types/deps/jsr.io/@std/async/{1.0.7 → 1.0.8}/delay.d.ts +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/concat.d.ts +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/copy.d.ts +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/ends_with.d.ts +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/equals.d.ts +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/includes_needle.d.ts +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/index_of_needle.d.ts +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/last_index_of_needle.d.ts +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/repeat.d.ts +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.2 → 1.0.3}/starts_with.d.ts +0 -0
package/CHANGES.md
CHANGED
@@ -9,6 +9,20 @@ Version 1.3.0
|
|
9
9
|
To be released.
|
10
10
|
|
11
11
|
|
12
|
+
Version 1.2.2
|
13
|
+
-------------
|
14
|
+
|
15
|
+
Released on November 1, 2024.
|
16
|
+
|
17
|
+
- Handle connection errors (rather than HTTP errors) in
|
18
|
+
the `Context.sendActivity()` method.
|
19
|
+
|
20
|
+
- Support the `fedify` command on Windows on ARM64 via x64 emulation.
|
21
|
+
[[#160]]
|
22
|
+
|
23
|
+
[#160]: https://github.com/dahlia/fedify/issues/160
|
24
|
+
|
25
|
+
|
12
26
|
Version 1.2.1
|
13
27
|
-------------
|
14
28
|
|
package/esm/federation/send.js
CHANGED
@@ -61,7 +61,18 @@ export async function sendActivity({ activity, activityId, keys, inbox, headers,
|
|
61
61
|
else {
|
62
62
|
request = await signRequest(request, rsaKey.privateKey, rsaKey.keyId);
|
63
63
|
}
|
64
|
-
|
64
|
+
let response;
|
65
|
+
try {
|
66
|
+
response = await fetch(request);
|
67
|
+
}
|
68
|
+
catch (error) {
|
69
|
+
logger.error("Failed to send activity {activityId} to {inbox}:\n{error}", {
|
70
|
+
activityId,
|
71
|
+
inbox: inbox.href,
|
72
|
+
error,
|
73
|
+
});
|
74
|
+
throw error;
|
75
|
+
}
|
65
76
|
if (!response.ok) {
|
66
77
|
let error;
|
67
78
|
try {
|
package/esm/runtime/key.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as dntShim from "../_dnt.shims.js";
|
2
2
|
import { createPublicKey } from "node:crypto";
|
3
|
-
import { concat } from "../deps/jsr.io/@std/bytes/1.0.
|
3
|
+
import { concat } from "../deps/jsr.io/@std/bytes/1.0.3/concat.js";
|
4
4
|
import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/1.0.5/base64.js";
|
5
5
|
import { decodeBase64Url } from "../deps/jsr.io/@std/encoding/1.0.5/base64url.js";
|
6
6
|
import { decodeHex } from "../deps/jsr.io/@std/encoding/1.0.5/hex.js";
|
package/esm/sig/http.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as dntShim from "../_dnt.shims.js";
|
2
2
|
import { getLogger } from "@logtape/logtape";
|
3
|
-
import { equals } from "../deps/jsr.io/@std/bytes/1.0.
|
3
|
+
import { equals } from "../deps/jsr.io/@std/bytes/1.0.3/mod.js";
|
4
4
|
import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/1.0.5/base64.js";
|
5
5
|
import { CryptographicKey } from "../vocab/vocab.js";
|
6
6
|
import { fetchKey, validateCryptoKey } from "./key.js";
|
package/esm/vocab/lookup.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as dntShim from "../_dnt.shims.js";
|
2
2
|
import { getLogger } from "@logtape/logtape";
|
3
|
-
import { delay } from "../deps/jsr.io/@std/async/1.0.
|
3
|
+
import { delay } from "../deps/jsr.io/@std/async/1.0.8/delay.js";
|
4
4
|
import { fetchDocumentLoader, } from "../runtime/docloader.js";
|
5
5
|
import { lookupWebFinger } from "../webfinger/lookup.js";
|
6
6
|
import { Object } from "./vocab.js";
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.
|
1
|
+
{"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.8/delay.ts"],"names":[],"mappings":";AAMA,MAAM,WAAW,YAAY;IAC3B,sCAAsC;IACtC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2B3E"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
1
|
+
{"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.3/concat.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,UAAU,CAaxD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
1
|
+
{"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.3/copy.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,SAAI,GAAG,MAAM,CAQzE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ends_with.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
1
|
+
{"version":3,"file":"ends_with.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.3/ends_with.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,GAAG,OAAO,CAWxE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
1
|
+
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.3/equals.ts"],"names":[],"mappings":"AA6DA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,GAAG,OAAO,CAQ5D"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"includes_needle.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
1
|
+
{"version":3,"file":"includes_needle.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.3/includes_needle.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,UAAU,EAClB,KAAK,SAAI,GACR,OAAO,CAET"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index_of_needle.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
1
|
+
{"version":3,"file":"index_of_needle.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.3/index_of_needle.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,UAAU,EAClB,KAAK,SAAI,GACR,MAAM,CAqBR"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"last_index_of_needle.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
1
|
+
{"version":3,"file":"last_index_of_needle.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.3/last_index_of_needle.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,UAAU,EAClB,KAAK,GAAE,MAA0B,GAChC,MAAM,CAuBR"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.3/mod.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"repeat.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
1
|
+
{"version":3,"file":"repeat.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.3/repeat.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAapE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"starts_with.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.
|
1
|
+
{"version":3,"file":"starts_with.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.3/starts_with.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,GAAG,OAAO,CAS1E"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"send.d.ts","sourceRoot":"","sources":["../../src/federation/send.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAG5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,wBA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O,CAAC;IAE5B;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,GAAG,EAAE,CAAC;CACzB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,EAAE,UAAU,EAAE,iBAAiB,EAAE,eAAe,EAAE,EAAE,wBAAwB,GAC3E,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAkB7B;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC,SAAS,CAAC;IAE9B;;OAEG;IACH,KAAK,EAAE,GAAG,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;;OAGG;IACH,IAAI,EAAE,aAAa,EAAE,CAAC;IAEtB;;OAEG;IACH,KAAK,EAAE,GAAG,CAAC;IAEX;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;GAMG;AACH,wBAAsB,YAAY,CAChC,EACE,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,KAAK,EACL,OAAO,GACR,EAAE,sBAAsB,GACxB,OAAO,CAAC,IAAI,CAAC,CAsEf"}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|