@slavmak2486/bx24ts 1.1.0 → 1.1.2

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/base/BX24.ts CHANGED
@@ -299,7 +299,7 @@ export abstract class baseBX24{
299
299
  let cnt=0;
300
300
 
301
301
  for(const idx in cmd){
302
- let method = "", params = null;
302
+ let method:string|undefined = "", params = null;
303
303
  if(Array.isArray(cmd[idx])){
304
304
  method = __get(cmd[idx], 0, undefined); params = __get(cmd[idx], 1, {});
305
305
  }
@@ -311,7 +311,7 @@ export abstract class baseBX24{
311
311
  if(method)
312
312
  {
313
313
  cnt++;
314
- comands[idx] = `${method}?${this.getHttpString(params)}`;
314
+ comands[idx] = `${method}?${encodeURIComponent(this.getHttpString(params))}`;
315
315
  }
316
316
  }
317
317
 
package/dist/base/BX24.js CHANGED
@@ -258,7 +258,7 @@ class baseBX24 {
258
258
  }
259
259
  if (method) {
260
260
  cnt++;
261
- comands[idx] = `${method}?${this.getHttpString(params)}`;
261
+ comands[idx] = `${method}?${encodeURIComponent(this.getHttpString(params))}`;
262
262
  }
263
263
  }
264
264
  if (cnt > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slavmak2486/bx24ts",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Library for bitrix24",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",