New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

fn-client

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fn-client - npm Package Compare versions

Comparing version

to
0.2.0

@@ -18,2 +18,4 @@ "use strict";

var Message_1 = require("./Message");
var util_1 = require("../io/util");
var encoding_1 = require("../io/encoding");
/**

@@ -61,3 +63,3 @@ * Possible subtypes for a [[Moderation]] message. A

function encodeModeration(w, mod, cb) {
w.write(mod.reference, cb);
util_1.chainIO(cb, function (cb) { return encoding_1.encodeVariableBytes(w, mod.reference, cb); });
}

@@ -74,3 +76,3 @@ exports.encodeModeration = encodeModeration;

function decodeModeration(r, version, subtype, cb) {
decoding_1.decodeFixedBytes(r, 32, function (err, b) {
decoding_1.decodeVariableBytes(r, function (err, b) {
if (err) {

@@ -77,0 +79,0 @@ return cb(err, null);

{
"name": "fn-client",
"version": "0.1.0",
"version": "0.2.0",
"description": "footnote rpc client & message format utilities",

@@ -5,0 +5,0 @@ "main": "index.js",