iobroker.faikout-ac 0.1.7 → 0.1.91

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
@@ -70,6 +70,15 @@ Install via ioBroker Admin:
70
70
 
71
71
  ## Changelog
72
72
 
73
+ ### 0.1.91
74
+ - Switch to npm trusted publishing (OIDC)
75
+
76
+ ### 0.1.9
77
+ - Fix npm OIDC trusted publishing
78
+
79
+ ### 0.1.8
80
+ - Switch to npm trusted publishing (OIDC)
81
+
73
82
  ### 0.1.7
74
83
  - Responsive layout fixes for all admin tabs, installation instructions updated
75
84
 
@@ -34,7 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.discoverDevice = discoverDevice;
37
- const http = __importStar(require("http"));
37
+ const http = __importStar(require("node:http"));
38
38
  const fieldDefinitions_1 = require("./fieldDefinitions");
39
39
  const topicBuilder_1 = require("./topicBuilder");
40
40
  function fetchPage(url) {
@@ -95,7 +95,7 @@ class FaikoutMqttClient {
95
95
  if (this.reconnectTimer !== null) {
96
96
  return;
97
97
  }
98
- this.reconnectTimer = setTimeout(() => {
98
+ this.reconnectTimer = this.options.setTimeoutFn(() => {
99
99
  this.reconnectTimer = null;
100
100
  if (!this.intentionalDisconnect) {
101
101
  if (this.client) {
@@ -111,7 +111,7 @@ class FaikoutMqttClient {
111
111
  async disconnect() {
112
112
  this.intentionalDisconnect = true;
113
113
  if (this.reconnectTimer !== null) {
114
- clearTimeout(this.reconnectTimer);
114
+ this.options.clearTimeoutFn(this.reconnectTimer);
115
115
  this.reconnectTimer = null;
116
116
  }
117
117
  if (this.client) {
package/build/src/main.js CHANGED
@@ -80,6 +80,8 @@ class FaikoutAdapter extends utils.Adapter {
80
80
  username: mqttUser || undefined,
81
81
  password: mqttPassword || undefined,
82
82
  clientId: `iobroker-faikout-${instanceId}`,
83
+ setTimeoutFn: (cb, ms) => this.setTimeout(cb, ms),
84
+ clearTimeoutFn: (id) => this.clearTimeout(id),
83
85
  }, (topic, payload) => {
84
86
  void this._handleMqttMessage(topic, payload);
85
87
  }, (connected) => {
@@ -535,7 +537,7 @@ class FaikoutAdapter extends utils.Adapter {
535
537
  }
536
538
  const delayMs = Math.max(0, Number(action.delay ?? 0)) * 1000;
537
539
  if (delayMs > 0) {
538
- await new Promise((resolve) => setTimeout(resolve, delayMs));
540
+ await new Promise((resolve) => this.setTimeout(resolve, delayMs));
539
541
  }
540
542
  }
541
543
  if (fired) {
package/io-package.json CHANGED
@@ -1,8 +1,47 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "faikout-ac",
4
- "version": "0.1.7",
4
+ "version": "0.1.91",
5
5
  "news": {
6
+ "0.1.91": {
7
+ "en": "Switch to npm trusted publishing (OIDC)",
8
+ "de": "Umstellung auf npm Trusted Publishing (OIDC), npm-Token aus CI entfernt",
9
+ "ru": "Переход на npm trusted publishing (OIDC), удален npm-токен из CI",
10
+ "pt": "Mudança para npm trusted publishing (OIDC), token npm removido do CI",
11
+ "nl": "Overstap naar npm trusted publishing (OIDC), npm-token verwijderd uit CI",
12
+ "fr": "Migration vers npm trusted publishing (OIDC), token npm supprimé du CI",
13
+ "it": "Passaggio a npm trusted publishing (OIDC), token npm rimosso dal CI",
14
+ "es": "Migración a npm trusted publishing (OIDC), token npm eliminado del CI",
15
+ "pl": "Przejście na npm trusted publishing (OIDC), token npm usunięty z CI",
16
+ "uk": "Перехід на npm trusted publishing (OIDC), токен npm видалено з CI",
17
+ "zh-cn": "切换到npm可信发布(OIDC),从CI中移除npm令牌"
18
+ },
19
+ "0.1.9": {
20
+ "en": "Fix npm OIDC publish: set NPM_CONFIG_PROVENANCE for trusted publishing",
21
+ "de": "npm OIDC-Publish behoben: NPM_CONFIG_PROVENANCE fuer Trusted Publishing gesetzt",
22
+ "ru": "Исправлена публикация npm OIDC: установлен NPM_CONFIG_PROVENANCE",
23
+ "pt": "Corrigida publicação npm OIDC: NPM_CONFIG_PROVENANCE definido",
24
+ "nl": "npm OIDC publish gerepareerd: NPM_CONFIG_PROVENANCE ingesteld",
25
+ "fr": "Correction publication npm OIDC: NPM_CONFIG_PROVENANCE défini",
26
+ "it": "Corretto publish npm OIDC: NPM_CONFIG_PROVENANCE impostato",
27
+ "es": "Corregida publicación npm OIDC: NPM_CONFIG_PROVENANCE configurado",
28
+ "pl": "Naprawiono publikację npm OIDC: ustawiono NPM_CONFIG_PROVENANCE",
29
+ "uk": "Виправлено публікацію npm OIDC: встановлено NPM_CONFIG_PROVENANCE",
30
+ "zh-cn": "修复npm OIDC发布:设置NPM_CONFIG_PROVENANCE"
31
+ },
32
+ "0.1.8": {
33
+ "en": "Switch to npm trusted publishing (OIDC), remove npm token",
34
+ "de": "Umstellung auf npm Trusted Publishing (OIDC), npm-Token entfernt",
35
+ "ru": "Переход на npm trusted publishing (OIDC), удален npm-токен",
36
+ "pt": "Mudança para npm trusted publishing (OIDC), token npm removido",
37
+ "nl": "Overstap naar npm trusted publishing (OIDC), npm-token verwijderd",
38
+ "fr": "Migration vers npm trusted publishing (OIDC), token npm supprimé",
39
+ "it": "Passaggio a npm trusted publishing (OIDC), token npm rimosso",
40
+ "es": "Migración a npm trusted publishing (OIDC), token npm eliminado",
41
+ "pl": "Przejście na npm trusted publishing (OIDC), token npm usunięty",
42
+ "uk": "Перехід на npm trusted publishing (OIDC), токен npm видалено",
43
+ "zh-cn": "切换到npm可信发布(OIDC),移除npm令牌"
44
+ },
6
45
  "0.1.7": {
7
46
  "en": "Responsive layout fixes, installation instructions update",
8
47
  "de": "Responsive Layout-Korrekturen, Installationsanleitung aktualisiert",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.faikout-ac",
3
- "version": "0.1.7",
3
+ "version": "0.1.91",
4
4
  "description": "ioBroker adapter for Faikout Daikin MQTT bridge",
5
5
  "author": "RWS <wizmann@gmx.de>",
6
6
  "license": "MIT",