diff --git a/README.md b/README.md index 9314b57..e158eaa 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ import { delay } from "../deps.ts"; import { limit } from "../src/utils/task.ts"; const client = new Client(); +// await client.connect("http://elastic:pwd@localhost:9200/"); // with password await client.connect("http://localhost:9200/"); const count = async () => { diff --git a/mod.ts b/mod.ts index 4e4396f..f9c4191 100644 --- a/mod.ts +++ b/mod.ts @@ -1 +1,3 @@ export { Client } from "./src/client.ts"; + +export const version = '0.0.8'; diff --git a/src/client.ts b/src/client.ts index a48aa82..6b3e5ba 100644 --- a/src/client.ts +++ b/src/client.ts @@ -24,8 +24,6 @@ import { Ajax, ajax } from "./utils/ajax.ts"; import { serializer } from "./utils/serializer.ts"; import { generateId } from "./utils/tools.ts"; -const VERSION = "0.0.8"; - const type = "_doc"; class BaseClient { @@ -73,10 +71,6 @@ class BaseClient { this.#connectionCache.clear(); this.connectedCount = 0; } - - get version() { - return VERSION; - } } export class Client extends BaseClient {