From 951a7e3426eed9f8bcc05d8c91d68d63845f7342 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 28 Aug 2022 22:14:33 -0400 Subject: [PATCH] *Move to use @lumeweb/relay-types --- package.json | 2 +- src/query/base.ts | 2 +- src/query/simple.ts | 2 +- src/query/streaming.ts | 3 +-- src/query/wisdom.ts | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index a541c69..a2c048d 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "build": "rimraf dist && tsc" }, "devDependencies": { - "@lumeweb/relay": "https://github.com/LumeWeb/relay.git", + "@lumeweb/relay-types": "https://github.com/LumeWeb/relay-types.git", "@types/json-stable-stringify": "^1.0.34", "@types/node": "^18.0.0", "prettier": "^2.7.1", diff --git a/src/query/base.ts b/src/query/base.ts index 217289e..d99c2ca 100644 --- a/src/query/base.ts +++ b/src/query/base.ts @@ -4,7 +4,7 @@ import { Buffer } from "buffer"; import { isPromise } from "../util.js"; import RpcNetwork from "../network.js"; import { RpcQueryOptions } from "../types.js"; -import type { RPCRequest, RPCResponse } from "@lumeweb/relay"; +import type { RPCRequest, RPCResponse } from "@lumeweb/relay-types"; export default abstract class RpcQueryBase { protected _network: RpcNetwork; diff --git a/src/query/simple.ts b/src/query/simple.ts index 2cf4321..511bbea 100644 --- a/src/query/simple.ts +++ b/src/query/simple.ts @@ -1,6 +1,6 @@ import RpcQueryBase from "./base.js"; import RpcNetwork from "../network.js"; -import type { RPCRequest } from "@lumeweb/relay"; +import type { RPCRequest } from "@lumeweb/relay-types"; import { RpcQueryOptions } from "../types.js"; import type { Buffer } from "buffer"; diff --git a/src/query/streaming.ts b/src/query/streaming.ts index dc0e62f..6ff1c4c 100644 --- a/src/query/streaming.ts +++ b/src/query/streaming.ts @@ -3,8 +3,7 @@ import { Buffer } from "buffer"; import { isPromise } from "../util.js"; import { clearTimeout, setTimeout } from "timers"; import { pack, unpack } from "msgpackr"; -import type { RPCRequest } from "@lumeweb/relay"; -import { RPCResponse } from "@lumeweb/relay"; +import type { RPCRequest, RPCResponse } from "@lumeweb/relay-types"; import RpcNetwork from "../network.js"; import { StreamingRpcQueryOptions } from "../types.js"; diff --git a/src/query/wisdom.ts b/src/query/wisdom.ts index 7d6083a..1b52b52 100644 --- a/src/query/wisdom.ts +++ b/src/query/wisdom.ts @@ -1,7 +1,7 @@ import RpcQueryBase from "./base.js"; import { flatten } from "../util.js"; import { Buffer } from "buffer"; -import type { RPCResponse } from "@lumeweb/relay"; +import type { RPCResponse } from "@lumeweb/relay-types"; import { blake2b } from "libskynet"; import { ERR_MAX_TRIES_HIT } from "../error.js";