embark/packages/stack
emizzle 9f7c6828a8 fix(@embark/proxy): Parse `rpcPort` from config as integer
## User reported error
i recently updated to embark 5.0 im having issues connecting to a local node each time i connect to it i get the following output from the embark console

```
Error during proxy setup: Port should be >= 0 and < 65536. Received 754510.. Use '--loglevel debug' for more detailed information.
```

This is what i have under the blockchain.js  file
```
localDev: {
    endpoint: "http://127.0.0.1:7545",
    accounts: [{
      nodeAccounts: true,
    }]
  }
```
### Problem
The port to start the proxy on is incremented by a constant value (using the `+` operator), however the port comes from the config and in the case where it is a string, the `+` operator acts as a string concatentation.

### Fix
Ensure the port from the config is always parsed to a number before attempting to add the constant proxy port offset.
2020-01-22 11:18:16 -05:00
..
api chore(prerelease): 5.1.0-nightly.1 2020-01-20 09:57:35 -06:00
authenticator chore(prerelease): 5.1.0-nightly.1 2020-01-20 09:57:35 -06:00
blockchain chore(prerelease): 5.1.0-nightly.1 2020-01-20 09:57:35 -06:00
blockchain-client chore(prerelease): 5.1.0-nightly.1 2020-01-20 09:57:35 -06:00
communication chore(prerelease): 5.1.0-nightly.1 2020-01-20 09:57:35 -06:00
compiler chore(prerelease): 5.1.0-nightly.1 2020-01-20 09:57:35 -06:00
contracts-manager chore(prerelease): 5.1.0-nightly.1 2020-01-20 09:57:35 -06:00
deployment chore(prerelease): 5.1.0-nightly.1 2020-01-20 09:57:35 -06:00
embarkjs chore(prerelease): 5.1.0-nightly.1 2020-01-20 09:57:35 -06:00
library-manager chore(prerelease): 5.1.0-nightly.1 2020-01-20 09:57:35 -06:00
namesystem chore(prerelease): 5.1.0-nightly.1 2020-01-20 09:57:35 -06:00
pipeline chore(prerelease): 5.1.0-nightly.1 2020-01-20 09:57:35 -06:00
process-logs-api-manager chore(prerelease): 5.1.0-nightly.1 2020-01-20 09:57:35 -06:00
proxy fix(@embark/proxy): Parse `rpcPort` from config as integer 2020-01-22 11:18:16 -05:00
storage chore(prerelease): 5.1.0-nightly.1 2020-01-20 09:57:35 -06:00
test-runner chore(prerelease): 5.1.0-nightly.1 2020-01-20 09:57:35 -06:00
watcher chore(prerelease): 5.1.0-nightly.1 2020-01-20 09:57:35 -06:00
webserver chore(prerelease): 5.1.0-nightly.1 2020-01-20 09:57:35 -06:00