lambda-live-debugger 0.0.109 → 0.0.110

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -27,19 +27,12 @@ export async function findNpmPath(dir, moduleName) {
27
27
  * @returns
28
28
  */
29
29
  async function checkModuleInPackageJson(dir, moduleName) {
30
- const packageJsonPath = path.join(dir, "package.json");
31
- const packageJson = JSON.parse(await fs.readFile(packageJsonPath, "utf8"));
32
- const dependencies = packageJson.dependencies || {};
33
- const devDependencies = packageJson.devDependencies || {};
34
- if (dependencies[moduleName] || devDependencies[moduleName]) {
35
- const modulePath = path.join(dir, "node_modules", moduleName);
36
- try {
37
- await fs.access(modulePath);
38
- }
39
- catch {
40
- return undefined;
41
- }
42
- return modulePath;
30
+ const modulePath = path.join(dir, "node_modules", moduleName);
31
+ try {
32
+ await fs.access(modulePath);
33
+ }
34
+ catch {
35
+ return undefined;
43
36
  }
44
- return undefined;
37
+ return modulePath;
45
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lambda-live-debugger",
3
- "version": "0.0.109",
3
+ "version": "0.0.110",
4
4
  "type": "module",
5
5
  "description": "Debug Lambda functions locally like it is running in the cloud",
6
6
  "repository": {