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.
@@ -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 ${workerData.workerId}] Received message`, data);
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 observable mode, mark the worker as processed
115
+ // if we are in Observability mode, mark the worker as processed
116
116
  lambdasProcessingObservableMode.delete(message.data.functionId);
117
117
  }
118
118
  }
@@ -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 observable mode'
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.hex(orange)(arg) : arg);
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.hex(orange)(arg) : arg);
38
+ args = args.map((arg) => (typeof arg === 'string' ? chalk.yellow(arg) : arg));
40
39
  console.warn(...args);
41
40
  }
42
41
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lambda-live-debugger",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "type": "module",
5
5
  "description": "Debug Lambda functions locally like it is running in the cloud",
6
6
  "repository": {