Skip to content

Conversation

@liangyulai
Copy link

If fullText no set (default behavior), Sha-1 calculated from
dependencies and devDependencies from package.json

If fullText is set, Sha-1 calculated from
full text of package.json. Which is back compatible
with v3.3.0 and before.

If fullText no set (default behavior), Sha-1 calculated from
 dependencies and devDependencies from package.json

If fullText is set, Sha-1 calculated from
 full text of package.json. Which is back compatible
 with v3.3.0 and before.
// compute a hash based on the stable-stringified contents of package.json
// (`packageJsonContent` might differ on different platforms, depending on line endings etc.)
let stableContent = stringify([packageJson.dependencies, packageJson.devDependencies]);
if (fullText === true) {
Copy link
Owner

Choose a reason for hiding this comment

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

For consistency with other places better if (fullText) {

@bestander
Copy link
Owner

bestander commented Jun 29, 2016

Thanks, @liangyulai, very much appreciated.
There are just a couple of nit-picks, could you please fix them?

@bestander
Copy link
Owner

Implemented in #32

@bestander bestander closed this Jun 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants