You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2015/03/06 01:26:39 UTC
[03/27] cordova-lib git commit: fixed minor errors so npm test runs
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/ba4d2a6d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/ba4d2a6d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/ba4d2a6d
Branch: refs/heads/master
Commit: ba4d2a6d954001e16a73a6091cfe429fabf3fc8a
Parents: 4cf298c
Author: Steve Gill <st...@gmail.com>
Authored: Fri Jan 23 17:31:37 2015 -0800
Committer: Steve Gill <st...@gmail.com>
Committed: Fri Jan 23 17:31:37 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/ba4d2a6d/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 a9ce9ab..5b2a2b3 100644
--- a/cordova-lib/src/plugman/registry/registry.js
+++ b/cordova-lib/src/plugman/registry/registry.js
@@ -30,7 +30,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'),
@@ -345,7 +345,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);
@@ -356,7 +356,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