@observertc/client-monitor-js 1.2.0 → 1.2.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/lib/Sampler.js CHANGED
@@ -280,8 +280,8 @@ class Sampler {
280
280
  const remoteInboundRtpStats = ((_a = outboundRtp.getRemoteInboundRtp()) === null || _a === void 0 ? void 0 : _a.stats) || {};
281
281
  const mediaSource = outboundRtp.getMediaSource();
282
282
  const trackId = outboundRtp.getTrackId();
283
- if (!trackId || !(0, validators_1.isValidUuid)(trackId)) {
284
- logger.debug(`TrackId ${trackId} either not a uuid or does not exist`);
283
+ if (!trackId) {
284
+ logger.debug(`TrackId ${trackId} was not provided`);
285
285
  continue;
286
286
  }
287
287
  if (outboundRtp.stats.kind === "audio") {
@@ -338,8 +338,8 @@ class Sampler {
338
338
  continue;
339
339
  }
340
340
  const trackId = inboundRtp.getTrackId();
341
- if (!trackId || !(0, validators_1.isValidUuid)(trackId)) {
342
- logger.debug(`TrackId ${trackId} either not a uuid or not exists`);
341
+ if (!trackId) {
342
+ logger.debug(`TrackId ${trackId} was not provided`);
343
343
  continue;
344
344
  }
345
345
  const remoteOutboundRtpStats = ((_a = inboundRtp.getRemoteOutboundRtp()) === null || _a === void 0 ? void 0 : _a.stats) || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@observertc/client-monitor-js",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "ObserveRTC Client Integration Javascript Library",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
package/src/Sampler.ts CHANGED
@@ -393,8 +393,8 @@ export class Sampler {
393
393
  const remoteInboundRtpStats = outboundRtp.getRemoteInboundRtp()?.stats || {};
394
394
  const mediaSource = outboundRtp.getMediaSource();
395
395
  const trackId = outboundRtp.getTrackId();
396
- if (!trackId || !isValidUuid(trackId)) {
397
- logger.debug(`TrackId ${trackId} either not a uuid or does not exist`);
396
+ if (!trackId) {
397
+ logger.debug(`TrackId ${trackId} was not provided`);
398
398
  continue;
399
399
  }
400
400
  if (outboundRtp.stats.kind === "audio") {
@@ -453,8 +453,8 @@ export class Sampler {
453
453
  continue;
454
454
  }
455
455
  const trackId = inboundRtp.getTrackId();
456
- if (!trackId || !isValidUuid(trackId)) {
457
- logger.debug(`TrackId ${trackId} either not a uuid or not exists`);
456
+ if (!trackId) {
457
+ logger.debug(`TrackId ${trackId} was not provided`);
458
458
  continue;
459
459
  }
460
460
  const remoteOutboundRtpStats = inboundRtp.getRemoteOutboundRtp()?.stats || {};