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

Fix to vulnerability reported in #1 #3

Closed
wants to merge 6 commits into from

Conversation

frenzox
Copy link

@frenzox frenzox commented Nov 3, 2017

lib/index.js Outdated
fields = null;
}

if (!Array.isArray(fields)) {

Choose a reason for hiding this comment

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

Hi @frenzox, I think if you pass opts as function, this condition will be met and the error thrown. I believe the idea was that fields should not be required.

Copy link
Author

Choose a reason for hiding this comment

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

You're completely right! I will take a look into that.

@frenzox frenzox closed this Nov 4, 2024
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