lambda-live-debugger 1.0.6 → 1.1.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.
package/README.md CHANGED
@@ -106,8 +106,8 @@ The configuration is saved to `lldebugger.config.ts`.
106
106
  -s, --stage <stage> Serverless Framework stage
107
107
  -f, --function <function name> Filter by function name. You can use * as a wildcard
108
108
  -m, --subfolder <subfolder> Monorepo subfolder
109
- -o, --observable Observable mode
110
- -i --interval <interval> Observable mode interval (default: "3000")
109
+ -o, --observable Observability mode
110
+ -i --interval <interval> Observability mode interval (default: "3000")
111
111
  --config-env <evironment> SAM environment
112
112
  --sam-config-file <file> SAM configuration file
113
113
  --sam-template-file <file> SAM template file
@@ -325,6 +325,7 @@ If you have a new feature idea, please create and issue.
325
325
  (alphabetical)
326
326
 
327
327
  - [Roger Chi](https://rogerchi.com/)
328
+ - [Sebastian Bille](https://blog.sebastianbille.com)
328
329
  - ⭐ Your name here for notable code or documentation contributions or sample projects submitted with a bug report that resulted in tool improvement.
329
330
 
330
331
  ## Disclaimer
@@ -18,8 +18,8 @@ export async function getConfigFromCliArgs(supportedFrameworks = []) {
18
18
  program.option('-s, --stage <stage>', 'Serverless Framework stage');
19
19
  program.option('-f, --function <function name>', 'Filter by function name. You can use * as a wildcard');
20
20
  program.option('-m, --subfolder <subfolder>', 'Monorepo subfolder');
21
- program.option('-o, --observable', 'Observable mode');
22
- program.option('-i --interval <interval>', 'Observable mode interval', defaultObservableInterval.toString());
21
+ program.option('-o, --observable', 'Observability mode');
22
+ program.option('-i --interval <interval>', 'Observability mode interval', defaultObservableInterval.toString());
23
23
  program.option('--config-env <evironment>', 'SAM environment');
24
24
  program.option('--sam-config-file <file>', 'SAM configuration file');
25
25
  program.option('--sam-template-file <file>', 'SAM template file');
@@ -106,7 +106,7 @@ export async function getConfigFromWizard({ configFromCliArgs, supportedFramewor
106
106
  {
107
107
  type: 'input',
108
108
  name: 'subfolder',
109
- message: 'If you are using monorepo, enter subfolder where the framework is instaled.',
109
+ message: 'If you are using monorepo, enter the subfolder where the framework is installed.',
110
110
  default: configFromCliArgs.subfolder ?? currentConfig?.subfolder,
111
111
  },
112
112
  ]);
@@ -114,12 +114,12 @@ export async function getConfigFromWizard({ configFromCliArgs, supportedFramewor
114
114
  answers.subfolder = answersSubfolder.subfolder;
115
115
  process.chdir(answers.subfolder);
116
116
  }
117
- // do you want to use observable mode?
117
+ // do you want to use Observability mode?
118
118
  const answersObservable = await inquirer.prompt([
119
119
  {
120
120
  type: 'confirm',
121
121
  name: 'observable',
122
- message: 'Do you want to use observable mode, which just sends events to the debugger and do not use the respose?',
122
+ message: 'Do you want to use Observability mode, which just sends events to the debugger and does not use the response?',
123
123
  default: !!(configFromCliArgs.observable !== undefined
124
124
  ? configFromCliArgs.observable
125
125
  : currentConfig?.observable),
@@ -131,7 +131,7 @@ export async function getConfigFromWizard({ configFromCliArgs, supportedFramewor
131
131
  {
132
132
  type: 'number',
133
133
  name: 'interval',
134
- message: `Would you like to enter observable mode interval at which events are sent to the debugger? Default is ${defaultObservableInterval}`,
134
+ message: `Would you like to enter Observability mode interval at which events are sent to the debugger? Default is ${defaultObservableInterval}`,
135
135
  default: configFromCliArgs.observable !== undefined
136
136
  ? configFromCliArgs.observable
137
137
  : currentConfig?.interval !== undefined
@@ -2,7 +2,7 @@
2
2
  export const outputFolder = '.lldebugger';
3
3
  // we drop compiled files in this folder
4
4
  export const assetsFolder = `${outputFolder}/assets`;
5
- // the period in which we receive events in observable mode
5
+ // the period in which we receive events in Observability mode
6
6
  export const defaultObservableInterval = 3000;
7
7
  // the default name of the configuration file
8
8
  export const configFileDefaultName = 'lldebugger.config.ts';
Binary file
@@ -53617,7 +53617,6 @@ var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
53617
53617
  var source_default = chalk;
53618
53618
 
53619
53619
  // ../logger.ts
53620
- var orange = "#D24E01";
53621
53620
  var verboseEnabled = false;
53622
53621
  function log(...args) {
53623
53622
  args = args.map((arg) => {
@@ -53629,9 +53628,7 @@ function log(...args) {
53629
53628
  console.log(...args);
53630
53629
  }
53631
53630
  function important(...args) {
53632
- args = args.map(
53633
- (arg) => typeof arg === "string" ? source_default.hex(orange)(arg) : arg
53634
- );
53631
+ args = args.map((arg) => typeof arg === "string" ? source_default.yellow(arg) : arg);
53635
53632
  console.log(...args);
53636
53633
  }
53637
53634
  function error(...args) {
@@ -53639,9 +53636,7 @@ function error(...args) {
53639
53636
  console.error(...args);
53640
53637
  }
53641
53638
  function warn(...args) {
53642
- args = args.map(
53643
- (arg) => typeof arg === "string" ? source_default.hex(orange)(arg) : arg
53644
- );
53639
+ args = args.map((arg) => typeof arg === "string" ? source_default.yellow(arg) : arg);
53645
53640
  console.warn(...args);
53646
53641
  }
53647
53642
  function verbose(...args) {