@nxtedition/deepstream.io-client-js 25.0.2 → 25.0.3
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/package.json
CHANGED
|
@@ -28,9 +28,9 @@ function alignPool() {
|
|
|
28
28
|
|
|
29
29
|
function writeString(dst, str, offset) {
|
|
30
30
|
if (utils.isNode) {
|
|
31
|
-
return
|
|
31
|
+
return dst.write(str, offset)
|
|
32
32
|
} else {
|
|
33
|
-
const res = poolEncoder.encodeInto(str, new Uint8Array(
|
|
33
|
+
const res = poolEncoder.encodeInto(str, new Uint8Array(dst.buffer, offset))
|
|
34
34
|
return res.written
|
|
35
35
|
}
|
|
36
36
|
}
|