*Switch to @lumeweb/relay-types
This commit is contained in:
parent
c347692490
commit
a6c0d5aa7b
|
@ -67,6 +67,7 @@
|
||||||
"xml2js": "^0.4.23"
|
"xml2js": "^0.4.23"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@lumeweb/relay-types": "https://github.com/LumeWeb/relay-types.git",
|
||||||
"@types/express": "^4.17.13",
|
"@types/express": "^4.17.13",
|
||||||
"@types/minimatch": "^3.0.5",
|
"@types/minimatch": "^3.0.5",
|
||||||
"@types/sprintf-js": "^1.1.2",
|
"@types/sprintf-js": "^1.1.2",
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import {
|
import type {
|
||||||
RPCRequest,
|
RPCRequest,
|
||||||
RPCResponse,
|
RPCResponse,
|
||||||
RPCStreamHandler,
|
RPCStreamHandler,
|
||||||
StreamFileResponse,
|
StreamFileResponse,
|
||||||
} from "../types";
|
} from "@lumeweb/relay-types";
|
||||||
import { pack, unpack } from "msgpackr";
|
import { pack, unpack } from "msgpackr";
|
||||||
import log from "loglevel";
|
import log from "loglevel";
|
||||||
import { getRpcServer } from "./server";
|
import { getRpcServer } from "./server";
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
import {
|
import {
|
||||||
RPC_REQUEST_SCHEMA,
|
|
||||||
RPCMethod,
|
RPCMethod,
|
||||||
RPCRequest,
|
RPCRequest,
|
||||||
RPCResponse,
|
RPCResponse,
|
||||||
RPCStreamHandler,
|
RPCStreamHandler,
|
||||||
} from "../types.js";
|
} from "@lumeweb/relay-types";
|
||||||
import NodeCache from "node-cache";
|
import NodeCache from "node-cache";
|
||||||
import { get as getDHT } from "../dht.js";
|
import { get as getDHT } from "../dht.js";
|
||||||
import { Mutex } from "async-mutex";
|
import { Mutex } from "async-mutex";
|
||||||
|
@ -14,6 +13,7 @@ import crypto from "crypto";
|
||||||
import stringify from "json-stable-stringify";
|
import stringify from "json-stable-stringify";
|
||||||
import Ajv from "ajv";
|
import Ajv from "ajv";
|
||||||
import RPCConnection from "./connection.js";
|
import RPCConnection from "./connection.js";
|
||||||
|
import { RPC_REQUEST_SCHEMA } from "../types.js";
|
||||||
|
|
||||||
const ajv = new Ajv({ allowUnionTypes: true });
|
const ajv = new Ajv({ allowUnionTypes: true });
|
||||||
const validateRpcRequest = ajv.compile(RPC_REQUEST_SCHEMA);
|
const validateRpcRequest = ajv.compile(RPC_REQUEST_SCHEMA);
|
||||||
|
|
|
@ -1074,6 +1074,10 @@
|
||||||
version "0.1.0"
|
version "0.1.0"
|
||||||
resolved "https://github.com/LumeWeb/pokt-rpc-endpoints.git#0223b743f913aa46e914b1dc237ae2e12571d96d"
|
resolved "https://github.com/LumeWeb/pokt-rpc-endpoints.git#0223b743f913aa46e914b1dc237ae2e12571d96d"
|
||||||
|
|
||||||
|
"@lumeweb/relay-types@https://github.com/LumeWeb/relay-types.git":
|
||||||
|
version "0.1.0"
|
||||||
|
resolved "https://github.com/LumeWeb/relay-types.git#9768e2dc9dd8ccc2ee8569424bb9d7a2d8cde13e"
|
||||||
|
|
||||||
"@msgpackr-extract/msgpackr-extract-darwin-arm64@2.0.2":
|
"@msgpackr-extract/msgpackr-extract-darwin-arm64@2.0.2":
|
||||||
version "2.0.2"
|
version "2.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/@msgpackr-extract/msgpackr-extract-darwin-arm64/-/msgpackr-extract-darwin-arm64-2.0.2.tgz#01e3669b8b2dc01f6353f2c87e1ec94faf52c587"
|
resolved "https://registry.yarnpkg.com/@msgpackr-extract/msgpackr-extract-darwin-arm64/-/msgpackr-extract-darwin-arm64-2.0.2.tgz#01e3669b8b2dc01f6353f2c87e1ec94faf52c587"
|
||||||
|
|
Loading…
Reference in New Issue