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 for this in wrap #11

Merged
merged 1 commit into from
Feb 21, 2022
Merged

Add support for this in wrap #11

merged 1 commit into from
Feb 21, 2022

Conversation

jablko
Copy link
Contributor

@jablko jablko commented Feb 19, 2022

Use middleware.apply(this, parameters) to pass the this value from the wrapper to the wrapped function.

The wrapped package used to do this --- unified-lint-rule switched from that package to trough.

I'm interested in giving remark lint rules access to settings, and one way is via the this value.

jablko added a commit to jablko/remark-lint that referenced this pull request Feb 20, 2022
jablko added a commit to jablko/remark-lint that referenced this pull request Feb 20, 2022
jablko added a commit to jablko/remark-lint that referenced this pull request Feb 20, 2022
jablko added a commit to jablko/remark-lint that referenced this pull request Feb 20, 2022
jablko added a commit to jablko/remark-lint that referenced this pull request Feb 20, 2022
jablko added a commit to jablko/remark-lint that referenced this pull request Feb 20, 2022
@wooorm wooorm changed the title Preserve this value in wrap() Add support for this in wrap Feb 21, 2022
@wooorm wooorm merged commit c24be20 into wooorm:main Feb 21, 2022
@wooorm
Copy link
Owner

wooorm commented Feb 21, 2022

Thanks, released!

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