@minecraft/server-net 1.0.0-beta.release.1.19.40 → 1.0.0-beta.release.1.19.50

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/index.d.ts +4 -4
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -16,7 +16,7 @@
16
16
  * ```json
17
17
  * {
18
18
  * "module_name": "@minecraft/server-net",
19
- * "version": "1.0.0-beta.release.1.19.40"
19
+ * "version": "1.0.0-beta.release.1.19.50"
20
20
  * }
21
21
  * ```
22
22
  *
@@ -56,6 +56,7 @@ export enum HttpRequestMethod {
56
56
  PUT = 'PUT',
57
57
  }
58
58
  export class HttpClient {
59
+ protected constructor();
59
60
  /**
60
61
  * @remarks
61
62
  * Cancels all pending requests.
@@ -84,7 +85,6 @@ export class HttpClient {
84
85
  testOnly_fulfillRequest(requestId: number, headers: HttpHeader[], body: string, status: number): void;
85
86
  testOnly_getRequests(): number[];
86
87
  testOnly_rejectRequest(requestId: number, reason: string): void;
87
- protected constructor();
88
88
  }
89
89
  /**
90
90
  * Represents an HTTP header - a key/value pair of
@@ -127,6 +127,7 @@ export class HttpRequest {
127
127
  * The HTTP resource to access.
128
128
  */
129
129
  uri: string;
130
+ constructor(uri: string);
130
131
  /**
131
132
  * @remarks
132
133
  * Adds an additional header to the overall list of headers
@@ -135,7 +136,6 @@ export class HttpRequest {
135
136
  * @param value
136
137
  */
137
138
  addHeader(key: string, value: minecraftserveradmin.SecretString | string): HttpRequest;
138
- constructor(uri: string);
139
139
  /**
140
140
  * @remarks
141
141
  * Updates the content of the body of the HTTP request.
@@ -161,6 +161,7 @@ export class HttpRequest {
161
161
  * Main object that contains result information from a request.
162
162
  */
163
163
  export class HttpResponse {
164
+ protected constructor();
164
165
  /**
165
166
  * Body content of the HTTP response.
166
167
  */
@@ -181,6 +182,5 @@ export class HttpResponse {
181
182
  * internal server error.
182
183
  */
183
184
  readonly status: number;
184
- protected constructor();
185
185
  }
186
186
  export const http: HttpClient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server-net",
3
- "version": "1.0.0-beta.release.1.19.40",
3
+ "version": "1.0.0-beta.release.1.19.50",
4
4
  "description": "",
5
5
  "contributors": [
6
6
  {
@@ -13,7 +13,7 @@
13
13
  }
14
14
  ],
15
15
  "dependencies": {
16
- "@minecraft/server-admin": "1.0.0-beta.release.1.19.40"
16
+ "@minecraft/server-admin": "1.0.0-beta.release.1.19.50"
17
17
  },
18
18
  "license": "MIT"
19
19
  }