diff --git a/CHANGELOG.md b/CHANGELOG.md index ae6126e3a8..aacf1b3ba2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +# 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 + # 0.10.1 (2016-07-06) * (bluefox) support of chained certificates * (bluefox) add nut diff --git a/io-package.json b/io-package.json index d2b6bc286e..854e6ae9f1 100644 --- a/io-package.json +++ b/io-package.json @@ -1,11 +1,16 @@ { "common": { "name": "js-controller", - "version": "0.10.1", + "version": "0.11.0", "platform": "Javascript/Node.js", "controller": true, "title": "ioBroker.js-controller", "news": { + "0.11.0": { + "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", + "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", + "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" + }, "0.10.1": { "en": "support of chained certificates", "de": "support of chained certificates", diff --git a/lib/setup/setupVisDebug.js b/lib/setup/setupVisDebug.js index d7d8683d32..19ee92f458 100644 --- a/lib/setup/setupVisDebug.js +++ b/lib/setup/setupVisDebug.js @@ -8,8 +8,8 @@ function VisDebug(options) { options = options || {}; - if (!options.objects) throw "Invalid arguments: objects is missing"; - if (!options.processExit) throw "Invalid arguments: processExit is missing"; + if (!options.objects) throw 'Invalid arguments: objects is missing'; + if (!options.processExit) throw 'Invalid arguments: processExit is missing'; var objects = options.objects; var processExit = options.processExit; @@ -37,28 +37,31 @@ function VisDebug(options) { this.enableDebug = function (widgetset) { - // Try to find out the adapter directory out of a list of options - var adapterDir; - var adapterNames2Try = ['vis-' + widgetset, widgetset]; - if (adapterNames2Try[0] == adapterNames2Try[1]) adapterNames2Try.splice(1, 1); - for (var i = 0; i < adapterNames2Try.length; i++) { - try { - var adapterDir2Try = tools.getAdapterDir(adapterNames2Try[i]); - // Query the entry - var stats = fs.lstatSync(adapterDir2Try); - - // Is it a directory? - if (stats.isDirectory()) { - //found it! - adapterDir = adapterDir2Try; - break; - } - } catch (e) { + if (widgetset) { + // Try to find out the adapter directory out of a list of options + var adapterDir; + var adapterNames2Try = ['vis-' + widgetset, widgetset]; + if (adapterNames2Try[0] === adapterNames2Try[1]) adapterNames2Try.splice(1, 1); + for (var i = 0; i < adapterNames2Try.length; i++) { + try { + var adapterDir2Try = tools.getAdapterDir(adapterNames2Try[i]); + // Query the entry + var stats = fs.lstatSync(adapterDir2Try); + + // Is it a directory? + if (stats.isDirectory()) { + //found it! + adapterDir = adapterDir2Try; + break; + } + } catch (e) { + } } + + if (!adapterDir) throw 'Adapter not found. Tried: ' + adapterNames2Try.join(', '); } - if (!adapterDir) throw 'Adapter not found. Tried: ' + adapterNames2Try.join(', '); // copy index.html.original to index.html // copy edit.html.original to edit.html diff --git a/package.json b/package.json index 4799547d26..e6b516fe6e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iobroker.js-controller", - "version": "0.10.1", + "version": "0.11.0", "engines": { "node": ">=0.8" },