iobroker.gotify-ws 0.1.9 → 0.1.11

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 simatec
3
+ Copyright (c) 2024 - 2025 simatec
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -63,8 +63,21 @@ This establishes a connection and the adapter can receive all incoming messages
63
63
  You can then configure a notification service of your choice for forwarding.
64
64
 
65
65
  ---
66
- <!-- ### **WORK IN PROGRESS** -->
66
+
67
67
  ## Changelog
68
+ <!-- ### **WORK IN PROGRESS** -->
69
+ ### 0.1.11 (2025-01-09)
70
+ * (simatec) eslint-config fix
71
+ * (simatec) Code fix
72
+ * (simatec) Dependencies updated
73
+ * (simatec) Update License
74
+
75
+ ### 0.1.10 (2024-11-24)
76
+ * (simatec) Dependencies updated
77
+ * (simatec) Responsive Design fix
78
+ * (simatec) Issue Action added
79
+ * (simatec) eslint-config added
80
+
68
81
  ### 0.1.9 (2024-09-26)
69
82
  * (simatec) Fix for admin 7.1.5
70
83
 
@@ -110,7 +123,7 @@ You can then configure a notification service of your choice for forwarding.
110
123
 
111
124
  MIT License
112
125
 
113
- Copyright (c) 2024 simatec
126
+ Copyright (c) 2024 - 2025 simatec
114
127
 
115
128
  Permission is hereby granted, free of charge, to any person obtaining a copy
116
129
  of this software and associated documentation files (the "Software"), to deal
@@ -10,7 +10,10 @@
10
10
  "fontSize": 20
11
11
  },
12
12
  "xs": 10,
13
- "sm": 10
13
+ "sm": 10,
14
+ "md": 10,
15
+ "lg": 10,
16
+ "xl": 10
14
17
  },
15
18
  "gotifySettings": {
16
19
  "newLine": true,
@@ -18,7 +21,10 @@
18
21
  "text": "Gotify Settings",
19
22
  "size": 2,
20
23
  "xs": 12,
21
- "sm": 12
24
+ "sm": 12,
25
+ "md": 12,
26
+ "lg": 12,
27
+ "xl": 12
22
28
  },
23
29
  "ip": {
24
30
  "type": "text",
@@ -27,6 +33,7 @@
27
33
  "sm": 12,
28
34
  "md": 8,
29
35
  "lg": 4,
36
+ "xl": 4,
30
37
  "help": "Gotify IP or Domain",
31
38
  "validator": "data.ip",
32
39
  "validatorNoSaveOnError": true,
@@ -38,6 +45,7 @@
38
45
  "sm": 12,
39
46
  "md": 8,
40
47
  "lg": 4,
48
+ "xl": 4,
41
49
  "min": 1,
42
50
  "max": 65535,
43
51
  "help": "Gotify Port",
@@ -55,6 +63,7 @@
55
63
  "sm": 12,
56
64
  "md": 8,
57
65
  "lg": 4,
66
+ "xl": 4,
58
67
  "validator": "data.token",
59
68
  "validatorNoSaveOnError": true,
60
69
  "help": "Gotify Token"
@@ -65,7 +74,10 @@
65
74
  "text": "Notification Settings",
66
75
  "size": 2,
67
76
  "xs": 12,
68
- "sm": 12
77
+ "sm": 12,
78
+ "md": 12,
79
+ "lg": 12,
80
+ "xl": 12
69
81
  },
