@launchdarkly/o11y 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/record.d.ts CHANGED
@@ -356,6 +356,7 @@ declare type HighlightClassOptions = {
356
356
  privacySetting?: PrivacySettingOption;
357
357
  maskAllInputs?: boolean;
358
358
  maskInputOptions?: MaskInputOptions;
359
+ maskPiiText?: boolean;
359
360
  maskTextClass?: string | RegExp;
360
361
  maskTextSelector?: string;
361
362
  blockClass?: string | RegExp;
@@ -1221,6 +1222,15 @@ declare type RecordOptions = CommonOptions & {
1221
1222
  * Customize the input element types that are masked. Only applies if privacySetting is `none`.
1222
1223
  */
1223
1224
  maskInputOptions?: MaskInputOptions;
1225
+ /**
1226
+ * Whether to mask text on the page that looks like PII, such as emails, phone numbers,
1227
+ * credit card numbers, SSNs, street addresses, and IP addresses.
1228
+ * - `strict`: ignored. All text is always masked.
1229
+ * - `default`: PII-like text is masked unless this is `false`.
1230
+ * - `none`: PII-like text is not masked unless this is `true`.
1231
+ * Does not affect input masking, which is controlled by `maskAllInputs` and `maskInputOptions`.
1232
+ */
1233
+ maskPiiText?: boolean;
1224
1234
  /**
1225
1235
  * Customize which elements' text should be masked by specifying a CSS class name or RegExp.
1226
1236
  * Default class is 'highlight-mask'.
package/dist/record.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./common-DQ61tUu9.js";
2
- import { R as i } from "./record-C_yieA7u.js";
1
+ import "./common-BkAGcE30.js";
2
+ import { R as i } from "./record-DTawahUk.js";
3
3
  import "./LDRecord.js";
4
4
  import "./buffer-DIFxvF2Q.js";
5
5
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@launchdarkly/o11y",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Shared browser foundation for @launchdarkly/observability and @launchdarkly/session-replay. Capture frontend metrics, errors, logs, traces, and session replays.",
5
5
  "keywords": [
6
6
  "launchdarkly",