@liberstudio/cloudflare-list 2.3.8 → 2.3.9

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 CHANGED
@@ -132,7 +132,7 @@ export class AppModule {}
132
132
 
133
133
  ### `whatsappNotify` — notifiche ban su WhatsApp
134
134
 
135
- Quando configurato, invia un messaggio WhatsApp ad un numero specifico ogni volta che un IP viene bloccato su Cloudflare. Richiede le variabili d'ambiente `WA_URL`, `WA_USER`, `WA_PASSWORD` e `WA_DEVICE_ID` già presenti nel progetto (lette automaticamente da `process.env`).
135
+ Quando configurato, invia un messaggio WhatsApp ad un numero specifico ogni volta che un IP viene bloccato su Cloudflare. Richiede le variabili d'ambiente `WA_URL`, `WA_USER`, `WA_PASSWORD` e `CLOUDFLARE_WA_DEVICE_ID` già presenti nel progetto (lette automaticamente da `process.env`).
136
136
 
137
137
  ```typescript
138
138
  whatsappNotify: {
@@ -152,7 +152,7 @@ Variabili d'ambiente richieste (lette automaticamente da `process.env`):
152
152
  WA_URL=https://messaggistica.liberdesign.eu
153
153
  WA_USER=your-user
154
154
  WA_PASSWORD=your-password
155
- WA_DEVICE_ID=your-device-id
155
+ CLOUDFLARE_WA_DEVICE_ID=your-device-id
156
156
  WA_NOTIFY_PHONE=393331234567
157
157
  ```
158
158
 
@@ -60,9 +60,9 @@ let AttacksService = class AttacksService {
60
60
  const url = process.env["WA_URL"];
61
61
  const user = process.env["WA_USER"];
62
62
  const password = process.env["WA_PASSWORD"];
63
- const deviceId = process.env["WA_DEVICE_ID"];
63
+ const deviceId = process.env["CLOUDFLARE_WA_DEVICE_ID"];
64
64
  if (!url || !user || !password || !deviceId) {
65
- this.logger.warn("Notifica WhatsApp saltata: WA_URL, WA_USER, WA_PASSWORD o WA_DEVICE_ID mancanti");
65
+ this.logger.warn("Notifica WhatsApp saltata: WA_URL, WA_USER, WA_PASSWORD o CLOUDFLARE_WA_DEVICE_ID mancanti");
66
66
  return;
67
67
  }
68
68
  const auth = Buffer.from(`${user}:${password}`).toString("base64");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liberstudio/cloudflare-list",
3
- "version": "2.3.8",
3
+ "version": "2.3.9",
4
4
  "description": "Modulo NestJS per gestione IP List Cloudflare",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",