payload-plugin-newsletter 0.25.6 → 0.25.7

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.
@@ -287,7 +287,7 @@ var init_broadcast2 = __esm({
287
287
  let result;
288
288
  try {
289
289
  result = JSON.parse(responseText);
290
- } catch (e) {
290
+ } catch {
291
291
  throw new Error(`Failed to parse response as JSON: ${responseText}`);
292
292
  }
293
293
  console.log("[BroadcastApiProvider] Parsed result:", result);
@@ -2354,9 +2354,7 @@ var createBroadcastsCollection = (pluginConfig) => {
2354
2354
  req.payload.logger.error("Error details:", {
2355
2355
  message: error.message,
2356
2356
  stack: error.stack,
2357
- name: error.name,
2358
- // Check for any additional properties
2359
- ...error
2357
+ name: error.name
2360
2358
  });
2361
2359
  } else {
2362
2360
  req.payload.logger.error("Raw error:", error);