*Move to use @lumeweb/relay-types
This commit is contained in:
parent
ac53e5833a
commit
951a7e3426
|
@ -8,7 +8,7 @@
|
||||||
"build": "rimraf dist && tsc"
|
"build": "rimraf dist && tsc"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"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/json-stable-stringify": "^1.0.34",
|
||||||
"@types/node": "^18.0.0",
|
"@types/node": "^18.0.0",
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.7.1",
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { Buffer } from "buffer";
|
||||||
import { isPromise } from "../util.js";
|
import { isPromise } from "../util.js";
|
||||||
import RpcNetwork from "../network.js";
|
import RpcNetwork from "../network.js";
|
||||||
import { RpcQueryOptions } from "../types.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 {
|
export default abstract class RpcQueryBase {
|
||||||
protected _network: RpcNetwork;
|
protected _network: RpcNetwork;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import RpcQueryBase from "./base.js";
|
import RpcQueryBase from "./base.js";
|
||||||
import RpcNetwork from "../network.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 { RpcQueryOptions } from "../types.js";
|
||||||
import type { Buffer } from "buffer";
|
import type { Buffer } from "buffer";
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,7 @@ import { Buffer } from "buffer";
|
||||||
import { isPromise } from "../util.js";
|
import { isPromise } from "../util.js";
|
||||||
import { clearTimeout, setTimeout } from "timers";
|
import { clearTimeout, setTimeout } from "timers";
|
||||||
import { pack, unpack } from "msgpackr";
|
import { pack, unpack } from "msgpackr";
|
||||||
import type { RPCRequest } from "@lumeweb/relay";
|
import type { RPCRequest, RPCResponse } from "@lumeweb/relay-types";
|
||||||
import { RPCResponse } from "@lumeweb/relay";
|
|
||||||
import RpcNetwork from "../network.js";
|
import RpcNetwork from "../network.js";
|
||||||
import { StreamingRpcQueryOptions } from "../types.js";
|
import { StreamingRpcQueryOptions } from "../types.js";
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import RpcQueryBase from "./base.js";
|
import RpcQueryBase from "./base.js";
|
||||||
import { flatten } from "../util.js";
|
import { flatten } from "../util.js";
|
||||||
import { Buffer } from "buffer";
|
import { Buffer } from "buffer";
|
||||||
import type { RPCResponse } from "@lumeweb/relay";
|
import type { RPCResponse } from "@lumeweb/relay-types";
|
||||||
import { blake2b } from "libskynet";
|
import { blake2b } from "libskynet";
|
||||||
import { ERR_MAX_TRIES_HIT } from "../error.js";
|
import { ERR_MAX_TRIES_HIT } from "../error.js";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue