@react-native-community/cli-tools
Advanced tools
Comparing version 8.0.0 to 8.0.4
@@ -8,14 +8,6 @@ "use strict"; | ||
function _path() { | ||
const data = _interopRequireDefault(require("path")); | ||
var _findPackageDependencyDir = require("./findPackageDependencyDir"); | ||
_path = function () { | ||
return data; | ||
}; | ||
var _errors = require("./errors"); | ||
return data; | ||
} | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -25,7 +17,13 @@ * Finds a path inside `node_modules` | ||
function resolveNodeModuleDir(root, packageName) { | ||
return _path().default.dirname(require.resolve(_path().default.join(packageName, 'package.json'), { | ||
paths: [root] | ||
})); | ||
const packageDependencyDirectory = (0, _findPackageDependencyDir.findPackageDependencyDir)(packageName, { | ||
startDir: root | ||
}); | ||
if (packageDependencyDirectory === undefined) { | ||
throw new _errors.CLIError(`Node module directory for package ${packageName} was not found`); | ||
} else { | ||
return packageDependencyDirectory; | ||
} | ||
} | ||
//# sourceMappingURL=resolveNodeModuleDir.js.map |
{ | ||
"name": "@react-native-community/cli-tools", | ||
"version": "8.0.0", | ||
"version": "8.0.4", | ||
"license": "MIT", | ||
@@ -12,2 +12,3 @@ "main": "build/index.js", | ||
"chalk": "^4.1.2", | ||
"find-up": "^5.0.0", | ||
"lodash": "^4.17.15", | ||
@@ -38,3 +39,3 @@ "mime": "^2.4.1", | ||
}, | ||
"gitHead": "810b6a04821e493b39b078e56ae57c704fcc724d" | ||
"gitHead": "476cdb1cfeaef4d96261d4dea1ab4479801d450e" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
136526
78
1498
10
+ Addedfind-up@^5.0.0
+ Addedfind-up@5.0.0(transitive)
+ Addedlocate-path@6.0.0(transitive)
+ Addedp-limit@3.1.0(transitive)
+ Addedp-locate@5.0.0(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedyocto-queue@0.1.0(transitive)