Compare commits
No commits in common. "afdaa9eb3e893275bbd8b36677a813df28c18e16" and "d7256eabe7883a86822704cbdca9527cbdb5d105" have entirely different histories.
afdaa9eb3e
...
d7256eabe7
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@minescope/mineping",
|
||||
"version": "1.2.2",
|
||||
"version": "1.2.1",
|
||||
"description": "Ping both Minecraft Bedrock and Java servers.",
|
||||
"main": "index.js",
|
||||
"types": "types/index.d.ts",
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
* @param timeout The read/write socket timeout.
|
||||
*/
|
||||
export type BedrockPingOptions = {
|
||||
port?: number | undefined,
|
||||
timeout?: number | undefined;
|
||||
port: number,
|
||||
timeout: number;
|
||||
};
|
||||
|
||||
export type BedrockPingResponse = {
|
||||
|
@ -26,7 +26,6 @@ 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 | undefined,
|
||||
timeout?: number | undefined,
|
||||
protocolVersion?: number | undefined;
|
||||
port: number,
|
||||
timeout: number,
|
||||
protocolVersion: number;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue