refactor: switch to @lumeweb/interface-relay
This commit is contained in:
parent
c25bf102fe
commit
c6d4ea5a8e
|
@ -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",
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Plugin, PluginAPI } from "@lumeweb/relay-types";
|
||||
import { Plugin, PluginAPI } from "@lumeweb/interface-relay";
|
||||
|
||||
const plugin: Plugin = {
|
||||
name: "core",
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue