Skip to content

Commit

Permalink
workers: fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat authored and iarna committed Sep 12, 2018
1 parent df5921e commit b62d623
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/install/action/extract-worker.js
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 b62d623

Please sign in to comment.