genesys-cloud-streaming-client 16.0.0-develop.50 → 16.0.1-develop.52

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.
@@ -418,7 +418,7 @@ class Client extends events_1.default {
418
418
  return Client.version;
419
419
  }
420
420
  static get version() {
421
- return '16.0.0';
421
+ return '16.0.1';
422
422
  }
423
423
  }
424
424
  exports.Client = Client;
@@ -82,7 +82,7 @@ class GenesysCloudMediaSession {
82
82
  reason: reason.condition || reason
83
83
  };
84
84
  if (!silent) {
85
- await utils_1.timeoutPromise(() => this.sendGenesysWebrtc({ method: 'terminate', params }), 2000, 'Timeout waiting for response to termination request', { sessionId: this.id, conversationId: this.conversationId, sessionType: this.sessionType }).catch((e) => this.logger.error(e));
85
+ await utils_1.timeoutPromise((resolve, reject) => this.sendGenesysWebrtc({ method: 'terminate', params }).then(resolve, reject), 2000, 'Timeout waiting for response to termination request', { sessionId: this.id, conversationId: this.conversationId, sessionType: this.sessionType }).catch((e) => this.logger.error(e));
86
86
  }
87
87
  this.onSessionTerminate(params.reason);
88
88
  }
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "developercenter-cdn/streaming-client",
3
- "version": "16.0.0",
3
+ "version": "16.0.1",
4
4
  "ecosystem": "pc",
5
5
  "team": "Genesys Client Media (WebRTC)",
6
6
  "indexFiles": [
7
7
  {
8
- "file": "/v16.0.0/streaming-client.browser.ie.js"
8
+ "file": "/v16.0.1/streaming-client.browser.ie.js"
9
9
  },
10
10
  {
11
- "file": "/v16.0.0/streaming-client.browser.js"
11
+ "file": "/v16.0.1/streaming-client.browser.js"
12
12
  },
13
13
  {
14
14
  "file": "/v16/streaming-client.browser.ie.js"
@@ -17,6 +17,6 @@
17
17
  "file": "/v16/streaming-client.browser.js"
18
18
  }
19
19
  ],
20
- "build": "50",
21
- "buildDate": "2023-05-23T16:35:27.994577Z"
20
+ "build": "52",
21
+ "buildDate": "2023-05-25T14:20:10.116798Z"
22
22
  }
package/dist/es/client.js CHANGED
@@ -428,6 +428,6 @@ export class Client extends EventEmitter {
428
428
  return Client.version;
429
429
  }
430
430
  static get version() {
431
- return '16.0.0';
431
+ return '16.0.1';
432
432
  }
433
433
  }
@@ -27954,7 +27954,7 @@ class GenesysCloudMediaSession {
27954
27954
  reason: reason.condition || reason
27955
27955
  };
27956
27956
  if (!silent) {
27957
- yield timeoutPromise$2(() => this.sendGenesysWebrtc({ method: 'terminate', params }), 2000, 'Timeout waiting for response to termination request', { sessionId: this.id, conversationId: this.conversationId, sessionType: this.sessionType }).catch((e) => this.logger.error(e));
27957
+ yield timeoutPromise$2((resolve, reject) => this.sendGenesysWebrtc({ method: 'terminate', params }).then(resolve, reject), 2000, 'Timeout waiting for response to termination request', { sessionId: this.id, conversationId: this.conversationId, sessionType: this.sessionType }).catch((e) => this.logger.error(e));
27958
27958
  }
27959
27959
  this.onSessionTerminate(params.reason);
27960
27960
  });
@@ -43953,7 +43953,7 @@ class Client extends EventEmitter {
43953
43953
  return Client.version;
43954
43954
  }
43955
43955
  static get version() {
43956
- return '16.0.0';
43956
+ return '16.0.1';
43957
43957
  }
43958
43958
  }
43959
43959
 
@@ -84,7 +84,7 @@ export class GenesysCloudMediaSession {
84
84
  reason: reason.condition || reason
85
85
  };
86
86
  if (!silent) {
87
- yield timeoutPromise(() => this.sendGenesysWebrtc({ method: 'terminate', params }), 2000, 'Timeout waiting for response to termination request', { sessionId: this.id, conversationId: this.conversationId, sessionType: this.sessionType }).catch((e) => this.logger.error(e));
87
+ yield timeoutPromise((resolve, reject) => this.sendGenesysWebrtc({ method: 'terminate', params }).then(resolve, reject), 2000, 'Timeout waiting for response to termination request', { sessionId: this.id, conversationId: this.conversationId, sessionType: this.sessionType }).catch((e) => this.logger.error(e));
88
88
  }
89
89
  this.onSessionTerminate(params.reason);
90
90
  });
@@ -4,7 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
  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
- # [Unreleased](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v15.1.7...HEAD)
7
+ # [Unreleased](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v16.0.0...HEAD)
8
+
9
+ ### Fixed
10
+ * [PCM-2114](https://inindca.atlassian.net/browse/PCM-2114) - fix false-positive timeout error for ending reinvited sessions
11
+
12
+ # [v16.0.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v15.1.7...v16.0.0)
8
13
  ### Breaking Changes
9
14
  * `session.end()` now returns a `Promise<void>` instead of `void`
10
15
 
@@ -418,7 +418,7 @@ class Client extends events_1.default {
418
418
  return Client.version;
419
419
  }
420
420
  static get version() {
421
- return '16.0.0';
421
+ return '16.0.1';
422
422
  }
423
423
  }
424
424
  exports.Client = Client;
@@ -82,7 +82,7 @@ class GenesysCloudMediaSession {
82
82
  reason: reason.condition || reason
83
83
  };
84
84
  if (!silent) {
85
- await utils_1.timeoutPromise(() => this.sendGenesysWebrtc({ method: 'terminate', params }), 2000, 'Timeout waiting for response to termination request', { sessionId: this.id, conversationId: this.conversationId, sessionType: this.sessionType }).catch((e) => this.logger.error(e));
85
+ await utils_1.timeoutPromise((resolve, reject) => this.sendGenesysWebrtc({ method: 'terminate', params }).then(resolve, reject), 2000, 'Timeout waiting for response to termination request', { sessionId: this.id, conversationId: this.conversationId, sessionType: this.sessionType }).catch((e) => this.logger.error(e));
86
86
  }
87
87
  this.onSessionTerminate(params.reason);
88
88
  }