mirror of
https://github.com/nodejs/node.git
synced 2025-05-14 15:26:29 +00:00

PR-URL: https://github.com/nodejs/node/pull/43061 Reviewed-By: Ruy Adorno <ruyadorno@github.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
12 lines
230 B
JavaScript
12 lines
230 B
JavaScript
function overrideResolves (resolved, opts = {}) {
|
|
const { omitLockfileRegistryResolved = false } = opts
|
|
|
|
if (omitLockfileRegistryResolved) {
|
|
return undefined
|
|
}
|
|
|
|
return resolved
|
|
}
|
|
|
|
module.exports = { overrideResolves }
|