From 6bf3cedd1af603af9a402dbab764a0edaaaace59 Mon Sep 17 00:00:00 2001 From: jia wei Date: Fri, 10 Sep 2021 16:12:38 +0800 Subject: [PATCH] =?UTF-8?q?feat(db):=20=E6=94=AF=E6=8C=81=E5=B8=A6?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E7=9A=84es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + mod.ts | 2 ++ src/client.ts | 6 ------ 3 files changed, 3 insertions(+), 6 deletions(-) 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 {