cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vladimir-kotikov <...@git.apache.org>
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:

    https://github.com/apache/cordova-lib/pull/425#discussion_r59347954
  
    --- Diff: cordova-lib/src/plugman/install.js ---
    @@ -90,35 +90,37 @@ module.exports = function installPlugin(platform, project_dir, id,
plugins_dir,
     // 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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


Mime
View raw message