@colyseus/schema 1.0.38 → 1.0.40
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 +2 -1
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.mjs +2 -1
- package/build/esm/index.mjs.map +1 -1
- package/build/umd/index.js +2 -1
- package/lib/codegen/parser.d.ts +7 -0
- package/lib/codegen/parser.js +24 -2
- package/lib/codegen/parser.js.map +1 -1
- package/lib/types/MapSchema.js +2 -1
- package/lib/types/MapSchema.js.map +1 -1
- package/package.json +2 -5
- package/src/codegen/parser.ts +21 -1
- package/src/types/MapSchema.ts +4 -1
package/build/cjs/index.js
CHANGED
|
@@ -924,7 +924,8 @@ var MapSchema = /** @class */ (function () {
|
|
|
924
924
|
this.$indexes = new Map();
|
|
925
925
|
this.$refId = 0;
|
|
926
926
|
if (initialValues) {
|
|
927
|
-
if (initialValues instanceof Map
|
|
927
|
+
if (initialValues instanceof Map ||
|
|
928
|
+
initialValues instanceof MapSchema) {
|
|
928
929
|
initialValues.forEach(function (v, k) { return _this.set(k, v); });
|
|
929
930
|
}
|
|
930
931
|
else {
|