@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/cjs/index.js
CHANGED
|
@@ -3902,6 +3902,10 @@ class Encoder {
|
|
|
3902
3902
|
number$1(bytes, targetTypeId, it);
|
|
3903
3903
|
}
|
|
3904
3904
|
}
|
|
3905
|
+
get hasChanges() {
|
|
3906
|
+
return (this.root.changes.length > 0 ||
|
|
3907
|
+
this.root.filteredChanges.length > 0);
|
|
3908
|
+
}
|
|
3905
3909
|
}
|
|
3906
3910
|
|
|
3907
3911
|
class DecodingWarning extends Error {
|