Compare commits

..

No commits in common. "afdaa9eb3e893275bbd8b36677a813df28c18e16" and "d7256eabe7883a86822704cbdca9527cbdb5d105" have entirely different histories.

3 changed files with 7 additions and 8 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@minescope/mineping", "name": "@minescope/mineping",
"version": "1.2.2", "version": "1.2.1",
"description": "Ping both Minecraft Bedrock and Java servers.", "description": "Ping both Minecraft Bedrock and Java servers.",
"main": "index.js", "main": "index.js",
"types": "types/index.d.ts", "types": "types/index.d.ts",
@ -19,4 +19,4 @@
"node": ">=14" "node": ">=14"
}, },
"license": "MIT" "license": "MIT"
} }

View File

@ -3,8 +3,8 @@
* @param timeout The read/write socket timeout. * @param timeout The read/write socket timeout.
*/ */
export type BedrockPingOptions = { export type BedrockPingOptions = {
port?: number | undefined, port: number,
timeout?: number | undefined; timeout: number;
}; };
export type BedrockPingResponse = { 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. * 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 host The Bedrock server address.
* @param options The configuration for pinging Minecraft Bedrock server.
* *
* ```js * ```js
* import { pingBedrock } from '@minescope/mineping'; * import { pingBedrock } from '@minescope/mineping';

6
types/lib/java.d.ts vendored
View File

@ -4,9 +4,9 @@
* @param protocolVersion The protocol version. * @param protocolVersion The protocol version.
*/ */
export type JavaPingOptions = { export type JavaPingOptions = {
port?: number | undefined, port: number,
timeout?: number | undefined, timeout: number,
protocolVersion?: number | undefined; protocolVersion: number;
}; };
/** /**