Comparing version 7.0.0 to 7.0.1
@@ -5,2 +5,14 @@ # Change Log | ||
<a name="7.0.1"></a> | ||
## [7.0.1](https://github.com/zkat/pacote/compare/v7.0.0...v7.0.1) (2017-11-15) | ||
### Bug Fixes | ||
* **git:** use resolved ref if available when doing a full clone (#125) ([46ca45a](https://github.com/zkat/pacote/commit/46ca45a)), closes [#125](https://github.com/zkat/pacote/issues/125) | ||
* **move:** bump cacache for some cross-platform move fixes ([eebdcda](https://github.com/zkat/pacote/commit/eebdcda)) | ||
* **test:** missed a spot converting tests to promises ([c43caed](https://github.com/zkat/pacote/commit/c43caed)) | ||
<a name="7.0.0"></a> | ||
@@ -7,0 +19,0 @@ # [7.0.0](https://github.com/zkat/pacote/compare/v6.1.0...v7.0.0) (2017-11-15) |
@@ -166,7 +166,8 @@ 'use strict' | ||
function cloneRepo (spec, repo, resolvedRef, rawRef, tmp, opts) { | ||
if (resolvedRef && spec.hosted && SHALLOW_HOSTS.has(spec.hosted.type)) { | ||
return git.shallow(repo, resolvedRef.ref, tmp, opts) | ||
const ref = resolvedRef ? resolvedRef.ref : rawRef | ||
if (spec.hosted && SHALLOW_HOSTS.has(spec.hosted.type)) { | ||
return git.shallow(repo, ref, tmp, opts) | ||
} else { | ||
return git.clone(repo, rawRef, tmp, opts) | ||
return git.clone(repo, ref, tmp, opts) | ||
} | ||
} |
{ | ||
"name": "pacote", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"description": "JavaScript package downloader", | ||
@@ -45,3 +45,3 @@ "main": "index.js", | ||
"bluebird": "^3.5.1", | ||
"cacache": "^10.0.0", | ||
"cacache": "^10.0.1", | ||
"get-stream": "^3.0.0", | ||
@@ -48,0 +48,0 @@ "glob": "^7.1.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
96292
1687
Updatedcacache@^10.0.1