bedrock-portal 0.6.1 → 0.6.3

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.
@@ -5,7 +5,7 @@ exports.SessionConfig = {
5
5
  MinecraftTitleID: '896928775',
6
6
  MinecraftSCID: '4fc10100-5f7a-4470-899b-280835760c07',
7
7
  MinecraftTemplateName: 'MinecraftLobby',
8
- MiencraftProtocolVersion: 649,
8
+ MiencraftProtocolVersion: 686,
9
9
  };
10
10
  var Joinability;
11
11
  (function (Joinability) {
package/dist/index.js CHANGED
@@ -76,8 +76,8 @@ class BedrockPortal extends tiny_typed_emitter_1.TypedEmitter {
76
76
  /**
77
77
  * Ends the BedrockPortal instance.
78
78
  */
79
- end(resume = false) {
80
- return __awaiter(this, void 0, void 0, function* () {
79
+ end() {
80
+ return __awaiter(this, arguments, void 0, function* (resume = false) {
81
81
  if (this.host.rta) {
82
82
  yield this.host.rta.destroy();
83
83
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { BedrockPortal } from '../index';
3
2
  import Module from '../classes/Module';
4
3
  export default class AutoFriendAdd extends Module {
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { BedrockPortal } from '../index';
3
2
  import type { Conversation } from '../types/xblmessaging';
4
3
  import Module from '../classes/Module';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { BedrockPortal } from '..';
3
2
  import Module from '../classes/Module';
4
3
  export default class RedirectFromRealm extends Module {
package/dist/rest.js CHANGED
@@ -19,23 +19,23 @@ class Rest {
19
19
  this.auth = authflow;
20
20
  this.options = options;
21
21
  }
22
- get(url, config = {}) {
23
- return __awaiter(this, void 0, void 0, function* () {
22
+ get(url_1) {
23
+ return __awaiter(this, arguments, void 0, function* (url, config = {}) {
24
24
  return yield this._request('GET', Object.assign({ url }, config));
25
25
  });
26
26
  }
27
- post(url, config = {}) {
28
- return __awaiter(this, void 0, void 0, function* () {
27
+ post(url_1) {
28
+ return __awaiter(this, arguments, void 0, function* (url, config = {}) {
29
29
  return yield this._request('POST', Object.assign({ url }, config));
30
30
  });
31
31
  }
32
- put(url, config = {}) {
33
- return __awaiter(this, void 0, void 0, function* () {
32
+ put(url_1) {
33
+ return __awaiter(this, arguments, void 0, function* (url, config = {}) {
34
34
  return yield this._request('PUT', Object.assign({ url }, config));
35
35
  });
36
36
  }
37
- delete(url, config = {}) {
38
- return __awaiter(this, void 0, void 0, function* () {
37
+ delete(url_1) {
38
+ return __awaiter(this, arguments, void 0, function* (url, config = {}) {
39
39
  return yield this._request('DELETE', Object.assign({ url }, config));
40
40
  });
41
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bedrock-portal",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "Creates a joinable session in Minecraft Bedrock Edition that can route players to their a specified host",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",