@colyseus/schema
Advanced tools
Comparing version 1.0.42 to 1.0.43
@@ -211,3 +211,3 @@ "use strict"; | ||
// TypeScript 4.8 and above | ||
if (ts.canHaveDecorators(node)) { | ||
if (ts.canHaveDecorators && ts.canHaveDecorators(node)) { | ||
var decorators = ts.getDecorators(node); | ||
@@ -214,0 +214,0 @@ return decorators ? Array.from(decorators) : undefined; |
{ | ||
"name": "@colyseus/schema", | ||
"version": "1.0.42", | ||
"version": "1.0.43", | ||
"description": "Binary state serializer with delta encoding for games", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -265,3 +265,3 @@ import * as ts from "typescript"; | ||
// TypeScript 4.8 and above | ||
if (ts.canHaveDecorators(node)) { | ||
if (ts.canHaveDecorators && ts.canHaveDecorators(node)) { | ||
const decorators = ts.getDecorators(node); | ||
@@ -272,2 +272,2 @@ return decorators ? Array.from(decorators) : undefined; | ||
return node.modifiers?.filter(ts.isDecorator); | ||
} | ||
} |
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
1604717
19983