Skip to content

Commit f34551f

Browse files
committed
remove reference to 'node:util' import
1 parent 7ffab3c commit f34551f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@colyseus/schema",
3-
"version": "3.0.30",
3+
"version": "3.0.31",
44
"description": "Binary state serializer with delta encoding for games",
55
"bin": {
66
"schema-codegen": "./bin/schema-codegen",

src/encoder/ChangeTree.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import * as util from "util";
2-
31
import { OPERATION } from "../encoding/spec";
42
import { Schema } from "../Schema";
53
import { $changes, $childType, $decoder, $onEncodeEnd, $encoder, $getByIndex, $refTypeFieldIndexes, $viewFieldIndexes } from "../types/symbols";
@@ -79,13 +77,13 @@ export function debugChangeSet(label: string, changeSet: ChangeSet) {
7977
let operations: string[] = [];
8078

8179
for (const index in changeSet.indexes) {
82-
indexes.push(`\t${util.inspect(index, { colors: true })} => [${util.inspect(changeSet.indexes[index], { colors: true })}]`);
80+
indexes.push(`\t${index} => [${changeSet.indexes[index]}]`);
8381
}
8482

8583
for (let i = 0; i < changeSet.operations.length; i++) {
8684
const index = changeSet.operations[i];
8785
if (index !== undefined) {
88-
operations.push(`\t[${util.inspect(i, { colors: true })}] => ${util.inspect(index, { colors: true })}`);
86+
operations.push(`\t[${i}] => ${index}`);
8987
}
9088
}
9189

0 commit comments

Comments
 (0)