Skip to content

Commit bb27453

Browse files
author
Martin Naumann
committed
On success, the result should be returned instead of the entire response body
1 parent a46df80 commit bb27453

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ module.exports = {
3737
params: params
3838
}
3939
})
40-
.then(function(result) {
41-
resolve(result)
40+
.then(function(response) {
41+
resolve(response.result)
4242
})
4343
.catch(function(err) {
4444
var actualError = err.error.error

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tiny-jsonrpc-client",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "A lightweight JSON-RPC 2.0 client",
55
"main": "index.js",
66
"keywords": [

0 commit comments

Comments
 (0)