Comparing version 6.0.2 to 6.0.3
@@ -5,2 +5,14 @@ # Change Log | ||
<a name="6.0.3"></a> | ||
## [6.0.3](https://github.com/zkat/pacote/compare/v6.0.2...v6.0.3) (2017-10-05) | ||
### Bug Fixes | ||
* **extract:** clean up mode/fmode/dmode tests ([f915045](https://github.com/zkat/pacote/commit/f915045)) | ||
* **file:** make sure file tarballs are written to cache and have integrity data ([dae391a](https://github.com/zkat/pacote/commit/dae391a)) | ||
* **git:** version resolution regression from #115 (#119) ([9a68205](https://github.com/zkat/pacote/commit/9a68205)) | ||
<a name="6.0.2"></a> | ||
@@ -7,0 +19,0 @@ ## [6.0.2](https://github.com/zkat/pacote/compare/v6.0.1...v6.0.2) (2017-09-06) |
@@ -5,2 +5,3 @@ 'use strict' | ||
const cacache = require('cacache') | ||
const Fetcher = require('../fetch') | ||
@@ -33,6 +34,18 @@ const fs = require('fs') | ||
statAsync(src).then(stat => { | ||
if (spec._resolved) { stream.emit('manifest', spec) } | ||
if (stat.size <= MAX_BULK_SIZE) { | ||
// YAY LET'S DO THING IN BULK | ||
return readFileAsync(src).then(data => { | ||
stream.write(data, () => { | ||
if (opts.cache) { | ||
return cacache.put( | ||
opts.cache, `pacote:tarball:file:${src}`, data, { | ||
integrity: opts.integrity | ||
} | ||
).then(integrity => ({data, integrity})) | ||
} else { | ||
return {data} | ||
} | ||
}).then(info => { | ||
if (info.integrity) { stream.emit('integrity', info.integrity) } | ||
stream.write(info.data, () => { | ||
stream.end() | ||
@@ -39,0 +52,0 @@ }) |
@@ -207,4 +207,4 @@ 'use strict' | ||
const REFS_TAGS = '/refs/tags/' | ||
const REFS_HEADS = '/refs/heads/' | ||
const REFS_TAGS = 'refs/tags/' | ||
const REFS_HEADS = 'refs/heads/' | ||
const HEAD = 'HEAD' | ||
@@ -211,0 +211,0 @@ function refType (ref) { |
{ | ||
"name": "pacote", | ||
"version": "6.0.2", | ||
"version": "6.0.3", | ||
"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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
87783
1573
8