🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

bare-rpc

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bare-rpc - npm Package Compare versions

Comparing version
1.3.2
to
1.3.3
+3
-3
lib/messages.js

@@ -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 @@

{
"name": "bare-rpc",
"version": "1.3.2",
"version": "1.3.3",
"description": "librpc ABI compatible RPC for Bare",

@@ -5,0 +5,0 @@ "exports": {