Compare commits

...

4 Commits

Author SHA1 Message Date
Derrick Hammer 3868286416
*Cleanup imports 2023-02-19 13:05:05 -05:00
Derrick Hammer 7afe4cb0bb
*Cleanup imports 2023-02-19 13:04:41 -05:00
Derrick Hammer f0f2118c99
*Cleanup imports 2023-02-19 13:04:13 -05:00
Derrick Hammer 7f8dee6ad2
*Switch to pnpm 2023-02-19 13:03:38 -05:00
4 changed files with 4 additions and 22 deletions

View File

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

View File

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

View File

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

View File

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