Skip to content

Conversation

stayradiated
Copy link
Contributor

When querying npm.commands.view with silent mode, instead of returning undefined we should return the result.

const npm = require('npm')

const silent = true

npm.load({ global: true }, () => {
  npm.commands.view(['npm'], silent, (err, result) => {
    if (err != null) throw err
    console.dir({ result }) // currently prints "{ result: undefined }"
  })
})

@stayradiated stayradiated requested a review from a team as a code owner March 22, 2019 07:25
@isaacs isaacs added the semver:patch semver patch level for changes label Jun 26, 2019
@isaacs isaacs mentioned this pull request Jul 1, 2019
@isaacs isaacs closed this Jul 10, 2019
@ljharb
Copy link
Contributor

ljharb commented Jul 10, 2019

Landed in d192904d0?

@isaacs
Copy link
Contributor

isaacs commented Jul 10, 2019

That is correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch semver patch level for changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants