Compare commits
No commits in common. "38682864169df79e69b87a5409693e103f9946d6" and "0c51da781ebf85db8143fa7defbff42434d6b60d" have entirely different histories.
3868286416
...
0c51da781e
|
@ -8,7 +8,7 @@
|
||||||
"build": "rimraf dist && tsc"
|
"build": "rimraf dist && tsc"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@lumeweb/relay-types": "git+https://git.lumeweb.com/LumeWeb/relay-types.git",
|
"@lumeweb/relay-types": "https://git.lumeweb.com/LumeWeb/relay-types.git",
|
||||||
"@types/b4a": "^1.6.0",
|
"@types/b4a": "^1.6.0",
|
||||||
"@types/express": "^4.17.14",
|
"@types/express": "^4.17.14",
|
||||||
"@types/node": "^18.0.0",
|
"@types/node": "^18.0.0",
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@hyperswarm/dht": "^6.0.1",
|
"@hyperswarm/dht": "^6.0.1",
|
||||||
"@lumeweb/rpc": "git+https://git.lumeweb.com/LumeWeb/rpc.git",
|
"@lumeweb/rpc": "https://git.lumeweb.com/LumeWeb/rpc.git",
|
||||||
"b4a": "^1.6.1",
|
"b4a": "^1.6.1",
|
||||||
"json-stringify-deterministic": "^1.0.7",
|
"json-stringify-deterministic": "^1.0.7",
|
||||||
"libskynet": "^0.0.61",
|
"libskynet": "^0.0.61",
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
import { clearTimeout, setTimeout } from "timers";
|
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 RpcNetwork from "../network.js";
|
||||||
import { RpcQueryOptions } from "../types.js";
|
import { RpcQueryOptions } from "../types.js";
|
||||||
import type {
|
import type {
|
||||||
|
@ -6,6 +9,8 @@ import type {
|
||||||
RPCRequest,
|
RPCRequest,
|
||||||
RPCResponse,
|
RPCResponse,
|
||||||
} from "@lumeweb/relay-types";
|
} from "@lumeweb/relay-types";
|
||||||
|
import RPC from "@lumeweb/rpc";
|
||||||
|
import { RPCBroadcastRequest } from "@lumeweb/relay-types";
|
||||||
|
|
||||||
export default abstract class RpcQueryBase {
|
export default abstract class RpcQueryBase {
|
||||||
protected _network: RpcNetwork;
|
protected _network: RpcNetwork;
|
||||||
|
|
|
@ -1,8 +1,19 @@
|
||||||
import RpcNetwork from "../network.js";
|
import RpcNetwork from "../network.js";
|
||||||
import { ClientRPCRequest, RPCResponse } from "@lumeweb/relay-types";
|
import {
|
||||||
|
ClientRPCRequest,
|
||||||
|
RPCBroadcastRequest,
|
||||||
|
RPCRequest,
|
||||||
|
RPCResponse,
|
||||||
|
} from "@lumeweb/relay-types";
|
||||||
import { RpcQueryOptions } from "../types.js";
|
import { RpcQueryOptions } from "../types.js";
|
||||||
|
import { clearTimeout, setTimeout } from "timers";
|
||||||
import b4a from "b4a";
|
import b4a from "b4a";
|
||||||
import { hashQuery, isPromise, validateTimestampedResponse } from "../util.js";
|
import {
|
||||||
|
hashQuery,
|
||||||
|
isPromise,
|
||||||
|
validateResponse,
|
||||||
|
validateTimestampedResponse,
|
||||||
|
} from "../util.js";
|
||||||
import RPC from "@lumeweb/rpc";
|
import RPC from "@lumeweb/rpc";
|
||||||
import { ERR_INVALID_SIGNATURE } from "../error.js";
|
import { ERR_INVALID_SIGNATURE } from "../error.js";
|
||||||
import RpcQueryBase from "./base.js";
|
import RpcQueryBase from "./base.js";
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import {
|
import {
|
||||||
ClientRPCRequest,
|
ClientRPCRequest,
|
||||||
|
RPCBroadcastRequest,
|
||||||
RPCBroadcastResponse,
|
RPCBroadcastResponse,
|
||||||
RPCRequest,
|
RPCRequest,
|
||||||
RPCResponse,
|
RPCResponse,
|
||||||
|
@ -8,6 +9,7 @@ import { clearTimeout } from "timers";
|
||||||
import b4a from "b4a";
|
import b4a from "b4a";
|
||||||
import {
|
import {
|
||||||
flatten,
|
flatten,
|
||||||
|
isPromise,
|
||||||
validateResponse,
|
validateResponse,
|
||||||
validateTimestampedResponse,
|
validateTimestampedResponse,
|
||||||
} from "../util.js";
|
} from "../util.js";
|
||||||
|
|
Loading…
Reference in New Issue