Skip to content

Commit 41eb030

Browse files
committed
# 0.11.0 (2016-07-27)
* (bluefox) implement auto-restart of adapters (expert mode) * (bluefox) add rights check for getBinaryState/setBinaryState * (bluefox) support of default ttl for sessions * (bluefox) fix custom setup * (bluefox) fix upload binary files * (bluefox) fix list of files in subdirectories * (bluefox) fix visdebug without widgetset-name
1 parent 4a72394 commit 41eb030

File tree

4 files changed

+38
-22
lines changed

4 files changed

+38
-22
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# 0.11.0 (2016-07-27)
2+
* (bluefox) implement auto-restart of adapters (expert mode)
3+
* (bluefox) add rights check for getBinaryState/setBinaryState
4+
* (bluefox) support of default ttl for sessions
5+
* (bluefox) fix custom setup
6+
* (bluefox) fix upload binary files
7+
* (bluefox) fix list of files in subdirectories
8+
19
# 0.10.1 (2016-07-06)
210
* (bluefox) support of chained certificates
311
* (bluefox) add nut

io-package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
{
22
"common": {
33
"name": "js-controller",
4-
"version": "0.10.1",
4+
"version": "0.11.0",
55
"platform": "Javascript/Node.js",
66
"controller": true,
77
"title": "ioBroker.js-controller",
88
"news": {
9+
"0.11.0": {
10+
"en": "implement auto-restart of adapters (expert mode)\nadd rights check for getBinaryState/setBinaryState\nsupport of default ttl for sessions\nfix custom setup\nfix upload binary files\nfix list of files in subdirectories\nadd nut\nadd vis-map",
11+
"de": "implement auto-restart of adapters (expert mode)\nadd rights check for getBinaryState/setBinaryState\nsupport of default ttl for sessions\nfix custom setup\nfix upload binary files\nfix list of files in subdirectories\nadd nut\nadd vis-map",
12+
"ru": "implement auto-restart of adapters (expert mode)\nadd rights check for getBinaryState/setBinaryState\nsupport of default ttl for sessions\nfix custom setup\nfix upload binary files\nfix list of files in subdirectories\nadd nut\nadd vis-map"
13+
},
914
"0.10.1": {
1015
"en": "support of chained certificates",
1116
"de": "support of chained certificates",

lib/setup/setupVisDebug.js

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ function VisDebug(options) {
88

99
options = options || {};
1010

11-
if (!options.objects) throw "Invalid arguments: objects is missing";
12-
if (!options.processExit) throw "Invalid arguments: processExit is missing";
11+
if (!options.objects) throw 'Invalid arguments: objects is missing';
12+
if (!options.processExit) throw 'Invalid arguments: processExit is missing';
1313

1414
var objects = options.objects;
1515
var processExit = options.processExit;
@@ -37,28 +37,31 @@ function VisDebug(options) {
3737

3838
this.enableDebug = function (widgetset) {
3939

40-
// Try to find out the adapter directory out of a list of options
41-
var adapterDir;
42-
var adapterNames2Try = ['vis-' + widgetset, widgetset];
43-
if (adapterNames2Try[0] == adapterNames2Try[1]) adapterNames2Try.splice(1, 1);
44-
for (var i = 0; i < adapterNames2Try.length; i++) {
45-
try {
46-
var adapterDir2Try = tools.getAdapterDir(adapterNames2Try[i]);
47-
// Query the entry
48-
var stats = fs.lstatSync(adapterDir2Try);
49-
50-
// Is it a directory?
51-
if (stats.isDirectory()) {
52-
//found it!
53-
adapterDir = adapterDir2Try;
54-
break;
55-
}
56-
} catch (e) {
40+
if (widgetset) {
41+
// Try to find out the adapter directory out of a list of options
42+
var adapterDir;
43+
var adapterNames2Try = ['vis-' + widgetset, widgetset];
44+
if (adapterNames2Try[0] === adapterNames2Try[1]) adapterNames2Try.splice(1, 1);
45+
for (var i = 0; i < adapterNames2Try.length; i++) {
46+
try {
47+
var adapterDir2Try = tools.getAdapterDir(adapterNames2Try[i]);
48+
// Query the entry
49+
var stats = fs.lstatSync(adapterDir2Try);
50+
51+
// Is it a directory?
52+
if (stats.isDirectory()) {
53+
//found it!
54+
adapterDir = adapterDir2Try;
55+
break;
56+
}
57+
} catch (e) {
5758

59+
}
5860
}
61+
62+
if (!adapterDir) throw 'Adapter not found. Tried: ' + adapterNames2Try.join(', ');
5963
}
6064

61-
if (!adapterDir) throw 'Adapter not found. Tried: ' + adapterNames2Try.join(', ');
6265

6366
// copy index.html.original to index.html
6467
// copy edit.html.original to edit.html

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iobroker.js-controller",
3-
"version": "0.10.1",
3+
"version": "0.11.0",
44
"engines": {
55
"node": ">=0.8"
66
},

0 commit comments

Comments
 (0)