* The `translate` command is used to turn a consistent argument into * appropriate values based upon the context in which it is used. It's * a convenience helper to avoid littering lookups throughout the code. * * @private * @method translate * @param {String} type Either 'npm' or 'yarn'. * @
(type, lookup)
| 80 | * @param {String} lookup Either 'manifest', 'path', or 'upgrade'. |
| 81 | */ |
| 82 | function translate(type, lookup) { |
| 83 | return lookups[lookup][type]; |
| 84 | } |
| 85 | |
| 86 | /** |
| 87 | * The PackageCache wraps all package management functions. It also |
no outgoing calls
no test coverage detected
searching dependent graphs…