@colyseus/schema
Advanced tools
Comparing version 2.0.24 to 2.0.25
@@ -80,3 +80,3 @@ "use strict"; | ||
if (isNaN(Number(prop.type))) { | ||
value = prop.type; | ||
value = `"${prop.type}"`; | ||
dataType = "string"; | ||
@@ -83,0 +83,0 @@ } |
@@ -156,3 +156,3 @@ "use strict"; | ||
if (currentStructure instanceof types_1.Enum) { | ||
const initializer = node.initializer?.getText(); | ||
const initializer = node.initializer?.text; | ||
const name = node.getFirstToken().getText(); | ||
@@ -159,0 +159,0 @@ const property = currentProperty || new types_1.Property(); |
{ | ||
"name": "@colyseus/schema", | ||
"version": "2.0.24", | ||
"version": "2.0.25", | ||
"description": "Binary state serializer with delta encoding for games", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -90,3 +90,3 @@ import { | ||
if(isNaN(Number(prop.type))) { | ||
value = prop.type; | ||
value = `"${prop.type}"`; | ||
dataType = "string"; | ||
@@ -93,0 +93,0 @@ } else { |
@@ -197,3 +197,3 @@ import * as ts from "typescript"; | ||
if (currentStructure instanceof Enum) { | ||
const initializer = (node as any).initializer?.getText(); | ||
const initializer = (node as any).initializer?.text; | ||
const name = node.getFirstToken().getText(); | ||
@@ -200,0 +200,0 @@ const property = currentProperty || new Property(); |
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
1650447