Compare commits
3 Commits
d7256eabe7
...
afdaa9eb3e
Author | SHA1 | Date |
---|---|---|
Timofey Gelazoniya | afdaa9eb3e | |
Timofey Gelazoniya | 435899309f | |
sya-ri | 13e6b8c6ff |
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@minescope/mineping",
|
||||
"version": "1.2.1",
|
||||
"version": "1.2.2",
|
||||
"description": "Ping both Minecraft Bedrock and Java servers.",
|
||||
"main": "index.js",
|
||||
"types": "types/index.d.ts",
|
||||
|
@ -19,4 +19,4 @@
|
|||
"node": ">=14"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
* @param timeout The read/write socket timeout.
|
||||
*/
|
||||
export type BedrockPingOptions = {
|
||||
port: number,
|
||||
timeout: number;
|
||||
port?: number | undefined,
|
||||
timeout?: number | undefined;
|
||||
};
|
||||
|
||||
export type BedrockPingResponse = {
|
||||
|
@ -26,6 +26,7 @@ export type BedrockPingResponse = {
|
|||
* The optional `options` argument can be an object with a `ping` (default is `19132`) or/and `timeout` (default is `5000`) property.
|
||||
*
|
||||
* @param host The Bedrock server address.
|
||||
* @param options The configuration for pinging Minecraft Bedrock server.
|
||||
*
|
||||
* ```js
|
||||
* import { pingBedrock } from '@minescope/mineping';
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
* @param protocolVersion The protocol version.
|
||||
*/
|
||||
export type JavaPingOptions = {
|
||||
port: number,
|
||||
timeout: number,
|
||||
protocolVersion: number;
|
||||
port?: number | undefined,
|
||||
timeout?: number | undefined,
|
||||
protocolVersion?: number | undefined;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue