Comparing version 2.2.0 to 3.0.0
## Change Log | ||
### v2.2.0 (2017/06/26 12:14 +00:00) | ||
### v3.0.0 (2017/10/31 13:08 +00:00) | ||
- [e3cd84b](https://github.com/davglass/cpr/commit/e3cd84b7f27a61e8c86cd14379905781e0970806) 3.0.0 (@davglass) | ||
- [17b0494](https://github.com/davglass/cpr/commit/17b0494af1b173a30e82e0d8c69297f4376d6cbb) Manually porting #43 (@davglass) | ||
- [a5a8ee4](https://github.com/davglass/cpr/commit/a5a8ee4e5ff0a5696320b5f828f39c1cd94d13dc) Fixing a race condition that can occur when a file has been read but the write buffer has not been flushed when copying a file. (#57) (@PlutoMatt) | ||
- [e08f362](https://github.com/davglass/cpr/commit/e08f362a89f474002f930afdbe492bf88bd529e1) Amend filtering info for more clarity. (#52) (@jrpool) | ||
- [b0e8f40](https://github.com/davglass/cpr/commit/b0e8f40b303d9b4fbbd2f20e2853d0617ae48b19) added node.js specific build info (@davglass) | ||
- [01efad1](https://github.com/davglass/cpr/commit/01efad136c554008fc529ff4f120fb863dfd1b8a) added node.js specific build info (@davglass) | ||
- [e2395ba](https://github.com/davglass/cpr/commit/e2395ba3846fea420e02ed043cde014a52cd614a) added appveyor build config (@davglass) | ||
- [4cb7ceb](https://github.com/davglass/cpr/commit/4cb7cebe41efc9e5854caf013f8c670b05cb008b) various changes (#50) (@stevenvachon) | ||
### v2.2.0 (2017/06/26 12:15 +00:00) | ||
- [4520872](https://github.com/davglass/cpr/commit/4520872c30bbed3bac9930ad633f4dd4e5545225) 2.2.0 (@davglass) | ||
- [0686492](https://github.com/davglass/cpr/commit/0686492dab8f1563172996dc1e1be5e39d0adac7) changelog (@davglass) | ||
- [cdbc530](https://github.com/davglass/cpr/commit/cdbc53008427bd291476cd547e6f8a3e73cea632) Various changes (#48) (@stevenvachon) | ||
@@ -144,2 +156,2 @@ - [724900c](https://github.com/davglass/cpr/commit/724900c9ae5307cba2ba250fba5d1dfb74cb9af3) changelog (@davglass) | ||
- [4e186f7](https://github.com/davglass/cpr/commit/4e186f70162f2c1abf9c2c7cf4f3bf2ed7a3e4f6) Added test dirs to ignore (@davglass) | ||
- [6c709f1](https://github.com/davglass/cpr/commit/6c709f1fbf0fb62c1ab317c0feab21d00b8f7098) Initial Commit (@davglass) | ||
- [6c709f1](https://github.com/davglass/cpr/commit/6c709f1fbf0fb62c1ab317c0feab21d00b8f7098) Initial Commit (@davglass) |
@@ -156,5 +156,8 @@ /* | ||
var fromFile = fs.createReadStream(from), | ||
toFile = fs.createWriteStream(to), | ||
toFile = fs.createWriteStream(to, { | ||
mode: options.stats[from].mode | ||
}), | ||
called = false, | ||
cb = function(e) { | ||
/*istanbul ignore next - This catches a hard to trap race condition */ | ||
if (!called) { | ||
@@ -173,3 +176,3 @@ callback(e); | ||
toFile.on('error', onError); | ||
fromFile.once('end', function() { | ||
toFile.once('finish', function() { | ||
cb(err); | ||
@@ -328,2 +331,5 @@ }); | ||
} | ||
// ensure copyFile() can access cached stat | ||
options.stats = options.stats || {}; | ||
options.stats[from] = stat; | ||
return copyFile(options.from, to, options, callback); | ||
@@ -330,0 +336,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"author": "Dav Glass <davglass@gmail.com>", | ||
"version": "2.2.0", | ||
"version": "3.0.0", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "graceful-fs": "^4.1.5", |
@@ -55,4 +55,4 @@ CPR (cp -R) | ||
If you give it a `RegExp`, it will use that to `test` the filename as they are being gathered. If it passes, it will be removed. | ||
If you give it a `function`, it will use that with `Array.filter` on the list of files. | ||
If you give it a `RegExp`, it will use that to `test` the full absolute pathnames of the files and directories as they are being gathered. If any of them passes, it will not be copied. | ||
If you give it a `function`, it will use that with `Array.filter` on the list of full absolute pathnames of files and directories. | ||
@@ -59,0 +59,0 @@ |
@@ -65,2 +65,7 @@ var assert = require('assert'), | ||
it('preserves file mode of copied files', function () { | ||
var stat = fs.statSync(path.join(out, '.bin/mocha')); | ||
assert.equal('755', (stat.mode & 0o777).toString(8)); | ||
}); | ||
}); | ||
@@ -67,0 +72,0 @@ |
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
66033
14
739