MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / translate

Function translate

tests/helpers/package-cache.js:82–84  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

80 * @param {String} lookup Either 'manifest', 'path', or 'upgrade'.
81 */
82function translate(type, lookup) {
83 return lookups[lookup][type];
84}
85
86/**
87 * The PackageCache wraps all package management functions. It also

Callers 5

_readManifestMethod · 0.85
_writeManifestMethod · 0.85
_removeLinksMethod · 0.85
_restoreLinksMethod · 0.85
_upgradeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…