*Rename library to better reflect its purpose

This commit is contained in:
Derrick Hammer 2022-11-19 19:53:24 -05:00
parent 23e1644be9
commit f529597a61
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
3 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
{
"name": "@lumeweb/dht-online",
"name": "@lumeweb/dht-data",
"type": "commonjs",
"version": "0.1.0",
"main": "dist/index.js",

View File

@ -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;

View File

@ -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(