iobroker.gotify-ws 0.1.10 → 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,7 +63,15 @@ 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
66
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
+
67
75
  ### 0.1.10 (2024-11-24)
68
76
  * (simatec) Dependencies updated
69
77
  * (simatec) Responsive Design fix
@@ -115,7 +123,7 @@ You can then configure a notification service of your choice for forwarding.
115
123
 
116
124
  MIT License
117
125
 
118
- Copyright (c) 2024 simatec
126
+ Copyright (c) 2024 - 2025 simatec
119
127
 
120
128
  Permission is hereby granted, free of charge, to any person obtaining a copy
121
129
  of this software and associated documentation files (the "Software"), to deal
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "gotify-ws",
4
- "version": "0.1.10",
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
+ },
6
19
  "0.1.10": {
7
20
  "en": "Dependencies updated\nResponsive Design fix\nIssue Action added\neslint-config added",
8
21
  "de": "Ausgaben aktualisiert\nResponsive Design fix\nAusgabe Aktion hinzugefügt\neslint-config hinzugefügt",
@@ -80,19 +93,6 @@
80
93
  "pl": "mały fix",
81
94
  "uk": "невелика фіксація",
82
95
  "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": {
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.10",
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,8 +28,8 @@
28
28
  "node": ">= 18"
29
29
  },
30
30
  "dependencies": {
31
- "@iobroker/adapter-core": "^3.2.2",
32
- "axios": "^1.7.7",
31
+ "@iobroker/adapter-core": "^3.2.3",
32
+ "axios": "^1.7.9",
33
33
  "ws": "^8.18.0"
34
34
  },
35
35
  "devDependencies": {
@@ -41,8 +41,8 @@
41
41
  "@iobroker/eslint-config": "^1.0.0",
42
42
  "@iobroker/testing": "^5.0.0",
43
43
  "chai": "^5.1.2",
44
- "chai-as-promised": "^8.0.0",
45
- "mocha": "^10.8.2",
44
+ "chai-as-promised": "^8.0.1",
45
+ "mocha": "^11.0.1",
46
46
  "sinon": "^19.0.2",
47
47
  "sinon-chai": "^4.0.0"
48
48
  },