lambda-live-debugger 0.0.116 → 0.0.118
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.
|
@@ -296,17 +296,22 @@ export default {
|
|
|
296
296
|
// Verbose logging
|
|
297
297
|
verbose: ${config.verbose},
|
|
298
298
|
// Modify Lambda function list or support custom framework
|
|
299
|
-
//getLambdas: async (foundLambdas) => {
|
|
300
|
-
//
|
|
301
|
-
//
|
|
302
|
-
//},
|
|
299
|
+
// getLambdas: async (foundLambdas) => {
|
|
300
|
+
// you can customize the list of Lambdas here or create your own
|
|
301
|
+
// return foundLambdas;
|
|
302
|
+
// },
|
|
303
303
|
} satisfies LldConfigTs;
|
|
304
304
|
`;
|
|
305
|
-
//
|
|
305
|
+
// comment lines that contains undefined or ""
|
|
306
306
|
const configContentCleaned = configContent
|
|
307
307
|
.trim()
|
|
308
308
|
.split('\n')
|
|
309
|
-
.
|
|
309
|
+
.map((l) => l.includes('undefined')
|
|
310
|
+
? ` // ${l
|
|
311
|
+
.replace('"undefined",', '')
|
|
312
|
+
.replace('undefined,', '')
|
|
313
|
+
.trim()}`
|
|
314
|
+
: l)
|
|
310
315
|
.join('\n');
|
|
311
316
|
await fs.writeFile(configFileName, configContentCleaned);
|
|
312
317
|
}
|
|
Binary file
|
package/dist/vsCode.mjs
CHANGED
|
@@ -31,7 +31,7 @@ async function getVsCodeLaunchConfig() {
|
|
|
31
31
|
Logger.verbose('Lambda Live Debugger is installed locally');
|
|
32
32
|
// check if file exists
|
|
33
33
|
try {
|
|
34
|
-
Logger.
|
|
34
|
+
Logger.verbose('Checking local folder for runtimeExecutable setting for VsCode configuration', localFolder);
|
|
35
35
|
await fs.access(localFolder, fs.constants.F_OK);
|
|
36
36
|
config.configurations[0].runtimeExecutable = localRuntimeExecutable;
|
|
37
37
|
runtimeExecutableSet = true;
|