Skip to content

Commit

Permalink
fix: update client-js interface
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejonas committed Jul 27, 2020
1 parent 2f7346e commit bed242a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ export class <%= className %> {
rpcParams = params;
}
if (notification) {
return this.rpc.notify(methodName, rpcParams);
return this.rpc.notify({method: methodName, params: rpcParams});
}
return this.rpc.request(methodName, rpcParams, this.timeout);
return this.rpc.request({method: methodName, params: rpcParams}, this.timeout);
}
<% openrpcDocument.methods.forEach((method) => { %>
Expand Down
2 changes: 1 addition & 1 deletion templates/client/typescript/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"author": "",
"license": "Apache-2.0",
"dependencies": {
"@open-rpc/client-js": "^1.3.1",
"@open-rpc/client-js": "^1.4.0",
"@open-rpc/meta-schema": "^1.6.0",
"@open-rpc/schema-utils-js": "^1.12.0",
"@types/json-schema": "7.0.3",
Expand Down

0 comments on commit bed242a

Please sign in to comment.