*Move to use @lumeweb/relay-types

This commit is contained in:
Derrick Hammer 2022-08-28 22:14:33 -04:00
parent ac53e5833a
commit 951a7e3426
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
5 changed files with 5 additions and 6 deletions

View File

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

View File

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

View File

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

View File

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

View File

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