@rmdes/indiekit-endpoint-syndicate 1.0.0-beta.43 → 1.0.0-beta.44

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.
@@ -239,14 +239,16 @@ export const syndicateController = {
239
239
  `[syndication] Syndicated: ${result.url} (${result.syndicatedUrls.length} target(s))`,
240
240
  );
241
241
  } catch (error) {
242
+ const message =
243
+ error instanceof Error ? error.message : String(error);
242
244
  results.push({
243
245
  url: postData.properties?.url,
244
246
  success: false,
245
- error: error.message,
247
+ error: message,
246
248
  });
247
249
 
248
250
  console.error(
249
- `[syndication] Failed: ${postData.properties?.url} - ${error.message}`,
251
+ `[syndication] Failed: ${postData.properties?.url} - ${message}`,
250
252
  );
251
253
  }
252
254
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rmdes/indiekit-endpoint-syndicate",
3
- "version": "1.0.0-beta.43",
3
+ "version": "1.0.0-beta.44",
4
4
  "description": "Syndication endpoint for Indiekit. Fork of @indiekit/endpoint-syndicate with batch syndication support and bug fixes.",
5
5
  "keywords": [
6
6
  "indiekit",