@salesforce/core-bundle 8.13.0 → 8.14.0

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.
Files changed (2) hide show
  1. package/lib/index.js +7 -3
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -7816,10 +7816,14 @@ var require_logger = __commonJS({
7816
7816
  };
7817
7817
  exports2.Logger = Logger;
7818
7818
  var getWriteStream = (level = "warn") => {
7819
+ const env = new kit_1.Env();
7819
7820
  if (process.env.DEBUG) {
7820
7821
  return {
7821
7822
  target: "pino-pretty",
7822
- options: { colorize: true }
7823
+ options: {
7824
+ colorize: env.getBoolean("SF_LOG_COLORIZE") ?? true,
7825
+ destination: env.getBoolean("SF_LOG_STDERR") ? 2 : 1
7826
+ }
7823
7827
  };
7824
7828
  }
7825
7829
  const rotator = /* @__PURE__ */ new Map([
@@ -7827,7 +7831,7 @@ var require_logger = __commonJS({
7827
7831
  ["1h", (/* @__PURE__ */ new Date()).toISOString().split(":").slice(0, 1).join("-")],
7828
7832
  ["1d", (/* @__PURE__ */ new Date()).toISOString().split("T")[0]]
7829
7833
  ]);
7830
- const logRotationPeriod = new kit_1.Env().getString("SF_LOG_ROTATION_PERIOD") ?? "1d";
7834
+ const logRotationPeriod = env.getString("SF_LOG_ROTATION_PERIOD") ?? "1d";
7831
7835
  return {
7832
7836
  // write to a rotating file
7833
7837
  target: "pino/file",
@@ -12330,7 +12334,7 @@ var require_package2 = __commonJS({
12330
12334
  "package.json"(exports2, module2) {
12331
12335
  module2.exports = {
12332
12336
  name: "@salesforce/core-bundle",
12333
- version: "8.13.0",
12337
+ version: "8.14.0",
12334
12338
  description: "Core libraries to interact with SFDX projects, orgs, and APIs.",
12335
12339
  main: "lib/index",
12336
12340
  types: "lib/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core-bundle",
3
- "version": "8.13.0",
3
+ "version": "8.14.0",
4
4
  "description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
5
5
  "main": "lib/index",
6
6
  "types": "lib/index.d.ts",