@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.
package/dist/src/index.js CHANGED
@@ -8875,7 +8875,7 @@ var chalkExports = chalk$1.exports;
8875
8875
  var chalk = /*@__PURE__*/getDefaultExportFromCjs(chalkExports);
8876
8876
 
8877
8877
  const log = (text, level, type = "debug", name) => {
8878
- let color = chalk;
8878
+ let color = chalk.dim;
8879
8879
  let logFn = console.log;
8880
8880
  if (type === "error") {
8881
8881
  color = chalk.red;
@@ -8887,10 +8887,10 @@ const log = (text, level, type = "debug", name) => {
8887
8887
  color = chalk.cyan;
8888
8888
  logFn = console.log;
8889
8889
  }
8890
- const prefix = name ? `[${chalk.bold(name)}] ` : "";
8891
- if (level === "debug" || level === "warn" && ["error", "warn"].includes(type) || level === "error" && type === "error") {
8890
+ const prefix = name ? `[${chalk.bold(name)}|${type}] ` : "";
8891
+ if (level === "debug" || level === "info" && ["info", "error", "warn"].includes(type) || level === "warn" && ["error", "warn"].includes(type) || level === "error" && type === "error") {
8892
8892
  const content = typeof text === "string" ? text : JSON.stringify(text, null, 2);
8893
- logFn(`${prefix}${color(content)}`);
8893
+ logFn(`${color(prefix)}${content}`);
8894
8894
  }
8895
8895
  };
8896
8896
  const getLogger = (level = "warn", name) => (text, type = "debug") => log(text, level, type, name);
@@ -30152,7 +30152,7 @@ const buildPluginFactory = ({
30152
30152
 
30153
30153
  var name = "@datadog/esbuild-plugin";
30154
30154
  var packageManager = "yarn@4.0.2";
30155
- var version = "2.0.2-dev-5";
30155
+ var version = "2.0.2-dev-6";
30156
30156
  var license = "MIT";
30157
30157
  var author = "Datadog";
30158
30158
  var description = "Datadog ESBuild Plugin";