Skip to content

Commit

Permalink
Bump json-explorer to 0.1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
HGlab01 authored Oct 9, 2023
1 parent ec40822 commit ba375cc
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 20 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ Thumbs.db

# i18n intermediate files
admin/i18n/flat.txt
admin/i18n/*/flat.txt
admin/i18n/*/flat.txt

#file is created by json-explorer
warnMessages.json
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ onStop(function (callback) {
Placeholder for the next version (at the beginning of the line):
### **WORK IN PROGRESS**
-->
### 0.0.8-alpha.0 (2023-10-06)
* (HGlab01) Bump json-explorer to 0.1.14-alpha

### 0.0.7 (2023-10-05)
* (HGlab01) add logs for "address already in use"-issue

Expand Down
4 changes: 4 additions & 0 deletions build/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/main.js.map

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
{
"common": {
"name": "tinymqttbroker",
"version": "0.0.7",
"version": "0.0.8-alpha.0",
"news": {
"0.0.8-alpha.0": {
"en": "Bump json-explorer to 0.1.14-alpha",
"de": "Stoßdämpfer auf 0,1.14-alpha",
"ru": "Bump json-explorer до 0.1.14-alpha",
"pt": "Bump json-explorer para 0.1.14-alpha",
"nl": "Bump Json-explorer tot 0.1.14-alfa",
"fr": "Bump json-explorer à 0,1.14-alpha",
"it": "Bump json-explorer a 0.1.14-alpha",
"es": "Bump json-explorer to 0.1.14-alpha",
"pl": "Bump json-explorer to 0.1.14-alfa",
"uk": "Bump json-explorer до 0.1.14-alpha",
"zh-cn": "Bump json-explorer to0.1.14-alpha"
},
"0.0.7": {
"en": "add logs for \"address already in use\"-issue",
"de": "protokolle für \"adresse bereits im gebrauch\"-ausgabe hinzufügen",
Expand Down Expand Up @@ -80,19 +93,6 @@
"pl": "wsparcie",
"uk": "додання відправлень",
"zh-cn": "增 发"
},
"0.0.5-alpha.1": {
"en": "first release",
"de": "erste veröffentlichung",
"ru": "первый релиз",
"pt": "primeiro lançamento",
"nl": "eerste vrijlating",
"fr": "première version",
"it": "primo rilascio",
"es": "primera liberación",
"pl": "pierwsze wydanie",
"uk": "перший реліз",
"zh-cn": "首次释放"
}
},
"titleLang": {
Expand Down
15 changes: 13 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.tinymqttbroker",
"version": "0.0.7",
"version": "0.0.8-alpha.0",
"description": "tinymqttbroker",
"author": {
"name": "HGlab01",
Expand All @@ -25,6 +25,7 @@
"@iobroker/adapter-core": "^3.0.3",
"aedes": "^0.50.0",
"aedes-server-factory": "^0.2.1",
"iobroker-jsonexplorer": "0.1.14",
"portscanner": "^2.2.0"
},
"devDependencies": {
Expand Down
7 changes: 7 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ import Aedes from 'aedes';
import { createServer } from 'aedes-server-factory';
import portscanner from 'portscanner';

// eslint-disable-next-line @typescript-eslint/no-var-requires
const jsonExplorer:any = require('iobroker-jsonexplorer');
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { version } = require('../package.json');

class Tinymqttbroker extends utils.Adapter {
aedes!: Aedes;
server!: any;
Expand All @@ -23,12 +28,14 @@ class Tinymqttbroker extends utils.Adapter {
// this.on('objectChange', this.onObjectChange.bind(this));
// this.on('message', this.onMessage.bind(this));
this.on('unload', this.onUnload.bind(this));
jsonExplorer.init(this, {});
}

/**
* Is called when databases are connected and adapter received configuration.
*/
private async onReady(): Promise<void> {
jsonExplorer.sendVersionInfo(version);
const serverPort: number = this.config.option1;
console.log('Port ' + serverPort + ' is configured');

Expand Down

0 comments on commit ba375cc

Please sign in to comment.