Socket
Socket
Sign inDemoInstall

@webex/internal-plugin-metrics

Package Overview
Dependencies
Maintainers
7
Versions
1205
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webex/internal-plugin-metrics - npm Package Compare versions

Comparing version 3.0.0-beta.400 to 3.0.0-beta.401

10

dist/call-diagnostic/call-diagnostic-metrics-latencies.js

@@ -495,2 +495,12 @@ "use strict";

/**
* Total latency for all refresh captcha requests.
*/
}, {
key: "getRefreshCaptchaReqResp",
value: function getRefreshCaptchaReqResp() {
var refreshCaptchaReqResp = this.precomputedLatencies.get('internal.refresh.captcha.time');
return refreshCaptchaReqResp ? Math.floor(refreshCaptchaReqResp) : undefined;
}
/**
* Total latency for all other app api requests.

@@ -497,0 +507,0 @@ * Excludes meeting info, because it's measured separately.

1

dist/call-diagnostic/call-diagnostic-metrics.util.js

@@ -235,2 +235,3 @@ "use strict";

joinTimes.clickToInterstitial = cdl.getClickToInterstitial();
joinTimes.refreshCaptchaServiceReqResp = cdl.getRefreshCaptchaReqResp();
break;

@@ -237,0 +238,0 @@ case 'client.call.initiated':

2

dist/metrics.js

@@ -168,3 +168,3 @@ "use strict";

},
version: "3.0.0-beta.400"
version: "3.0.0-beta.401"
});

@@ -171,0 +171,0 @@ var _default = Metrics;

@@ -214,2 +214,6 @@ import { WebexPlugin } from '@webex/webex-core';

/**
* Total latency for all refresh captcha requests.
*/
getRefreshCaptchaReqResp(): number;
/**
* Total latency for all other app api requests.

@@ -216,0 +220,0 @@ * Excludes meeting info, because it's measured separately.

@@ -105,2 +105,2 @@ import { ClientEvent as RawClientEvent, Event as RawEvent, MediaQualityEvent as RawMediaQualityEvent } from '@webex/event-dictionary-ts';

}) => Promise<any>;
export type PreComputedLatencies = 'internal.client.pageJMT' | 'internal.download.time' | 'internal.click.to.interstitial' | 'internal.get.u2c.time' | 'internal.call.init.join.req' | 'internal.other.app.api.time';
export type PreComputedLatencies = 'internal.client.pageJMT' | 'internal.download.time' | 'internal.click.to.interstitial' | 'internal.refresh.captcha.time' | 'internal.get.u2c.time' | 'internal.call.init.join.req' | 'internal.other.app.api.time';
{
"name": "@webex/internal-plugin-metrics",
"version": "3.0.0-beta.400",
"version": "3.0.0-beta.401",
"description": "",

@@ -31,10 +31,10 @@ "license": "MIT",

"dependencies": {
"@webex/common": "3.0.0-beta.400",
"@webex/common-timers": "3.0.0-beta.400",
"@webex/common": "3.0.0-beta.401",
"@webex/common-timers": "3.0.0-beta.401",
"@webex/event-dictionary-ts": "^1.0.1387",
"@webex/internal-plugin-device": "3.0.0-beta.400",
"@webex/internal-plugin-metrics": "3.0.0-beta.400",
"@webex/test-helper-chai": "3.0.0-beta.400",
"@webex/test-helper-mock-webex": "3.0.0-beta.400",
"@webex/webex-core": "3.0.0-beta.400",
"@webex/internal-plugin-device": "3.0.0-beta.401",
"@webex/internal-plugin-metrics": "3.0.0-beta.401",
"@webex/test-helper-chai": "3.0.0-beta.401",
"@webex/test-helper-mock-webex": "3.0.0-beta.401",
"@webex/webex-core": "3.0.0-beta.401",
"ip-anonymize": "^0.1.0",

@@ -41,0 +41,0 @@ "lodash": "^4.17.21",

@@ -459,2 +459,11 @@ /* eslint-disable class-methods-use-this */

/**
* Total latency for all refresh captcha requests.
*/
public getRefreshCaptchaReqResp() {
const refreshCaptchaReqResp = this.precomputedLatencies.get('internal.refresh.captcha.time');
return refreshCaptchaReqResp ? Math.floor(refreshCaptchaReqResp) : undefined;
}
/**
* Total latency for all other app api requests.

@@ -461,0 +470,0 @@ * Excludes meeting info, because it's measured separately.

@@ -253,2 +253,3 @@ /* eslint-disable valid-jsdoc */

joinTimes.clickToInterstitial = cdl.getClickToInterstitial();
joinTimes.refreshCaptchaServiceReqResp = cdl.getRefreshCaptchaReqResp();
break;

@@ -255,0 +256,0 @@

@@ -168,4 +168,5 @@ import {

| 'internal.click.to.interstitial'
| 'internal.refresh.captcha.time'
| 'internal.get.u2c.time'
| 'internal.call.init.join.req'
| 'internal.other.app.api.time';

@@ -106,2 +106,5 @@ /*!

.returns(10);
webex.internal.newMetrics.callDiagnosticLatencies.getRefreshCaptchaReqResp = sinon
.stub()
.returns(10);
const promise = webex.internal.newMetrics.callDiagnosticMetrics.submitToCallDiagnostics(

@@ -123,2 +126,3 @@ //@ts-ignore

meetingInfoReqResp: 10,
refreshCaptchaServiceReqResp: 10,
},

@@ -125,0 +129,0 @@ });

@@ -209,2 +209,20 @@ import {assert} from '@webex/test-helper-chai';

describe('getRefreshCaptchaReqResp', () => {
it('returns undefined when no precomputed value available', () => {
assert.deepEqual(cdl.getRefreshCaptchaReqResp(), undefined);
});
it('returns the correct value', () => {
cdl.saveLatency('internal.refresh.captcha.time', 123);
assert.deepEqual(cdl.getRefreshCaptchaReqResp(), 123);
});
it('returns the correct whole number', () => {
cdl.saveLatency('internal.refresh.captcha.time', 321.44);
assert.deepEqual(cdl.getRefreshCaptchaReqResp(), 321);
});
});
describe('saveTimestamp', () => {

@@ -211,0 +229,0 @@ afterEach(() => {

@@ -321,2 +321,3 @@ import {assert} from '@webex/test-helper-chai';

meetingInfoReqResp: undefined,
refreshCaptchaServiceReqResp: undefined,
},

@@ -323,0 +324,0 @@ },

@@ -77,2 +77,3 @@ /*!

clickToInterstitial: undefined,
refreshCaptchaServiceReqResp: undefined,
},

@@ -79,0 +80,0 @@ name: 'client.interstitial-window.launched',

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc