@fedify/fedify 1.3.0-dev.477 → 1.3.0-dev.480

Sign up to get free protection for your applications and to get access to all the features.
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
 
@@ -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.3.0-dev.477+5c1eaa6b",
3
+ "version": "1.3.0-dev.480+79ef2c57",
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;IACH,UAAU,EAAE,SAAS,EAAE,CAAC;IAExB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CA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