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" "build": "rimraf dist && tsc"
}, },
"devDependencies": { "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/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": "https://git.lumeweb.com/LumeWeb/rpc.git", "@lumeweb/rpc": "git+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",

View File

@ -1,7 +1,4 @@
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 {
@ -9,8 +6,6 @@ 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;

View File

@ -1,19 +1,8 @@
import RpcNetwork from "../network.js"; import RpcNetwork from "../network.js";
import { import { ClientRPCRequest, RPCResponse } from "@lumeweb/relay-types";
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 { import { hashQuery, isPromise, validateTimestampedResponse } from "../util.js";
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";

View File

@ -1,6 +1,5 @@
import { import {
ClientRPCRequest, ClientRPCRequest,
RPCBroadcastRequest,
RPCBroadcastResponse, RPCBroadcastResponse,
RPCRequest, RPCRequest,
RPCResponse, RPCResponse,
@ -9,7 +8,6 @@ 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";