@iobroker/socket-classes 0.2.0 → 0.2.1

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.2.1 (2022-05-12)
73
+ * (bluefox) fixed `getObjects` command
74
+
72
75
  ### 0.2.0 (2022-05-09)
73
76
  * (bluefox) fixed `delObjects` command
74
77
 
@@ -1111,9 +1111,10 @@ class SocketCommandsAdmin extends SocketCommands {
1111
1111
  __initCommandsObjects() {
1112
1112
  super.__initCommandsObjects();
1113
1113
 
1114
- this.commands['getAllObjects'] = (socket, callback) => {
1115
- return this._getAllObjects(socket, callback);
1116
- };
1114
+ this.commands['getAllObjects'] = (socket, callback) => this._getAllObjects(socket, callback);
1115
+
1116
+ // Identical to getAllObjects
1117
+ this.commands['getObjects'] = (socket, callback) => this._getAllObjects(socket, callback);
1117
1118
 
1118
1119
  this.commands['extendObject'] = (socket, id, obj, callback) => {
1119
1120
  if (this._checkPermissions(socket, 'extendObject', callback, id)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/socket-classes",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "ioBroker server-side web sockets",
5
5
  "author": {
6
6
  "name": "bluefox",