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

dir-compare

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dir-compare - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

file_compare_handlers/common.js

9

file_compare_handlers/defaultFileCompare.js

@@ -6,2 +6,3 @@ var fs = require('fs');

var fdQueue = new FileDescriptorQueue(8);
var alloc = require('./common').alloc;
/**

@@ -27,4 +28,4 @@ * Compares two partial buffers.

fd2 = fs.openSync(path2, 'r');
var buf1 = new Buffer(bufSize);
var buf2 = new Buffer(bufSize);
var buf1 = alloc(bufSize);
var buf2 = alloc(bufSize);
var progress = 0;

@@ -62,4 +63,4 @@ while (true) {

fd2 = fds[1];
var buf1 = new Buffer(bufSize);
var buf2 = new Buffer(bufSize);
var buf1 = alloc(bufSize);
var buf2 = alloc(bufSize);
var progress = 0;

@@ -66,0 +67,0 @@ var compareAsyncInternal = function () {

// Compare files line by line with options to ignore line endings and white space differencies.
'use strict'
var fs = require('fs')
var alloc = require('./common').alloc;

@@ -12,4 +13,4 @@ var BUF_SIZE = 4096

fd2 = fs.openSync(path2, 'r');
var buf1 = new Buffer(BUF_SIZE);
var buf2 = new Buffer(BUF_SIZE);
var buf1 = alloc(BUF_SIZE);
var buf2 = alloc(BUF_SIZE);
var progress = 0;

@@ -16,0 +17,0 @@ var last1='', last2=''

{
"name": "dir-compare",
"version": "1.5.0",
"version": "1.5.1",
"description": "Node JS directory compare",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,2 +0,3 @@

var x = [1, 2, 3]
x.forEach(a => console.log(a))
if(Buffer.alloc){
console.log("aaa");
}
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