lambda-live-debugger 0.0.115 → 0.0.117

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/dist/logger.mjs CHANGED
@@ -20,21 +20,24 @@ function log(...args) {
20
20
  * @param args The arguments to log
21
21
  */
22
22
  function important(...args) {
23
- console.log(chalk.hex(orange)(...args));
23
+ args = args.map((arg) => typeof arg === 'string' ? chalk.hex(orange)(arg) : arg);
24
+ console.log(...args);
24
25
  }
25
26
  /**
26
27
  * Log an error message in red
27
28
  * @param args The arguments to log
28
29
  */
29
30
  function error(...args) {
30
- console.error(chalk.red(...args));
31
+ args = args.map((arg) => (typeof arg === 'string' ? chalk.red(arg) : arg));
32
+ console.error(...args);
31
33
  }
32
34
  /**
33
35
  * Log a warning message in orange
34
36
  * @param args The arguments to log
35
37
  */
36
38
  function warn(...args) {
37
- console.warn(chalk.hex(orange)(...args));
39
+ args = args.map((arg) => typeof arg === 'string' ? chalk.hex(orange)(arg) : arg);
40
+ console.warn(...args);
38
41
  }
39
42
  /**
40
43
  * Log a verbose message if verbose is enabled. Log the message in grey.
@@ -42,7 +45,8 @@ function warn(...args) {
42
45
  */
43
46
  function verbose(...args) {
44
47
  if (verboseEnabled) {
45
- console.info(chalk.grey(...args));
48
+ args = args.map((arg) => (typeof arg === 'string' ? chalk.grey(arg) : arg));
49
+ console.info(...args);
46
50
  }
47
51
  }
48
52
  /**
@@ -2,7 +2,7 @@ import { AwsConfiguration } from './awsConfiguration.js';
2
2
  import { LambdaResource } from './resourcesDiscovery.js';
3
3
  export type LldConfigBase = {
4
4
  /**
5
- * Verbose logs
5
+ * Verbose logging
6
6
  * @default false
7
7
  */
8
8
  verbose?: boolean;
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.log('Checking local folder for runtimeExecutable setting for VsCode configuration', localFolder);
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lambda-live-debugger",
3
- "version": "0.0.115",
3
+ "version": "0.0.117",
4
4
  "type": "module",
5
5
  "description": "Debug Lambda functions locally like it is running in the cloud",
6
6
  "repository": {