@fedify/fedify 1.2.0 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGES.md CHANGED
@@ -3,6 +3,29 @@
3
3
  Fedify changelog
4
4
  ================
5
5
 
6
+ Version 1.2.2
7
+ -------------
8
+
9
+ Released on November 1, 2024.
10
+
11
+ - Handle connection errors (rather than HTTP errors) in
12
+ the `Context.sendActivity()` method.
13
+
14
+ - Support the `fedify` command on Windows on ARM64 via x64 emulation.
15
+ [[#160]]
16
+
17
+ [#160]: https://github.com/dahlia/fedify/issues/160
18
+
19
+
20
+ Version 1.2.1
21
+ -------------
22
+
23
+ Released on October 31, 2024.
24
+
25
+ - Now `fedify node` command can render the node's favicon with
26
+ `image/vnd.microsoft.icon` or `image/x-icon` format.
27
+
28
+
6
29
  Version 1.2.0
7
30
  -------------
8
31
 
@@ -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
- const response = await fetch(request);
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -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,wBAAwB;IACvC;;OAEG;I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