iobroker.gotify-ws 0.1.10 → 0.1.12
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 +1 -1
- package/README.md +57 -30
- package/io-package.json +28 -28
- package/main.js +1 -4
- package/package.json +8 -8
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -39,14 +39,14 @@ Gotify-WS receives messages and forwards them to a notification service supporte
|
|
|
39
39
|
|
|
40
40
|
Spotify-WS currently supports the following notification services
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
- e-mail
|
|
43
|
+
- Matrix
|
|
44
|
+
- Notification-Manager
|
|
45
|
+
- Pushover
|
|
46
|
+
- Discord
|
|
47
|
+
- Signal
|
|
48
|
+
- Telegram
|
|
49
|
+
- Whatsapp
|
|
50
50
|
|
|
51
51
|
---
|
|
52
52
|
|
|
@@ -63,51 +63,78 @@ 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
|
+
|
|
67
|
+
## Changelog
|
|
68
|
+
|
|
66
69
|
<!-- ### **WORK IN PROGRESS** -->
|
|
70
|
+
### 0.1.12 (2025-02-22)
|
|
71
|
+
|
|
72
|
+
- (simatec) Dependencies updated
|
|
73
|
+
- (simatec) small fix
|
|
74
|
+
|
|
75
|
+
### 0.1.11 (2025-01-09)
|
|
76
|
+
|
|
77
|
+
- (simatec) eslint-config fix
|
|
78
|
+
- (simatec) Code fix
|
|
79
|
+
- (simatec) Dependencies updated
|
|
80
|
+
- (simatec) Update License
|
|
81
|
+
|
|
67
82
|
### 0.1.10 (2024-11-24)
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
83
|
+
|
|
84
|
+
- (simatec) Dependencies updated
|
|
85
|
+
- (simatec) Responsive Design fix
|
|
86
|
+
- (simatec) Issue Action added
|
|
87
|
+
- (simatec) eslint-config added
|
|
72
88
|
|
|
73
89
|
### 0.1.9 (2024-09-26)
|
|
74
|
-
|
|
90
|
+
|
|
91
|
+
- (simatec) Fix for admin 7.1.5
|
|
75
92
|
|
|
76
93
|
### 0.1.8 (2024-09-24)
|
|
77
|
-
|
|
78
|
-
|
|
94
|
+
|
|
95
|
+
- (simatec) Responsive Design fix
|
|
96
|
+
- (simatec) Cleaned code
|
|
79
97
|
|
|
80
98
|
### 0.1.7 (2024-09-16)
|
|
81
|
-
|
|
82
|
-
|
|
99
|
+
|
|
100
|
+
- (simatec) Dependencies updated
|
|
101
|
+
- (simatec) Responsive Design fix
|
|
83
102
|
|
|
84
103
|
### 0.1.6 (2024-09-10)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
104
|
+
|
|
105
|
+
- (simatec) Fix Adapter Check
|
|
106
|
+
- (simatec) Dependencies updated
|
|
107
|
+
- (simatec) Responsive Design added
|
|
88
108
|
|
|
89
109
|
### 0.1.5 (2024-07-22)
|
|
90
|
-
|
|
110
|
+
|
|
111
|
+
- (simatec) small fix
|
|
91
112
|
|
|
92
113
|
### 0.1.4 (2024-07-19)
|
|
93
|
-
|
|
114
|
+
|
|
115
|
+
- (simatec) Dependencies updated
|
|
94
116
|
|
|
95
117
|
### 0.1.3 (2024-07-17)
|
|
96
|
-
|
|
97
|
-
|
|
118
|
+
|
|
119
|
+
- (simatec) Fix Test & Release
|
|
120
|
+
- (simatec) Fix Timeout
|
|
98
121
|
|
|
99
122
|
### 0.1.2 (2024-06-26)
|
|
100
|
-
|
|
101
|
-
|
|
123
|
+
|
|
124
|
+
- (simatec) Fix io-package
|
|
125
|
+
- (simatec) Notification-Manager added
|
|
102
126
|
|
|
103
127
|
### 0.1.1 (2024-06-19)
|
|
104
|
-
|
|
128
|
+
|
|
129
|
+
- (simatec) Fix Branch
|
|
105
130
|
|
|
106
131
|
### 0.1.0 (2024-06-19)
|
|
107
|
-
|
|
132
|
+
|
|
133
|
+
- (simatec) First Release
|
|
108
134
|
|
|
109
135
|
### 0.0.1 (2024-03-15)
|
|
110
|
-
|
|
136
|
+
|
|
137
|
+
- (simatec) initial release
|
|
111
138
|
|
|
112
139
|
---
|
|
113
140
|
|
|
@@ -115,7 +142,7 @@ You can then configure a notification service of your choice for forwarding.
|
|
|
115
142
|
|
|
116
143
|
MIT License
|
|
117
144
|
|
|
118
|
-
Copyright (c) 2024 simatec
|
|
145
|
+
Copyright (c) 2024 - 2025 simatec
|
|
119
146
|
|
|
120
147
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
121
148
|
of this software and associated documentation files (the "Software"), to deal
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "gotify-ws",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.12",
|
|
5
5
|
"news": {
|
|
6
|
+
"0.1.12": {
|
|
7
|
+
"en": "Dependencies updated\nsmall fix",
|
|
8
|
+
"de": "Ausgaben aktualisiert\nkleine fix",
|
|
9
|
+
"ru": "Обновленные зависимости\nнебольшой ремонт",
|
|
10
|
+
"pt": "Dependências atualizadas\npequena correção",
|
|
11
|
+
"nl": "Afhankelijkheden bijgewerkt\nkleine fix",
|
|
12
|
+
"fr": "Dépendances actualisées\npetite fixation",
|
|
13
|
+
"it": "Dipendenze aggiornate\npiccola correzione",
|
|
14
|
+
"es": "Actualización de las dependencias\npequeño",
|
|
15
|
+
"pl": "Aktualizacja zależności\nmały fix",
|
|
16
|
+
"uk": "Залежність оновлено\nневелика фіксація",
|
|
17
|
+
"zh-cn": "更新的依赖关系\n小修补"
|
|
18
|
+
},
|
|
19
|
+
"0.1.11": {
|
|
20
|
+
"en": "eslint-config fix\nCode fix\nDependencies updated\nUpdate License",
|
|
21
|
+
"de": "eslint-config fix\nCode fix\nAusgaben aktualisiert\nLizenz aktualisieren",
|
|
22
|
+
"ru": "eslint-конфигурация\nКод\nОбновленные данные о зависимостях\nЛицензия обновления",
|
|
23
|
+
"pt": "eslint-config fix\nCorreção de código\nDependências atualizadas\nLicença de atualização",
|
|
24
|
+
"nl": "eslint-config fix\nCodefix\nAfhankelijkheden bijgewerkt\nLicentie bijwerken",
|
|
25
|
+
"fr": "fixateur eslint-config\nFixation du code\nDépendances actualisées\nMettre à jour la licence",
|
|
26
|
+
"it": "eslint-config fix\nCodice di correzione\nDipendenze aggiornate\nLicenza di aggiornamento",
|
|
27
|
+
"es": "eslint-config fix\nCódigo\nActualización de las dependencias\nActualizar Licencia",
|
|
28
|
+
"pl": "fix eslint- config\nUstawienie kodu\nAktualizacja zależności\nUaktualnij licencję",
|
|
29
|
+
"uk": "eslint-config виправити\nВиправлення коду\nЗалежність оновлено\nОновлення ліцензії",
|
|
30
|
+
"zh-cn": "埃斯林特配置修复\n代码修正\n更新的依赖关系\n更新许可证"
|
|
31
|
+
},
|
|
6
32
|
"0.1.10": {
|
|
7
33
|
"en": "Dependencies updated\nResponsive Design fix\nIssue Action added\neslint-config added",
|
|
8
34
|
"de": "Ausgaben aktualisiert\nResponsive Design fix\nAusgabe Aktion hinzugefügt\neslint-config hinzugefügt",
|
|
@@ -67,32 +93,6 @@
|
|
|
67
93
|
"pl": "Napraw adapter Sprawdź\nAktualizacja zależności\nDodano projekt odpowiedzialny",
|
|
68
94
|
"uk": "Фіксований адаптер Зареєструватися\nЗалежність оновлено\nДодано адаптивний дизайн",
|
|
69
95
|
"zh-cn": "修复适配器 检查\n更新的依赖关系\n添加响应设计"
|
|
70
|
-
},
|
|
71
|
-
"0.1.5": {
|
|
72
|
-
"en": "small fix",
|
|
73
|
-
"de": "kleine fix",
|
|
74
|
-
"ru": "небольшое исправление",
|
|
75
|
-
"pt": "pequena correção",
|
|
76
|
-
"nl": "kleine fix",
|
|
77
|
-
"fr": "petite fixation",
|
|
78
|
-
"it": "piccola correzione",
|
|
79
|
-
"es": "pequeño",
|
|
80
|
-
"pl": "mały fix",
|
|
81
|
-
"uk": "невелика фіксація",
|
|
82
|
-
"zh-cn": "小修补"
|
|
83
|
-
},
|
|
84
|
-
"0.1.4": {
|
|
85
|
-
"en": "Dependencies updated",
|
|
86
|
-
"de": "Ausgaben aktualisiert",
|
|
87
|
-
"ru": "Обновленные данные о зависимостях",
|
|
88
|
-
"pt": "Dependências atualizadas",
|
|
89
|
-
"nl": "Afhankelijkheden bijgewerkt",
|
|
90
|
-
"fr": "Dépendances actualisées",
|
|
91
|
-
"it": "Dipendenze aggiornate",
|
|
92
|
-
"es": "Actualización de las dependencias",
|
|
93
|
-
"pl": "Aktualizacja zależności",
|
|
94
|
-
"uk": "Залежність оновлено",
|
|
95
|
-
"zh-cn": "更新的依赖关系"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
],
|
|
163
163
|
"globalDependencies": [
|
|
164
164
|
{
|
|
165
|
-
"admin": ">=
|
|
165
|
+
"admin": ">=7.4.10"
|
|
166
166
|
}
|
|
167
167
|
]
|
|
168
168
|
},
|
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(
|
|
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.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "Gotify web socket for connection to various notification systems",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "simatec",
|
|
@@ -28,21 +28,21 @@
|
|
|
28
28
|
"node": ">= 18"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@iobroker/adapter-core": "^3.2.
|
|
32
|
-
"axios": "^1.7.
|
|
33
|
-
"ws": "^8.18.
|
|
31
|
+
"@iobroker/adapter-core": "^3.2.3",
|
|
32
|
+
"axios": "^1.7.9",
|
|
33
|
+
"ws": "^8.18.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@alcalzone/release-script": "^3.8.0",
|
|
37
37
|
"@alcalzone/release-script-plugin-iobroker": "^3.7.2",
|
|
38
38
|
"@alcalzone/release-script-plugin-license": "^3.7.0",
|
|
39
39
|
"@alcalzone/release-script-plugin-manual-review": "^3.7.0",
|
|
40
|
-
"@iobroker/adapter-dev": "^1.
|
|
40
|
+
"@iobroker/adapter-dev": "^1.4.0",
|
|
41
41
|
"@iobroker/eslint-config": "^1.0.0",
|
|
42
|
-
"@iobroker/testing": "^5.0.
|
|
42
|
+
"@iobroker/testing": "^5.0.3",
|
|
43
43
|
"chai": "^5.1.2",
|
|
44
|
-
"chai-as-promised": "^8.0.
|
|
45
|
-
"mocha": "^
|
|
44
|
+
"chai-as-promised": "^8.0.1",
|
|
45
|
+
"mocha": "^11.1.0",
|
|
46
46
|
"sinon": "^19.0.2",
|
|
47
47
|
"sinon-chai": "^4.0.0"
|
|
48
48
|
},
|