@powerlines/engine 0.44.7 → 0.44.8
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/_internal/worker.cjs +12 -3
- package/dist/_internal/worker.mjs +12 -3
- package/dist/_internal/worker.mjs.map +1 -1
- package/dist/api.cjs +29 -14
- package/dist/api.d.cts.map +1 -1
- package/dist/api.d.mts.map +1 -1
- package/dist/api.mjs +29 -14
- package/dist/api.mjs.map +1 -1
- package/dist/index.cjs +38 -16
- package/dist/index.d.cts +5 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +5 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +38 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -4586,8 +4586,14 @@ ${formatTypes(code)}
|
|
|
4586
4586
|
};
|
|
4587
4587
|
const timer = api.context.timer("Initialization");
|
|
4588
4588
|
for (const plugin of api.context.config.plugins.flatMap((p) => (0, _stryke_convert_to_array.toArray)(p)) ?? []) await api.addPlugin(plugin);
|
|
4589
|
-
if (api.context.plugins.length === 0) api.context.warn(
|
|
4590
|
-
|
|
4589
|
+
if (api.context.plugins.length === 0) api.context.warn({
|
|
4590
|
+
meta: { category: "plugins" },
|
|
4591
|
+
message: "No Powerlines plugins were specified in the options. Please ensure this is correct, as it is generally not recommended."
|
|
4592
|
+
});
|
|
4593
|
+
else api.context.info({
|
|
4594
|
+
meta: { category: "plugins" },
|
|
4595
|
+
message: `Loaded ${api.context.plugins.length} ${(0, _stryke_string_format_title_case.titleCase)(api.context.config.framework)} plugin${api.context.plugins.length > 1 ? "s" : ""}: \n${api.context.plugins.map((plugin, index) => ` ${index + 1}. ${(0, _powerlines_core_plugin_utils_logging.colorText)(plugin.name)}`).join("\n")}`
|
|
4596
|
+
});
|
|
4591
4597
|
const pluginConfig = await api.callHook("config", {
|
|
4592
4598
|
environment: await api.context.getEnvironment(),
|
|
4593
4599
|
sequential: true,
|
|
@@ -4917,7 +4923,10 @@ ${formatTypes(code)}
|
|
|
4917
4923
|
const result = await this.#initPlugin(config);
|
|
4918
4924
|
if (!result) return;
|
|
4919
4925
|
for (const plugin of result) {
|
|
4920
|
-
this.context.debug(
|
|
4926
|
+
this.context.debug({
|
|
4927
|
+
meta: { category: "plugins" },
|
|
4928
|
+
message: `Successfully initialized the ${chalk.default.bold.cyanBright(plugin.name)} plugin`
|
|
4929
|
+
});
|
|
4921
4930
|
await this.context.addPlugin(plugin);
|
|
4922
4931
|
}
|
|
4923
4932
|
}
|
|
@@ -4553,8 +4553,14 @@ ${formatTypes(code)}
|
|
|
4553
4553
|
};
|
|
4554
4554
|
const timer = api.context.timer("Initialization");
|
|
4555
4555
|
for (const plugin of api.context.config.plugins.flatMap((p) => toArray(p)) ?? []) await api.addPlugin(plugin);
|
|
4556
|
-
if (api.context.plugins.length === 0) api.context.warn(
|
|
4557
|
-
|
|
4556
|
+
if (api.context.plugins.length === 0) api.context.warn({
|
|
4557
|
+
meta: { category: "plugins" },
|
|
4558
|
+
message: "No Powerlines plugins were specified in the options. Please ensure this is correct, as it is generally not recommended."
|
|
4559
|
+
});
|
|
4560
|
+
else api.context.info({
|
|
4561
|
+
meta: { category: "plugins" },
|
|
4562
|
+
message: `Loaded ${api.context.plugins.length} ${titleCase(api.context.config.framework)} plugin${api.context.plugins.length > 1 ? "s" : ""}: \n${api.context.plugins.map((plugin, index) => ` ${index + 1}. ${colorText(plugin.name)}`).join("\n")}`
|
|
4563
|
+
});
|
|
4558
4564
|
const pluginConfig = await api.callHook("config", {
|
|
4559
4565
|
environment: await api.context.getEnvironment(),
|
|
4560
4566
|
sequential: true,
|
|
@@ -4884,7 +4890,10 @@ ${formatTypes(code)}
|
|
|
4884
4890
|
const result = await this.#initPlugin(config);
|
|
4885
4891
|
if (!result) return;
|
|
4886
4892
|
for (const plugin of result) {
|
|
4887
|
-
this.context.debug(
|
|
4893
|
+
this.context.debug({
|
|
4894
|
+
meta: { category: "plugins" },
|
|
4895
|
+
message: `Successfully initialized the ${chalk.bold.cyanBright(plugin.name)} plugin`
|
|
4896
|
+
});
|
|
4888
4897
|
await this.context.addPlugin(plugin);
|
|
4889
4898
|
}
|
|
4890
4899
|
}
|