diff --git a/package.json b/package.json index d93d20e..29d7d04 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@lumeweb/dht-online", + "name": "@lumeweb/dht-data", "type": "commonjs", "version": "0.1.0", "main": "dist/index.js", diff --git a/src/dhtOnlineBase.ts b/src/DHTDataBase.ts similarity index 99% rename from src/dhtOnlineBase.ts rename to src/DHTDataBase.ts index 495e104..7e018ae 100644 --- a/src/dhtOnlineBase.ts +++ b/src/DHTDataBase.ts @@ -15,7 +15,7 @@ type Bootstrap = { [key: string]: State; }; -export default class DHTOnlineBase extends EventEmitter { +export default class DHTDataBase extends EventEmitter { protected swarm: any; private id: Buffer; private bootstrapped: boolean; diff --git a/src/index.ts b/src/index.ts index c46c7a5..8408f71 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,9 +1,9 @@ -import DHTOnlineBase from "./dhtOnlineBase.js"; +import DHTDataBase from "./DHTDataBase.js"; import DHTFlood from "@lumeweb/dht-flood"; const DISCONNECT_SMOOTH = 500; -export default class DHTOnline extends DHTOnlineBase { +export default class DHTData extends DHTDataBase { private flood: DHTFlood; constructor(