cgserver 6.4.12 → 6.4.13

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.
@@ -573,13 +573,13 @@ class core {
573
573
  let rs = undefined;
574
574
  if (core.isAsyncFunc(func)) {
575
575
  if (thisArg) {
576
- rs = await func.call(thisArg, params).catch((reason) => {
576
+ rs = await func.call(thisArg, ...params).catch((reason) => {
577
577
  Log_1.GLog.error(reason);
578
578
  rs = { errcode: { id: 1008611, des: "failed" } };
579
579
  });
580
580
  }
581
581
  else {
582
- rs = await func(params).catch((reason) => {
582
+ rs = await func(...params).catch((reason) => {
583
583
  Log_1.GLog.error(reason);
584
584
  rs = { errcode: { id: 1008612, des: "failed" } };
585
585
  });
@@ -587,10 +587,10 @@ class core {
587
587
  }
588
588
  else {
589
589
  if (thisArg) {
590
- rs = func.call(thisArg, params);
590
+ rs = func.call(thisArg, ...params);
591
591
  }
592
592
  else {
593
- rs = func(params);
593
+ rs = func(...params);
594
594
  }
595
595
  }
596
596
  return rs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cgserver",
3
- "version": "6.4.12",
3
+ "version": "6.4.13",
4
4
  "author": "trojan",
5
5
  "type": "commonjs",
6
6
  "description": "free for all.Websocket or Http",