Socket
Socket
Sign inDemoInstall

@protobufjs/pool

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@protobufjs/pool - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

7

index.js

@@ -36,9 +36,4 @@ "use strict";

var offset = SIZE;
var empty = alloc(0);
if (Object.freeze)
Object.freeze(empty);
return function pool_alloc(size) {
if (!size)
return empty;
if (size > MAX)
if (size < 1 || size > MAX)
return alloc(size);

@@ -45,0 +40,0 @@ if (offset + size > SIZE) {

2

package.json
{
"name": "@protobufjs/pool",
"description": "A general purpose buffer pool.",
"version": "1.0.2",
"version": "1.0.3",
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",

@@ -6,0 +6,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