@colyseus/schema
Advanced tools
Comparing version 2.0.15 to 2.0.16
@@ -94,3 +94,4 @@ "use strict"; | ||
.join("\n")} | ||
${indent}}`; | ||
${indent}} | ||
${namespace ? "}" : ""}`; | ||
} | ||
@@ -97,0 +98,0 @@ function generateProperty(prop, indent = "") { |
@@ -1,2 +0,3 @@ | ||
export { Schema, DataChange } from "./Schema"; | ||
export { Schema } from "./Schema"; | ||
export type { DataChange } from "./Schema"; | ||
import { MapSchema } from "./types/MapSchema"; | ||
@@ -13,3 +14,3 @@ export { MapSchema }; | ||
export { dumpChanges } from "./utils"; | ||
export { Iterator } from "./encoding/decode"; | ||
export type { Iterator } from "./encoding/decode"; | ||
import * as encode from "./encoding/encode"; | ||
@@ -19,3 +20,4 @@ import * as decode from "./encoding/decode"; | ||
export { Reflection, ReflectionType, ReflectionField, } from "./Reflection"; | ||
export { type, deprecated, filter, filterChildren, defineTypes, hasFilter, SchemaDefinition, Context, PrimitiveType, Definition, DefinitionType, FilterCallback, } from "./annotations"; | ||
export { type, deprecated, filter, filterChildren, defineTypes, hasFilter, SchemaDefinition, Context, } from "./annotations"; | ||
export type { DefinitionType, PrimitiveType, Definition, FilterCallback, } from "./annotations"; | ||
export { OPERATION } from "./spec"; |
@@ -42,3 +42,2 @@ "use strict"; | ||
Object.defineProperty(exports, "SchemaDefinition", { enumerable: true, get: function () { return annotations_1.SchemaDefinition; } }); | ||
// Types | ||
Object.defineProperty(exports, "Context", { enumerable: true, get: function () { return annotations_1.Context; } }); | ||
@@ -45,0 +44,0 @@ var spec_1 = require("./spec"); |
{ | ||
"name": "@colyseus/schema", | ||
"version": "2.0.15", | ||
"version": "2.0.16", | ||
"description": "Binary state serializer with delta encoding for games", | ||
@@ -11,3 +11,3 @@ "bin": { | ||
"watch": "tsc -w", | ||
"test": "mocha --require ts-node/register test/*Test.ts test/**/*Test.ts", | ||
"test": "mocha --require ts-node/register test/*.test.ts test/**/*.test.ts", | ||
"coverage": "nyc mocha --require ts-node/register --require source-map-support/register --recursive test/**Test.ts", | ||
@@ -14,0 +14,0 @@ "generate-test-1": "bin/schema-codegen test-external/PrimitiveTypes.ts --namespace SchemaTest.PrimitiveTypes --output ../colyseus-unity-sdk/Assets/Editor/ColyseusTests/Schema/PrimitiveTypes", |
@@ -102,3 +102,4 @@ import { | ||
.join("\n")} | ||
${indent}}` | ||
${indent}} | ||
${namespace ? "}" : ""}` | ||
} | ||
@@ -215,2 +216,2 @@ | ||
} | ||
} | ||
} |
@@ -1,2 +0,3 @@ | ||
export { Schema, DataChange } from "./Schema"; | ||
export { Schema } from "./Schema"; | ||
export type { DataChange } from "./Schema"; | ||
@@ -27,3 +28,3 @@ import { MapSchema } from "./types/MapSchema" | ||
// Encoder / Decoder | ||
export { Iterator } from "./encoding/decode"; | ||
export type { Iterator } from "./encoding/decode"; | ||
import * as encode from "./encoding/encode"; | ||
@@ -51,8 +52,10 @@ import * as decode from "./encoding/decode"; | ||
SchemaDefinition, | ||
Context, | ||
} from "./annotations"; | ||
// Types | ||
Context, | ||
// Annotation types | ||
export type { | ||
DefinitionType, | ||
PrimitiveType, | ||
Definition, | ||
DefinitionType, | ||
FilterCallback, | ||
@@ -59,0 +62,0 @@ } from "./annotations"; |
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 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
1626621
20258