Comparing version 6.0.4 to 6.1.0
@@ -5,2 +5,18 @@ # Change Log | ||
<a name="6.1.0"></a> | ||
# [6.1.0](https://github.com/zkat/pacote/compare/v6.0.4...v6.1.0) (2017-10-19) | ||
### Bug Fixes | ||
* **git:** use actual default git branch instead of assuming master (#122) ([79ce949](https://github.com/zkat/pacote/commit/79ce949)) | ||
* **npa:** ensure spec is a valid npa instance ([1757b2b](https://github.com/zkat/pacote/commit/1757b2b)) | ||
### Features | ||
* **selection:** add opts.includeDeprecated (#123) ([2001549](https://github.com/zkat/pacote/commit/2001549)) | ||
<a name="6.0.4"></a> | ||
@@ -7,0 +23,0 @@ ## [6.0.4](https://github.com/zkat/pacote/compare/v6.0.3...v6.0.4) (2017-10-05) |
@@ -16,3 +16,3 @@ 'use strict' | ||
opts = optCheck(opts) | ||
spec = typeof spec === 'string' ? npa(spec, opts.where) : spec | ||
spec = npa(spec, opts.where) | ||
const startTime = Date.now() | ||
@@ -19,0 +19,0 @@ if (opts.integrity && opts.cache && !opts.preferOnline) { |
@@ -121,8 +121,8 @@ 'use strict' | ||
// then we can at least get `finalize-manifest` to cache its result. | ||
const resolved = spec.saveSpec.replace(/(?:#.*)?$/, `#${rawRef}`) | ||
const resolved = spec.saveSpec.replace(/(?:#.*)?$/, rawRef ? `#${rawRef}` : '') | ||
return { | ||
_repo: repo, | ||
_rawRef: rawRef, | ||
_resolved: rawRef.match(/^[a-f0-9]{40}$/) && resolved, | ||
_uniqueResolved: rawRef.match(/^[a-f0-9]{40}$/) && resolved | ||
_resolved: rawRef && rawRef.match(/^[a-f0-9]{40}$/) && resolved, | ||
_uniqueResolved: rawRef && rawRef.match(/^[a-f0-9]{40}$/) && resolved | ||
} | ||
@@ -129,0 +129,0 @@ } |
@@ -40,3 +40,4 @@ 'use strict' | ||
return pickManifest(packument, spec.fetchSpec, { | ||
defaultTag: opts.defaultTag | ||
defaultTag: opts.defaultTag, | ||
includeDeprecated: opts.includeDeprecated | ||
}) | ||
@@ -43,0 +44,0 @@ } catch (err) { |
@@ -61,3 +61,3 @@ 'use strict' | ||
}, opts).then(() => { | ||
return execGit(['checkout', committish], { | ||
return committish && execGit(['checkout', committish], { | ||
cwd: target | ||
@@ -73,3 +73,7 @@ }) | ||
opts = optCheck(opts) | ||
const gitArgs = ['clone', '--depth=1', '-q', '-b', branch, repo, target] | ||
const gitArgs = ['clone', '--depth=1', '-q'] | ||
if (branch) { | ||
gitArgs.push('-b', branch) | ||
} | ||
gitArgs.push(repo, target) | ||
if (process.platform === 'win32') { | ||
@@ -76,0 +80,0 @@ gitArgs.push('--config', 'core.longpaths=true') |
@@ -46,2 +46,5 @@ 'use strict' | ||
this.alwaysAuth = opts.alwaysAuth | ||
this.includeDeprecated = opts.includeDeprecated == null | ||
? true | ||
: opts.includeDeprecated | ||
@@ -48,0 +51,0 @@ this.dirPacker = opts.dirPacker || null |
@@ -12,3 +12,3 @@ 'use strict' | ||
opts = optCheck(opts) | ||
spec = typeof spec === 'string' ? npa(spec, opts.where) : spec | ||
spec = npa(spec, opts.where) | ||
@@ -15,0 +15,0 @@ const label = [ |
{ | ||
"name": "pacote", | ||
"version": "6.0.4", | ||
"version": "6.1.0", | ||
"description": "JavaScript package downloader", | ||
@@ -44,13 +44,13 @@ "main": "index.js", | ||
"dependencies": { | ||
"bluebird": "^3.5.0", | ||
"bluebird": "^3.5.1", | ||
"cacache": "^9.2.9", | ||
"glob": "^7.1.2", | ||
"lru-cache": "^4.1.1", | ||
"make-fetch-happen": "^2.4.13", | ||
"make-fetch-happen": "^2.5.0", | ||
"minimatch": "^3.0.4", | ||
"mississippi": "^1.2.0", | ||
"normalize-package-data": "^2.4.0", | ||
"npm-package-arg": "^5.1.2", | ||
"npm-packlist": "^1.1.6", | ||
"npm-pick-manifest": "^1.0.4", | ||
"npm-package-arg": "^6.0.0", | ||
"npm-packlist": "^1.1.9", | ||
"npm-pick-manifest": "^2.1.0", | ||
"osenv": "^0.1.4", | ||
@@ -63,3 +63,3 @@ "promise-inflight": "^1.0.1", | ||
"ssri": "^4.1.6", | ||
"tar": "^4.0.0", | ||
"tar": "^4.0.2", | ||
"unique-filename": "^1.1.0", | ||
@@ -70,7 +70,7 @@ "which": "^1.3.0" | ||
"mkdirp": "^0.5.1", | ||
"nock": "^9.0.14", | ||
"nock": "^9.0.22", | ||
"npmlog": "^4.1.2", | ||
"nyc": "^11.1.0", | ||
"nyc": "^11.2.1", | ||
"require-inject": "^1.4.2", | ||
"rimraf": "^2.5.4", | ||
"rimraf": "^2.6.2", | ||
"standard": "^10.0.3", | ||
@@ -77,0 +77,0 @@ "standard-version": "^4.2.0", |
@@ -13,3 +13,3 @@ 'use strict' | ||
opts = optCheck(opts) | ||
spec = typeof spec === 'string' ? npa(spec, opts.where) : spec | ||
spec = npa(spec, opts.where) | ||
const startTime = Date.now() | ||
@@ -16,0 +16,0 @@ if (!opts.cache) { |
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
89096
1593
+ Addedfiggy-pudding@3.5.2(transitive)
+ Addednpm-package-arg@6.1.1(transitive)
+ Addednpm-pick-manifest@2.2.3(transitive)
- Removednpm-package-arg@5.1.2(transitive)
- Removednpm-pick-manifest@1.0.4(transitive)
Updatedbluebird@^3.5.1
Updatedmake-fetch-happen@^2.5.0
Updatednpm-package-arg@^6.0.0
Updatednpm-packlist@^1.1.9
Updatednpm-pick-manifest@^2.1.0
Updatedtar@^4.0.2