lambda-live-debugger 0.0.124 → 1.0.0
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
|
package/dist/lldebugger.mjs
CHANGED
|
@@ -39,9 +39,13 @@ async function run() {
|
|
|
39
39
|
if (!Configuration.config.start && !Configuration.config.remove) {
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
let message = `Starting the debugger ${Configuration.config.observable
|
|
43
43
|
? 'in observable mode'
|
|
44
|
-
: `(ID ${Configuration.config.debuggerId})`}
|
|
44
|
+
: `(ID ${Configuration.config.debuggerId})`}...`;
|
|
45
|
+
if (Configuration.config.remove) {
|
|
46
|
+
message = `Removing Lambda Live Debugger${Configuration.config.remove === 'all' ? ' including layer' : ''}...`;
|
|
47
|
+
}
|
|
48
|
+
Logger.log(message);
|
|
45
49
|
if (Configuration.config.subfolder) {
|
|
46
50
|
// change the current working directory to the subfolder for monorepos
|
|
47
51
|
const newCurrentFolder = path.resolve(Configuration.config.subfolder);
|
|
@@ -50,7 +54,6 @@ async function run() {
|
|
|
50
54
|
}
|
|
51
55
|
await Configuration.discoverLambdas();
|
|
52
56
|
if (Configuration.config.remove) {
|
|
53
|
-
Logger.log(`Removing Lambda Live Debugger${Configuration.config.remove === 'all' ? ' including layer' : ''}...`);
|
|
54
57
|
await InfraDeploy.removeInfrastructure();
|
|
55
58
|
// await GitIgnore.removeFromGitIgnore();
|
|
56
59
|
// delete folder .lldebugger
|
|
@@ -63,6 +66,10 @@ async function run() {
|
|
|
63
66
|
Logger.log('Lambda Live Debugger removed!');
|
|
64
67
|
return;
|
|
65
68
|
}
|
|
69
|
+
if (!Configuration.getLambdas().length) {
|
|
70
|
+
Logger.error('No Lambdas found. Exiting...');
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
66
73
|
await InfraDeploy.deployInfrastructure();
|
|
67
74
|
const folders = [
|
|
68
75
|
path.resolve('.'),
|
|
@@ -41,7 +41,8 @@ async function getLambdas(config) {
|
|
|
41
41
|
if (framework) {
|
|
42
42
|
Logger.verbose(`Getting resources with '${framework.name}' framework`);
|
|
43
43
|
resources = await framework.getLambdas(config);
|
|
44
|
-
if (config.function) {
|
|
44
|
+
if (config.function && !config.remove) {
|
|
45
|
+
// if we are removing the debugger, we don't want to filter by function name
|
|
45
46
|
const functionNameFilter = config.function.trim();
|
|
46
47
|
resources = resources.filter(
|
|
47
48
|
// filter by function name, can use * as wildcard
|