@newrelic/browser-agent 1.302.0-rc.4 → 1.302.0-rc.6

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.
@@ -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.302.0-rc.4";
20
+ const VERSION = exports.VERSION = "1.302.0-rc.6";
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.302.0-rc.4";
20
+ const VERSION = exports.VERSION = "1.302.0-rc.6";
21
21
 
22
22
  /**
23
23
  * Exposes the build type of the agent
@@ -104,8 +104,7 @@ class Aggregate extends _aggregateBase.AggregateBase {
104
104
  common: {
105
105
  /** Attributes in the `common` section are added to `all` logs generated in the payload */
106
106
  attributes: {
107
- ...this.agentRef.info.jsAttributes,
108
- // user-provided custom attributes
107
+ ...(0, _traverse.applyFnToProps)(this.agentRef.info.jsAttributes, this.obfuscator.obfuscateString.bind(this.obfuscator), 'string'),
109
108
  ...(this.harvestEndpointVersion === 1 && {
110
109
  'entity.guid': this.agentRef.runtime.appMetadata.agents[0].entityGuid,
111
110
  appId: this.agentRef.info.applicationID
@@ -11,7 +11,7 @@
11
11
  /**
12
12
  * Exposes the version of the agent
13
13
  */
14
- export const VERSION = "1.302.0-rc.4";
14
+ export const VERSION = "1.302.0-rc.6";
15
15
 
16
16
  /**
17
17
  * Exposes the build type of the agent
@@ -11,7 +11,7 @@
11
11
  /**
12
12
  * Exposes the version of the agent
13
13
  */
14
- export const VERSION = "1.302.0-rc.4";
14
+ export const VERSION = "1.302.0-rc.6";
15
15
 
16
16
  /**
17
17
  * Exposes the build type of the agent
@@ -97,8 +97,7 @@ export class Aggregate extends AggregateBase {
97
97
  common: {
98
98
  /** Attributes in the `common` section are added to `all` logs generated in the payload */
99
99
  attributes: {
100
- ...this.agentRef.info.jsAttributes,
101
- // user-provided custom attributes
100
+ ...applyFnToProps(this.agentRef.info.jsAttributes, this.obfuscator.obfuscateString.bind(this.obfuscator), 'string'),
102
101
  ...(this.harvestEndpointVersion === 1 && {
103
102
  'entity.guid': this.agentRef.runtime.appMetadata.agents[0].entityGuid,
104
103
  appId: this.agentRef.info.applicationID
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newrelic/browser-agent",
3
- "version": "1.302.0-rc.4",
3
+ "version": "1.302.0-rc.6",
4
4
  "private": false,
5
5
  "author": "New Relic Browser Agent Team <browser-agent@newrelic.com>",
6
6
  "description": "New Relic Browser Agent",
@@ -116,7 +116,7 @@ export class Aggregate extends AggregateBase {
116
116
  common: {
117
117
  /** Attributes in the `common` section are added to `all` logs generated in the payload */
118
118
  attributes: {
119
- ...this.agentRef.info.jsAttributes, // user-provided custom attributes
119
+ ...(applyFnToProps(this.agentRef.info.jsAttributes, this.obfuscator.obfuscateString.bind(this.obfuscator), 'string')),
120
120
  ...(this.harvestEndpointVersion === 1 && {
121
121
  'entity.guid': this.agentRef.runtime.appMetadata.agents[0].entityGuid,
122
122
  appId: this.agentRef.info.applicationID