@salesforce/core-bundle 8.2.4 → 8.2.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.
package/lib/index.js CHANGED
@@ -3584,6 +3584,7 @@ var require_lrucache = __commonJS({
3584
3584
  // node_modules/semver/classes/range.js
3585
3585
  var require_range = __commonJS({
3586
3586
  "node_modules/semver/classes/range.js"(exports2, module2) {
3587
+ var SPACE_CHARACTERS = /\s+/g;
3587
3588
  var Range = class _Range {
3588
3589
  constructor(range, options) {
3589
3590
  options = parseOptions(options);
@@ -3597,13 +3598,13 @@ var require_range = __commonJS({
3597
3598
  if (range instanceof Comparator) {
3598
3599
  this.raw = range.value;
3599
3600
  this.set = [[range]];
3600
- this.format();
3601
+ this.formatted = void 0;
3601
3602
  return this;
3602
3603
  }
3603
3604
  this.options = options;
3604
3605
  this.loose = !!options.loose;
3605
3606
  this.includePrerelease = !!options.includePrerelease;
3606
- this.raw = range.trim().split(/\s+/).join(" ");
3607
+ this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
3607
3608
  this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
3608
3609
  if (!this.set.length) {
3609
3610
  throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
@@ -3622,10 +3623,27 @@ var require_range = __commonJS({
3622
3623
  }
3623
3624
  }
3624
3625
  }
3625
- this.format();
3626
+ this.formatted = void 0;
3627
+ }
3628
+ get range() {
3629
+ if (this.formatted === void 0) {
3630
+ this.formatted = "";
3631
+ for (let i = 0; i < this.set.length; i++) {
3632
+ if (i > 0) {
3633
+ this.formatted += "||";
3634
+ }
3635
+ const comps = this.set[i];
3636
+ for (let k = 0; k < comps.length; k++) {
3637
+ if (k > 0) {
3638
+ this.formatted += " ";
3639
+ }
3640
+ this.formatted += comps[k].toString().trim();
3641
+ }
3642
+ }
3643
+ }
3644
+ return this.formatted;
3626
3645
  }
3627
3646
  format() {
3628
- this.range = this.set.map((comps) => comps.join(" ").trim()).join("||").trim();
3629
3647
  return this.range;
3630
3648
  }
3631
3649
  toString() {
@@ -4611,7 +4629,7 @@ var require_package = __commonJS({
4611
4629
  "package.json"(exports2, module2) {
4612
4630
  module2.exports = {
4613
4631
  name: "@salesforce/core-bundle",
4614
- version: "8.2.4",
4632
+ version: "8.2.6",
4615
4633
  description: "Core libraries to interact with SFDX projects, orgs, and APIs.",
4616
4634
  main: "lib/index",
4617
4635
  types: "lib/index.d.ts",
@@ -4661,9 +4679,9 @@ var require_package = __commonJS({
4661
4679
  jszip: "3.10.1",
4662
4680
  pino: "^9.3.2",
4663
4681
  "pino-abstract-transport": "^1.2.0",
4664
- "pino-pretty": "^11.2.1",
4682
+ "pino-pretty": "^11.2.2",
4665
4683
  "proper-lockfile": "^4.1.2",
4666
- semver: "^7.6.2",
4684
+ semver: "^7.6.3",
4667
4685
  "ts-retry-promise": "^0.8.1"
4668
4686
  },
4669
4687
  devDependencies: {
@@ -15195,6 +15195,7 @@ function build(opts = {}) {
15195
15195
  }
15196
15196
  module.exports = build;
15197
15197
  module.exports.build = build;
15198
+ module.exports.PinoPretty = build;
15198
15199
  module.exports.prettyFactory = prettyFactory;
15199
15200
  module.exports.colorizerFactory = colors;
15200
15201
  module.exports.isColorSupported = isColorSupported;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core-bundle",
3
- "version": "8.2.4",
3
+ "version": "8.2.6",
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",
@@ -50,9 +50,9 @@
50
50
  "jszip": "3.10.1",
51
51
  "pino": "^9.3.2",
52
52
  "pino-abstract-transport": "^1.2.0",
53
- "pino-pretty": "^11.2.1",
53
+ "pino-pretty": "^11.2.2",
54
54
  "proper-lockfile": "^4.1.2",
55
- "semver": "^7.6.2",
55
+ "semver": "^7.6.3",
56
56
  "ts-retry-promise": "^0.8.1"
57
57
  },
58
58
  "devDependencies": {