@datadog/esbuild-plugin 2.0.2-dev-5 → 2.0.2-dev-6

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.
@@ -8853,7 +8853,7 @@ var chalkExports = chalk$1.exports;
8853
8853
  var chalk = /*@__PURE__*/getDefaultExportFromCjs(chalkExports);
8854
8854
 
8855
8855
  const log = (text, level, type = "debug", name) => {
8856
- let color = chalk;
8856
+ let color = chalk.dim;
8857
8857
  let logFn = console.log;
8858
8858
  if (type === "error") {
8859
8859
  color = chalk.red;
@@ -8865,10 +8865,10 @@ const log = (text, level, type = "debug", name) => {
8865
8865
  color = chalk.cyan;
8866
8866
  logFn = console.log;
8867
8867
  }
8868
- const prefix = name ? `[${chalk.bold(name)}] ` : "";
8869
- if (level === "debug" || level === "warn" && ["error", "warn"].includes(type) || level === "error" && type === "error") {
8868
+ const prefix = name ? `[${chalk.bold(name)}|${type}] ` : "";
8869
+ if (level === "debug" || level === "info" && ["info", "error", "warn"].includes(type) || level === "warn" && ["error", "warn"].includes(type) || level === "error" && type === "error") {
8870
8870
  const content = typeof text === "string" ? text : JSON.stringify(text, null, 2);
8871
- logFn(`${prefix}${color(content)}`);
8871
+ logFn(`${color(prefix)}${content}`);
8872
8872
  }
8873
8873
  };
8874
8874
  const getLogger = (level = "warn", name) => (text, type = "debug") => log(text, level, type, name);
@@ -30130,7 +30130,7 @@ const buildPluginFactory = ({
30130
30130
 
30131
30131
  var name = "@datadog/esbuild-plugin";
30132
30132
  var packageManager = "yarn@4.0.2";
30133
- var version = "2.0.2-dev-5";
30133
+ var version = "2.0.2-dev-6";
30134
30134
  var license = "MIT";
30135
30135
  var author = "Datadog";
30136
30136
  var description = "Datadog ESBuild Plugin";