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/README.md +16 -17
- package/dist/configuration/getConfigFromCliArgs.mjs +1 -1
- package/dist/configuration/getConfigFromWizard.mjs +2 -2
- package/dist/extension/extension.zip +0 -0
- package/dist/extension/nodejs/node_modules/interceptor.js +12 -4
- package/dist/extension/nodejs/node_modules/interceptor.js.map +2 -2
- package/dist/logger.mjs +8 -4
- package/dist/types/lldConfig.d.ts +1 -1
- package/dist/vsCode.mjs +1 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
48
|
+
args = args.map((arg) => (typeof arg === 'string' ? chalk.grey(arg) : arg));
|
|
49
|
+
console.info(...args);
|
|
46
50
|
}
|
|
47
51
|
}
|
|
48
52
|
/**
|
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;
|