* @param {URL} url * @param {{parentURL: string}} context * @returns {Promise | string | undefined} only works when enabled
(url, context)
| 255 | * @returns {Promise<string> | string | undefined} only works when enabled |
| 256 | */ |
| 257 | function defaultGetFormat(url, context) { |
| 258 | const protocol = url.protocol; |
| 259 | if (!ObjectPrototypeHasOwnProperty(protocolHandlers, protocol)) { |
| 260 | return null; |
| 261 | } |
| 262 | return protocolHandlers[protocol](url, context, false); |
| 263 | } |
| 264 | |
| 265 | module.exports = { |
| 266 | defaultGetFormat, |
no outgoing calls
no test coverage detected
searching dependent graphs…