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

@colyseus/schema

Package Overview
Dependencies
Maintainers
0
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 3.0.0-alpha.18 to 3.0.0-alpha.19

2

lib/decoder/strategy/StateCallbacks.d.ts

@@ -48,3 +48,3 @@ import { Collection, NonFunctionNonPrimitivePropNames, NonFunctionPropNames } from "../../types/HelperTypes";

};
export declare function getStateCallbacks<T extends Schema>(decoder: Decoder<T>): GetCallbackProxy;
export declare function getDecoderStateCallbacks<T extends Schema>(decoder: Decoder<T>): GetCallbackProxy;
export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getStateCallbacks = void 0;
exports.getDecoderStateCallbacks = void 0;
const spec_1 = require("../../encoding/spec");
const Schema_1 = require("../../Schema");
function getStateCallbacks(decoder) {
function getDecoderStateCallbacks(decoder) {
const $root = decoder.root;

@@ -233,3 +233,3 @@ const callbacks = $root.callbacks;

}
exports.getStateCallbacks = getStateCallbacks;
exports.getDecoderStateCallbacks = getDecoderStateCallbacks;
//# sourceMappingURL=StateCallbacks.js.map

@@ -24,3 +24,3 @@ export { Schema } from "./Schema";

export type { DefinitionType, PrimitiveType, Definition, } from "./annotations";
export { getStateCallbacks, CallbackProxy } from "./decoder/strategy/StateCallbacks";
export { getDecoderStateCallbacks, CallbackProxy, GetCallbackProxy } from "./decoder/strategy/StateCallbacks";
export { getRawChangesCallback } from "./decoder/strategy/RawChanges";

@@ -27,0 +27,0 @@ export { Encoder } from "./encoder/Encoder";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OPERATION = exports.decodeKeyValueOperation = exports.decodeSchemaOperation = exports.Decoder = exports.StateView = exports.ChangeTree = exports.encodeKeyValueOperation = exports.encodeSchemaOperation = exports.Encoder = exports.getRawChangesCallback = exports.getStateCallbacks = exports.TypeContext = exports.view = exports.defineTypes = exports.deprecated = exports.type = exports.Metadata = exports.ReflectionField = exports.ReflectionType = exports.Reflection = exports.decode = exports.encode = exports.dumpChanges = exports.registerType = exports.SetSchema = exports.CollectionSchema = exports.ArraySchema = exports.MapSchema = exports.$childType = exports.$changes = exports.$deleteByIndex = exports.$getByIndex = exports.$filter = exports.$decoder = exports.$encoder = exports.$track = exports.Schema = void 0;
exports.OPERATION = exports.decodeKeyValueOperation = exports.decodeSchemaOperation = exports.Decoder = exports.StateView = exports.ChangeTree = exports.encodeKeyValueOperation = exports.encodeSchemaOperation = exports.Encoder = exports.getRawChangesCallback = exports.getDecoderStateCallbacks = exports.TypeContext = exports.view = exports.defineTypes = exports.deprecated = exports.type = exports.Metadata = exports.ReflectionField = exports.ReflectionType = exports.Reflection = exports.decode = exports.encode = exports.dumpChanges = exports.registerType = exports.SetSchema = exports.CollectionSchema = exports.ArraySchema = exports.MapSchema = exports.$childType = exports.$changes = exports.$deleteByIndex = exports.$getByIndex = exports.$filter = exports.$decoder = exports.$encoder = exports.$track = exports.Schema = void 0;
var Schema_1 = require("./Schema");

@@ -52,3 +52,3 @@ Object.defineProperty(exports, "Schema", { enumerable: true, get: function () { return Schema_1.Schema; } });

var StateCallbacks_1 = require("./decoder/strategy/StateCallbacks");
Object.defineProperty(exports, "getStateCallbacks", { enumerable: true, get: function () { return StateCallbacks_1.getStateCallbacks; } });
Object.defineProperty(exports, "getDecoderStateCallbacks", { enumerable: true, get: function () { return StateCallbacks_1.getDecoderStateCallbacks; } });
var RawChanges_1 = require("./decoder/strategy/RawChanges");

@@ -55,0 +55,0 @@ Object.defineProperty(exports, "getRawChangesCallback", { enumerable: true, get: function () { return RawChanges_1.getRawChangesCallback; } });

{
"name": "@colyseus/schema",
"version": "3.0.0-alpha.18",
"version": "3.0.0-alpha.19",
"description": "Binary state serializer with delta encoding for games",

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

@@ -94,3 +94,3 @@ import { Metadata } from "../../Metadata";

export function getStateCallbacks<T extends Schema>(decoder: Decoder<T>): GetCallbackProxy {
export function getDecoderStateCallbacks<T extends Schema>(decoder: Decoder<T>): GetCallbackProxy {
const $root = decoder.root;

@@ -97,0 +97,0 @@ const callbacks = $root.callbacks;

@@ -59,3 +59,3 @@ export { Schema } from "./Schema";

export { getStateCallbacks, CallbackProxy } from "./decoder/strategy/StateCallbacks";
export { getDecoderStateCallbacks, CallbackProxy, GetCallbackProxy } from "./decoder/strategy/StateCallbacks";
export { getRawChangesCallback } from "./decoder/strategy/RawChanges";

@@ -62,0 +62,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

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