@newrelic/browser-agent 1.320.1-rc.2 → 1.320.1-rc.4
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/common/harvest/connector.js +2 -0
- package/dist/esm/common/constants/env.cdn.js +1 -1
- package/dist/esm/common/constants/env.npm.js +1 -1
- package/dist/esm/common/harvest/connector.js +2 -0
- package/dist/types/common/harvest/connector.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/common/harvest/connector.js +2 -0
|
@@ -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.4";
|
|
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.4";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Exposes the build type of the agent
|
|
@@ -88,6 +88,8 @@ class Connector {
|
|
|
88
88
|
// Double check that there isn't a response saved (e.g. from another agent/browser tab) btwn the async time of the request and now in a race-condition.
|
|
89
89
|
const cachedResp = session.state.cachedRumResponse;
|
|
90
90
|
if (cachedResp) {
|
|
91
|
+
// Report that we've seen a race condition on updating session state
|
|
92
|
+
(0, _handle.handle)(_constants.SUPPORTABILITY_METRIC_CHANNEL, ['Session/RaceCondition/Seen'], undefined, _features.FEATURE_NAMES.metrics, this.#agentRef.ee);
|
|
91
93
|
// `cachedRumResponse` is stored flat (`{ app, ...flags }`, matching the old v1 RUM response), so re-nest it before applying.
|
|
92
94
|
const {
|
|
93
95
|
app,
|
|
@@ -82,6 +82,8 @@ export class Connector {
|
|
|
82
82
|
// Double check that there isn't a response saved (e.g. from another agent/browser tab) btwn the async time of the request and now in a race-condition.
|
|
83
83
|
const cachedResp = session.state.cachedRumResponse;
|
|
84
84
|
if (cachedResp) {
|
|
85
|
+
// Report that we've seen a race condition on updating session state
|
|
86
|
+
handle(SUPPORTABILITY_METRIC_CHANNEL, ['Session/RaceCondition/Seen'], undefined, FEATURE_NAMES.metrics, this.#agentRef.ee);
|
|
85
87
|
// `cachedRumResponse` is stored flat (`{ app, ...flags }`, matching the old v1 RUM response), so re-nest it before applying.
|
|
86
88
|
const {
|
|
87
89
|
app,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../../src/common/harvest/connector.js"],"names":[],"mappings":"AAmBA;IAKE,2BAeC;IAED,+CAiBC;;
|
|
1
|
+
{"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../../src/common/harvest/connector.js"],"names":[],"mappings":"AAmBA;IAKE,2BAeC;IAED,+CAiBC;;CA+GF"}
|
package/package.json
CHANGED
|
@@ -71,6 +71,8 @@ export class Connector {
|
|
|
71
71
|
// Double check that there isn't a response saved (e.g. from another agent/browser tab) btwn the async time of the request and now in a race-condition.
|
|
72
72
|
const cachedResp = session.state.cachedRumResponse
|
|
73
73
|
if (cachedResp) {
|
|
74
|
+
// Report that we've seen a race condition on updating session state
|
|
75
|
+
handle(SUPPORTABILITY_METRIC_CHANNEL, ['Session/RaceCondition/Seen'], undefined, FEATURE_NAMES.metrics, this.#agentRef.ee)
|
|
74
76
|
// `cachedRumResponse` is stored flat (`{ app, ...flags }`, matching the old v1 RUM response), so re-nest it before applying.
|
|
75
77
|
const { app, ...config } = cachedResp
|
|
76
78
|
this.#applyConnectResponse({ app, config })
|