@wazo/sdk 0.39.0-beta.2 → 0.39.0-beta.3

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.
@@ -158,7 +158,7 @@ class Room extends Emitter {
158
158
  // Retrieve conference sources
159
159
  const contacts = await getApiClient().dird.fetchConferenceContacts(sources.items[0]);
160
160
  // Retrieve conference
161
- const conference = contacts?.find(contact => contact.numbers?.find(number => number.number === extension));
161
+ const conference = contacts?.find(contact => contact.numbers?.find(number => String(number.number) === String(extension)));
162
162
  logger.info('connected to room', {
163
163
  sourceId: conference ? conference.sourceId : null,
164
164
  name: conference ? conference.name : null,
@@ -137,7 +137,7 @@ class Room extends Emitter_1.default {
137
137
  // Retrieve conference sources
138
138
  const contacts = yield (0, getApiClient_1.default)().dird.fetchConferenceContacts(sources.items[0]);
139
139
  // Retrieve conference
140
- const conference = contacts === null || contacts === void 0 ? void 0 : contacts.find(contact => { var _a; return (_a = contact.numbers) === null || _a === void 0 ? void 0 : _a.find(number => number.number === extension); });
140
+ const conference = contacts === null || contacts === void 0 ? void 0 : contacts.find(contact => { var _a; return (_a = contact.numbers) === null || _a === void 0 ? void 0 : _a.find(number => String(number.number) === String(extension)); });
141
141
  logger.info('connected to room', {
142
142
  sourceId: conference ? conference.sourceId : null,
143
143
  name: conference ? conference.name : null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wazo/sdk",
3
- "version": "0.39.0-beta.2",
3
+ "version": "0.39.0-beta.3",
4
4
  "description": "Wazo's JavaScript Software Development Kit.",
5
5
  "main": "dist/wazo-sdk.js",
6
6
  "author": "Wazo (http://wazo.io)",
@@ -219,7 +219,7 @@ class Room extends Emitter {
219
219
  // Retrieve conference sources
220
220
  const contacts = await getApiClient().dird.fetchConferenceContacts(sources.items[0]);
221
221
  // Retrieve conference
222
- const conference = contacts?.find(contact => contact.numbers?.find(number => number.number === extension));
222
+ const conference = contacts?.find(contact => contact.numbers?.find(number => String(number.number) === String(extension)));
223
223
  logger.info('connected to room', {
224
224
  sourceId: conference ? conference.sourceId : null,
225
225
  name: conference ? conference.name : null,