@andrey4emk/npm-app-back-b24 0.6.12 → 0.6.14

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/bitrix24/b24.js CHANGED
@@ -32,6 +32,10 @@ async function makeAuthParams(authParamB24, secretParamB24) {
32
32
 
33
33
  export async function create(authParamB24, secretParamB24) {
34
34
  let { AuthParams, secret } = await makeAuthParams(authParamB24, secretParamB24);
35
+ // Если authParamB24.domain содержит https://, то удаляем его
36
+ if (AuthParams.domain.startsWith("https://")) {
37
+ AuthParams.domain = AuthParams.domain.replace("https://", "");
38
+ }
35
39
  return await new B24OAuth(AuthParams, secret);
36
40
  }
37
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andrey4emk/npm-app-back-b24",
3
- "version": "0.6.12",
3
+ "version": "0.6.14",
4
4
  "description": "Bitrix24 OAuth helpers for Node.js projects",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -215,7 +215,7 @@ export class Wappi {
215
215
  } else {
216
216
  // Проверяем нашли max или нет
217
217
  data.check = false;
218
- if (data.detail === "found" || data.on_max) {
218
+ if (data.detail === "found" || data.on_max || data.on_whatsapp) {
219
219
  data.check = true;
220
220
  }
221
221
  return { error: false, message: `Номер ${phone} проверен для мессенджера ${messangerType}`, data: data };