Skip to content

Conversation

@bjrmatos
Copy link
Collaborator

@bjrmatos bjrmatos commented Mar 9, 2016

while preparing a PR for #9 i've noticed that running npm test is broken in node v0.10 due the use of template literals.

@bjrmatos bjrmatos changed the title isPlainObject/isArray validation isPlainObject/isArray validation, node 0.10.x support when running tests Mar 9, 2016
@bjrmatos bjrmatos changed the title isPlainObject/isArray validation, node 0.10.x support when running tests isPlainObject/isArray validation, falsy values for presence validation, node 0.10.x support when running tests Mar 9, 2016
field: paramName,
message: customMessage || message(paramName, "required"),
result: !!get(params, paramName)
result: get(params, paramName) != null
Copy link
Owner

Choose a reason for hiding this comment

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

great catch!

@nettofarah
Copy link
Owner

@bjrmatos Your PR looks really good.
Let's just fix these minor things and we should be good to go.

@bjrmatos bjrmatos force-pushed the isPlainObject-isArray-validation branch from 16ac42d to efb89dc Compare March 10, 2016 04:34
@bjrmatos
Copy link
Collaborator Author

PR updated with your observations ❤️

@nettofarah
Copy link
Owner

This is looking fantastic, @bjrmatos.
I forgot to ask you to add some entries to the README file.
Would you mind updating the table containing the validation helpers before we merge this in?

@bjrmatos
Copy link
Collaborator Author

@nettofarah done! 😄

@nettofarah
Copy link
Owner

Great! Thank you!

nettofarah added a commit that referenced this pull request Mar 10, 2016
isPlainObject/isArray validation, falsy values for presence validation, node 0.10.x support when running tests
@nettofarah nettofarah merged commit 3a19cfb into nettofarah:master Mar 10, 2016
@nettofarah
Copy link
Owner

I'll publish a new release tomorrow

@bjrmatos
Copy link
Collaborator Author

@nettofarah thnk you!

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