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.
- package/CHANGELOG.md +7 -0
- package/dist/{broadcast-7DI2WOB3.js → broadcast-KSKQRQB6.js} +1 -1
- package/dist/{chunk-LLPN5SQN.js → chunk-KZDNTLVF.js} +1 -1
- package/dist/collections.cjs +2 -4
- package/dist/collections.cjs.map +1 -1
- package/dist/collections.js +2 -4
- package/dist/collections.js.map +1 -1
- package/dist/server.js +8 -10
- package/package.json +1 -1
package/dist/collections.js
CHANGED
|
@@ -287,7 +287,7 @@ var init_broadcast2 = __esm({
|
|
|
287
287
|
let result;
|
|
288
288
|
try {
|
|
289
289
|
result = JSON.parse(responseText);
|
|
290
|
-
} catch
|
|
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);
|