* Returns an error object indicating that the specified subpath was not exported by the package. * @param {string} subpath - The subpath that was not exported. * @param {URL} packageJSONUrl - The URL of the package.json file. * @param {string | URL | undefined} [base] - The base URL to use for re
(subpath, packageJSONUrl, base)
| 312 | * @returns {ERR_PACKAGE_PATH_NOT_EXPORTED} - The error object. |
| 313 | */ |
| 314 | function exportsNotFound(subpath, packageJSONUrl, base) { |
| 315 | return new ERR_PACKAGE_PATH_NOT_EXPORTED( |
| 316 | fileURLToPath(new URL('.', packageJSONUrl)), subpath, |
| 317 | base && fileURLToPath(base)); |
| 318 | } |
| 319 | |
| 320 | /** |
| 321 | * Throws an error indicating that the given request is not a valid subpath match for the specified pattern. |
no test coverage detected
searching dependent graphs…