dir-compare
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -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"); | ||
} |
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
314808
83
2324