cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vladimir-kotikov <>
Subject [GitHub] cordova-lib pull request: CB-10986: Adding support for scoped npm ...
Date Tue, 12 Apr 2016 09:37:34 GMT
Github user vladimir-kotikov commented on a diff in the pull request:
    --- Diff: cordova-lib/src/plugman/install.js ---
    @@ -90,35 +90,37 @@ module.exports = function installPlugin(platform, project_dir, id,
     // Returns a promise.
     function possiblyFetch(id, plugins_dir, options) {
         // Split @Version from the plugin id if it exists.
    -    var splitVersion = id.split('@');
    +    var splitVersion = cordovaUtil.parseRegistryPluginSpec(id);
    +    var extractedId = splitVersion[0] || id;
         //Check if a mapping exists for the plugin id
         //if it does, convert id to new name id
    -    var newId = pluginMapper.oldToNew[splitVersion[0]];
    +    var newId = pluginMapper.oldToNew[extractedId];
    --- End diff --
    As above, should we pass plugin id instead of scoped id to plugin mapper?

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message