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

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 ? `[${type}|${name}] ` : "";
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);
@@ -29818,8 +29818,8 @@ function getRspackPlugin(factory) {
29818
29818
  });
29819
29819
  }
29820
29820
  if (plugin.writeBundle) {
29821
- compiler.hooks.afterEmit.tap(plugin.name, () => {
29822
- plugin.writeBundle();
29821
+ compiler.hooks.afterEmit.tapPromise(plugin.name, async () => {
29822
+ await plugin.writeBundle();
29823
29823
  });
29824
29824
  }
29825
29825
  }
@@ -30060,8 +30060,8 @@ function getWebpackPlugin(factory) {
30060
30060
  });
30061
30061
  }
30062
30062
  if (plugin.writeBundle) {
30063
- compiler.hooks.afterEmit.tap(plugin.name, () => {
30064
- plugin.writeBundle();
30063
+ compiler.hooks.afterEmit.tapPromise(plugin.name, async () => {
30064
+ await plugin.writeBundle();
30065
30065
  });
30066
30066
  }
30067
30067
  }
@@ -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-7";
30134
30134
  var license = "MIT";
30135
30135
  var author = "Datadog";
30136
30136
  var description = "Datadog ESBuild Plugin";