@colyseus/schema 4.0.22 → 4.0.23
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/decoder/strategy/Callbacks.d.ts +5 -5
- package/build/index.cjs +1 -0
- package/build/index.cjs.map +1 -1
- package/build/index.js +1 -0
- package/build/index.mjs +1 -0
- package/build/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/decoder/strategy/Callbacks.ts +15 -13
package/build/index.js
CHANGED
|
@@ -5538,6 +5538,7 @@
|
|
|
5538
5538
|
else if ('decoder' in roomOrDecoder.serializer) {
|
|
5539
5539
|
return getDecoderStateCallbacks(roomOrDecoder.serializer.decoder);
|
|
5540
5540
|
}
|
|
5541
|
+
throw new Error('Invalid room or decoder');
|
|
5541
5542
|
},
|
|
5542
5543
|
getRawChanges(decoder, callback) {
|
|
5543
5544
|
return getRawChangesCallback(decoder, callback);
|
package/build/index.mjs
CHANGED
|
@@ -5532,6 +5532,7 @@ const Callbacks = {
|
|
|
5532
5532
|
else if ('decoder' in roomOrDecoder.serializer) {
|
|
5533
5533
|
return getDecoderStateCallbacks(roomOrDecoder.serializer.decoder);
|
|
5534
5534
|
}
|
|
5535
|
+
throw new Error('Invalid room or decoder');
|
|
5535
5536
|
},
|
|
5536
5537
|
getRawChanges(decoder, callback) {
|
|
5537
5538
|
return getRawChangesCallback(decoder, callback);
|