@iobroker/socket-classes 0.4.1 → 0.4.2

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.2 (2022-05-23)
73
+ * (bluefox) Corrected renameFile command for admin
74
+
72
75
  ### 0.4.1 (2022-05-23)
73
76
  * (bluefox) Corrected changePassword command for admin
74
77
 
@@ -800,7 +800,7 @@ class SocketCommands {
800
800
 
801
801
  this.commands['renameFile'] = (socket, _adapter, oldName, newName, callback) => {
802
802
  if (this._checkPermissions(socket, 'rename', callback, oldName)) {
803
- this.adapter._rename(_adapter, oldName, newName, {user: socket._acl.user}, (err, ...args) =>
803
+ this.adapter.rename(_adapter, oldName, newName, {user: socket._acl.user}, (err, ...args) =>
804
804
  SocketCommands._fixCallback(callback, err, ...args));
805
805
  }
806
806
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/socket-classes",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "ioBroker server-side web sockets",
5
5
  "author": {
6
6
  "name": "bluefox",