(opts)
| 105 | } |
| 106 | |
| 107 | function getNotebookConfig(opts) { |
| 108 | let { width, height, headless, browserWsendpoint, token } = opts; |
| 109 | |
| 110 | if (width) width = +width; |
| 111 | if (height) height = +height; |
| 112 | |
| 113 | const config = { |
| 114 | width, |
| 115 | height, |
| 116 | headless, |
| 117 | browserWSEndpoint: browserWsendpoint, |
| 118 | }; |
| 119 | |
| 120 | if (token) config["OBSERVABLEHQ_API_KEY"] = token; |
| 121 | |
| 122 | return config; |
| 123 | } |
| 124 | |
| 125 | // read the file found at path with the given format |
| 126 | async function valueOfFile(path, format) { |
nothing calls this directly
no outgoing calls
no test coverage detected