@protobufjs/pool
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -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) { |
{ | ||
"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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13602
45