@forsakringskassan/vite-lib-config 3.4.0 → 3.4.2

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.
@@ -731,6 +731,7 @@ var require_re = __commonJS({
731
731
  var re = exports2.re = [];
732
732
  var safeRe = exports2.safeRe = [];
733
733
  var src = exports2.src = [];
734
+ var safeSrc = exports2.safeSrc = [];
734
735
  var t = exports2.t = {};
735
736
  var R = 0;
736
737
  var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
@@ -751,6 +752,7 @@ var require_re = __commonJS({
751
752
  debug(name, index, value);
752
753
  t[name] = index;
753
754
  src[index] = value;
755
+ safeSrc[index] = safe;
754
756
  re[index] = new RegExp(value, isGlobal ? "g" : void 0);
755
757
  safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
756
758
  };
@@ -847,7 +849,7 @@ var require_semver = __commonJS({
847
849
  "node_modules/semver/classes/semver.js"(exports2, module2) {
848
850
  var debug = require_debug();
849
851
  var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
850
- var { safeRe: re, t } = require_re();
852
+ var { safeRe: re, safeSrc: src, t } = require_re();
851
853
  var parseOptions = require_parse_options();
852
854
  var { compareIdentifiers } = require_identifiers();
853
855
  var SemVer = class _SemVer {
@@ -987,6 +989,18 @@ var require_semver = __commonJS({
987
989
  // preminor will bump the version up to the next minor release, and immediately
988
990
  // down to pre-release. premajor and prepatch work the same way.
989
991
  inc(release, identifier, identifierBase) {
992
+ if (release.startsWith("pre")) {
993
+ if (!identifier && identifierBase === false) {
994
+ throw new Error("invalid increment argument: identifier is empty");
995
+ }
996
+ if (identifier) {
997
+ const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`);
998
+ const match2 = `-${identifier}`.match(r);
999
+ if (!match2 || match2[1] !== identifier) {
1000
+ throw new Error(`invalid identifier: ${identifier}`);
1001
+ }
1002
+ }
1003
+ }
990
1004
  switch (release) {
991
1005
  case "premajor":
992
1006
  this.prerelease.length = 0;
@@ -1014,6 +1028,12 @@ var require_semver = __commonJS({
1014
1028
  }
1015
1029
  this.inc("pre", identifier, identifierBase);
1016
1030
  break;
1031
+ case "release":
1032
+ if (this.prerelease.length === 0) {
1033
+ throw new Error(`version ${this.raw} is not a prerelease`);
1034
+ }
1035
+ this.prerelease.length = 0;
1036
+ break;
1017
1037
  case "major":
1018
1038
  if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
1019
1039
  this.major++;
@@ -1039,9 +1059,6 @@ var require_semver = __commonJS({
1039
1059
  // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
1040
1060
  case "pre": {
1041
1061
  const base = Number(identifierBase) ? 1 : 0;
1042
- if (!identifier && identifierBase === false) {
1043
- throw new Error("invalid increment argument: identifier is empty");
1044
- }
1045
1062
  if (this.prerelease.length === 0) {
1046
1063
  this.prerelease = [base];
1047
1064
  } else {
@@ -1176,13 +1193,12 @@ var require_diff = __commonJS({
1176
1193
  if (!lowVersion.patch && !lowVersion.minor) {
1177
1194
  return "major";
1178
1195
  }
1179
- if (highVersion.patch) {
1196
+ if (lowVersion.compareMain(highVersion) === 0) {
1197
+ if (lowVersion.minor && !lowVersion.patch) {
1198
+ return "minor";
1199
+ }
1180
1200
  return "patch";
1181
1201
  }
1182
- if (highVersion.minor) {
1183
- return "minor";
1184
- }
1185
- return "major";
1186
1202
  }
1187
1203
  const prefix = highHasPre ? "pre" : "";
1188
1204
  if (v1.major !== v2.major) {
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.49.1"
8
+ "packageVersion": "7.49.2"
9
9
  }
10
10
  ]
11
11
  }
@@ -3083,6 +3083,7 @@ var require_re = __commonJS({
3083
3083
  var re = exports2.re = [];
3084
3084
  var safeRe = exports2.safeRe = [];
3085
3085
  var src = exports2.src = [];
3086
+ var safeSrc = exports2.safeSrc = [];
3086
3087
  var t = exports2.t = {};
3087
3088
  var R = 0;
3088
3089
  var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
@@ -3103,6 +3104,7 @@ var require_re = __commonJS({
3103
3104
  debug(name, index, value);
3104
3105
  t[name] = index;
3105
3106
  src[index] = value;
3107
+ safeSrc[index] = safe;
3106
3108
  re[index] = new RegExp(value, isGlobal ? "g" : void 0);
3107
3109
  safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
3108
3110
  };
@@ -3199,7 +3201,7 @@ var require_semver = __commonJS({
3199
3201
  "node_modules/semver/classes/semver.js"(exports2, module2) {
3200
3202
  var debug = require_debug();
3201
3203
  var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
3202
- var { safeRe: re, t } = require_re();
3204
+ var { safeRe: re, safeSrc: src, t } = require_re();
3203
3205
  var parseOptions = require_parse_options();
3204
3206
  var { compareIdentifiers } = require_identifiers();
3205
3207
  var SemVer = class _SemVer {
@@ -3339,6 +3341,18 @@ var require_semver = __commonJS({
3339
3341
  // preminor will bump the version up to the next minor release, and immediately
3340
3342
  // down to pre-release. premajor and prepatch work the same way.
3341
3343
  inc(release, identifier, identifierBase) {
3344
+ if (release.startsWith("pre")) {
3345
+ if (!identifier && identifierBase === false) {
3346
+ throw new Error("invalid increment argument: identifier is empty");
3347
+ }
3348
+ if (identifier) {
3349
+ const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`);
3350
+ const match2 = `-${identifier}`.match(r);
3351
+ if (!match2 || match2[1] !== identifier) {
3352
+ throw new Error(`invalid identifier: ${identifier}`);
3353
+ }
3354
+ }
3355
+ }
3342
3356
  switch (release) {
3343
3357
  case "premajor":
3344
3358
  this.prerelease.length = 0;
@@ -3366,6 +3380,12 @@ var require_semver = __commonJS({
3366
3380
  }
3367
3381
  this.inc("pre", identifier, identifierBase);
3368
3382
  break;
3383
+ case "release":
3384
+ if (this.prerelease.length === 0) {
3385
+ throw new Error(`version ${this.raw} is not a prerelease`);
3386
+ }
3387
+ this.prerelease.length = 0;
3388
+ break;
3369
3389
  case "major":
3370
3390
  if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
3371
3391
  this.major++;
@@ -3391,9 +3411,6 @@ var require_semver = __commonJS({
3391
3411
  // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
3392
3412
  case "pre": {
3393
3413
  const base = Number(identifierBase) ? 1 : 0;
3394
- if (!identifier && identifierBase === false) {
3395
- throw new Error("invalid increment argument: identifier is empty");
3396
- }
3397
3414
  if (this.prerelease.length === 0) {
3398
3415
  this.prerelease = [base];
3399
3416
  } else {
@@ -3528,13 +3545,12 @@ var require_diff = __commonJS({
3528
3545
  if (!lowVersion.patch && !lowVersion.minor) {
3529
3546
  return "major";
3530
3547
  }
3531
- if (highVersion.patch) {
3548
+ if (lowVersion.compareMain(highVersion) === 0) {
3549
+ if (lowVersion.minor && !lowVersion.patch) {
3550
+ return "minor";
3551
+ }
3532
3552
  return "patch";
3533
3553
  }
3534
- if (highVersion.minor) {
3535
- return "minor";
3536
- }
3537
- return "major";
3538
3554
  }
3539
3555
  const prefix = highHasPre ? "pre" : "";
3540
3556
  if (v1.major !== v2.major) {
@@ -596,6 +596,7 @@ var require_re = __commonJS({
596
596
  var re = exports.re = [];
597
597
  var safeRe = exports.safeRe = [];
598
598
  var src2 = exports.src = [];
599
+ var safeSrc = exports.safeSrc = [];
599
600
  var t = exports.t = {};
600
601
  var R = 0;
601
602
  var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
@@ -616,6 +617,7 @@ var require_re = __commonJS({
616
617
  debug2(name, index, value);
617
618
  t[name] = index;
618
619
  src2[index] = value;
620
+ safeSrc[index] = safe;
619
621
  re[index] = new RegExp(value, isGlobal ? "g" : void 0);
620
622
  safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
621
623
  };
@@ -712,7 +714,7 @@ var require_semver = __commonJS({
712
714
  "node_modules/semver/classes/semver.js"(exports, module) {
713
715
  var debug2 = require_debug();
714
716
  var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
715
- var { safeRe: re, t } = require_re();
717
+ var { safeRe: re, safeSrc: src2, t } = require_re();
716
718
  var parseOptions = require_parse_options();
717
719
  var { compareIdentifiers } = require_identifiers();
718
720
  var SemVer = class _SemVer {
@@ -852,6 +854,18 @@ var require_semver = __commonJS({
852
854
  // preminor will bump the version up to the next minor release, and immediately
853
855
  // down to pre-release. premajor and prepatch work the same way.
854
856
  inc(release, identifier, identifierBase) {
857
+ if (release.startsWith("pre")) {
858
+ if (!identifier && identifierBase === false) {
859
+ throw new Error("invalid increment argument: identifier is empty");
860
+ }
861
+ if (identifier) {
862
+ const r = new RegExp(`^${this.options.loose ? src2[t.PRERELEASELOOSE] : src2[t.PRERELEASE]}$`);
863
+ const match2 = `-${identifier}`.match(r);
864
+ if (!match2 || match2[1] !== identifier) {
865
+ throw new Error(`invalid identifier: ${identifier}`);
866
+ }
867
+ }
868
+ }
855
869
  switch (release) {
856
870
  case "premajor":
857
871
  this.prerelease.length = 0;
@@ -879,6 +893,12 @@ var require_semver = __commonJS({
879
893
  }
880
894
  this.inc("pre", identifier, identifierBase);
881
895
  break;
896
+ case "release":
897
+ if (this.prerelease.length === 0) {
898
+ throw new Error(`version ${this.raw} is not a prerelease`);
899
+ }
900
+ this.prerelease.length = 0;
901
+ break;
882
902
  case "major":
883
903
  if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
884
904
  this.major++;
@@ -904,9 +924,6 @@ var require_semver = __commonJS({
904
924
  // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
905
925
  case "pre": {
906
926
  const base = Number(identifierBase) ? 1 : 0;
907
- if (!identifier && identifierBase === false) {
908
- throw new Error("invalid increment argument: identifier is empty");
909
- }
910
927
  if (this.prerelease.length === 0) {
911
928
  this.prerelease = [base];
912
929
  } else {
@@ -1041,13 +1058,12 @@ var require_diff = __commonJS({
1041
1058
  if (!lowVersion.patch && !lowVersion.minor) {
1042
1059
  return "major";
1043
1060
  }
1044
- if (highVersion.patch) {
1061
+ if (lowVersion.compareMain(highVersion) === 0) {
1062
+ if (lowVersion.minor && !lowVersion.patch) {
1063
+ return "minor";
1064
+ }
1045
1065
  return "patch";
1046
1066
  }
1047
- if (highVersion.minor) {
1048
- return "minor";
1049
- }
1050
- return "major";
1051
1067
  }
1052
1068
  const prefix = highHasPre ? "pre" : "";
1053
1069
  if (v1.major !== v2.major) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/vite-lib-config",
3
- "version": "3.4.0",
3
+ "version": "3.4.2",
4
4
  "description": "Försäkringskassan toolchain to build libraries with Vite",
5
5
  "keywords": [
6
6
  "vite"
@@ -42,7 +42,7 @@
42
42
  "dist"
43
43
  ],
44
44
  "dependencies": {
45
- "@microsoft/api-extractor": "7.49.1",
45
+ "@microsoft/api-extractor": "7.49.2",
46
46
  "@vue/babel-preset-app": "5.0.8"
47
47
  },
48
48
  "peerDependencies": {