From: Chris Duncan Date: Mon, 3 Aug 2026 05:50:48 +0000 (-0700) Subject: Force RPC consumers to validate JSON response. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=269d09f91244d9a948e48d922c1d742e5fa15e07;p=libnemo.git Force RPC consumers to validate JSON response. --- diff --git a/src/lib/rpc.ts b/src/lib/rpc.ts index b3fa8f2..b605cac 100644 --- a/src/lib/rpc.ts +++ b/src/lib/rpc.ts @@ -29,7 +29,7 @@ export class Rpc { * @param {object} [data] - JSON to send to the node as defined by the action * @returns {Promise} JSON-formatted RPC results from the node */ - async post (action: string, data?: Record): Promise { + async post (action: string, data?: Record): Promise { var process: any = process || null this.#validate(action) const headers: Record = {}