refactor: switch to @lumeweb/interface-relay

This commit is contained in:
Derrick Hammer 2023-04-19 05:15:58 -04:00
parent c25bf102fe
commit c6d4ea5a8e
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
6 changed files with 6 additions and 5 deletions

View File

@ -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",

View File

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

View File

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

View File

@ -1,4 +1,4 @@
import { Plugin, PluginAPI } from "@lumeweb/relay-types";
import { Plugin, PluginAPI } from "@lumeweb/interface-relay";
const plugin: Plugin = {
name: "core",

View File

@ -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 = {

View File

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