@vpalmisano/webrtcperf 4.8.4 → 4.8.6

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": "@vpalmisano/webrtcperf",
3
- "version": "4.8.4",
3
+ "version": "4.8.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/vpalmisano/webrtcperf.git"
package/src/stats.ts CHANGED
@@ -456,7 +456,7 @@ export class Stats extends events.EventEmitter {
456
456
  this.showPageLog = !!showPageLog
457
457
  this.statsInterval = statsInterval || 10
458
458
  this.rtcStatsTimeout = Math.max(rtcStatsTimeout, this.statsInterval)
459
- if (customMetrics.trim()) {
459
+ if (customMetrics) {
460
460
  this.customMetrics = json5.parse(customMetrics)
461
461
  log.debug(`using customMetrics: ${JSON.stringify(this.customMetrics, undefined, 2)}`)
462
462
  }
package/src/utils.ts CHANGED
@@ -42,6 +42,7 @@ const log = logger('webrtcperf:utils')
42
42
  */
43
43
  export function resolvePackagePath(relativePath: string): string {
44
44
  for (const d of [
45
+ process.cwd(),
45
46
  path.dirname(__filename),
46
47
  __dirname,
47
48
  __dirname + '/..',