@newrelic/browser-agent 1.320.1-rc.4 → 1.320.1-rc.5
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/cjs/common/constants/env.cdn.js +1 -1
- package/dist/cjs/common/constants/env.npm.js +1 -1
- package/dist/cjs/features/session_replay/shared/utils.js +3 -5
- package/dist/esm/common/constants/env.cdn.js +1 -1
- package/dist/esm/common/constants/env.npm.js +1 -1
- package/dist/esm/features/session_replay/shared/utils.js +3 -5
- package/dist/types/features/session_replay/shared/utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/features/session_replay/shared/utils.js +3 -5
|
@@ -17,7 +17,7 @@ exports.VERSION = exports.RRWEB_VERSION = exports.RRWEB_PACKAGE_NAME = exports.D
|
|
|
17
17
|
/**
|
|
18
18
|
* Exposes the version of the agent
|
|
19
19
|
*/
|
|
20
|
-
const VERSION = exports.VERSION = "1.320.1-rc.
|
|
20
|
+
const VERSION = exports.VERSION = "1.320.1-rc.5";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Exposes the build type of the agent
|
|
@@ -17,7 +17,7 @@ exports.VERSION = exports.RRWEB_VERSION = exports.RRWEB_PACKAGE_NAME = exports.D
|
|
|
17
17
|
/**
|
|
18
18
|
* Exposes the version of the agent
|
|
19
19
|
*/
|
|
20
|
-
const VERSION = exports.VERSION = "1.320.1-rc.
|
|
20
|
+
const VERSION = exports.VERSION = "1.320.1-rc.5";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Exposes the build type of the agent
|
|
@@ -9,7 +9,7 @@ exports.isPreloadAllowed = isPreloadAllowed;
|
|
|
9
9
|
var _nreum = require("../../../common/window/nreum");
|
|
10
10
|
var _featureGates = require("../../utils/feature-gates");
|
|
11
11
|
/**
|
|
12
|
-
* Copyright 2020-
|
|
12
|
+
* Copyright 2020-2026 New Relic, Inc. All rights reserved.
|
|
13
13
|
* SPDX-License-Identifier: Apache-2.0
|
|
14
14
|
*/
|
|
15
15
|
|
|
@@ -25,10 +25,8 @@ function isPreloadAllowed(agentInit) {
|
|
|
25
25
|
}
|
|
26
26
|
function customMasker(text, element) {
|
|
27
27
|
try {
|
|
28
|
-
if (typeof element?.type === 'string')
|
|
29
|
-
|
|
30
|
-
if (element?.dataset?.nrUnmask !== undefined || element?.classList?.contains('nr-unmask')) return text;
|
|
31
|
-
}
|
|
28
|
+
if (typeof element?.type === 'string' && element.type.toLowerCase() === 'password') return '*'.repeat(text?.length || 0);
|
|
29
|
+
if (element?.dataset?.nrUnmask !== undefined || element?.classList?.contains('nr-unmask')) return text;
|
|
32
30
|
} catch (err) {
|
|
33
31
|
// likely an element was passed to this handler that was invalid and was missing attributes or methods
|
|
34
32
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2020-
|
|
2
|
+
* Copyright 2020-2026 New Relic, Inc. All rights reserved.
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { gosNREUMOriginals } from '../../../common/window/nreum';
|
|
@@ -16,10 +16,8 @@ export function isPreloadAllowed(agentInit) {
|
|
|
16
16
|
}
|
|
17
17
|
export function customMasker(text, element) {
|
|
18
18
|
try {
|
|
19
|
-
if (typeof element?.type === 'string')
|
|
20
|
-
|
|
21
|
-
if (element?.dataset?.nrUnmask !== undefined || element?.classList?.contains('nr-unmask')) return text;
|
|
22
|
-
}
|
|
19
|
+
if (typeof element?.type === 'string' && element.type.toLowerCase() === 'password') return '*'.repeat(text?.length || 0);
|
|
20
|
+
if (element?.dataset?.nrUnmask !== undefined || element?.classList?.contains('nr-unmask')) return text;
|
|
23
21
|
} catch (err) {
|
|
24
22
|
// likely an element was passed to this handler that was invalid and was missing attributes or methods
|
|
25
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_replay/shared/utils.js"],"names":[],"mappings":"AAOA,+DAIC;AAED,0DAEC;AAED,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_replay/shared/utils.js"],"names":[],"mappings":"AAOA,+DAIC;AAED,0DAEC;AAED,2DAQC"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2020-
|
|
2
|
+
* Copyright 2020-2026 New Relic, Inc. All rights reserved.
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { gosNREUMOriginals } from '../../../common/window/nreum'
|
|
@@ -17,10 +17,8 @@ export function isPreloadAllowed (agentInit) {
|
|
|
17
17
|
|
|
18
18
|
export function customMasker (text, element) {
|
|
19
19
|
try {
|
|
20
|
-
if (typeof element?.type === 'string')
|
|
21
|
-
|
|
22
|
-
if (element?.dataset?.nrUnmask !== undefined || element?.classList?.contains('nr-unmask')) return text
|
|
23
|
-
}
|
|
20
|
+
if (typeof element?.type === 'string' && element.type.toLowerCase() === 'password') return '*'.repeat(text?.length || 0)
|
|
21
|
+
if (element?.dataset?.nrUnmask !== undefined || element?.classList?.contains('nr-unmask')) return text
|
|
24
22
|
} catch (err) {
|
|
25
23
|
// likely an element was passed to this handler that was invalid and was missing attributes or methods
|
|
26
24
|
}
|