From 2420523744fb9028ba0d0f010d7c2114611cdb7a Mon Sep 17 00:00:00 2001 From: Ryan Albrecht Date: Fri, 19 May 2023 14:12:21 -0700 Subject: [PATCH 1/2] fix(replays): Show the correct Replay config option name `maskFn` --- src/platforms/javascript/common/session-replay/privacy.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platforms/javascript/common/session-replay/privacy.mdx b/src/platforms/javascript/common/session-replay/privacy.mdx index e064bfac43910..f377da449ce0a 100644 --- a/src/platforms/javascript/common/session-replay/privacy.mdx +++ b/src/platforms/javascript/common/session-replay/privacy.mdx @@ -35,12 +35,12 @@ The following options can be configured as options to the integration, in `new R | key | type | default | description | | ------------- | ------------------------ | ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | mask | string[] | `.sentry-mask, [data-sentry-mask]` | Mask all elements that match the given DOM selectors. See [Masking](#masking) section for an example. Note that any configured selectors will be in _addition_ to the defaults. | -| maskAllText | boolean | `true` | Mask _all_ text content. Will pass text content through `maskTextFn` before sending to server. | -| maskAllInputs | boolean | `true` | Mask values of `` elements. Passes input values through `maskTextFn` before sending to server. | +| maskAllText | boolean | `true` | Mask _all_ text content. Will pass text content through `maskFn` before sending to server. | +| maskAllInputs | boolean | `true` | Mask values of `` elements. Passes input values through `maskFn` before sending to server. | | block | string[] | `.sentry-block, [data-sentry-block]` | Redact all elements that match the DOM selector(s). See [Blocking](#blocking) section for an example. Note that any configured selectors will be in _addition_ to the defaults. | | blockAllMedia | boolean | `true` | Block _all_ media elements (`img`, `svg`, `video`, `object`, `picture`, `embed`, `map`, `audio`). | | ignore | string[] | `.sentry-ignore, [data-sentry-ignore]` | Ignores all events on the matching input fields. See [Ignoring](#ignoring) above for an example. | -| maskTextFn | (text: string) => string | `(text) => '*'.repeat(text.length)` | Function to customize how text content is masked before sending to server. By default, masks text with `*`. | +| maskFn | (text: string) => string | `(text) => '*'.repeat(text.length)` | Function to customize how text content is masked before sending to server. By default, masks text with `*`. | | unblock | string[] | `.sentry-unblock, [data-sentry-unblock]` | Don't redact any elements that match the DOM selectors. Used to unblock specific media elements that are blocked with `blockAllMedia`. This doesn't affect sensitive elements such as `password`. | | unmask | string[] | `.sentry-unmask, [data-sentry-unmask]` | Unmask all elements that match the given DOM selectors. Used to unmask specific elements that are masked with `maskAllText`. | From c5f103152097b3015ea087e5da83d155476c232b Mon Sep 17 00:00:00 2001 From: "getsantry[bot]" <66042841+getsantry[bot]@users.noreply.github.com> Date: Fri, 19 May 2023 21:15:57 +0000 Subject: [PATCH 2/2] style(lint): Auto commit lint changes --- src/platforms/javascript/common/session-replay/privacy.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platforms/javascript/common/session-replay/privacy.mdx b/src/platforms/javascript/common/session-replay/privacy.mdx index f377da449ce0a..6ddcc01705603 100644 --- a/src/platforms/javascript/common/session-replay/privacy.mdx +++ b/src/platforms/javascript/common/session-replay/privacy.mdx @@ -35,12 +35,12 @@ The following options can be configured as options to the integration, in `new R | key | type | default | description | | ------------- | ------------------------ | ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | mask | string[] | `.sentry-mask, [data-sentry-mask]` | Mask all elements that match the given DOM selectors. See [Masking](#masking) section for an example. Note that any configured selectors will be in _addition_ to the defaults. | -| maskAllText | boolean | `true` | Mask _all_ text content. Will pass text content through `maskFn` before sending to server. | -| maskAllInputs | boolean | `true` | Mask values of `` elements. Passes input values through `maskFn` before sending to server. | +| maskAllText | boolean | `true` | Mask _all_ text content. Will pass text content through `maskFn` before sending to server. | +| maskAllInputs | boolean | `true` | Mask values of `` elements. Passes input values through `maskFn` before sending to server. | | block | string[] | `.sentry-block, [data-sentry-block]` | Redact all elements that match the DOM selector(s). See [Blocking](#blocking) section for an example. Note that any configured selectors will be in _addition_ to the defaults. | | blockAllMedia | boolean | `true` | Block _all_ media elements (`img`, `svg`, `video`, `object`, `picture`, `embed`, `map`, `audio`). | | ignore | string[] | `.sentry-ignore, [data-sentry-ignore]` | Ignores all events on the matching input fields. See [Ignoring](#ignoring) above for an example. | -| maskFn | (text: string) => string | `(text) => '*'.repeat(text.length)` | Function to customize how text content is masked before sending to server. By default, masks text with `*`. | +| maskFn | (text: string) => string | `(text) => '*'.repeat(text.length)` | Function to customize how text content is masked before sending to server. By default, masks text with `*`. | | unblock | string[] | `.sentry-unblock, [data-sentry-unblock]` | Don't redact any elements that match the DOM selectors. Used to unblock specific media elements that are blocked with `blockAllMedia`. This doesn't affect sensitive elements such as `password`. | | unmask | string[] | `.sentry-unmask, [data-sentry-unmask]` | Unmask all elements that match the given DOM selectors. Used to unmask specific elements that are masked with `maskAllText`. |