Skip to content

Commit

Permalink
fix(@embark/utils): fix deconstruct url to return port as an integer
Browse files Browse the repository at this point in the history
(cherry picked from commit e41a1d5)
  • Loading branch information
jrainville authored and iurimatias committed Jan 16, 2020
1 parent 9aa9e6c commit 4190d5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export function deconstructUrl(endpoint) {
return {
protocol: matches[1],
host: matches[2],
port: matches[3],
port: matches[3] ? parseInt(matches[3], 10) : false,
type: matches[1] === 'ws' || matches[1] === 'wss' ? 'ws' : 'rpc'
};
}
Expand Down

0 comments on commit 4190d5e

Please sign in to comment.