70
82
  "notificationType": {
71
83
  "type": "select",
@@ -74,6 +86,7 @@
74
86
  "sm": 12,
75
87
  "md": 8,
76
88
  "lg": 4,
89
+ "xl": 4,
77
90
  "help": "Notification type",
78
91
  "options": [
79
92
  {
@@ -121,6 +134,7 @@
121
134
  "sm": 12,
122
135
  "md": 8,
123
136
  "lg": 4,
137
+ "xl": 4,
124
138
  "help": "E-Mail Instance"
125
139
  },
126
140
  "emailReceiver": {
@@ -131,6 +145,7 @@
131
145
  "sm": 12,
132
146
  "md": 8,
133
147
  "lg": 4,
148
+ "xl": 4,
134
149
  "help": "E-Mail Receiver",
135
150
  "validator": "data.emailReceiver",
136
151
  "validatorNoSaveOnError": true,
@@ -145,6 +160,7 @@
145
160
  "sm": 12,
146
161
  "md": 8,
147
162
  "lg": 4,
163
+ "xl": 4,
148
164
  "validator": "data.emailSender",
149
165
  "validatorNoSaveOnError": true,
150
166
  "placeholder": "xxxx@xxxx.com",
@@ -160,6 +176,7 @@
160
176
  "sm": 12,
161
177
  "md": 8,
162
178
  "lg": 4,
179
+ "xl": 4,
163
180
  "help": "Matrix Instance"
164
181
  },
165
182
  "notificationManagerInstance": {
@@ -172,6 +189,7 @@
172
189
  "sm": 12,
173
190
  "md": 8,
174
191
  "lg": 4,
192
+ "xl": 4,
175
193
  "help": "Notification-Manager Instance"
176
194
  },
177
195
  "pushoverInstance": {
@@ -184,6 +202,7 @@
184
202
  "sm": 12,
185
203
  "md": 8,
186
204
  "lg": 4,
205
+ "xl": 4,
187
206
  "help": "Pushover Instance"
188
207
  },
189
208
  "pushoverDeviceID": {
@@ -194,6 +213,7 @@
194
213
  "sm": 12,
195
214
  "md": 8,
196
215
  "lg": 4,
216
+ "xl": 4,
197
217
  "help": "Device ID"
198
218
  },
199
219
  "pushoverSilentNotice": {
@@ -204,7 +224,8 @@
204
224
  "xs": 12,
205
225
  "sm": 12,
206
226
  "md": 8,
207
- "lg": 4
227
+ "lg": 4,
228
+ "xl": 4
208
229
  },
209
230
  "discordInstance": {
210
231
  "type": "selectSendTo",
@@ -216,6 +237,7 @@
216
237
  "sm": 12,
217
238
  "md": 8,
218
239
  "lg": 4,
240
+ "xl": 4,
219
241
  "help": "Discord Instance"
220
242
  },
221
243
  "discordTarget": {
@@ -228,6 +250,7 @@
228
250
  "sm": 12,
229
251
  "md": 8,
230
252
  "lg": 4,
253
+ "xl": 4,
231
254
  "default": "none",
232
255
  "help": "Discord Target"
233
256
  },
@@ -241,6 +264,7 @@
241
264
  "sm": 12,
242
265
  "md": 8,
243
266
  "lg": 4,
267
+ "xl": 4,
244
268
  "help": "Signal Instance"
245
269
  },
246
270
  "telegramInstance": {
@@ -253,6 +277,7 @@
253
277
  "sm": 12,
254
278
  "md": 8,
255
279
  "lg": 4,
280
+ "xl": 4,
256
281
  "help": "Telegram Instance"
257
282
  },
258
283
  "telegramUser": {
@@ -266,6 +291,7 @@
266
291
  "sm": 12,
267
292
  "md": 8,
268
293
  "lg": 4,
294
+ "xl": 4,
269
295
  "help": "Telegram User"
270
296
  },
271
297
  "whatsappInstance": {
@@ -278,6 +304,7 @@
278
304
  "sm": 12,
279
305
  "md": 8,
280
306
  "lg": 4,
307
+ "xl": 4,
281
308
  "help": "Whatsapp Instance"
282
309
  },
283
310
  "_helpLine2": {
@@ -285,14 +312,20 @@
285
312
  "type": "divider",
286
313
  "color": "secondary",
287
314
  "xs": 12,
288
- "sm": 12
315
+ "sm": 12,
316
+ "md": 12,
317
+ "lg": 12,
318
+ "xl": 12
289
319
  },
290
320
  "_donateTxt": {
291
321
  "type": "staticText",
292
322
  "text": "If you like this project and would like to support its development, you are welcome to leave a donation.",
293
323
  "newLine": true,
294
324
  "xs": 12,
295
- "sm": 12
325
+ "sm": 12,
326
+ "md": 12,
327
+ "lg": 12,
328
+ "xl": 12
296
329
  },
297
330
  "_donate": {
298
331
  "type": "staticImage",
@@ -304,7 +337,8 @@
304
337
  "xs": 7,
305
338
  "sm": 3,
306
339
  "md": 3,
307
- "lg": 1.2
340
+ "lg": 1.2,
341
+ "xl": 1.2
308
342
  },
309
343
  "_githubSponsor": {
310
344
  "type": "staticImage",
@@ -315,7 +349,8 @@
315
349
  "xs": 5,
316
350
  "sm": 2,
317
351
  "md": 2,
318
- "lg": 0.8
352
+ "lg": 0.8,
353
+ "xl": 0.8
319
354
  }
320
355
  }
