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 maskInputFn is ignored during the creation of the full snapshot #1386

Merged
merged 4 commits into from
Jun 21, 2024

Conversation

ababik
Copy link
Contributor

@ababik ababik commented Jan 4, 2024

Fix for #1385

Copy link

changeset-bot bot commented Jan 4, 2024

🦋 Changeset detected

Latest commit: c44b56c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
rrweb-snapshot Patch
rrweb Patch
rrdom Patch
rrdom-nodejs Patch
rrweb-player Patch
@rrweb/types Patch
@rrweb/web-extension Patch
rrvideo Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@lewgordon-amplitude
Copy link

@ababik I saw the tests are failing. Any plans to fix them? I'm happy to help.

@eoghanmurray
Copy link
Contributor

eoghanmurray commented Jun 4, 2024

@Juice10 was this just a copy/paste error on your part do you recall?

(referring to https://github.com/rrweb-io/rrweb-snapshot/pull/83/files#diff-0151af937db3d4d81e0883cfa20e4370c007c43b72afeb1e55a9058b4276df37R36 )

@eoghanmurray
Copy link
Contributor

eoghanmurray commented Jun 6, 2024

For some context:

At that point rrweb-snapshot was a separate repository.
(I was trying to find out if there was ever an intention for one to fallback to the other if one is defined and the other is not, but I can't see that ever being the case)

The default versions of these two functions are slightly different in that the maskTextFn doesn't replace whitespace in the content with '*' (stars), so preserves information about the original text, whereas maskInputFn replaces the entire value with stars (like a password field).
Both preserve the length of the original content.

prettier was complaining about the trailing space
@lewgordon-amplitude
Copy link

Any updates on this one? It looks like it's pretty much good to go?

@eoghanmurray eoghanmurray merged commit a2c8a1a into rrweb-io:master Jun 21, 2024
5 of 6 checks passed
jeffdnguyen pushed a commit to pendo-io/rrweb that referenced this pull request Jul 29, 2024
…rweb-io#1386)

Fix that the optional `maskInputFn` was being accidentally ignored during the creation of the full snapshot
jeffdnguyen pushed a commit to pendo-io/rrweb that referenced this pull request Jul 29, 2024
…rweb-io#1386)

Fix that the optional `maskInputFn` was being accidentally ignored during the creation of the full snapshot
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.

4 participants