@forsakringskassan/vite-lib-config 1.7.11 → 1.7.13

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.
@@ -1442,6 +1442,7 @@ var require_lrucache = __commonJS({
1442
1442
  // node_modules/semver/classes/range.js
1443
1443
  var require_range = __commonJS({
1444
1444
  "node_modules/semver/classes/range.js"(exports2, module2) {
1445
+ var SPACE_CHARACTERS = /\s+/g;
1445
1446
  var Range = class _Range {
1446
1447
  constructor(range, options) {
1447
1448
  options = parseOptions(options);
@@ -1455,13 +1456,13 @@ var require_range = __commonJS({
1455
1456
  if (range instanceof Comparator) {
1456
1457
  this.raw = range.value;
1457
1458
  this.set = [[range]];
1458
- this.format();
1459
+ this.formatted = void 0;
1459
1460
  return this;
1460
1461
  }
1461
1462
  this.options = options;
1462
1463
  this.loose = !!options.loose;
1463
1464
  this.includePrerelease = !!options.includePrerelease;
1464
- this.raw = range.trim().split(/\s+/).join(" ");
1465
+ this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
1465
1466
  this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
1466
1467
  if (!this.set.length) {
1467
1468
  throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
@@ -1480,10 +1481,27 @@ var require_range = __commonJS({
1480
1481
  }
1481
1482
  }
1482
1483
  }
1483
- this.format();
1484
+ this.formatted = void 0;
1485
+ }
1486
+ get range() {
1487
+ if (this.formatted === void 0) {
1488
+ this.formatted = "";
1489
+ for (let i = 0; i < this.set.length; i++) {
1490
+ if (i > 0) {
1491
+ this.formatted += "||";
1492
+ }
1493
+ const comps = this.set[i];
1494
+ for (let k = 0; k < comps.length; k++) {
1495
+ if (k > 0) {
1496
+ this.formatted += " ";
1497
+ }
1498
+ this.formatted += comps[k].toString().trim();
1499
+ }
1500
+ }
1501
+ }
1502
+ return this.formatted;
1484
1503
  }
1485
1504
  format() {
1486
- this.range = this.set.map((comps) => comps.join(" ").trim()).join("||").trim();
1487
1505
  return this.range;
1488
1506
  }
1489
1507
  toString() {
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.47.0"
8
+ "packageVersion": "7.47.4"
9
9
  }
10
10
  ]
11
11
  }
@@ -4817,6 +4817,7 @@ var require_lrucache = __commonJS({
4817
4817
  // node_modules/semver/classes/range.js
4818
4818
  var require_range = __commonJS({
4819
4819
  "node_modules/semver/classes/range.js"(exports2, module2) {
4820
+ var SPACE_CHARACTERS = /\s+/g;
4820
4821
  var Range = class _Range {
4821
4822
  constructor(range, options) {
4822
4823
  options = parseOptions(options);
@@ -4830,13 +4831,13 @@ var require_range = __commonJS({
4830
4831
  if (range instanceof Comparator) {
4831
4832
  this.raw = range.value;
4832
4833
  this.set = [[range]];
4833
- this.format();
4834
+ this.formatted = void 0;
4834
4835
  return this;
4835
4836
  }
4836
4837
  this.options = options;
4837
4838
  this.loose = !!options.loose;
4838
4839
  this.includePrerelease = !!options.includePrerelease;
4839
- this.raw = range.trim().split(/\s+/).join(" ");
4840
+ this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
4840
4841
  this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
4841
4842
  if (!this.set.length) {
4842
4843
  throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
@@ -4855,10 +4856,27 @@ var require_range = __commonJS({
4855
4856
  }
4856
4857
  }
4857
4858
  }
4858
- this.format();
4859
+ this.formatted = void 0;
4860
+ }
4861
+ get range() {
4862
+ if (this.formatted === void 0) {
4863
+ this.formatted = "";
4864
+ for (let i = 0; i < this.set.length; i++) {
4865
+ if (i > 0) {
4866
+ this.formatted += "||";
4867
+ }
4868
+ const comps = this.set[i];
4869
+ for (let k = 0; k < comps.length; k++) {
4870
+ if (k > 0) {
4871
+ this.formatted += " ";
4872
+ }
4873
+ this.formatted += comps[k].toString().trim();
4874
+ }
4875
+ }
4876
+ }
4877
+ return this.formatted;
4859
4878
  }
4860
4879
  format() {
4861
- this.range = this.set.map((comps) => comps.join(" ").trim()).join("||").trim();
4862
4880
  return this.range;
4863
4881
  }
4864
4882
  toString() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/vite-lib-config",
3
- "version": "1.7.11",
3
+ "version": "1.7.13",
4
4
  "description": "Försäkringskassan toolchain to build libraries with Vite",
5
5
  "keywords": [
6
6
  "vite"
@@ -41,7 +41,7 @@
41
41
  "dist"
42
42
  ],
43
43
  "dependencies": {
44
- "@microsoft/api-extractor": "7.47.0",
44
+ "@microsoft/api-extractor": "7.47.4",
45
45
  "@vue/babel-preset-app": "5.0.8"
46
46
  },
47
47
  "peerDependencies": {