ws-process 0.4.1 → 0.4.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.
Files changed (2) hide show
  1. package/index.js +6 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -634,6 +634,8 @@ function asyncSend(msg) {
634
634
  httpParams = undefined;
635
635
  } else if (msg.action === 'manageconfiguration') {
636
636
  url = '/c';
637
+ httpBody = { params: msg.params };
638
+ httpParams = undefined;
637
639
  } else if (msg.action === 'api-hub') {
638
640
  url = '/h';
639
641
  } else {
@@ -651,8 +653,10 @@ function asyncSend(msg) {
651
653
  'https://',
652
654
  [
653
655
  (user.system?.useApi2 === true || cProcess.options.useApi2 === true) ? 'api2' : 'api',
654
- ['dev', 'staging'].find(
655
- (each) => each === local.stage,
656
+ (
657
+ ['dev', 'staging'].find(
658
+ (each) => each === local.stage,
659
+ ) || isPreviewMode()
656
660
  )
657
661
  ? 'dev'
658
662
  : null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ws-process",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "Process Management for Web Socket Client",
5
5
  "main": "index.js",
6
6
  "type": "module",