Compare commits

...

2 Commits

Author SHA1 Message Date
Derrick Hammer bf68b28680
*Update dist 2023-03-24 15:58:40 -04:00
Derrick Hammer 8684fcde3c
*SimpleRpcQuery needs to be wrapped in a factory 2023-03-24 15:58:32 -04:00
2 changed files with 7 additions and 2 deletions

3
dist/index.js vendored
View File

@ -24,7 +24,7 @@ export class RpcNetwork extends Client {
});
}
simpleQuery({ relay, query, options = {}, }) {
return new SimpleRpcQuery({
return createSimpleRpcQuery({
network: this,
relay,
query,
@ -80,3 +80,4 @@ export class SimpleRpcQuery extends RpcQueryBase {
}
}
export const createClient = factory(RpcNetwork, RPC_MODULE);
const createSimpleRpcQuery = factory(SimpleRpcQuery, RPC_MODULE);

View File

@ -46,7 +46,7 @@ export class RpcNetwork extends Client {
query: ClientRPCRequest;
options?: RpcQueryOptions;
}): SimpleRpcQuery {
return new SimpleRpcQuery({
return createSimpleRpcQuery({
network: this,
relay,
query,
@ -125,3 +125,7 @@ export class SimpleRpcQuery extends RpcQueryBase {
}
export const createClient = factory<RpcNetwork>(RpcNetwork, RPC_MODULE);
const createSimpleRpcQuery = factory<SimpleRpcQuery>(
SimpleRpcQuery,
RPC_MODULE
);