Skip to content

Commit

Permalink
workers: fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Dec 10, 2018
1 parent c5af34c commit 125ff95
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/install/action/extract-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
const BB = require('bluebird')

const extract = require('pacote/extract')
const npmlog = require('npmlog')
// const npmlog = require('npmlog')

module.exports = (args, cb) => {
const parsed = typeof args === 'string' ? JSON.parse(args) : args
const spec = parsed[0]
const extractTo = parsed[1]
const opts = parsed[2]
if (!opts.log) {
opts.log = npmlog
}
opts.log.level = opts.loglevel || opts.log.level
// if (!opts.log) {
// opts.log = npmlog
// }
// opts.log.level = opts.loglevel || opts.log.level
BB.resolve(extract(spec, extractTo, opts)).nodeify(cb)
}

0 comments on commit 125ff95

Please # to comment.