@iobroker/socket-classes 1.5.5 → 1.5.6

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
@@ -979,6 +979,9 @@ Read all instances of the given adapter, or all instances of all adapters if ada
979
979
  -->
980
980
 
981
981
  ## Changelog
982
+ ### 1.5.6 (2024-06-26)
983
+ * (bluefox) Corrected call of getObjectView with null parameter
984
+
982
985
  ### 1.5.5 (2024-06-26)
983
986
  * (bluefox) updated packages
984
987
 
@@ -1679,7 +1679,7 @@ class SocketCommands {
1679
1679
  if (typeof callback === 'function') {
1680
1680
  if (this._checkPermissions(socket, 'getObjectView', callback, search)) {
1681
1681
  try {
1682
- if (params.root || params.depth) {
1682
+ if (params && (params.root || params.depth)) {
1683
1683
  // To save the bandwidth, the request can define root and depth. Default is depth 1.
1684
1684
  this.adapter.getObjectView(
1685
1685
  design,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/socket-classes",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "description": "ioBroker server-side web sockets",
5
5
  "author": {
6
6
  "name": "bluefox",
@@ -33,7 +33,7 @@
33
33
  "chai": "^4.4.1",
34
34
  "gulp": "^4.0.2",
35
35
  "iobroker.js-controller": "^6.0.6-alpha.0-20240624-92c3310c8",
36
- "mocha": "^10.5.1"
36
+ "mocha": "^10.5.2"
37
37
  },
38
38
  "bugs": {
39
39
  "url": "https://github.com/ioBroker/ioBroker.web/issues"