@colyseus/schema 3.0.0-alpha.3 → 3.0.0-alpha.4
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/build/cjs/index.js +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.mjs +1 -1
- package/build/esm/index.mjs.map +1 -1
- package/build/umd/index.js +1 -1
- package/lib/encoding/decode.js +1 -1
- package/lib/encoding/decode.js.map +1 -1
- package/package.json +1 -1
- package/src/encoding/decode.ts +1 -2
package/build/cjs/index.js
CHANGED
|
@@ -1014,7 +1014,6 @@ const encodeArray = function (encoder, bytes, changeTree, field, operation, it,
|
|
|
1014
1014
|
* SOFTWARE
|
|
1015
1015
|
*/
|
|
1016
1016
|
function utf8Read(bytes, it, length) {
|
|
1017
|
-
it.offset += length;
|
|
1018
1017
|
var string = '', chr = 0;
|
|
1019
1018
|
for (var i = it.offset, end = it.offset + length; i < end; i++) {
|
|
1020
1019
|
var byte = bytes[i];
|
|
@@ -1051,6 +1050,7 @@ function utf8Read(bytes, it, length) {
|
|
|
1051
1050
|
// (do not throw error to avoid server/client from crashing due to hack attemps)
|
|
1052
1051
|
// throw new Error('Invalid byte ' + byte.toString(16));
|
|
1053
1052
|
}
|
|
1053
|
+
it.offset += length;
|
|
1054
1054
|
return string;
|
|
1055
1055
|
}
|
|
1056
1056
|
function int8(bytes, it) {
|