()
| 158 | } |
| 159 | |
| 160 | async function _ensureNodeSecret() { |
| 161 | if (getHubNodeSecret()) return true; |
| 162 | try { |
| 163 | const hello = await sendHelloToHub(); |
| 164 | return !!(hello && hello.ok); |
| 165 | } catch (e) { |
| 166 | return false; |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | async function _publishBundle(gene, capsule) { |
| 171 | const nodeSecret = getHubNodeSecret(); |
no test coverage detected