iobroker.imap 0.1.3 → 0.2.0

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/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "imap",
4
- "version": "0.1.3",
4
+ "version": "0.2.0",
5
5
  "news": {
6
+ "0.2.0": {
7
+ "en": "Updated Blockly definitions\nJS-Controller >= 5.0.19 required\nAdmin >=6.13.16 required",
8
+ "de": "Aktualisierte Blockly Definitionen\nJS-Controller >= 5.0.19 erforderlich\nAdmin >=6.13.16 erforderlich",
9
+ "ru": "Обновленные детальные определения\n JS 5.0.19\n>=6.13.16",
10
+ "pt": "Definições Blockly atualizadas\nJS-Controller >= 5.0.19 necessário\nAdmin >=6.13.16 necessário",
11
+ "nl": "Bijgewerkte blokdefinities\nJS-Controller < 5.01.19 vereist\nAdmin < 6.13.16 vereist",
12
+ "fr": "Mise à jour des définitions par blocs\nJS-Contrôleur >= 5.0.19 requis\nAdmin >=6.13.16 requis",
13
+ "it": "Aggiornate definizioni Blockly\nJS-Controller >= 5.0.19 richiesto\nAdmin >=6.13.16 richiesto",
14
+ "es": "Definiciones bloqueadas actualizadas\nJS-Controller ≤ 5.0.19 requerido\nPersonal obligatorio",
15
+ "pl": "Aktualizacja definicji blockly\nJS- Controller > = 5.0.19 wymagane\nWymagany dodatek > = 6.13.16",
16
+ "uk": "Оновлено блочні визначення\nJS-Controller >=5.0.19 потрібно\nAdmin >=6.13.16 потрібно",
17
+ "zh-cn": "更新的块状定义\n联合来文主计长\n所需行政经费"
18
+ },
6
19
  "0.1.3": {
7
20
  "en": "Fixed setFlag\nFixed sendTo error during instance deletion ([#57](https://github.com/Lucky-ESA/ioBroker.imap/issues/57))\nMass email shift intercepted",
8
21
  "de": "Fixed set Flagge\nFester Versand Fehler bei der Löschung von Instanzen ([#57](https://github.com/Lucky-ESA/ioBroker.imap/issues/57))\nMassen-E-Mail-Schicht abgefangen",
@@ -80,19 +93,6 @@
80
93
  "pl": "Fixel crash\nAdded MB progym",
81
94
  "uk": "Виправлення аварійних змін\nДодано поріг MB",
82
95
  "zh-cn": "Fixtifresh c\nA. 增加MB门槛"
83
- },
84
- "0.0.7": {
85
- "en": "Fix correct counter for seen and unseen\nAdded capabilities\nCriteria change without restart\nAdded outlook.office365.com oauth2 login\nAdded Connection.js from Module to Adapter\nBug fixes",
86
- "de": "Fix korrekter Zähler für gesehen und unsichtbar\nZusätzliche Fähigkeiten\nÄnderung der Kriterien ohne Neustart\nAusblick.office365.com oauth2 login\nHinzugefügt Connection.js von Modul zu Adapter\nFehlerbehebungen",
87
- "ru": "Исправьте правильный счетчик для видимых и невидимых\nДобавленные возможности\nКритерии меняются без перезапуска\nДобавлен Outlook.office365.com oauth2 логин\nДобавлено Connection.js из модуля к адаптеру\nИсправления ошибок",
88
- "pt": "Corrigir o contador correto para visto e invisível\nRecursos adicionados\nAlteração de critérios sem reinício\nAdicionado outlook.office365.com oauth2 login\nAdicionado Connection.js do módulo ao adaptador\nCorreções de bugs",
89
- "nl": "Vertaling:\nVermogens\nCriteria verandert zonder rust\nVertaling:\nToegevoegd Connection\nBug repareert",
90
- "fr": "Fixer le compteur correct pour vu et invisible\nCapacités ajoutées\nChangement de critères sans redémarrage\nAjout du login Outlook.office365.com oauth2\nAjout de Connection.js de Module à Adaptateur\nCorrections",
91
- "it": "Fissare corretto contatore per visto e invisibile\nCapacità aggiuntive\nCambiamento dei criteri senza riavvio\nAggiunto Outlook.office365.com oauth2 login\nAggiunto Connection.js dal modulo all'adattatore\nCorrezioni di bug",
92
- "es": "Fijar el contador correcto para visto y no visto\nCapacidades adicionales\nLos criterios cambian sin reiniciar\nAñadido Outlook.office365.com oauth2 login\nAñadido Connection.js del módulo al adaptador\nCorrección de errores",
93
- "pl": "Fix koryguje pole widzenia i niespodzianek\nZadaniowe możliwości\nPrzemiana kryzysowa bez restartu\nAdded outlook.office365.com oauth2 login\nAdded Connection.js from Module to Adapter\nBug",
94
- "uk": "Фіксувати правильну лічильник для видимих і невидимих\nДодаткові можливості\nЗміни критерії без перезапуску\nEnglish, Українська, Français..\nДодано Connection.js від Module до адаптера\nВиправлення помилок",
95
- "zh-cn": "Fix 纠正被发现和无见的反击\n增加能力\n2. 标准改变,而不恢复原状\n增加前景\nA. 添加了Anection.js from Module to Adapter\nBug fix"
96
96
  }
97
97
  },
