@lwrjs/config 0.11.4 → 0.11.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.
@@ -49,7 +49,7 @@ var import_instrumentation = __toModule(require("@lwrjs/instrumentation"));
49
49
  function getLwrConfigFromFile(rootDir, lwrConfigPath = import_defaults2.DEFAULT_LWR_CONFIG_JSON) {
50
50
  const resolvedLwrConfigPath = import_path.default.resolve((0, import_shared_utils.normalizeDirectory)(lwrConfigPath, rootDir));
51
51
  if (!import_fs.default.existsSync(resolvedLwrConfigPath)) {
52
- import_diagnostics.logger.warn(`LWR Config not found on "${resolvedLwrConfigPath}"`);
52
+ import_diagnostics.logger.warn({label: `config`, message: `LWR Config not found on "${resolvedLwrConfigPath}"`});
53
53
  return void 0;
54
54
  }
55
55
  const configSource = (0, import_shared_utils.readFile)(resolvedLwrConfigPath);
@@ -292,7 +292,10 @@ function validateLwrAppConfig(config, phase) {
292
292
  } catch (err) {
293
293
  span.end();
294
294
  if (process.env.UNSAFE_IGNORE_CONFIG_VALIDATION === "true") {
295
- import_diagnostics.logger.warn("ignoring config validation errors due to UNSAFE_IGNORE_CONFIG_VALIDATION flag...proceed with caution");
295
+ import_diagnostics.logger.warn({
296
+ label: `config`,
297
+ message: `ignoring config validation errors due to UNSAFE_IGNORE_CONFIG_VALIDATION flag...proceed with caution`
298
+ });
296
299
  import_diagnostics.logger.error(err);
297
300
  return;
298
301
  } else {
@@ -31,7 +31,7 @@ import { getTracer, ConfigSpan } from '@lwrjs/instrumentation';
31
31
  export function getLwrConfigFromFile(rootDir, lwrConfigPath = DEFAULT_LWR_CONFIG_JSON) {
32
32
  const resolvedLwrConfigPath = path.resolve(normalizeDirectory(lwrConfigPath, rootDir));
33
33
  if (!fs.existsSync(resolvedLwrConfigPath)) {
34
- logger.warn(`LWR Config not found on "${resolvedLwrConfigPath}"`);
34
+ logger.warn({ label: `config`, message: `LWR Config not found on "${resolvedLwrConfigPath}"` });
35
35
  return undefined;
36
36
  }
37
37
  const configSource = readFile(resolvedLwrConfigPath);
@@ -362,7 +362,10 @@ export function validateLwrAppConfig(config, phase) {
362
362
  catch (err) {
363
363
  span.end();
364
364
  if (process.env.UNSAFE_IGNORE_CONFIG_VALIDATION === 'true') {
365
- logger.warn('ignoring config validation errors due to UNSAFE_IGNORE_CONFIG_VALIDATION flag...proceed with caution');
365
+ logger.warn({
366
+ label: `config`,
367
+ message: `ignoring config validation errors due to UNSAFE_IGNORE_CONFIG_VALIDATION flag...proceed with caution`,
368
+ });
366
369
  logger.error(err);
367
370
  return;
368
371
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.11.4",
7
+ "version": "0.11.6",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -41,14 +41,14 @@
41
41
  "test": "jest"
42
42
  },
43
43
  "dependencies": {
44
- "@lwrjs/diagnostics": "0.11.4",
45
- "@lwrjs/instrumentation": "0.11.4",
46
- "@lwrjs/shared-utils": "0.11.4",
44
+ "@lwrjs/diagnostics": "0.11.6",
45
+ "@lwrjs/instrumentation": "0.11.6",
46
+ "@lwrjs/shared-utils": "0.11.6",
47
47
  "fs-extra": "^11.1.1",
48
48
  "jsonc-parser": "^3.0.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@lwrjs/types": "0.11.4",
51
+ "@lwrjs/types": "0.11.6",
52
52
  "jest": "^26.6.3",
53
53
  "ts-jest": "^26.5.6"
54
54
  },
@@ -69,5 +69,5 @@
69
69
  "volta": {
70
70
  "extends": "../../../package.json"
71
71
  },
72
- "gitHead": "5528cfc12174d4800ff42db1691d14c5d194f7d6"
72
+ "gitHead": "415e25c05b4b1a0356fb89801f1242e8f73143e3"
73
73
  }