Skip to content

Commit

Permalink
Merge pull request #5 from amplitude/AMP-100834-rrweb-fixes
Browse files Browse the repository at this point in the history
fix(rrweb-snapshot): pass maskInputFn correctly
  • Loading branch information
lewgordon-amplitude authored Jun 5, 2024
2 parents 97f5d8d + 01c42a7 commit 33293b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/short-masks-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@amplitude/rrweb': patch
---

fix(rrweb-snapshot): pass maskInputFn correctly
2 changes: 2 additions & 0 deletions packages/rrdom/test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ const _typescript = typescript as unknown as typeof typescript.default;
export async function compileTSCode(inputFilePath: string) {
const bundle = await rollup.rollup({
input: inputFilePath,
cache: false,
plugins: [
resolve() as unknown as rollup.Plugin,
_typescript({
tsconfigOverride: { compilerOptions: { module: 'ESNext' } },
clean: true,
}) as unknown as rollup.Plugin,
],
});
Expand Down
1 change: 1 addition & 0 deletions packages/rrweb/src/record/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ function record<T = eventWithTime>(
inlineStylesheet,
maskAllInputs: maskInputOptions,
maskTextFn,
maskInputFn,
slimDOM: slimDOMOptions,
dataURLOptions,
recordCanvas,
Expand Down

0 comments on commit 33293b6

Please sign in to comment.