genesys-cloud-streaming-client 17.2.2-develop.104 → 17.2.2-fixStringInterpolation.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.
@@ -453,7 +453,7 @@ class Client extends events_1.default {
453
453
  }
454
454
  async setupConnectionMonitoring(stanzaInstance) {
455
455
  const setupClientPinger = (message) => {
456
- const logMessage = `$(message), falling back to client-side pinging`;
456
+ const logMessage = `${message}, falling back to client-side pinging`;
457
457
  this.logger.warn(logMessage, { stanzaInstanceId: stanzaInstance.id, channelId: stanzaInstance.channelId });
458
458
  stanzaInstance.pinger = new ping_1.Ping(this, stanzaInstance);
459
459
  };
@@ -9,7 +9,6 @@ export interface Propose {
9
9
  originalRoomJid?: string;
10
10
  fromUserId?: string;
11
11
  sdpOverXmpp?: boolean;
12
- privAnswerMode?: 'Auto';
13
12
  }
14
13
  declare module 'stanza/protocol' {
15
14
  interface IQPayload {
@@ -11,7 +11,6 @@ const proposeDefinition = {
11
11
  conversationId: jxt_1.attribute('inin-cid'),
12
12
  persistentConversationId: jxt_1.attribute('inin-persistent-cid'),
13
13
  sdpOverXmpp: jxt_1.booleanAttribute('inin-sdp-over-xmpp'),
14
- privAnswerMode: jxt_1.attribute('inin-priv-answer-mode'),
15
14
  originalRoomJid: jxt_1.attribute('inin-ofrom'),
16
15
  autoAnswer: jxt_1.booleanAttribute('inin-autoanswer'),
17
16
  fromUserId: jxt_1.attribute('inin-user-id'),
@@ -125,7 +125,6 @@ export interface IPendingSession {
125
125
  conversationId: string;
126
126
  originalRoomJid?: string;
127
127
  sdpOverXmpp?: boolean;
128
- privAnswerMode?: 'Auto';
129
128
  fromUserId?: string;
130
129
  roomJid?: string;
131
130
  accepted?: boolean;
@@ -473,8 +473,7 @@ class WebrtcExtension extends events_1.EventEmitter {
473
473
  sessionType,
474
474
  roomJid,
475
475
  id: sessionId,
476
- sdpOverXmpp: msg.propose.sdpOverXmpp,
477
- privAnswerMode: msg.propose.privAnswerMode
476
+ sdpOverXmpp: msg.propose.sdpOverXmpp
478
477
  };
479
478
  this.pendingSessions[sessionId] = sessionInfo;
480
479
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "developercenter-cdn/streaming-client",
3
- "version": "17.2.2",
3
+ "version": "fixStringInterpolation",
4
4
  "ecosystem": "pc",
5
5
  "team": "Client Streaming and Signaling",
6
6
  "indexFiles": [
@@ -17,6 +17,6 @@
17
17
  "file": "v17/streaming-client.browser.js"
18
18
  }
19
19
  ],
20
- "build": "104",
21
- "buildDate": "2024-06-18T21:47:01.933187Z"
20
+ "build": "1",
21
+ "buildDate": "2024-06-18T00:18:43.549388Z"
22
22
  }
package/dist/es/client.js CHANGED
@@ -462,7 +462,7 @@ export class Client extends EventEmitter {
462
462
  setupConnectionMonitoring(stanzaInstance) {
463
463
  return __awaiter(this, void 0, void 0, function* () {
464
464
  const setupClientPinger = (message) => {
465
- const logMessage = `$(message), falling back to client-side pinging`;
465
+ const logMessage = `${message}, falling back to client-side pinging`;
466
466
  this.logger.warn(logMessage, { stanzaInstanceId: stanzaInstance.id, channelId: stanzaInstance.channelId });
467
467
  stanzaInstance.pinger = new Ping(this, stanzaInstance);
468
468
  };
@@ -20037,7 +20037,6 @@ const proposeDefinition = {
20037
20037
  conversationId: jxt.attribute('inin-cid'),
20038
20038
  persistentConversationId: jxt.attribute('inin-persistent-cid'),
20039
20039
  sdpOverXmpp: jxt.booleanAttribute('inin-sdp-over-xmpp'),
20040
- privAnswerMode: jxt.attribute('inin-priv-answer-mode'),
20041
20040
  originalRoomJid: jxt.attribute('inin-ofrom'),
20042
20041
  autoAnswer: jxt.booleanAttribute('inin-autoanswer'),
20043
20042
  fromUserId: jxt.attribute('inin-user-id'),
@@ -31073,7 +31072,7 @@ class WebrtcExtension extends EventEmitter {
31073
31072
  msg.propose.originalRoomJid = msg.propose.originalRoomJid || roomJid;
31074
31073
  sessionInfo = Object.assign(Object.assign({}, msg.propose), { toJid: msg.to, fromJid,
31075
31074
  sessionType,
31076
- roomJid, id: sessionId, sdpOverXmpp: msg.propose.sdpOverXmpp, privAnswerMode: msg.propose.privAnswerMode });
31075
+ roomJid, id: sessionId, sdpOverXmpp: msg.propose.sdpOverXmpp });
31077
31076
  this.pendingSessions[sessionId] = sessionInfo;
31078
31077
  }
31079
31078
  if (sessionInfo.accepted) {
@@ -41943,7 +41942,7 @@ class Client extends EventEmitter {
41943
41942
  setupConnectionMonitoring(stanzaInstance) {
41944
41943
  return __awaiter$5(this, void 0, void 0, function* () {
41945
41944
  const setupClientPinger = (message) => {
41946
- const logMessage = `$(message), falling back to client-side pinging`;
41945
+ const logMessage = `${message}, falling back to client-side pinging`;
41947
41946
  this.logger.warn(logMessage, { stanzaInstanceId: stanzaInstance.id, channelId: stanzaInstance.channelId });
41948
41947
  stanzaInstance.pinger = new Ping(this, stanzaInstance);
41949
41948
  };
@@ -41954,11 +41953,11 @@ class Client extends EventEmitter {
41954
41953
  stanzaInstance.serverMonitor = new ServerMonitor(this, stanzaInstance);
41955
41954
  }
41956
41955
  catch (err) {
41957
- setupClientPinger();
41956
+ setupClientPinger('failed to establish server-side pinging');
41958
41957
  }
41959
41958
  }
41960
41959
  else {
41961
- setupClientPinger();
41960
+ setupClientPinger('client configured to not use server-side pinging');
41962
41961
  }
41963
41962
  });
41964
41963
  }
@@ -9,7 +9,6 @@ export interface Propose {
9
9
  originalRoomJid?: string;
10
10
  fromUserId?: string;
11
11
  sdpOverXmpp?: boolean;
12
- privAnswerMode?: 'Auto';
13
12
  }
14
13
  declare module 'stanza/protocol' {
15
14
  interface IQPayload {
@@ -8,7 +8,6 @@ const proposeDefinition = {
8
8
  conversationId: attribute('inin-cid'),
9
9
  persistentConversationId: attribute('inin-persistent-cid'),
10
10
  sdpOverXmpp: booleanAttribute('inin-sdp-over-xmpp'),
11
- privAnswerMode: attribute('inin-priv-answer-mode'),
12
11
  originalRoomJid: attribute('inin-ofrom'),
13
12
  autoAnswer: booleanAttribute('inin-autoanswer'),
14
13
  fromUserId: attribute('inin-user-id'),
@@ -125,7 +125,6 @@ export interface IPendingSession {
125
125
  conversationId: string;
126
126
  originalRoomJid?: string;
127
127
  sdpOverXmpp?: boolean;
128
- privAnswerMode?: 'Auto';
129
128
  fromUserId?: string;
130
129
  roomJid?: string;
131
130
  accepted?: boolean;
package/dist/es/webrtc.js CHANGED
@@ -478,7 +478,7 @@ export class WebrtcExtension extends EventEmitter {
478
478
  msg.propose.originalRoomJid = msg.propose.originalRoomJid || roomJid;
479
479
  sessionInfo = Object.assign(Object.assign({}, msg.propose), { toJid: msg.to, fromJid,
480
480
  sessionType,
481
- roomJid, id: sessionId, sdpOverXmpp: msg.propose.sdpOverXmpp, privAnswerMode: msg.propose.privAnswerMode });
481
+ roomJid, id: sessionId, sdpOverXmpp: msg.propose.sdpOverXmpp });
482
482
  this.pendingSessions[sessionId] = sessionInfo;
483
483
  }
484
484
  if (sessionInfo.accepted) {
@@ -5,14 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  # [Unreleased](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.2.1...HEAD)
8
- ### Fixed
9
- * [STREAM-108](https://inindca.atlassian.net/browse/STREAM-108) Update ws to address Snyk vulnerability
8
+ ### Changed
9
+ * [no-jira] Fix string interpolation for log message and update docs for `useServerSidePings` default
10
10
 
11
11
  # [v17.2.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.2.0...v17.2.1)
12
12
  ### Changed
13
13
  * [STREAM-96](https://inindca.atlassian.net/browse/STREAM-96) - Forcefully disconnect the WebSocket when missed pings are detected to help reconnect faster
14
- ### Added
15
- * [STREAM-71](https://inindca.atlassian.net/browse/STREAM-71) - proxy the priv-answer-mode param on the propose to the pendingSession (used for internal purposes)
16
14
 
17
15
  # [v17.2.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.1.3...v17.2.0)
18
16
  ### Added
@@ -453,7 +453,7 @@ class Client extends events_1.default {
453
453
  }
454
454
  async setupConnectionMonitoring(stanzaInstance) {
455
455
  const setupClientPinger = (message) => {
456
- const logMessage = `$(message), falling back to client-side pinging`;
456
+ const logMessage = `${message}, falling back to client-side pinging`;
457
457
  this.logger.warn(logMessage, { stanzaInstanceId: stanzaInstance.id, channelId: stanzaInstance.channelId });
458
458
  stanzaInstance.pinger = new ping_1.Ping(this, stanzaInstance);
459
459
  };
@@ -9,7 +9,6 @@ export interface Propose {
9
9
  originalRoomJid?: string;
10
10
  fromUserId?: string;
11
11
  sdpOverXmpp?: boolean;
12
- privAnswerMode?: 'Auto';
13
12
  }
14
13
  declare module 'stanza/protocol' {
15
14
  interface IQPayload {
@@ -11,7 +11,6 @@ const proposeDefinition = {
11
11
  conversationId: jxt_1.attribute('inin-cid'),
12
12
  persistentConversationId: jxt_1.attribute('inin-persistent-cid'),
13
13
  sdpOverXmpp: jxt_1.booleanAttribute('inin-sdp-over-xmpp'),
14
- privAnswerMode: jxt_1.attribute('inin-priv-answer-mode'),
15
14
  originalRoomJid: jxt_1.attribute('inin-ofrom'),
16
15
  autoAnswer: jxt_1.booleanAttribute('inin-autoanswer'),
17
16
  fromUserId: jxt_1.attribute('inin-user-id'),
@@ -125,7 +125,6 @@ export interface IPendingSession {
125
125
  conversationId: string;
126
126
  originalRoomJid?: string;
127
127
  sdpOverXmpp?: boolean;
128
- privAnswerMode?: 'Auto';
129
128
  fromUserId?: string;
130
129
  roomJid?: string;
131
130
  accepted?: boolean;
@@ -473,8 +473,7 @@ class WebrtcExtension extends events_1.EventEmitter {
473
473
  sessionType,
474
474
  roomJid,
475
475
  id: sessionId,
476
- sdpOverXmpp: msg.propose.sdpOverXmpp,
477
- privAnswerMode: msg.propose.privAnswerMode
476
+ sdpOverXmpp: msg.propose.sdpOverXmpp
478
477
  };
479
478
  this.pendingSessions[sessionId] = sessionInfo;
480
479
  }