bedrock-portal 0.0.4 → 0.0.6

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/package.json +2 -2
  2. package/src/index.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bedrock-portal",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "Creates a joinable session in Minecraft Bedrock Edition that can route players to their a specified host",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "axios": "^1.0.0",
21
21
  "uuid": "^9.0.0",
22
- "xbox-rta": "^0.0.4"
22
+ "xbox-rta": "^0.0.6"
23
23
  },
24
24
  "devDependencies": {
25
25
  "bedrock-portal": "file:.",
package/src/index.js CHANGED
@@ -197,9 +197,9 @@ module.exports = class BedrockPortal extends EventEmitter {
197
197
  closed: false,
198
198
  },
199
199
  custom: {
200
- hostName: String(this.options.world?.hostName) ?? `${this.sessionOwner.gamertag}'s Portal`,
201
- worldName: String(this.options.world?.name) ?? 'BedrockPortal',
202
- version: String(this.options.world?.version) ?? require('../package.json').version,
200
+ hostName: String(this.options.world?.hostName) || `${this.sessionOwner.gamertag}'s Portal`,
201
+ worldName: String(this.options.world?.name) || 'BedrockPortal',
202
+ version: String(this.options.world?.version) || require('../package.json').version,
203
203
  MemberCount: Number(this.options.world?.memberCount) ?? 0,
204
204
  MaxMemberCount: Number(this.options.world?.maxMemberCount) ?? 10,
205
205
  Joinability: joinability.joinability,