MCPcopy
hub / github.com/bower/bower / resolveUrlNames

Function resolveUrlNames

lib/core/Project.js:263–276  ·  view source on GitHub ↗
(names, flattened)

Source from the content-addressed store, hash-verified

261};
262
263function resolveUrlNames(names, flattened) {
264 for (var i = 0; i < names.length; i++)
265 if (!flattened[names[i]]) {
266 var url = names[i].trim().replace(/\/$/, '');
267 var packName;
268 for (packName in flattened)
269 if (!!flattened[packName].source)
270 if (
271 url ==
272 flattened[packName].source.trim().replace(/\/$/, '')
273 )
274 names[i] = packName;
275 }
276}
277
278Project.prototype.uninstall = function(names, options) {
279 var that = this;

Callers 1

Project.jsFile · 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…