-
Notifications
You must be signed in to change notification settings - Fork 19
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
feat(plugin): allow to transform entries before saving a HAR #182
Merged
derevnjuk
merged 9 commits into
master
from
feat_#174/allow_to_transform_entries_before_saving_a_har
Feb 1, 2023
Merged
feat(plugin): allow to transform entries before saving a HAR #182
derevnjuk
merged 9 commits into
master
from
feat_#174/allow_to_transform_entries_before_saving_a_har
Feb 1, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
derevnjuk
force-pushed
the
feat_#174/allow_to_transform_entries_before_saving_a_har
branch
from
February 1, 2023 12:26
5fd661e
to
f6541f3
Compare
derevnjuk
force-pushed
the
feat_#174/allow_to_transform_entries_before_saving_a_har
branch
from
February 1, 2023 12:27
f6541f3
to
87b2447
Compare
Code Climate has analyzed commit 31faeba and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 92.3% (0.2% change). View more on Code Climate. |
closes #174
derevnjuk
force-pushed
the
feat_#174/allow_to_transform_entries_before_saving_a_har
branch
from
February 1, 2023 13:39
a0f1353
to
e23de09
Compare
derevnjuk
force-pushed
the
feat_#174/allow_to_transform_entries_before_saving_a_har
branch
from
February 1, 2023 14:24
54af146
to
099024a
Compare
derevnjuk
deleted the
feat_#174/allow_to_transform_entries_before_saving_a_har
branch
February 1, 2023 14:39
Sija
reviewed
Feb 1, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
You can modify the entries before saving the HAR by using the
transform
option. This option should be set to a path to a module that exports a function, similar to the filter option, to change the Entry object as desired.Here's a simple example of what the
remove-sensitive-data.ts
module might look like:In this example, the transform function will replace any instances of password with
***
in both the request and response bodies of each entry.closes #174