Skip to content

Call functions inside module with module.exports #14

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

Closed
wants to merge 1 commit into from
Closed

Call functions inside module with module.exports #14

wants to merge 1 commit into from

Conversation

mattiassamskar
Copy link

When I use personnummer.format() it throws a TypeError: Cannot read property 'valid' of undefined error. I'm not sure why but I suspect is has to do with the scope not being correct. With these code changes it seems to work.
The unit tests also run ok.

frozzare added a commit that referenced this pull request Aug 28, 2019
@frozzare
Copy link
Member

Thanks!

Not sure why is not working. I did another fix that solves this problem without using module.exports.valid and that works with this

Will create a new release and you are welcome to test the new commit. 8d17aa7

@mattiassamskar
Copy link
Author

👍

@frozzare
Copy link
Member

@frozzare frozzare closed this Aug 28, 2019
@mattiassamskar
Copy link
Author

Great! Tested it and works perfectly. Saved me from having to implement format() myself 😅👏

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