@gonzih/cc-discord 0.2.19 → 0.2.20
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/dist/notifier.js +3 -3
- package/package.json +1 -1
package/dist/notifier.js
CHANGED
|
@@ -97,8 +97,6 @@ export function parseNotification(raw) {
|
|
|
97
97
|
}
|
|
98
98
|
if (parsed.is_cron === true)
|
|
99
99
|
return null;
|
|
100
|
-
if (parsed.text?.startsWith("⏰"))
|
|
101
|
-
return null;
|
|
102
100
|
if (parsed.text)
|
|
103
101
|
text = parsed.text;
|
|
104
102
|
driver = parsed.driver;
|
|
@@ -111,8 +109,10 @@ export function parseNotification(raw) {
|
|
|
111
109
|
isCron = parsed.is_cron;
|
|
112
110
|
}
|
|
113
111
|
catch {
|
|
114
|
-
|
|
112
|
+
// non-JSON: fall through to text-based check below
|
|
115
113
|
}
|
|
114
|
+
if (text.startsWith("⏰"))
|
|
115
|
+
return null;
|
|
116
116
|
// Parse eval_report if present — this field is non-standard and not in NotificationPayload type
|
|
117
117
|
const evalReport = parseEvalReport(raw);
|
|
118
118
|
if (!driver)
|