lambda-live-debugger 1.0.6 → 1.0.7
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.
- package/README.md +3 -2
- package/dist/configuration/getConfigFromCliArgs.mjs +2 -2
- package/dist/configuration/getConfigFromWizard.mjs +4 -4
- package/dist/constants.mjs +1 -1
- package/dist/extension/extension.zip +0 -0
- package/dist/extension/nodejs/node_modules/interceptor.js +2 -7
- package/dist/extension/nodejs/node_modules/interceptor.js.map +2 -2
- package/dist/frameworks/cdkFramework.mjs +1 -1
- package/dist/frameworks/cdkFrameworkWorker.mjs +1 -1
- package/dist/lambdaConnection.mjs +1 -1
- package/dist/lldebugger.mjs +1 -2
- package/dist/logger.mjs +2 -3
- package/package.json +1 -1
|
@@ -390,7 +390,7 @@ export class CdkFramework {
|
|
|
390
390
|
const contextFromLldConfig = config.context?.reduce((acc, arg) => {
|
|
391
391
|
const [key, value] = arg.split('=');
|
|
392
392
|
if (key && value) {
|
|
393
|
-
acc[key] = value;
|
|
393
|
+
acc[key.trim()] = value.trim();
|
|
394
394
|
}
|
|
395
395
|
return acc;
|
|
396
396
|
}, {});
|
|
@@ -11,7 +11,7 @@ parentPort.on('message', async (data) => {
|
|
|
11
11
|
// this is global variable to store the data from the CDK code once it is executed
|
|
12
12
|
global.lambdas = [];
|
|
13
13
|
|
|
14
|
-
Logger.verbose(`[Worker
|
|
14
|
+
Logger.verbose(`[Worker] Received message`, data);
|
|
15
15
|
|
|
16
16
|
// execute code to get the data into global.lambdas
|
|
17
17
|
await import(data.compileOutput);
|
|
@@ -112,7 +112,7 @@ async function onMessageFromLambda(message) {
|
|
|
112
112
|
await ioTServiceConnection.publish(payload, `${topic}/${message.data.workerId}`);
|
|
113
113
|
}
|
|
114
114
|
else {
|
|
115
|
-
// if we are in
|
|
115
|
+
// if we are in Observability mode, mark the worker as processed
|
|
116
116
|
lambdasProcessingObservableMode.delete(message.data.functionId);
|
|
117
117
|
}
|
|
118
118
|
}
|
package/dist/lldebugger.mjs
CHANGED
|
@@ -22,7 +22,6 @@ import { LambdaConnection } from './lambdaConnection.mjs';
|
|
|
22
22
|
async function run() {
|
|
23
23
|
const version = await getVersion();
|
|
24
24
|
Logger.log(`Welcome to Lambda Live Debugger 🐞 version ${version}.`);
|
|
25
|
-
Logger.important('To keep the project moving forward, please fill out the feedback form at https://forms.gle/v6ekZtuB45Rv3EyW9. Your input is greatly appreciated!');
|
|
26
25
|
await Configuration.readConfig();
|
|
27
26
|
Logger.setVerbose(Configuration.config.verbose === true);
|
|
28
27
|
Logger.verbose(`Parameters: \n${Object.entries(Configuration.config)
|
|
@@ -40,7 +39,7 @@ async function run() {
|
|
|
40
39
|
return;
|
|
41
40
|
}
|
|
42
41
|
let message = `Starting the debugger ${Configuration.config.observable
|
|
43
|
-
? 'in
|
|
42
|
+
? 'in Observability mode'
|
|
44
43
|
: `(ID ${Configuration.config.debuggerId})`}...`;
|
|
45
44
|
if (Configuration.config.remove) {
|
|
46
45
|
message = `Removing Lambda Live Debugger${Configuration.config.remove === 'all' ? ' including layer' : ''}...`;
|
package/dist/logger.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
|
-
const orange = '#D24E01';
|
|
3
2
|
let verboseEnabled = false;
|
|
4
3
|
/**
|
|
5
4
|
* Log a message
|
|
@@ -20,7 +19,7 @@ function log(...args) {
|
|
|
20
19
|
* @param args The arguments to log
|
|
21
20
|
*/
|
|
22
21
|
function important(...args) {
|
|
23
|
-
args = args.map((arg) => typeof arg === 'string' ? chalk.
|
|
22
|
+
args = args.map((arg) => (typeof arg === 'string' ? chalk.yellow(arg) : arg));
|
|
24
23
|
console.log(...args);
|
|
25
24
|
}
|
|
26
25
|
/**
|
|
@@ -36,7 +35,7 @@ function error(...args) {
|
|
|
36
35
|
* @param args The arguments to log
|
|
37
36
|
*/
|
|
38
37
|
function warn(...args) {
|
|
39
|
-
args = args.map((arg) => typeof arg === 'string' ? chalk.
|
|
38
|
+
args = args.map((arg) => (typeof arg === 'string' ? chalk.yellow(arg) : arg));
|
|
40
39
|
console.warn(...args);
|
|
41
40
|
}
|
|
42
41
|
/**
|