New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@colyseus/schema

Package Overview
Dependencies
Maintainers
1
Versions
337
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 0.4.27 to 0.4.28

6

lib/Schema.js

@@ -393,4 +393,6 @@ "use strict";

: value.$changes.changes;
// ensure number of changes doesn't exceed array length
var numChanges = Math.min(value.length, arrayChanges.length);
// number of changed items
encode.number(bytes, arrayChanges.length);
encode.number(bytes, numChanges);
var isChildSchema = typeof (type[0]) !== "string";

@@ -400,3 +402,3 @@ // assert ArraySchema was provided

// encode Array of type
for (var j = 0; j < arrayChanges.length; j++) {
for (var j = 0; j < numChanges; j++) {
var index = arrayChanges[j];

@@ -403,0 +405,0 @@ var item = this["_" + field][index];

{
"name": "@colyseus/schema",
"version": "0.4.27",
"version": "0.4.28",
"description": "Schema-based binary serializer / de-serializer.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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