From ebaa1cac25772e358497e435e8f25c15b76c1efd Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 24 Mar 2023 13:20:57 -0400 Subject: [PATCH] *Update dist --- dist/index.d.ts | 21 +++++++++++++-------- dist/index.d.ts.map | 2 +- dist/index.js | 2 +- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/dist/index.d.ts b/dist/index.d.ts index 748e127..afd8275 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -14,12 +14,17 @@ export declare class RpcNetwork extends Client { private _networkId; get networkId(): number; get ready(): Promise; - simpleQuery( - relay: Buffer | string, - query: ClientRPCRequest, - data?: object | any[], - options?: RpcQueryOptions - ): SimpleRpcQuery; + simpleQuery({ + relay, + query, + data, + options, + }: { + relay?: Buffer | string; + query: ClientRPCRequest; + data: object | any[]; + options: RpcQueryOptions; + }): SimpleRpcQuery; } export declare abstract class RpcQueryBase extends Client { protected _promise?: Promise; @@ -37,7 +42,7 @@ export declare abstract class RpcQueryBase extends Client { run(): this; } export declare class SimpleRpcQuery extends RpcQueryBase { - protected _relay: string | Buffer; + protected _relay?: string | Buffer; constructor({ network, relay, @@ -45,7 +50,7 @@ export declare class SimpleRpcQuery extends RpcQueryBase { options, }: { network: RpcNetwork; - relay: string | Buffer; + relay?: string | Buffer; query: RPCRequest; options: RpcQueryOptions; }); diff --git a/dist/index.d.ts.map b/dist/index.d.ts.map index 5cf0c0b..2a6261c 100644 --- a/dist/index.d.ts.map +++ b/dist/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,gBAAgB,EACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAA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AAC,WAAW,CAAC,CAQjC;IAEM,GAAG,IAAI,IAAI;CASnB;AAED,qBAAa,cAAe,SAAQ,YAAY;IAC9C,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;gBACvB,EACV,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,GACR,EAAE;QACD,OAAO,EAAE,UAAU,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACxB,KAAK,EAAE,UAAU,CAAC;QAClB,OAAO,EAAE,eAAe,CAAC;KAC1B;IAIM,GAAG,IAAI,IAAI;CAUnB;AAED,eAAO,MAAM,YAAY,8BAA8C,CAAC"} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 469595d..3216071 100644 --- a/dist/index.js +++ b/dist/index.js @@ -23,7 +23,7 @@ export class RpcNetwork extends Client { network: this._networkId, }); } - simpleQuery(relay, query, data = {}, options = {}) { + simpleQuery({ relay, query, data = {}, options = {}, }) { return new SimpleRpcQuery({ network: this, relay,