Compare commits
4 Commits
0c51da781e
...
3868286416
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | 3868286416 | |
Derrick Hammer | 7afe4cb0bb | |
Derrick Hammer | f0f2118c99 | |
Derrick Hammer | 7f8dee6ad2 |
|
@ -8,7 +8,7 @@
|
|||
"build": "rimraf dist && tsc"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lumeweb/relay-types": "https://git.lumeweb.com/LumeWeb/relay-types.git",
|
||||
"@lumeweb/relay-types": "git+https://git.lumeweb.com/LumeWeb/relay-types.git",
|
||||
"@types/b4a": "^1.6.0",
|
||||
"@types/express": "^4.17.14",
|
||||
"@types/node": "^18.0.0",
|
||||
|
@ -18,7 +18,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@hyperswarm/dht": "^6.0.1",
|
||||
"@lumeweb/rpc": "https://git.lumeweb.com/LumeWeb/rpc.git",
|
||||
"@lumeweb/rpc": "git+https://git.lumeweb.com/LumeWeb/rpc.git",
|
||||
"b4a": "^1.6.1",
|
||||
"json-stringify-deterministic": "^1.0.7",
|
||||
"libskynet": "^0.0.61",
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
import { clearTimeout, setTimeout } from "timers";
|
||||
import { pack, unpack } from "msgpackr";
|
||||
import { Buffer } from "buffer";
|
||||
import { isPromise } from "../util.js";
|
||||
import RpcNetwork from "../network.js";
|
||||
import { RpcQueryOptions } from "../types.js";
|
||||
import type {
|
||||
|
@ -9,8 +6,6 @@ import type {
|
|||
RPCRequest,
|
||||
RPCResponse,
|
||||
} from "@lumeweb/relay-types";
|
||||
import RPC from "@lumeweb/rpc";
|
||||
import { RPCBroadcastRequest } from "@lumeweb/relay-types";
|
||||
|
||||
export default abstract class RpcQueryBase {
|
||||
protected _network: RpcNetwork;
|
||||
|
|
|
@ -1,19 +1,8 @@
|
|||
import RpcNetwork from "../network.js";
|
||||
import {
|
||||
ClientRPCRequest,
|
||||
RPCBroadcastRequest,
|
||||
RPCRequest,
|
||||
RPCResponse,
|
||||
} from "@lumeweb/relay-types";
|
||||
import { ClientRPCRequest, RPCResponse } from "@lumeweb/relay-types";
|
||||
import { RpcQueryOptions } from "../types.js";
|
||||
import { clearTimeout, setTimeout } from "timers";
|
||||
import b4a from "b4a";
|
||||
import {
|
||||
hashQuery,
|
||||
isPromise,
|
||||
validateResponse,
|
||||
validateTimestampedResponse,
|
||||
} from "../util.js";
|
||||
import { hashQuery, isPromise, validateTimestampedResponse } from "../util.js";
|
||||
import RPC from "@lumeweb/rpc";
|
||||
import { ERR_INVALID_SIGNATURE } from "../error.js";
|
||||
import RpcQueryBase from "./base.js";
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import {
|
||||
ClientRPCRequest,
|
||||
RPCBroadcastRequest,
|
||||
RPCBroadcastResponse,
|
||||
RPCRequest,
|
||||
RPCResponse,
|
||||
|
@ -9,7 +8,6 @@ import { clearTimeout } from "timers";
|
|||
import b4a from "b4a";
|
||||
import {
|
||||
flatten,
|
||||
isPromise,
|
||||
validateResponse,
|
||||
validateTimestampedResponse,
|
||||
} from "../util.js";
|
||||
|
|
Loading…
Reference in New Issue