321
356
  }
package/io-package.json CHANGED
@@ -1,8 +1,34 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "gotify-ws",
4
- "version": "0.1.9",
4
+ "version": "0.1.11",
5
5
  "news": {
6
+ "0.1.11": {
7
+ "en": "eslint-config fix\nCode fix\nDependencies updated\nUpdate License",
8
+ "de": "eslint-config fix\nCode fix\nAusgaben aktualisiert\nLizenz aktualisieren",
9
+ "ru": "eslint-конфигурация\nКод\nОбновленные данные о зависимостях\nЛицензия обновления",
10
+ "pt": "eslint-config fix\nCorreção de código\nDependências atualizadas\nLicença de atualização",
11
+ "nl": "eslint-config fix\nCodefix\nAfhankelijkheden bijgewerkt\nLicentie bijwerken",
12
+ "fr": "fixateur eslint-config\nFixation du code\nDépendances actualisées\nMettre à jour la licence",
13
+ "it": "eslint-config fix\nCodice di correzione\nDipendenze aggiornate\nLicenza di aggiornamento",
14
+ "es": "eslint-config fix\nCódigo\nActualización de las dependencias\nActualizar Licencia",
15
+ "pl": "fix eslint- config\nUstawienie kodu\nAktualizacja zależności\nUaktualnij licencję",
16
+ "uk": "eslint-config виправити\nВиправлення коду\nЗалежність оновлено\nОновлення ліцензії",
17
+ "zh-cn": "埃斯林特配置修复\n代码修正\n更新的依赖关系\n更新许可证"
18
+ },
19
+ "0.1.10": {
20
+ "en": "Dependencies updated\nResponsive Design fix\nIssue Action added\neslint-config added",
21
+ "de": "Ausgaben aktualisiert\nResponsive Design fix\nAusgabe Aktion hinzugefügt\neslint-config hinzugefügt",
22
+ "ru": "Обновленные данные о зависимостях\nРеакция Responsive Design\nДополнительные меры\nдобавлена eslint-config",
23
+ "pt": "Dependências atualizadas\nCorreção de design responsivo\nAção de problemas adicionada\neslint-config adicionado",
24
+ "nl": "Afhankelijkheden bijgewerkt\nResponsive Design fix\nOnderwerpactie toegevoegd\neslint-config toegevoegd",
25
+ "fr": "Dépendances actualisées\nCorrection de conception sensible\nMesure à prendre\neslint-config ajouté",
26
+ "it": "Dipendenze aggiornate\nResponsive Design fix\nAzione di problema aggiunto\neslint-config aggiunto",
27
+ "es": "Actualización de las dependencias\nResponsive Design fix\nTema Acción añadido\neslint-config añadido",
28
+ "pl": "Aktualizacja zależności\nResponsive Design fix\nDodano działanie\neslint- config dodany",
29
+ "uk": "Залежність оновлено\nКріплення адаптивного дизайну\nДодана емісія\neslint-config додано",
30
+ "zh-cn": "更新的依赖关系\n反应设计修正\n添加的问题行动\n添加埃斯林特配置"
31
+ },
6
32
  "0.1.9": {
7
33
  "en": "Fix for admin 7.1.5",
8
34
  "de": "Fix für admin 7.1.5",
@@ -67,32 +93,6 @@
67
93
  "pl": "mały fix",
68
94
  "uk": "невелика фіксація",
69
95
  "zh-cn": "小修补"
70
- },
71
- "0.1.4": {
72
- "en": "Dependencies updated",
73
- "de": "Ausgaben aktualisiert",
74
- "ru": "Обновленные данные о зависимостях",
75
- "pt": "Dependências atualizadas",
76
- "nl": "Afhankelijkheden bijgewerkt",
77
- "fr": "Dépendances actualisées",
78
- "it": "Dipendenze aggiornate",
79
- "es": "Actualización de las dependencias",
80
- "pl": "Aktualizacja zależności",
81
- "uk": "Залежність оновлено",
82
- "zh-cn": "更新的依赖关系"
83
- },
84
- "0.1.3": {
85
- "en": "Fix Test & Release\nFix Timeout",
86
- "de": "Test und Release\nTimeout reparieren",
87
- "ru": "Fix Test & Release\nВремя ожидания",
88
- "pt": "Teste de Fix & Release\nFix Timeout",
89
- "nl": "Repareren Test & Release\nTijdslimiet herstellen",
90
- "fr": "Correction du test et de la libération\nCorrection du délai",
91
- "it": "Prova di correzione e rilascio\nRisolto il timeout",
92
- "es": "Reparación de prueba\nCorrección de tiempo",
93
- "pl": "Napraw test i wydaj\nPopraw czas",
94
- "uk": "Тестування та реліз\nВиправлення часу",
95
- "zh-cn": "修复测试和释放\n修正超时"
96
96
  }
97
97
  },
98
98
  "titleLang": {
package/main.js CHANGED
@@ -1,4 +1,3 @@
1
- /* eslint-disable prefer-const */
2
1
  'use strict';
3
2
 
4
3
  const WebSocket = require('ws');
@@ -65,7 +64,6 @@ class GotifyWs extends utils.Adapter {
65
64
  case 'sendToInstance':
66
65
  // @ts-ignore
67
66
  if (obj && obj.command === 'sendToInstance' && obj.message && obj.message.type) {
68
- // eslint-disable-next-line prefer-const
69
67
  let resultInstances = [];
70
68
 
71
69
  // @ts-ignore
@@ -110,7 +108,6 @@ class GotifyWs extends utils.Adapter {
110
108
  useUsername = native.useUsername;
111
109
  }
112
110
 
113
- // eslint-disable-next-line prefer-const
114
111
  let resultUser = [{ label: this._('All Receiver', systemLang), value: 'allTelegramUsers' }];
115
112
 
116
113
  if (userList && userList.val) {
@@ -427,7 +424,7 @@ class GotifyWs extends utils.Adapter {
427
424
  if (translations[word]) {
428
425
  return translations[word];
429
426
  } else {
430
- this.log.debug('Please translate in translations.json: ' + word);
427
+ this.log.debug(`Please translate in translations.json: ${word}`);
431
428
  return word;
432
429
  }
433
430
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.gotify-ws",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "Gotify web socket for connection to various notification systems",
5
5
  "author": {
6
6
  "name": "simatec",
@@ -28,9 +28,9 @@
28
28
  "node": ">= 18"
29
29
  },
30
30
  "dependencies": {
31
- "@iobroker/adapter-core": "^3.1.6",
32
- "ws": "^8.18.0",
33
- "axios": "^1.7.7"
31
+ "@iobroker/adapter-core": "^3.2.3",
32
+ "axios": "^1.7.9",
33
+ "ws": "^8.18.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@alcalzone/release-script": "^3.8.0",
@@ -38,13 +38,13 @@
38
38
  "@alcalzone/release-script-plugin-license": "^3.7.0",
39
39
  "@alcalzone/release-script-plugin-manual-review": "^3.7.0",
40
40
  "@iobroker/adapter-dev": "^1.3.0",
41
+ "@iobroker/eslint-config": "^1.0.0",
41
42
  "@iobroker/testing": "^5.0.0",
42
- "chai": "^4.5.0",
43
- "chai-as-promised": "^7.1.2",
44
- "eslint": "^9.10.0",
45
- "mocha": "^10.7.3",
46
- "sinon": "^18.0.0",
47
- "sinon-chai": "^3.7.0"
43
+ "chai": "^5.1.2",
44
+ "chai-as-promised": "^8.0.1",
45
+ "mocha": "^11.0.1",
46
+ "sinon": "^19.0.2",
47
+ "sinon-chai": "^4.0.0"
48
48
  },
49
49
  "main": "main.js",
50
50
  "files": [
@@ -81,7 +81,8 @@
81
81
  "translate": "translate-adapter",
82
82
  "dev-server-run": "dev-server run gotify-ws",
83
83
  "dev-server-watch": "dev-server watch gotify-ws",
84
- "npm": "npm install"
84
+ "npm": "npm install",
85
+ "lint": "eslint -c eslint.config.mjs ."
85
86
  },
86
87
  "bugs": {
87
88
  "url": "https://github.com/simatec/ioBroker.gotify-ws/issues"