@powerlines/engine 0.46.1 → 0.46.3

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.
@@ -1940,7 +1940,7 @@ var PowerlinesContext = class PowerlinesContext extends require_base_context.Pow
1940
1940
  * @returns A promise that resolves when the inline configuration values have been set.
1941
1941
  */
1942
1942
  async setInlineConfig(config) {
1943
- this.logger.debug({
1943
+ this.logger.trace({
1944
1944
  meta: { category: "config" },
1945
1945
  message: `Updating inline configuration object: \n${this.logConfig(config)}`
1946
1946
  });
@@ -1954,7 +1954,7 @@ var PowerlinesContext = class PowerlinesContext extends require_base_context.Pow
1954
1954
  * @returns A promise that resolves when the plugin configuration values have been set.
1955
1955
  */
1956
1956
  async setPluginConfig(config) {
1957
- this.logger.debug({
1957
+ this.logger.trace({
1958
1958
  meta: { category: "config" },
1959
1959
  message: `Updating plugin configuration object: \n${this.logConfig(config)}`
1960
1960
  });
@@ -1971,12 +1971,17 @@ var PowerlinesContext = class PowerlinesContext extends require_base_context.Pow
1971
1971
  mode: this.initialOptions.mode,
1972
1972
  framework: this.initialOptions.framework,
1973
1973
  initialOptions: this.initialOptions,
1974
+ logLevel: this.initialOptions.logLevel,
1974
1975
  options: this.options,
1975
1976
  inlineConfig: this.inlineConfig,
1976
1977
  userConfig: this.userConfig,
1977
1978
  initialConfig: this.initialConfig,
1978
1979
  pluginConfig: this.pluginConfig
1979
- }, getConfigProps(this.overriddenConfig), (0, _stryke_helpers_omit.omit)(this.options, ["mode", "framework"]), getConfigProps(this.inlineConfig), getConfigProps(this.userConfig), getConfigProps(this.initialConfig), getConfigProps(this.pluginConfig), {
1980
+ }, getConfigProps(this.overriddenConfig), (0, _stryke_helpers_omit.omit)(this.options, [
1981
+ "mode",
1982
+ "framework",
1983
+ "logLevel"
1984
+ ]), getConfigProps(this.inlineConfig), getConfigProps(this.userConfig), getConfigProps(this.initialConfig), getConfigProps(this.pluginConfig), {
1980
1985
  version: this.packageJson?.version,
1981
1986
  description: this.packageJson?.description
1982
1987
  }, {
@@ -1991,7 +1996,7 @@ var PowerlinesContext = class PowerlinesContext extends require_base_context.Pow
1991
1996
  * @returns A promise that resolves when the user configuration values have been set.
1992
1997
  */
1993
1998
  async setUserConfig(config) {
1994
- this.logger.debug({
1999
+ this.logger.trace({
1995
2000
  meta: { category: "config" },
1996
2001
  message: `Updating user configuration object: \n${this.logConfig(config)}`
1997
2002
  });
@@ -2067,6 +2072,7 @@ var PowerlinesContext = class PowerlinesContext extends require_base_context.Pow
2067
2072
  if (!mergedConfig.logLevel) if (mergedConfig.mode === "development") mergedConfig.logLevel = _powerlines_core_constants.DEFAULT_DEVELOPMENT_LOG_LEVEL;
2068
2073
  else if (mergedConfig.mode === "test") mergedConfig.logLevel = _powerlines_core_constants.DEFAULT_TEST_LOG_LEVEL;
2069
2074
  else mergedConfig.logLevel = _powerlines_core_constants.DEFAULT_PRODUCTION_LOG_LEVEL;
2075
+ mergedConfig.logLevel = (0, _powerlines_core_plugin_utils.resolveLogLevel)(mergedConfig.logLevel);
2070
2076
  if (mergedConfig.tsconfig) mergedConfig.tsconfig = (0, _stryke_path_replace.replacePath)((0, _powerlines_core_plugin_utils.replacePathTokens)(this, mergedConfig.tsconfig), mergedConfig.cwd);
2071
2077
  else mergedConfig.tsconfig = require_tsconfig.getTsconfigFilePath(mergedConfig.cwd, mergedConfig.root);
2072
2078
  mergedConfig.output.format = (0, _stryke_helpers_get_unique.getUnique)((0, _stryke_convert_to_array.toArray)(mergedConfig.output?.format ?? (mergedConfig.projectType === "library" ? ["cjs", "esm"] : ["esm"])));
@@ -2465,7 +2471,7 @@ var PowerlinesEnvironmentContext = class PowerlinesEnvironmentContext extends Po
2465
2471
  * @returns A promise that resolves when the environment configuration values have been set.
2466
2472
  */
2467
2473
  async setEnvironmentConfig(config) {
2468
- this.logger.debug({
2474
+ this.logger.trace({
2469
2475
  meta: { category: "config" },
2470
2476
  message: `Updating environment configuration object: \n${this.logConfig(config)}`
2471
2477
  });
@@ -2566,6 +2572,7 @@ var PowerlinesEnvironmentContext = class PowerlinesEnvironmentContext extends Po
2566
2572
  mergeConfig() {
2567
2573
  return (0, _powerlines_core_plugin_utils.mergeConfig)({
2568
2574
  ...(0, _stryke_helpers_omit.omit)(this.environmentConfig ?? {}, [
2575
+ "name",
2569
2576
  "ssr",
2570
2577
  "preview",
2571
2578
  "consumer",
@@ -2730,6 +2737,15 @@ var PowerlinesExecutionContext = class PowerlinesExecutionContext extends Powerl
2730
2737
  for (const [key, value] of Object.entries(this)) if (![
2731
2738
  "fs",
2732
2739
  "$$internal",
2740
+ "initialOptions",
2741
+ "options",
2742
+ "config",
2743
+ "initialConfig",
2744
+ "inlineConfig",
2745
+ "userConfig",
2746
+ "pluginConfig",
2747
+ "overriddenConfig",
2748
+ "environmentConfig",
2733
2749
  "dependencies",
2734
2750
  "devDependencies",
2735
2751
  "persistedMeta",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/engine",
3
- "version": "0.46.1",
3
+ "version": "0.46.3",
4
4
  "private": false,
5
5
  "description": "An internal package containing the core engine modules for Powerlines.",
6
6
  "homepage": "https://stormsoftware.com",
@@ -137,7 +137,7 @@
137
137
  "@cacheable/memory": "^2.0.8",
138
138
  "@donedeal0/superdiff": "^3.2.0",
139
139
  "@jridgewell/sourcemap-codec": "^1.5.5",
140
- "@powerlines/core": "^0.46.1",
140
+ "@powerlines/core": "^0.46.3",
141
141
  "@storm-software/config": "^1.137.34",
142
142
  "@storm-software/config-tools": "^1.190.1",
143
143
  "@stryke/async": "^0.1.1",
@@ -180,5 +180,5 @@
180
180
  "typescript": "^6.0.3",
181
181
  "undici-types": "^7.25.0"
182
182
  },
183
- "gitHead": "de70be13e6fd973ea0b1c56b8915223dcfb4a708"
183
+ "gitHead": "9a51041e0817e438c49db05bb757b3bdbaf497ef"
184
184
  }