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

protobuf.js

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protobuf.js - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

12

index.js
var fs = require('fs'),
path = require('path'),
butils = require('butils');
butils = require('butils'),
wtf = require('wtf8');

@@ -151,3 +152,3 @@ function Protobuf(schema) {

} else {
val = butils.readString(buffer, pos + varint.bytes + 1, pos + len);
val = new Buffer(wtf.decode(buffer.slice(pos + varint.bytes + 1, pos + len)));
}

@@ -204,4 +205,7 @@ } else {

bytes.push((schema[key].field << 3) + schema[key].type);
butils.writeVarint(bytes, Buffer.byteLength(params[key]), bytes.length);
butils.writeString(bytes, params[key], bytes.length);
var buf = wtf.encode(params[key]);
butils.writeVarint(bytes, buf.length, bytes.length);
Array.prototype.slice.call(buf, 0).forEach(function(byte) {
bytes.push(byte);
});
}

@@ -208,0 +212,0 @@ } else if (schema[key].type === 0) {

{
"name": "protobuf.js",
"version": "0.0.12",
"version": "0.0.13",
"description": "a pure javascript protocol buffer encoding implementation, written specifically for riak",
"main": "index.js",
"dependencies": {
"butils": ""
"butils": "",
"wtf8": "https://github.com/lautis/wtf8/tarball/master"
},

@@ -9,0 +10,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc