@costrict/notify 1.0.5 → 1.0.6
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/README.md +3 -3
- package/package.json +1 -1
- package/src/index.js +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ Monitors human intervention events and sends notifications via multiple channels
|
|
|
12
12
|
|
|
13
13
|
## Notification Channels
|
|
14
14
|
|
|
15
|
-
### System Notification (Default
|
|
15
|
+
### System Notification (Default Enabled)
|
|
16
16
|
Desktop notifications using `node-notifier` - works across Windows, macOS, and Linux.
|
|
17
17
|
|
|
18
18
|
### Bark Notification
|
|
@@ -26,8 +26,8 @@ Push notifications via WeChat Work (企微) webhook service.
|
|
|
26
26
|
Configure notification channels using environment variables:
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
# Enable/disable notification channels
|
|
30
|
-
NOTIFY_ENABLE_SYSTEM=true # System notification (default: false)
|
|
29
|
+
# Enable/disable notification channels
|
|
30
|
+
NOTIFY_ENABLE_SYSTEM=true # System notification (default: true, set to false to disable)
|
|
31
31
|
NOTIFY_ENABLE_BARK=false # Bark notification (default: false)
|
|
32
32
|
NOTIFY_ENABLE_WECOM=false # WeChat Work notification (default: false)
|
|
33
33
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -105,7 +105,7 @@ class WecomNotifier {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
async function sendNotification(title, message, options = {}) {
|
|
108
|
-
const enableSystem = process.env.NOTIFY_ENABLE_SYSTEM
|
|
108
|
+
const enableSystem = process.env.NOTIFY_ENABLE_SYSTEM !== "false";
|
|
109
109
|
const enableBark = process.env.NOTIFY_ENABLE_BARK === "true";
|
|
110
110
|
const enableWecom = process.env.NOTIFY_ENABLE_WECOM === "true";
|
|
111
111
|
|