Skip to content
Permalink
Browse files
CB-12016: (all) Removed cordova-registry-mapper dependency
  • Loading branch information
erisu authored and dpogue committed Jul 13, 2018
1 parent 7bf9627 commit d2dca1c70ddc1cb487ceb9e4eee086262ccc30f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
@@ -25,7 +25,6 @@
"dependencies": {
"ansi": "^0.3.1",
"bplist-parser": "^0.1.0",
"cordova-registry-mapper": "^1.1.8",
"elementtree": "0.1.7",
"fs-extra": "^6.0.1",
"glob": "^7.1.2",
@@ -17,8 +17,6 @@
var fs = require('fs-extra');
var path = require('path');
var mungeutil = require('./ConfigChanges/munge-util');
var pluginMappernto = require('cordova-registry-mapper').newToOld;
var pluginMapperotn = require('cordova-registry-mapper').oldToNew;

function PlatformJson (filePath, platform, root) {
this.filePath = filePath;
@@ -47,10 +45,7 @@ PlatformJson.prototype.save = function () {
* @return {Boolean} true if plugin installed as top-level, otherwise false.
*/
PlatformJson.prototype.isPluginTopLevel = function (pluginId) {
var installedPlugins = this.root.installed_plugins;
return installedPlugins[pluginId] ||
installedPlugins[pluginMappernto[pluginId]] ||
installedPlugins[pluginMapperotn[pluginId]];
return this.root.installed_plugins[pluginId];
};

/**
@@ -61,10 +56,7 @@ PlatformJson.prototype.isPluginTopLevel = function (pluginId) {
* @return {Boolean} true if plugin installed as a dependency, otherwise false.
*/
PlatformJson.prototype.isPluginDependent = function (pluginId) {
var dependentPlugins = this.root.dependent_plugins;
return dependentPlugins[pluginId] ||
dependentPlugins[pluginMappernto[pluginId]] ||
dependentPlugins[pluginMapperotn[pluginId]];
return this.root.dependent_plugins[pluginId];
};

/**

0 comments on commit d2dca1c

Please sign in to comment.