Comparing version 2.7.7 to 2.7.8
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="2.7.8"></a> | ||
## [2.7.8](https://github.com/zkat/pacote/compare/v2.7.7...v2.7.8) (2017-05-07) | ||
### Bug Fixes | ||
* **git:** integrity hash was not always emitted ([97ed9e1](https://github.com/zkat/pacote/commit/97ed9e1)) | ||
<a name="2.7.7"></a> | ||
@@ -7,0 +17,0 @@ ## [2.7.7](https://github.com/zkat/pacote/compare/v2.7.6...v2.7.7) (2017-05-06) |
@@ -40,3 +40,7 @@ 'use strict' | ||
stream.emit('manifest', manifest) | ||
return pipe(this.fromManifest(manifest, spec, opts), stream) | ||
return pipe( | ||
this.fromManifest( | ||
manifest, spec, opts | ||
).on('integrity', i => stream.emit('integrity', i)), stream | ||
) | ||
}, err => stream.emit('error', err)) | ||
@@ -55,3 +59,3 @@ return stream | ||
opts.cache, cacheKey('packed-dir', cacheName), opts | ||
) | ||
).on('integrity', i => stream.emit('integrity', i)) | ||
) | ||
@@ -58,0 +62,0 @@ cacheStream.pipe(stream) |
@@ -35,3 +35,5 @@ 'use strict' | ||
opts.cache, cacheKey('packed-dir', label), opts | ||
) | ||
).on('integrity', i => { | ||
target.emit('integrity', i) | ||
}) | ||
return BB.all([ | ||
@@ -38,0 +40,0 @@ pipe(packer, cacher), |
{ | ||
"name": "pacote", | ||
"version": "2.7.7", | ||
"version": "2.7.8", | ||
"description": "JavaScript package downloader", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -23,3 +23,3 @@ 'use strict' | ||
if (info) { | ||
opts.log.silly('prefetch', 'content already exists for', spec.raw, `(${Date.now() - startTime}ms)`) | ||
opts.log.silly('prefetch', `content already exists for ${spec} (${Date.now() - startTime}ms)`) | ||
return { | ||
@@ -36,3 +36,3 @@ spec, | ||
} else { | ||
opts.log.silly('prefetch', 'no integrity hash provided for', spec, '- fetching by manifest') | ||
opts.log.silly('prefetch', `no integrity hash provided for ${spec} - fetching by manifest`) | ||
return prefetchByManifest(startTime, spec, opts) | ||
@@ -57,3 +57,3 @@ } | ||
}).then(() => { | ||
opts.log.verbose('prefetch', `${spec.name}@${spec.saveSpec || spec.fetchSpec} done in ${Date.now() - start}ms`) | ||
opts.log.verbose('prefetch', `${spec} done in ${Date.now() - start}ms`) | ||
return { | ||
@@ -60,0 +60,0 @@ manifest, |
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
73812
1508