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.2 to 0.0.3

9

index.js

@@ -176,3 +176,4 @@ var fs = require('fs'),

} else if (schema[key].type === 2) {
len = buffer.readInt8(1) + 2;
varint = decode(buffer.slice(1));
len = varint.num + varint.bytes + 1;
if (schema[key].raw_type === 'string' || schema[key].raw_type === 'bytes') {

@@ -215,4 +216,6 @@ if (key === 'vclock') {

} else {
console.log(key, schema);
bytes.push(Buffer.byteLength(params[key]));
var encoded = encode(Buffer.byteLength(params[key]));
for (var i = 0; i < encoded.length; i++) {
bytes.push(encoded[i]);
}
for (var i = 0; i < params[key].length; i++) {

@@ -219,0 +222,0 @@ bytes.push(params[key].charCodeAt(i));

{
"name": "protobuf.js",
"version": "0.0.2",
"version": "0.0.3",
"description": "a pure javascript protocol buffer encoding implementation, written specifically for riak",

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

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