Skip to content

Commit

Permalink
Fix deprecated use of Tar.Extract in npm.js, release 0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nullivex committed Mar 29, 2019
1 parent bd91bfa commit bb099ba
Show file tree
Hide file tree
Showing 4 changed files with 213 additions and 395 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ MIT License

## Changelog

v0.9.1
* Fix issue with deprecated call to Tar.Extract in the NPM handler.

v0.9.0

* Maintenance release. First release by @nullivex
Expand Down
4 changes: 2 additions & 2 deletions lib/npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ NPMIST.install = function(v,done){
return new Promise((resolve, reject) => {
buildHelper.downloadFileStream(downloadLink)
.pipe(zlib.createUnzip())
.pipe(tar.Extract({
path: archivePath
.pipe(tar.x({
cwd: archivePath
, strip: 1
}))
.on('error', reject)
Expand Down
Loading

0 comments on commit bb099ba

Please sign in to comment.