@observertc/observer-js 0.9.12-beta → 0.9.13-beta

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.
@@ -4,7 +4,7 @@ exports.visitClient = void 0;
4
4
  const callMetaReports_1 = require("../../common/callMetaReports");
5
5
  const samples_pb_1 = require("../../models/samples_pb");
6
6
  function visitClient(observedClient, client, reports, fetchSamples) {
7
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
7
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
8
8
  const { mediaUnitId, clientId, userId } = observedClient;
9
9
  const { callId, serviceId, roomId } = observedClient.call;
10
10
  for (const clientSample of observedClient.samples()) {
@@ -104,8 +104,8 @@ function visitClient(observedClient, client, reports, fetchSamples) {
104
104
  callId,
105
105
  clientId,
106
106
  userId,
107
- timestamp: Date.now(),
108
107
  ...callEvent,
108
+ timestamp: (_l = callEvent.timestamp) !== null && _l !== void 0 ? _l : Date.now(),
109
109
  });
110
110
  }
111
111
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@observertc/observer-js",
3
- "version": "0.9.12-beta",
3
+ "version": "0.9.13-beta",
4
4
  "description": "Server Side NodeJS Library for processing ObserveRTC Samples",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -136,8 +136,8 @@ export function visitClient(
136
136
  callId,
137
137
  clientId,
138
138
  userId,
139
- timestamp: Date.now(),
140
139
  ...callEvent,
140
+ timestamp: callEvent.timestamp ?? Date.now(),
141
141
  });
142
142
  }
143
143
  }