@newrelic/browser-agent 1.322.0-rc.10 → 1.322.0-rc.12
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.322.0-rc.
|
|
20
|
+
const VERSION = exports.VERSION = "1.322.0-rc.12";
|
|
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.322.0-rc.
|
|
20
|
+
const VERSION = exports.VERSION = "1.322.0-rc.12";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Exposes the build type of the agent
|
|
@@ -90,6 +90,8 @@ class Connector {
|
|
|
90
90
|
if (cachedResp) {
|
|
91
91
|
// Report that we've seen a race condition on updating session state
|
|
92
92
|
(0, _handle.handle)(_constants.SUPPORTABILITY_METRIC_CHANNEL, ['Session/RaceCondition/Seen'], undefined, _features.FEATURE_NAMES.metrics, this.#agentRef.ee);
|
|
93
|
+
// The other tab/agent that wrote this cached response also wrote its own serverTimeDiff to the session around the same time. TimeKeeper was constructed before that happened, so re-check the session now to pick it up.
|
|
94
|
+
this.#agentRef.runtime.timeKeeper.processStoredDiff();
|
|
93
95
|
// `cachedRumResponse` is stored flat (`{ app, ...flags }`, matching the old v1 RUM response), so re-nest it before applying.
|
|
94
96
|
const {
|
|
95
97
|
app,
|
|
@@ -84,6 +84,8 @@ export class Connector {
|
|
|
84
84
|
if (cachedResp) {
|
|
85
85
|
// Report that we've seen a race condition on updating session state
|
|
86
86
|
handle(SUPPORTABILITY_METRIC_CHANNEL, ['Session/RaceCondition/Seen'], undefined, FEATURE_NAMES.metrics, this.#agentRef.ee);
|
|
87
|
+
// The other tab/agent that wrote this cached response also wrote its own serverTimeDiff to the session around the same time. TimeKeeper was constructed before that happened, so re-check the session now to pick it up.
|
|
88
|
+
this.#agentRef.runtime.timeKeeper.processStoredDiff();
|
|
87
89
|
// `cachedRumResponse` is stored flat (`{ app, ...flags }`, matching the old v1 RUM response), so re-nest it before applying.
|
|
88
90
|
const {
|
|
89
91
|
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;;CAiHF"}
|
package/package.json
CHANGED
|
@@ -73,6 +73,8 @@ export class Connector {
|
|
|
73
73
|
if (cachedResp) {
|
|
74
74
|
// Report that we've seen a race condition on updating session state
|
|
75
75
|
handle(SUPPORTABILITY_METRIC_CHANNEL, ['Session/RaceCondition/Seen'], undefined, FEATURE_NAMES.metrics, this.#agentRef.ee)
|
|
76
|
+
// The other tab/agent that wrote this cached response also wrote its own serverTimeDiff to the session around the same time. TimeKeeper was constructed before that happened, so re-check the session now to pick it up.
|
|
77
|
+
this.#agentRef.runtime.timeKeeper.processStoredDiff()
|
|
76
78
|
// `cachedRumResponse` is stored flat (`{ app, ...flags }`, matching the old v1 RUM response), so re-nest it before applying.
|
|
77
79
|
const { app, ...config } = cachedResp
|
|
78
80
|
this.#applyConnectResponse({ app, config })
|