()
| 132 | ); |
| 133 | |
| 134 | function getPackageBase() { |
| 135 | const imported = bindingsByPlatformAndArch[platform]?.[arch]; |
| 136 | if (!imported) { |
| 137 | throwUnsupportedError(false); |
| 138 | } |
| 139 | if ('musl' in imported && isMusl()) { |
| 140 | return imported.musl || throwUnsupportedError(true); |
| 141 | } |
| 142 | return imported.base; |
| 143 | } |
| 144 | |
| 145 | function throwUnsupportedError(isMusl) { |
| 146 | throw new Error( |
no test coverage detected
searching dependent graphs…