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

offer aspectj-like around advice via new MethodMetadata.complete method #76

Merged
merged 5 commits into from Nov 15, 2018

Conversation

matthewadams
Copy link
Collaborator

Fixes #75

Copy link
Owner

@mgechev mgechev left a comment

Choose a reason for hiding this comment

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

LGTM
Left a single comment to keep the current coding style. It's worth introducing prettier to enforce this as a precommit hook.

@@ -1,5 +1,5 @@
import { Advice } from '../core/advice';
import { Metadata } from '../core/metadata';
import { Advice } from "../core/advice";
Copy link
Owner

Choose a reason for hiding this comment

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

Would you revert back to single quotes.

@mgechev
Copy link
Owner

mgechev commented Nov 15, 2018

I'll not be able to release the changes until the tests are passing. I might be able to look at this over the weekend.

@matthewadams
Copy link
Collaborator Author

FYI, this does change existing behavior if the user sets metadata.method.proceed to false. Prior to this PR, the advice would get invoked twice, but I'd call that a bug, not a feature. That's why I only bumped the minor version with this new feature.

@mgechev mgechev merged commit 1c03a12 into mgechev:master Nov 15, 2018
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

2 participants