@datadog/webpack-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.
- package/dist/src/index.js +9 -9
- package/dist/src/index.js.map +1 -1
- package/dist/src/index.mjs +9 -9
- package/dist/src/index.mjs.map +1 -1
- package/package.json +1 -1
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 ? `[${
|
|
8891
|
-
if (level === "debug" || level === "warn" && ["error", "warn"].includes(type) || level === "error" && type === "error") {
|
|
8890
|
+
const prefix = name ? `[${type}|${name}] ` : "";
|
|
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}${
|
|
8893
|
+
logFn(`${color(prefix)}${content}`);
|
|
8894
8894
|
}
|
|
8895
8895
|
};
|
|
8896
8896
|
const getLogger = (level = "warn", name) => (text, type = "debug") => log(text, level, type, name);
|
|
@@ -29840,8 +29840,8 @@ function getRspackPlugin(factory) {
|
|
|
29840
29840
|
});
|
|
29841
29841
|
}
|
|
29842
29842
|
if (plugin.writeBundle) {
|
|
29843
|
-
compiler.hooks.afterEmit.
|
|
29844
|
-
plugin.writeBundle();
|
|
29843
|
+
compiler.hooks.afterEmit.tapPromise(plugin.name, async () => {
|
|
29844
|
+
await plugin.writeBundle();
|
|
29845
29845
|
});
|
|
29846
29846
|
}
|
|
29847
29847
|
}
|
|
@@ -30082,8 +30082,8 @@ function getWebpackPlugin(factory) {
|
|
|
30082
30082
|
});
|
|
30083
30083
|
}
|
|
30084
30084
|
if (plugin.writeBundle) {
|
|
30085
|
-
compiler.hooks.afterEmit.
|
|
30086
|
-
plugin.writeBundle();
|
|
30085
|
+
compiler.hooks.afterEmit.tapPromise(plugin.name, async () => {
|
|
30086
|
+
await plugin.writeBundle();
|
|
30087
30087
|
});
|
|
30088
30088
|
}
|
|
30089
30089
|
}
|
|
@@ -30152,7 +30152,7 @@ const buildPluginFactory = ({
|
|
|
30152
30152
|
|
|
30153
30153
|
var name = "@datadog/webpack-plugin";
|
|
30154
30154
|
var packageManager = "yarn@4.0.2";
|
|
30155
|
-
var version = "2.0.2-dev-
|
|
30155
|
+
var version = "2.0.2-dev-7";
|
|
30156
30156
|
var license = "MIT";
|
|
30157
30157
|
var author = "Datadog";
|
|
30158
30158
|
var description = "Datadog Webpack Plugin";
|