ws-process 0.4.2 → 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 +4 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -653,8 +653,10 @@ function asyncSend(msg) {
653
653
  'https://',
654
654
  [
655
655
  (user.system?.useApi2 === true || cProcess.options.useApi2 === true) ? 'api2' : 'api',
656
- ['dev', 'staging'].find(
657
- (each) => each === local.stage,
656
+ (
657
+ ['dev', 'staging'].find(
658
+ (each) => each === local.stage,
659
+ ) || isPreviewMode()
658
660
  )
659
661
  ? 'dev'
660
662
  : null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ws-process",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Process Management for Web Socket Client",
5
5
  "main": "index.js",
6
6
  "type": "module",