diff --git a/deno.json b/deno.json index 1288022..5cc8133 100644 --- a/deno.json +++ b/deno.json @@ -5,7 +5,7 @@ "@std/cli": "jsr:@std/cli@^1.0.6", "@std/io": "jsr:@std/io@^0.225.0" }, - "version": "0.0.3", + "version": "0.0.4", "exports": "./mod.ts", "publish": { "include": ["README.md", "mod.ts", "src/"] diff --git a/mod.ts b/mod.ts index ce25416..702f855 100644 --- a/mod.ts +++ b/mod.ts @@ -1,2 +1,3 @@ export * from "./src/rcon.ts"; export * from "./src/errors.ts"; +export type { RconOptions } from "./src/types.ts"; diff --git a/src/rcon.ts b/src/rcon.ts index c9c84aa..28f4433 100644 --- a/src/rcon.ts +++ b/src/rcon.ts @@ -31,7 +31,7 @@ import type { RconOptions } from "./types.ts"; * * Note the `using` will automatically disconnect and clean up the resources. You can call disconnect manually as well */ -export default class Rcon { +export class Rcon { #host: string; #port: number; #connection?: Socket;