98
98
  "titleLang": {
@@ -130,9 +130,12 @@
130
130
  "email",
131
131
  "receive"
132
132
  ],
133
- "license": "MIT",
133
+ "licenseInformation": {
134
+ "license": "MIT",
135
+ "type": "free"
136
+ },
137
+ "tier": 3,
134
138
  "platform": "Javascript/Node.js",
135
- "main": "main.js",
136
139
  "icon": "imap.png",
137
140
  "enabled": true,
138
141
  "extIcon": "https://raw.githubusercontent.com/Lucky-ESA/ioBroker.imap/master/admin/imap.png",
@@ -158,12 +161,12 @@
158
161
  },
159
162
  "dependencies": [
160
163
  {
161
- "js-controller": ">=3.3.22"
164
+ "js-controller": ">=5.0.19"
162
165
  }
163
166
  ],
164
167
  "globalDependencies": [
165
168
  {
166
- "admin": ">=5.1.13"
169
+ "admin": ">=6.13.16"
167
170
  }
168
171
  ]
169
172
  },
package/lib/Connection.js CHANGED
@@ -208,7 +208,8 @@ class Connection extends EventEmitter {
208
208
  // because 'HEADER.FIELDS (TO FROM)' really is equivalent to
209
209
  // 'HEADER.FIELDS ("TO" "FROM")' and some servers will actually send the
210
210
  // quoted form even if the client did not use quotes
211
- const thisbody = parseExpr(info.which.toUpperCase());
211
+
212
+ const thisbody = info.which != null ? parseExpr(info.which.toUpperCase()) : "";
212
213
  for (let i = 0, len = toget.length; i < len; ++i) {
213
214
  if (deepEqual(thisbody, toget[i])) {
214
215
  toget.splice(i, 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.imap",
3
- "version": "0.1.3",
3
+ "version": "0.2.0",
4
4
  "description": "imap to receive your emails",
5
5
  "author": {
6
6
  "name": "Lucky-ESA",
@@ -19,40 +19,40 @@
19
19
  "url": "git@github.com:Lucky-ESA/ioBroker.imap.git"
20
20
  },
21
21
  "engines": {
22
- "node": ">= 16"
22
+ "node": ">= 18"
23
23
  },
24
24
  "dependencies": {
25
- "@iobroker/adapter-core": "^3.0.4",
26
- "mailparser": "^3.6.9",
25
+ "@iobroker/adapter-core": "^3.1.6",
26
+ "mailparser": "^3.7.1",
27
27
  "node-imap": "^0.9.6"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@alcalzone/release-script": "^3.7.0",
31
- "@alcalzone/release-script-plugin-iobroker": "^3.7.0",
31
+ "@alcalzone/release-script-plugin-iobroker": "^3.7.1",
32
32
  "@alcalzone/release-script-plugin-license": "^3.7.0",
33
33
  "@alcalzone/release-script-plugin-manual-review": "^3.7.0",
34
34
  "@iobroker/adapter-dev": "^1.3.0",
35
- "@iobroker/testing": "^4.1.0",
36
- "@tsconfig/node16": "^16.1.1",
37
- "@types/chai": "^4.3.11",
35
+ "@iobroker/testing": "^4.1.3",
36
+ "@tsconfig/node18": "^18.2.4",
37
+ "@types/chai": "^4.3.16",
38
38
  "@types/chai-as-promised": "^7.1.8",
39
39
  "@types/imap": "^0.8.40",
40
40
  "@types/mocha": "^10.0.6",
41
- "@types/node": "^20.11.24",
41
+ "@types/node": "^20.14.2",
42
42
  "@types/proxyquire": "^1.3.31",
43
43
  "@types/sinon": "^17.0.3",
44
44
  "@types/sinon-chai": "^3.2.12",
45
45
  "chai": "^4.4.1",
46
- "chai-as-promised": "^7.1.1",
46
+ "chai-as-promised": "^7.1.2",
47
47
  "eslint": "^8.57.0",
48
48
  "eslint-config-prettier": "^9.1.0",
49
- "eslint-plugin-prettier": "^5.1.2",
50
- "mocha": "^10.2.0",
51
- "prettier": "^3.2.4",
49
+ "eslint-plugin-prettier": "^5.1.3",
50
+ "mocha": "^10.4.0",
51
+ "prettier": "^3.3.2",
52
52
  "proxyquire": "^2.1.3",
53
- "sinon": "^17.0.1",
53
+ "sinon": "^18.0.0",
54
54
  "sinon-chai": "^3.7.0",
55
- "typescript": "~5.3.2"
55
+ "typescript": "~5.4.5"
56
56
  },
57
57
  "main": "main.js",
58
58
  "files": [