Comparing version 2.0.1 to 2.0.2
@@ -5,2 +5,13 @@ # Change Log | ||
<a name="2.0.2"></a> | ||
## [2.0.2](https://github.com/zkat/pacote/compare/v2.0.1...v2.0.2) (2017-04-15) | ||
### Bug Fixes | ||
* **directory:** fix default pack-dir and write a test for it ([9d9266f](https://github.com/zkat/pacote/commit/9d9266f)) | ||
* **extract:** brainfart with extractByManifest fixed. lol. ([a1367fb](https://github.com/zkat/pacote/commit/a1367fb)) | ||
<a name="2.0.1"></a> | ||
@@ -7,0 +18,0 @@ ## [2.0.1](https://github.com/zkat/pacote/compare/v2.0.0...v2.0.1) (2017-04-15) |
@@ -68,3 +68,3 @@ 'use strict' | ||
const xtractor = extractStream(dest, opts) | ||
return BB.resolve(() => { | ||
return BB.resolve(null).then(() => { | ||
const tarball = require('./lib/handlers/' + spec.type + '/tarball') | ||
@@ -71,0 +71,0 @@ return pipe(tarball(spec, opts), xtractor) |
@@ -117,3 +117,2 @@ 'use strict' | ||
} | ||
opts.log.silly('pacote', res.headers.raw()) | ||
packument._cached = !!res.headers.get('x-local-cache') | ||
@@ -120,0 +119,0 @@ packument._contentLength = +res.headers.get('content-length') |
@@ -18,4 +18,5 @@ 'use strict' | ||
map: header => { | ||
header.name = header.name.replace(dir, 'package') | ||
header.name = 'package/' + header.name | ||
header.mtime = 0 // make tarballs idempotent | ||
return header | ||
}, | ||
@@ -28,5 +29,3 @@ ignore: (name) => { | ||
if (!opts.cache) { | ||
console.log('piping!') | ||
return pipe(packer, target).catch(err => { | ||
console.log('got an error:', err) | ||
throw err | ||
@@ -33,0 +32,0 @@ }) |
{ | ||
"name": "pacote", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "JavaScript package downloader", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
62117
1399