Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fileq

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fileq - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

2

package.json
{
"name": "fileq",
"version": "0.1.2",
"version": "0.2.0",
"description": "File based FIFO queue",

@@ -5,0 +5,0 @@ "author": "David Gómez Matarrodona <solzimer@gmail.com>",

@@ -113,3 +113,4 @@ const fs = require("fs");

var len = str.length;
var blocks = Math.ceil(len/this.bsize);
var b = Buffer.from(str);
var blocks = Math.ceil(b.length/this.bsize);

@@ -120,3 +121,3 @@ // Split data into blocks

var buff = Buffer.alloc(this.bsize+BPAD);
buff.write(str.substring(i*this.bsize,(i+1)*this.bsize))
b.copy(buff,0,i*this.bsize,(i+1)*this.bsize);
buff.writeUInt8(i<blocks-1?1:0,buff.length-1);

@@ -123,0 +124,0 @@ buffers.push(buff);

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