(file)
| 111 | } |
| 112 | |
| 113 | function fetchMarked(file) { |
| 114 | return () => |
| 115 | fetch(file) |
| 116 | .then((res) => res.text()) |
| 117 | .then((text) => { |
| 118 | const g = globalThis || global; |
| 119 | g.module = { }; |
| 120 | try { |
| 121 | // eslint-disable-next-line no-new-func |
| 122 | Function(text)(); |
| 123 | } catch { |
| 124 | throw new Error(`Cannot find ${file}`); |
| 125 | } |
| 126 | const marked = g.marked || g.module.exports; |
| 127 | return marked; |
| 128 | }); |
| 129 | } |
| 130 | |
| 131 | function loadVersion(ver) { |
| 132 | let promise; |
no test coverage detected
searching dependent graphs…