@colyseus/schema
Advanced tools
Comparing version 2.0.18 to 2.0.19
@@ -62,2 +62,9 @@ "use strict"; | ||
}, | ||
has: (obj, key) => { | ||
if (typeof (key) !== "symbol" && | ||
!isNaN(Number(key))) { | ||
return obj['$items'].has(Number(key)); | ||
} | ||
return Reflect.has(obj, key); | ||
} | ||
}); | ||
@@ -64,0 +71,0 @@ return value; |
{ | ||
"name": "@colyseus/schema", | ||
"version": "2.0.18", | ||
"version": "2.0.19", | ||
"description": "Binary state serializer with delta encoding for games", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -68,2 +68,12 @@ import { ChangeTree } from "../changes/ChangeTree"; | ||
}, | ||
has: (obj, key) => { | ||
if ( | ||
typeof (key) !== "symbol" && | ||
!isNaN(Number(key)) | ||
) { | ||
return obj['$items'].has(Number(key)) | ||
} | ||
return Reflect.has(obj, key) | ||
} | ||
}); | ||
@@ -70,0 +80,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
1636511
20303