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.
- package/index.js +6 -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
|
-
|
|
655
|
-
|
|
656
|
+
(
|
|
657
|
+
['dev', 'staging'].find(
|
|
658
|
+
(each) => each === local.stage,
|
|
659
|
+
) || isPreviewMode()
|
|
656
660
|
)
|
|
657
661
|
? 'dev'
|
|
658
662
|
: null,
|