From 298d043b3924bbe427e047d1c02db7c239fdadac Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 28 Nov 2022 02:22:12 -0500 Subject: [PATCH] *Update dist --- dist/rpc.d.ts | 3 ++- dist/rpc.d.ts.map | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dist/rpc.d.ts b/dist/rpc.d.ts index 03c1649..72efa5b 100644 --- a/dist/rpc.d.ts +++ b/dist/rpc.d.ts @@ -1,6 +1,7 @@ /// /// import type EventEmitter from "events"; +import type NodeCache from "node-cache"; export interface RPCRequest { module: string; method: string; @@ -49,7 +50,7 @@ export declare class RPCServer extends EventEmitter { static hashQuery(query: RPCRequest): string; } export declare class RPCCache extends EventEmitter { - get data(): RPCCacheData; + get data(): NodeCache; constructor(server: RPCServer); signResponse(item: RPCCacheItem): any; verifyResponse(pubkey: Buffer, item: RPCCacheItem): boolean | Buffer; diff --git a/dist/rpc.d.ts.map b/dist/rpc.d.ts.map index 4f67785..89575d6 100644 --- a/dist/rpc.d.ts.map +++ b/dist/rpc.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAC;AAEvC,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,GAAG,CAAC;CACX;AAED,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAClD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,GAAG,GAAG,WAAW,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,SAAS;IAC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