Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

view: stop crashing when license field is an object #20538

Merged
merged 1 commit into from
May 11, 2018

Conversation

zkat
Copy link
Contributor

@zkat zkat commented May 7, 2018

No description provided.

@zkat zkat requested a review from a team as a code owner May 7, 2018 20:06
lib/view.js Outdated
license: manifest.license || manifest.licence || 'Proprietary',
license: typeof licenseField === 'string'
? licenseField
: (licenseField.type || 'Proprierary'),
Copy link

@joeledwards joeledwards May 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here and 🍎 Proprierary should be Proprietary

lib/view.js Outdated
@@ -200,6 200,7 @@ function prettyView (packument, manifest) {
})
const unpackedSize = manifest.dist.unpackedSize &&
byteSize(manifest.dist.unpackedSize)
const licenseField = manifest.license || manifest.licence || 'Proprierary'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍎

@zkat zkat force-pushed the zkat/fix-object-license-view branch from f564733 to ab3a6a3 Compare May 7, 2018 20:17
@zkat
Copy link
Contributor Author

zkat commented May 8, 2018

@joeledwards wanna re-review?

Copy link

@joeledwards joeledwards left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks!

@zkat zkat merged commit a41c039 into release-next May 11, 2018
@zkat zkat deleted the zkat/fix-object-license-view branch May 11, 2018 21:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants