@statsig/cli-session-replay-node 3.24.3 → 3.25.0-beta.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statsig/cli-session-replay-node",
3
- "version": "3.24.3",
3
+ "version": "3.25.0-beta.1",
4
4
  "license": "ISC",
5
5
  "homepage": "https://github.com/statsig-io/js-client-monorepo",
6
6
  "repository": {
@@ -9,7 +9,7 @@
9
9
  "directory": "packages/cli-session-replay-node"
10
10
  },
11
11
  "dependencies": {
12
- "@statsig/client-core": "3.24.3",
12
+ "@statsig/client-core": "3.25.0-beta.1",
13
13
  "intercept-stdout": "^0.1.2"
14
14
  },
15
15
  "type": "commonjs",
@@ -152,7 +152,11 @@ class CliRecording {
152
152
  this._adapter.stop();
153
153
  (_a = this._unsubscribe) === null || _a === void 0 ? void 0 : _a.call(this);
154
154
  this._unsubscribe = undefined;
155
- client_core_1.StatsigMetadataProvider.add({ isRecordingSession: 'false' });
155
+ const handler = () => {
156
+ client_core_1.StatsigMetadataProvider.add({ isRecordingSession: 'false' });
157
+ this._client.off('logs_flushed', handler);
158
+ };
159
+ this._client.$on('logs_flushed', handler);
156
160
  CliRecording._currentRecording = undefined;
157
161
  }
158
162
  }