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
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
|
37
|
+
return modulePath;
|
|
45
38
|
}
|