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

protobuf-codec

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protobuf-codec - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

1

decode/wire-types.js

@@ -17,3 +17,2 @@ const assert = require('nanoassert')

const int = Number(varint(buf, byteOffset)) // Safe as protoc only allows fieldNumber up to int32 + 3 bits for wireType
console.log(int)
const wireType = int & 0b111

@@ -20,0 +19,0 @@ const fieldNumber = int >> 3

@@ -87,3 +87,2 @@ const assert = require('nanoassert')

const int = BigInt.asUintN(32, BigInt(fieldNumber)) << 3n | BigInt(wireType)
console.log(int)
varint.encode(int, buf, byteOffset)

@@ -90,0 +89,0 @@ this.encode.bytes = varint.encode.bytes

2

package.json
{
"name": "protobuf-codec",
"version": "2.0.4",
"version": "2.0.5",
"description": "Minimal Protocol Buffers wire encoding/decoding",

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

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