cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [04/27] cordova-lib git commit: fixed minor errors so npm test runs
Date Fri, 06 Mar 2015 00:26:40 GMT
fixed minor errors so npm test runs


Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/6e24960f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/6e24960f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/6e24960f

Branch: refs/heads/master
Commit: 6e24960f06030c8f790f4bf03777a154e8ea6c0b
Parents: f919820
Author: Steve Gill <stevengill97@gmail.com>
Authored: Fri Jan 23 17:31:37 2015 -0800
Committer: Steve Gill <stevengill97@gmail.com>
Committed: Mon Jan 26 16:59:29 2015 -0800

----------------------------------------------------------------------
 cordova-lib/src/plugman/registry/registry.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/6e24960f/cordova-lib/src/plugman/registry/registry.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/plugman/registry/registry.js b/cordova-lib/src/plugman/registry/registry.js
index f72c109..7f9ff71 100644
--- a/cordova-lib/src/plugman/registry/registry.js
+++ b/cordova-lib/src/plugman/registry/registry.js
@@ -27,7 +27,7 @@ var npm = require('npm'),
     rc = require('rc'),
     Q = require('q'),
     request = require('request'),
-    pluginMapper = require('cordova-registry-mapper');
+    pluginMapper = require('cordova-registry-mapper'),
     home = process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE,
     events = require('../../events'),
     unpack = require('../../util/unpack'),
@@ -342,7 +342,7 @@ function fetchNPM(plugin, client) {
         var re = /([\w-]*\.[\w-]*\.[\w-]*\.[\w-]*[^@])/;
         var pluginID = plugin.match(re);
         //If true, pluginID is reverse domain style
-        if(pluginID != null) { 
+        if(pluginID !== null) { 
             //grab the @VERSION from the end of the plugin string if it exists
             re = /(@.*)/;
             var versionStr = plugin.match(re);
@@ -353,7 +353,7 @@ function fetchNPM(plugin, client) {
             var packageName = pluginMapper[pluginID[0]];
             if(packageName) {
                 //if @VERSION exists, concat it to packageName
-                if(versionStr != null) {
+                if(versionStr !== null) {
                     packageName += versionStr[0];
                 }
                 events.emit('verbose', 'Converted ' + plugin + ' to ' + packageName + ' for
npm fetch');


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


Mime
View raw message