diff --git a/package.json b/package.json index 4402907..baafc1d 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "@fastify/websocket": "^7.1.1", "@hyperswarm/dht-relay": "^0.3.0", "@lumeweb/cfg": "git+https://git.lumeweb.com/LumeWeb/cfg.git", + "@lumeweb/interface-relay": "git+https://git.lumeweb.com/LumeWeb/interface-relay", "@scure/bip39": "^1.1.0", "@types/node": "^18.0.0", "@types/ws": "^8.5.3", diff --git a/src/modules/plugin.ts b/src/modules/plugin.ts index 9a60e0c..c5f8210 100644 --- a/src/modules/plugin.ts +++ b/src/modules/plugin.ts @@ -1,7 +1,7 @@ import config from "../config.js"; import type { RPCServer } from "./rpc/server.js"; import { getRpcServer } from "./rpc/server.js"; -import type { Plugin, RPCMethod } from "@lumeweb/relay-types"; +import type { Plugin, RPCMethod } from "@lumeweb/interface-relay"; import slugify from "slugify"; import * as fs from "fs"; import path from "path"; diff --git a/src/modules/rpc/server.ts b/src/modules/rpc/server.ts index 68739b3..0d2369d 100644 --- a/src/modules/rpc/server.ts +++ b/src/modules/rpc/server.ts @@ -3,7 +3,7 @@ import { RPCMethod, RPCRequest, RPCResponse, -} from "@lumeweb/relay-types"; +} from "@lumeweb/interface-relay"; import EventEmitter from "events"; // @ts-ignore import ProtomuxRPC from "protomux-rpc"; diff --git a/src/plugins/core.ts b/src/plugins/core.ts index e1d9c60..8e555ea 100644 --- a/src/plugins/core.ts +++ b/src/plugins/core.ts @@ -1,4 +1,4 @@ -import { Plugin, PluginAPI } from "@lumeweb/relay-types"; +import { Plugin, PluginAPI } from "@lumeweb/interface-relay"; const plugin: Plugin = { name: "core", diff --git a/src/plugins/dht.ts b/src/plugins/dht.ts index 92f2dcd..3a62a7e 100644 --- a/src/plugins/dht.ts +++ b/src/plugins/dht.ts @@ -1,4 +1,4 @@ -import { Plugin, PluginAPI } from "@lumeweb/relay-types"; +import { Plugin, PluginAPI } from "@lumeweb/interface-relay"; import b4a from "b4a"; const plugin: Plugin = { diff --git a/src/plugins/rpc.ts b/src/plugins/rpc.ts index dc79854..5a46746 100644 --- a/src/plugins/rpc.ts +++ b/src/plugins/rpc.ts @@ -6,7 +6,7 @@ import { RPCCacheItem, RPCRequest, RPCResponse, -} from "@lumeweb/relay-types"; +} from "@lumeweb/interface-relay"; import { getRpcByPeer } from "../modules/rpc"; import { get as getSwarm, LUMEWEB_TOPIC_HASH } from "../modules/swarm"; import b4a from "b4a";