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

Allow mapping values used in set through a function. #105

Merged
merged 1 commit into from
Jun 12, 2018

Conversation

lightsofapollo
Copy link
Contributor

This allows me to wrap my objects in a java like classes which gives us better compatibility with java VTL. If this approach is acceptable I will cleanup my PR and add tests.

@coveralls
Copy link

coveralls commented Jun 10, 2018

Coverage Status

Coverage decreased (-0.2%) to 99.038% when pulling d1357f3 on lightsofapollo:valueMapper into 8733300 on shepherdwind:master.

@shepherdwind
Copy link
Owner

shepherdwind commented Jun 11, 2018

Thanks for you pr. You idea is nice. Please add tests, thanks.

@lightsofapollo lightsofapollo changed the title RFC: Allow mapping values used in set through a function. Allow mapping values used in set through a function. Jun 11, 2018
@lightsofapollo
Copy link
Contributor Author

@shepherdwind Thanks ! I have added tests and cleaned up some of the changes that were not needed.

@lightsofapollo
Copy link
Contributor Author

Also assuming these changes are good could you publish this in a new version?

escape: true,
// 不需要转义的白名单
unescape: {},
valueMapper: value => value
Copy link
Owner

Choose a reason for hiding this comment

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

Because This repo is very old, So code style is es5. If you add this array function, and the output code do not translate by babel. This may break on some old version browsers.

So, please write code in es5 only, thanks.

@shepherdwind shepherdwind merged commit e0196ff into shepherdwind:master Jun 12, 2018
@lightsofapollo
Copy link
Contributor Author

Thank you so much!

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.

3 participants