(options = {})
| 597 | } |
| 598 | |
| 599 | export function formatOptionsForEngine (options = {}) { |
| 600 | const result = {} |
| 601 | |
| 602 | Object.keys(options).forEach((key) => { |
| 603 | const kebabCaseKey = kebabCase(key) |
| 604 | if (Array.isArray(options[key])) { |
| 605 | result[kebabCaseKey] = options[key].join('\n') |
| 606 | } else { |
| 607 | result[kebabCaseKey] = `${options[key]}` |
| 608 | } |
| 609 | }) |
| 610 | |
| 611 | return result |
| 612 | } |
| 613 | |
| 614 | export function buildRpcUrl (options = {}) { |
| 615 | const { port, secret } = options |
no outgoing calls
no test coverage detected