Comparing version 10.0.0 to 10.0.1
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="10.0.1"></a> | ||
## [10.0.1](https://github.com/zkat/cacache/compare/v10.0.0...v10.0.1) (2017-11-15) | ||
### Bug Fixes | ||
* **move-file:** actually use the fallback to `move-concurrently` (#110) ([073fbe1](https://github.com/zkat/cacache/commit/073fbe1)) | ||
<a name="10.0.0"></a> | ||
@@ -7,0 +17,0 @@ # [10.0.0](https://github.com/zkat/cacache/compare/v9.3.0...v10.0.0) (2017-10-23) |
@@ -37,20 +37,16 @@ 'use strict' | ||
return BB.join(unlink(src), process.platform !== 'win32' && chmod(dest, '0444')) | ||
}).catch(err => { | ||
if (process.platform !== 'win32') { | ||
throw err | ||
} else { | ||
if (!pinflight) { pinflight = require('promise-inflight') } | ||
return pinflight('cacache-move-file:' + dest, () => { | ||
return BB.promisify(fs.stat)(dest).catch(err => { | ||
if (err !== 'ENOENT') { | ||
// Something else is wrong here. Bail bail bail | ||
throw err | ||
} | ||
// file doesn't already exist! let's try a rename -> copy fallback | ||
if (!move) { move = require('move-concurrently') } | ||
return move(src, dest, { BB, fs }) | ||
}) | ||
}).catch(() => { | ||
if (!pinflight) { pinflight = require('promise-inflight') } | ||
return pinflight('cacache-move-file:' + dest, () => { | ||
return BB.promisify(fs.stat)(dest).catch(err => { | ||
if (err.code !== 'ENOENT') { | ||
// Something else is wrong here. Bail bail bail | ||
throw err | ||
} | ||
// file doesn't already exist! let's try a rename -> copy fallback | ||
if (!move) { move = require('move-concurrently') } | ||
return move(src, dest, { BB, fs }) | ||
}) | ||
} | ||
}) | ||
}) | ||
} |
{ | ||
"name": "cacache", | ||
"version": "10.0.0", | ||
"version": "10.0.1", | ||
"cache-version": { | ||
@@ -5,0 +5,0 @@ "content": "2", |
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
101138
1267