bedrock-portal 0.0.3 → 0.0.5

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 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bedrock-portal",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
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.5"
23
23
  },
24
24
  "devDependencies": {
25
25
  "bedrock-portal": "file:.",
package/src/index.js CHANGED
@@ -105,10 +105,6 @@ module.exports = class BedrockPortal extends EventEmitter {
105
105
  system: {
106
106
  active: true,
107
107
  connection: connectionId,
108
- subscription: {
109
- id: this.session.subscriptionId,
110
- changeTypes: ['everything'],
111
- },
112
108
  },
113
109
  },
114
110
  },
@@ -201,9 +197,9 @@ module.exports = class BedrockPortal extends EventEmitter {
201
197
  closed: false,
202
198
  },
203
199
  custom: {
204
- hostName: String(this.options.world?.hostName) ?? `${this.sessionOwner.gamertag}'s Portal`,
205
- worldName: String(this.options.world?.name) ?? 'BedrockPortal',
206
- 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,
207
203
  MemberCount: Number(this.options.world?.memberCount) ?? 0,
208
204
  MaxMemberCount: Number(this.options.world?.maxMemberCount) ?? 10,
209
205
  Joinability: joinability.joinability,