@iobroker/socket-classes 0.4.9 → 0.4.10

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
@@ -69,6 +69,9 @@ io.close();
69
69
  -->
70
70
 
71
71
  ## Changelog
72
+ ### 0.4.10 (2022-06-22)
73
+ * (bluefox) Corrected getAdapterInstances
74
+
72
75
  ### 0.4.9 (2022-06-20)
73
76
  * (bluefox) Do not show error with failed authentication
74
77
 
@@ -885,9 +885,9 @@ class SocketCommands {
885
885
  this.commands['getAdapterInstances'] = (socket, adapterName, callback) => {
886
886
  if (typeof callback === 'function') {
887
887
  if (this._checkPermissions(socket, 'getObject', callback)) {
888
- let _adapterName = adapterName || this.adapterName || '';
888
+ let _adapterName = adapterName !== undefined && adapterName !== null ? adapterName : this.adapterName || '';
889
889
  if (_adapterName) {
890
- _adapterName += '.'
890
+ _adapterName += '.';
891
891
  }
892
892
  this.adapter.getObjectView('system', 'instance',
893
893
  {startkey: `system.adapter.${_adapterName}`, endkey: `system.adapter.${_adapterName}\u9999`},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/socket-classes",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
4
4
  "description": "ioBroker server-side web sockets",
5
5
  "author": {
6
6
  "name": "bluefox",