Comparing version 0.9.9 to 0.9.10
@@ -5,3 +5,3 @@ { | ||
"description": "install/uninstall Cordova plugins", | ||
"version": "0.9.9", | ||
"version": "0.9.10", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -54,3 +54,3 @@ var path = require('path'), | ||
// if plugin doesnt exist, use fetch to get it. | ||
require('../plugman').fetch(id, plugins_dir, { link: false, subdir: '.', git_ref: options.git_ref }, function(err, plugin_dir) { | ||
require('../plugman').fetch(id, plugins_dir, { link: false, subdir: options.subdir, git_ref: options.git_ref }, function(err, plugin_dir) { | ||
if (err) { | ||
@@ -96,4 +96,4 @@ callback(err); | ||
} | ||
// checking engine | ||
// checking engine | ||
// will there be a case for multiple engine support? | ||
@@ -116,3 +116,3 @@ var versionPath = path.join(project_dir, 'cordova', 'version'); | ||
var engineVersion = engine.attrib["version"]; | ||
// clean only versionScript.output since semver.clean strips out | ||
// clean only versionScript.output since semver.clean strips out | ||
// the gt and lt operators | ||
@@ -124,3 +124,3 @@ if(current_version == 'dev' || semver.satisfies(current_version, engineVersion)){ | ||
if (callback) return callback(err); | ||
else throw err; | ||
else throw err; | ||
} | ||
@@ -156,3 +156,4 @@ } else { | ||
// Check for dependencies, (co)recurse to install each one | ||
var dependencies = plugin_et.findall('dependency'); | ||
var dependencies = plugin_et.findall('dependency') || []; | ||
dependencies = dependencies.concat(plugin_et.findall('./platform[@name="'+platform+'"]/dependency')); | ||
if (dependencies && dependencies.length) { | ||
@@ -179,3 +180,3 @@ require('../plugman').emit('log', 'Dependencies detected, iterating through them...'); | ||
var fetchdata = require('./util/metadata').get_fetch_metadata(plugin_dir); | ||
if (!fetchdata || !(fetchdata.source && fetchdata.source.type)) { | ||
@@ -182,0 +183,0 @@ var err = new Error('No fetch metadata found for ' + plugin_id + '. Cannot install relative dependencies.'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2689936
10479