@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 +3 -0
- package/lib/socketCommands.js +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/socketCommands.js
CHANGED
|
@@ -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
|
|
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 => {
|