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 Node 10 support #16

Closed
ehmicky opened this issue Oct 12, 2020 · 1 comment
Closed

Fix Node 10 support #16

ehmicky opened this issue Oct 12, 2020 · 1 comment

Comments

@ehmicky
Copy link
Collaborator

ehmicky commented Oct 12, 2020

Array.flat() is not supported in Node 10:

const include = inputs.include && [inputs.include].flat()
const exclude = inputs.exclude && [inputs.exclude].flat()

This could be fixed by using instead:

const include = inputs.include && [].concat(...[inputs.include])
const exclude = inputs.exclude && [].concat(...[inputs.exclude])
@bencao
Copy link
Owner

bencao commented Nov 4, 2020

fixed with v1.0.8

@bencao bencao closed this as completed Nov 4, 2020
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

No branches or pull requests

2 participants