aligned-block-file
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -27,4 +27,5 @@ var fs = require('fs') | ||
function get(i, cb) { | ||
if(Buffer.isBuffer(cache.get(i))) | ||
cb(null, cache.get(i), block_size) | ||
var c = cache.get(i) | ||
if(Buffer.isBuffer(c)) | ||
cb(null, c, block_size) | ||
else if(Array.isArray(cbs[i])) | ||
@@ -38,3 +39,4 @@ cbs[i].push(cb) | ||
if(!err) cache.set(i, buf) | ||
while(cb.length) cb.shift()(err, buf, bytes_read) | ||
for (var j = 0; j < cb.length; ++j) | ||
cb[j](err, buf, bytes_read) | ||
}) | ||
@@ -41,0 +43,0 @@ } |
{ | ||
"name": "aligned-block-file", | ||
"description": "", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"homepage": "https://github.com/flumedb/aligned-block-file", | ||
@@ -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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
688
24584
17
1