pro-xy-ui 0.5.6 → 0.5.8

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.
@@ -47,10 +47,12 @@ let ConnectionComponent = class ConnectionComponent {
47
47
  if (!~config.plugins.indexOf("pro-xy-ws-api")) {
48
48
  throw new Error("Config does not contain 'pro-xy-ws-api' plugin which is needed for pro-xy-ui. Not starting pro-xy.");
49
49
  }
50
- var proxyPath = path.resolve(path.dirname(process.mainModule.filename), "./node_modules/.bin/pro-xy");
51
- if (/^win/.test(process.platform)) {
52
- proxyPath += ".cmd";
53
- }
50
+ var proxyPath = require.resolve("pro-xy/bin/pro-xy");
51
+ // AR: this is not working anymore.. we probably dont suport win anymore :)
52
+ // var proxyPath = path.resolve(path.dirname((process as any).mainModule.filename), "./node_modules/.bin/pro-xy");
53
+ // if (/^win/.test(process.platform)) {
54
+ // proxyPath += ".cmd";
55
+ // }
54
56
  var errFileDesc = fs.openSync(PROXY_ERR_OUT_PATH, "w+");
55
57
  var proxyProcess = cp.spawn(proxyPath, [], { detached: true, stdio: ["ignore", "ignore", errFileDesc] });
56
58
  proxyProcess.unref();
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pro-xy-ui",
3
- "version": "0.5.6",
3
+ "version": "0.5.8",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pro-xy-ui",
3
- "version": "0.5.6",
3
+ "version": "0.5.8",
4
4
  "description": "User interface for pro-xy",
5
5
  "main": "index.html",
6
6
  "scripts": {