()
| 121 | }; |
| 122 | |
| 123 | const getInstance = () => { |
| 124 | if (!isClient()) { |
| 125 | // @ts-ignore |
| 126 | // databus = databusWasmServer; |
| 127 | return databus; |
| 128 | } |
| 129 | if (!isInitialized()) { |
| 130 | throw new Error('databus not initialized'); |
| 131 | } |
| 132 | return databus; |
| 133 | |
| 134 | }; |
| 135 | |
| 136 | const getBrowserDatabusApiEnabled = () => { |
| 137 | if (!_global) { |
nothing calls this directly
no test coverage detected