@colyseus/schema 3.0.0-alpha.36 → 3.0.0-alpha.37
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 +4 -0
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.mjs +4 -0
- package/build/esm/index.mjs.map +1 -1
- package/build/umd/index.js +4 -0
- package/lib/encoder/Encoder.d.ts +1 -0
- package/lib/encoder/Encoder.js +4 -0
- package/lib/encoder/Encoder.js.map +1 -1
- package/package.json +1 -1
- package/src/encoder/Encoder.ts +7 -0
package/build/esm/index.mjs
CHANGED
|
@@ -3900,6 +3900,10 @@ class Encoder {
|
|
|
3900
3900
|
number$1(bytes, targetTypeId, it);
|
|
3901
3901
|
}
|
|
3902
3902
|
}
|
|
3903
|
+
get hasChanges() {
|
|
3904
|
+
return (this.root.changes.length > 0 ||
|
|
3905
|
+
this.root.filteredChanges.length > 0);
|
|
3906
|
+
}
|
|
3903
3907
|
}
|
|
3904
3908
|
|
|
3905
3909
|
class DecodingWarning extends Error {
|