teleportxr 1.0.34 → 1.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/client/client.js +5 -12
  2. package/package.json +1 -1
package/client/client.js CHANGED
@@ -145,19 +145,12 @@ class Client {
145
145
 
146
146
  // Log the setup command for debugging
147
147
  console.log("\n===== NODE SERVER SENDING SETUPCOMMAND =====");
148
- console.log(JSON.stringify({
149
- type: "SetupCommand",
150
- clientID: this.clientID,
151
- session_id: this.setupCommand.uint64_session_id.toString(),
152
- backgroundMode: this.setupCommand.BackgroundMode_backgroundMode,
153
- backgroundTexture: this.setupCommand.uid_backgroundTexture.toString(),
154
- drawDistance: this.setupCommand.float32_draw_distance,
155
- startTimestamp_utc_unix_us: this.setupCommand.int64_startTimestamp_utc_unix_us.toString(),
156
- clientDynamicLighting: {
157
- diffuse_cubemap_texture_uid: this.clientDynamicLighting.uid_diffuse_cubemap_texture_uid.toString(),
158
- specular_cubemap_texture_uid: this.clientDynamicLighting.uid_specular_cubemap_texture_uid.toString()
148
+ console.log(JSON.stringify(this.setupCommand, (key, value) => {
149
+ if (typeof value === 'bigint') {
150
+ return value.toString();
159
151
  }
160
- }, null, 2));
152
+ return value;
153
+ }, 2));
161
154
  console.log("===== END SETUPCOMMAND =====\n");
162
155
 
163
156
  this.SendCommand(this.setupCommand);
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "name": "teleportxr",
17
17
  "description": "Teleport Spatial Server on node.js",
18
- "version": "1.0.34",
18
+ "version": "1.0.35",
19
19
  "repository": {
20
20
  "type": "git",
21
21
  "url": "git+https://github.com/simul/teleport-nodejs.git"