@colyseus/schema
Advanced tools
Comparing version 1.0.38 to 1.0.39
@@ -48,3 +48,4 @@ "use strict"; | ||
if (initialValues) { | ||
if (initialValues instanceof Map) { | ||
if (initialValues instanceof Map || | ||
initialValues instanceof MapSchema) { | ||
initialValues.forEach(function (v, k) { return _this.set(k, v); }); | ||
@@ -51,0 +52,0 @@ } |
{ | ||
"name": "@colyseus/schema", | ||
"version": "1.0.38", | ||
"version": "1.0.39", | ||
"description": "Binary state serializer with delta encoding for games", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -70,3 +70,6 @@ import { Schema, SchemaDecoderCallbacks } from "../Schema"; | ||
if (initialValues) { | ||
if (initialValues instanceof Map) { | ||
if ( | ||
initialValues instanceof Map || | ||
initialValues instanceof MapSchema | ||
) { | ||
initialValues.forEach((v, k) => this.set(k, v)); | ||
@@ -73,0 +76,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1601128
19937