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

Add support of numeric values of mods #11

Merged
merged 1 commit into from Jul 17, 2015
Merged

Add support of numeric values of mods #11

merged 1 commit into from Jul 17, 2015

Conversation

eGavr
Copy link
Collaborator

@eGavr eGavr commented Jul 16, 2015

It has appeared that mods can have numeric values :)

@@ -63,7 +63,7 @@ function normalize(dep, options) {
});
} else {
Object.keys(dep.mods).forEach(function(mod) {
if (typeof dep.mods[mod] === 'string' || typeof dep.mods[mod] === 'boolean') {
if (!Array.isArray(dep.mods[mod])) {

Choose a reason for hiding this comment

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

why did you remove all the previous checks?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

seems to be the same. If you do not like, I can return the full condition

@iamstarkov
Copy link

Thanks for pull-request!

@iamstarkov
Copy link

looks good and reasonable, but Im confused with checks on line 66

floatdrop added a commit that referenced this pull request Jul 17, 2015
Add support of numeric values of mods
@floatdrop floatdrop merged commit 86e4382 into floatdrop:master Jul 17, 2015
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.

None yet

3 participants