Comparing version 3.0.0 to 3.0.1
## Change Log | ||
### v3.0.1 (2017/10/31 15:12 +00:00) | ||
- [1c802c9](https://github.com/davglass/cpr/commit/1c802c942f85e244de266adec7c27524b0a0cb34) 3.0.1 (@davglass) | ||
- [8d285b8](https://github.com/davglass/cpr/commit/8d285b89744e3bf3e9fb492c46a3879d5814d790) stablizing test (@davglass) | ||
- [55fa41d](https://github.com/davglass/cpr/commit/55fa41ddfaaf0b86721b86a7a6b1524a9033acc2) adding Dockerfile for testing (@davglass) | ||
- [008532b](https://github.com/davglass/cpr/commit/008532bb88edcf7477fa2b936d72cfe64fceca39) Dropping Node 4.x testing (@davglass) | ||
- [66108f7](https://github.com/davglass/cpr/commit/66108f72b1729e046a2ac06c4898c5ee9ae2f967) changelog (@davglass) | ||
### 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) | ||
- [#57](https://github.com/davglass/cpr/pull/57) 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) | ||
- [#52](https://github.com/davglass/cpr/pull/52) 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) | ||
- [#50](https://github.com/davglass/cpr/pull/50) various changes (#50) (@stevenvachon) | ||
@@ -16,3 +23,3 @@ ### v2.2.0 (2017/06/26 12:15 +00:00) | ||
- [0686492](https://github.com/davglass/cpr/commit/0686492dab8f1563172996dc1e1be5e39d0adac7) changelog (@davglass) | ||
- [cdbc530](https://github.com/davglass/cpr/commit/cdbc53008427bd291476cd547e6f8a3e73cea632) Various changes (#48) (@stevenvachon) | ||
- [#48](https://github.com/davglass/cpr/pull/48) Various changes (#48) (@stevenvachon) | ||
- [724900c](https://github.com/davglass/cpr/commit/724900c9ae5307cba2ba250fba5d1dfb74cb9af3) changelog (@davglass) | ||
@@ -157,2 +164,2 @@ | ||
- [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) |
@@ -167,4 +167,4 @@ /* | ||
}, | ||
/*istanbul ignore next*/ | ||
onError = function (e) { | ||
/*istanbul ignore next*/ | ||
err = e; | ||
@@ -171,0 +171,0 @@ cb(e); |
@@ -5,3 +5,3 @@ { | ||
"author": "Dav Glass <davglass@gmail.com>", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "graceful-fs": "^4.1.5", |
@@ -31,2 +31,3 @@ var assert = require('assert'), | ||
var data = {}; | ||
var beforeStat = fs.statSync(path.join(from, '.bin/mocha')); | ||
@@ -68,3 +69,3 @@ before(function(done) { | ||
var stat = fs.statSync(path.join(out, '.bin/mocha')); | ||
assert.equal('755', (stat.mode & 0o777).toString(8)); | ||
assert.equal(beforeStat.mode, stat.mode); | ||
}); | ||
@@ -322,12 +323,19 @@ | ||
it('should fail without write permissions', function(done) { | ||
var baddir = path.join(to, 'readonly'); | ||
mkdirp.sync(baddir); | ||
fs.chmodSync(baddir, '555'); | ||
cpr(from, baddir, function(errs, status) { | ||
assert.ok(errs); | ||
assert.ok(errs.list); | ||
assert.ok(errs.list[0]); | ||
assert.ok(errs.message.match(/Unable to copy directory entirely/)); | ||
done(); | ||
}); | ||
/*istanbul ignore next - This is for docker perms*/ | ||
(function() { | ||
if (process.getuid && process.getuid() === 0) { | ||
console.log('Skipping this test as root has all access..'); | ||
return done(); | ||
} | ||
var baddir = path.join(to, 'readonly'); | ||
mkdirp.sync(baddir); | ||
fs.chmodSync(baddir, '555'); | ||
cpr(path.join(from, '.bin'), baddir, function(errs, status) { | ||
assert.ok(errs); | ||
assert.ok(errs.list); | ||
assert.ok(errs.list[0]); | ||
assert.ok(errs.message.match(/Unable to copy directory entirely/)); | ||
done(); | ||
}); | ||
})(); | ||
}); | ||
@@ -334,0 +342,0 @@ |
Sorry, the diff of this file is not supported yet
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
67106
16
747