Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use object shorthand for properties #167

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/npm.js
Expand Up @@ -47,7 +47,7 @@ function getVersionsInfo (name, opts, cb) {
}

batch.call(name, function (cb) {
cb(null, { current: currentVersion, versions: versions })
cb(null, { current: currentVersion, versions })
})
})
})
Expand Down
2 changes: 1 addition & 1 deletion lib/version.js
Expand Up @@ -73,7 +73,7 @@ function getLatest (current, versions, opts) {
}
}

return { latest: latest, stable: stable }
return { latest, stable }
}

exports.getLatest = getLatest
Expand Down
2 changes: 1 addition & 1 deletion test/david.js
Expand Up @@ -15,7 +15,7 @@ function mockNpm (versions, depName, latestTag) {
versions.forEach(function (value, index) { time[value] = new Date(index).toISOString() })
latestTag = latestTag || versions[versions.length - 1]
versions.sort(function (a, b) { return semver.compare(a, b) })
npmData[latestTag] = { versions: versions, time: time }
npmData[latestTag] = { versions, time }

// Mock out NPM
return {
Expand Down