@colyseus/schema 2.0.32 → 2.0.34
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 +23 -25
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.mjs +85 -109
- package/build/esm/index.mjs.map +1 -1
- package/build/umd/index.js +23 -25
- package/package.json +5 -5
package/build/cjs/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
/******************************************************************************
|
|
6
4
|
Copyright (c) Microsoft Corporation.
|
|
7
5
|
|
|
@@ -1691,22 +1689,22 @@ function number$1(bytes, value) {
|
|
|
1691
1689
|
|
|
1692
1690
|
var encode = /*#__PURE__*/Object.freeze({
|
|
1693
1691
|
__proto__: null,
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1692
|
+
boolean: boolean$1,
|
|
1693
|
+
float32: float32$1,
|
|
1694
|
+
float64: float64$1,
|
|
1697
1695
|
int16: int16$1,
|
|
1698
|
-
uint16: uint16$1,
|
|
1699
1696
|
int32: int32$1,
|
|
1700
|
-
uint32: uint32$1,
|
|
1701
1697
|
int64: int64$1,
|
|
1698
|
+
int8: int8$1,
|
|
1699
|
+
number: number$1,
|
|
1700
|
+
string: string$1,
|
|
1701
|
+
uint16: uint16$1,
|
|
1702
|
+
uint32: uint32$1,
|
|
1702
1703
|
uint64: uint64$1,
|
|
1703
|
-
|
|
1704
|
-
|
|
1704
|
+
uint8: uint8$1,
|
|
1705
|
+
utf8Write: utf8Write,
|
|
1705
1706
|
writeFloat32: writeFloat32,
|
|
1706
|
-
writeFloat64: writeFloat64
|
|
1707
|
-
boolean: boolean$1,
|
|
1708
|
-
string: string$1,
|
|
1709
|
-
number: number$1
|
|
1707
|
+
writeFloat64: writeFloat64
|
|
1710
1708
|
});
|
|
1711
1709
|
|
|
1712
1710
|
/**
|
|
@@ -1941,25 +1939,25 @@ function switchStructureCheck(bytes, it) {
|
|
|
1941
1939
|
|
|
1942
1940
|
var decode = /*#__PURE__*/Object.freeze({
|
|
1943
1941
|
__proto__: null,
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
int16: int16,
|
|
1947
|
-
uint16: uint16,
|
|
1948
|
-
int32: int32,
|
|
1949
|
-
uint32: uint32,
|
|
1942
|
+
arrayCheck: arrayCheck,
|
|
1943
|
+
boolean: boolean,
|
|
1950
1944
|
float32: float32,
|
|
1951
1945
|
float64: float64,
|
|
1946
|
+
int16: int16,
|
|
1947
|
+
int32: int32,
|
|
1952
1948
|
int64: int64,
|
|
1953
|
-
|
|
1949
|
+
int8: int8,
|
|
1950
|
+
number: number,
|
|
1951
|
+
numberCheck: numberCheck,
|
|
1954
1952
|
readFloat32: readFloat32,
|
|
1955
1953
|
readFloat64: readFloat64,
|
|
1956
|
-
boolean: boolean,
|
|
1957
1954
|
string: string,
|
|
1958
1955
|
stringCheck: stringCheck,
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1956
|
+
switchStructureCheck: switchStructureCheck,
|
|
1957
|
+
uint16: uint16,
|
|
1958
|
+
uint32: uint32,
|
|
1959
|
+
uint64: uint64,
|
|
1960
|
+
uint8: uint8
|
|
1963
1961
|
});
|
|
1964
1962
|
|
|
1965
1963
|
var CollectionSchema = /** @class */ (function () {
|