Skip to content

Conversation

@GaneshSPatil
Copy link

What changes have you made?
Changes made while printing json with user specified colors
Previously user was able to specify any color(invalid color)
because of which all the data was printing as undefined

Added a check before printing data that if the user specified color
is invalid then use the default colors.

Why do we need this change?
To print the data with valid options and color schemes

Files Modified:

modified:   lib/prettyjson.js
modified:   test/prettyjson_spec.js

What changes have you made?
  Changes made while printing json with user specified colors
  Previously user was able to specify any color(invalid color)
  because of which all the data was printing as undefined

  Added a check before printing data that if the user specified color
is invalid then use the default colors.

Why do we need this change?
  To print the data with valid options and color schemes

Files Modified:

	modified:   lib/prettyjson.js
	modified:   test/prettyjson_spec.js
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.

1 participant