mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Cleanup build/post-install.js.
Former-commit-id: 5e289381b90e764b38bf5a3ba1866b6658766f52
This commit is contained in:
@@ -63,14 +63,11 @@
|
|||||||
'Accept': 'application/vnd.github.v3.raw'
|
'Accept': 'application/vnd.github.v3.raw'
|
||||||
}
|
}
|
||||||
}, function(response) {
|
}, function(response) {
|
||||||
var decompressor = zlib.createUnzip().on('error', callback);
|
var decompressor = zlib.createUnzip(),
|
||||||
|
parser = new tar.Extract({ 'path': options.path });
|
||||||
var parser = new tar.Extract({
|
|
||||||
'path': options.path
|
|
||||||
})
|
|
||||||
.on('end', callback)
|
|
||||||
.on('error', callback);
|
|
||||||
|
|
||||||
|
decompressor.on('error', callback)
|
||||||
|
parser.on('end', callback).on('error', callback);
|
||||||
response.pipe(decompressor).pipe(parser);
|
response.pipe(decompressor).pipe(parser);
|
||||||
})
|
})
|
||||||
.on('error', callback);
|
.on('error', callback);
|
||||||
|
|||||||
Reference in New Issue
Block a user