@iobroker/socket-classes 0.3.0 → 0.3.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.3.1 (2022-05-16)
73
+ * (bluefox) Added back compatibility with js-controller@4.0 for `writeDirAsZip`
74
+
72
75
  ### 0.3.0 (2022-05-16)
73
76
  * (bluefox) Process `writeDirAsZip` locally
74
77
 
@@ -630,12 +630,13 @@ class SocketCommands {
630
630
  zipFiles
631
631
  .writeDirAsZip(
632
632
  this.adapter, // normally we have to pass here the internal "objects" object, but as
633
- // only writeFile is used and it has the same name we can pass here the
634
- // adapter, which has the function with the same name and agruments
633
+ // only writeFile is used, and it has the same name we can pass here the
634
+ // adapter, which has the function with the same name and arguments
635
635
  message.id,
636
636
  message.name,
637
637
  Buffer.from(message.data, 'base64'),
638
- message.options
638
+ message.options,
639
+ error => callback({ error }) // this is for back compatibility with js-controller@4.0 or older
639
640
  )
640
641
  .then(() => callback({}))
641
642
  .catch(error => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/socket-classes",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "ioBroker server-side web sockets",
5
5
  "author": {
6
6
  "name": "bluefox",