+3
-3
@@ -117,3 +117,3 @@ const c = require('compact-encoding') | ||
| const stream = c.uint.decode(state) | ||
| const data = stream === 0 ? c.optionalBuffer.decode(state) : null | ||
| const data = stream === 0 ? c.buffer.decode(state) : null | ||
@@ -132,3 +132,3 @@ return { type, id, command, stream, data } | ||
| if (stream === 0) { | ||
| return { type, id, stream, error: null, data: c.optionalBuffer.decode(state) } | ||
| return { type, id, stream, error: null, data: c.buffer.decode(state) } | ||
| } | ||
@@ -147,3 +147,3 @@ | ||
| if (stream & s.DATA) { | ||
| return { type, id, stream, error: null, data: c.optionalBuffer.decode(state) } | ||
| return { type, id, stream, error: null, data: c.buffer.decode(state) } | ||
| } | ||
@@ -150,0 +150,0 @@ |
+1
-1
| { | ||
| "name": "bare-rpc", | ||
| "version": "1.3.2", | ||
| "version": "1.3.3", | ||
| "description": "librpc ABI compatible RPC for Bare", | ||
@@ -5,0 +5,0 @@ "exports": { |
43797
-0.05%