Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@colyseus/schema

Package Overview
Dependencies
Maintainers
1
Versions
313
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@colyseus/schema - npm Package Compare versions

Comparing version 2.0.10 to 2.0.11

4

lib/types/ArraySchema.js

@@ -131,2 +131,6 @@ "use strict";

setAt(index, value) {
if (value === undefined || value === null) {
console.error("ArraySchema items cannot be null nor undefined; Use `deleteAt(index)` instead.");
return;
}
if (value['$changes'] !== undefined) {

@@ -133,0 +137,0 @@ value['$changes'].setParent(this, this.$changes.root, index);

@@ -75,2 +75,5 @@ "use strict";

}
// Force "key" as string
// See: https://github.com/colyseus/colyseus/issues/561#issuecomment-1646733468
key = key.toString();
// get "index" for this value.

@@ -77,0 +80,0 @@ const hasIndex = typeof (this.$changes.indexes[key]) !== "undefined";

2

package.json
{
"name": "@colyseus/schema",
"version": "2.0.10",
"version": "2.0.11",
"description": "Binary state serializer with delta encoding for games",

@@ -5,0 +5,0 @@ "bin": {

@@ -165,2 +165,7 @@ import { ChangeTree } from "../changes/ChangeTree";

setAt(index: number, value: V) {
if (value === undefined || value === null) {
console.error("ArraySchema items cannot be null nor undefined; Use `deleteAt(index)` instead.");
return;
}
if (value['$changes'] !== undefined) {

@@ -167,0 +172,0 @@ (value['$changes'] as ChangeTree).setParent(this, this.$changes.root, index);

@@ -104,2 +104,6 @@ import { SchemaDecoderCallbacks } from "../Schema";

// Force "key" as string
// See: https://github.com/colyseus/colyseus/issues/561#issuecomment-1646733468
key = key.toString() as K;
// get "index" for this value.

@@ -106,0 +110,0 @@ const hasIndex = typeof(this.$changes.indexes[key]) !== "undefined";

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc