@bitrix24/b24jssdk 0.4.6 → 0.4.9

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @version @bitrix24/b24jssdk v0.4.6
2
+ * @version @bitrix24/b24jssdk v0.4.9
3
3
  * @copyright (c) 2025 Bitrix24
4
4
  * @licence MIT
5
5
  * @links https://github.com/bitrix24/b24jssdk - GitHub
@@ -1683,7 +1683,7 @@ class Http {
1683
1683
  #clientSideWarningMessage = "";
1684
1684
  constructor(baseURL, authActions, options) {
1685
1685
  const defaultHeaders = {
1686
- // 'X-Sdk': 'b24-js-sdk-v-0.4.6'
1686
+ // 'X-Sdk': 'b24-js-sdk-v-0.4.9'
1687
1687
  };
1688
1688
  this.#clientAxios = axios.create({
1689
1689
  baseURL,
@@ -2113,7 +2113,7 @@ class Http {
2113
2113
  const baseUrl = `${encodeURIComponent(method)}.json`;
2114
2114
  const queryParams = new URLSearchParams({
2115
2115
  [this.#requestIdGenerator.getQueryStringParameterName()]: this.#requestIdGenerator.getRequestId(),
2116
- [this.#requestIdGenerator.getQueryStringSdkParameterName()]: "0.4.6",
2116
+ [this.#requestIdGenerator.getQueryStringSdkParameterName()]: "0.4.9",
2117
2117
  [this.#requestIdGenerator.getQueryStringSdkTypeParameterName()]: "b24-js-sdk"
2118
2118
  });
2119
2119
  return `${baseUrl}?${queryParams.toString()}`;
@@ -3386,8 +3386,10 @@ class MessageManager {
3386
3386
  };
3387
3387
  } else {
3388
3388
  cmd = command.toString();
3389
- if (params?.isRawValue !== true) {
3389
+ if (params?.isRawValue !== true && paramsSend) {
3390
3390
  paramsSend = JSON.stringify(paramsSend);
3391
+ } else if (params?.isRawValue === true && paramsSend && Type.isPlainObject(paramsSend) && paramsSend["value"]) {
3392
+ paramsSend = paramsSend["value"];
3391
3393
  }
3392
3394
  const listParams = [
3393
3395
  paramsSend || "",