Github user TimBarham commented on a diff in the pull request:

    https://github.com/apache/cordova-lib/pull/498#discussion_r82568768
  
    --- Diff: cordova-lib/src/plugman/registry/registry.js ---
    @@ -114,19 +113,11 @@ function initThenLoadSettingsWithRestore(promises) {
     }
     
     /**
    -* @param {Array} with one element - the plugin id or "id@version"
    +* @param {string} plugin - the plugin id or "id@version"
     * @return {Promise.<string>} Promised path to fetched package.
     */
     function fetchPlugin(plugin) {
    -    return initThenLoadSettingsWithRestore(function () {
    -        events.emit('log', 'Fetching plugin "' + plugin + '" via npm');
    -        return Q.ninvoke(npm.commands, 'cache', ['add', plugin])
    -        .then(function (info) {
    -            var unpack = require('../../util/unpack');
    -            var pluginDir = path.resolve(npm.cache, info.name, 
info.version, 'package');
    -            // Unpack the plugin that was added to the cache (CB-8154)
    -            var package_tgz = path.resolve(npm.cache, info.name, 
info.version, 'package.tgz');
    -            return unpack.unpackTgz(package_tgz, pluginDir);
    -        });
    -    });
    +    events.emit('log', 'Fetching plugin "' + plugin + '" via npm');
    +    var pluginSplit = plugin.split('@');
    +    return npmhelper.fetchPackage(pluginSplit[0], pluginSplit[1]);
    --- End diff --
    
    Hah, look at that. I didn't know @riknoll had added support for scoped 
packages. I'll switch this to use `plugin-spec-parser`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to