@forsakringskassan/vite-lib-config 3.4.1 → 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 {
@@ -992,7 +994,8 @@ var require_semver = __commonJS({
992
994
  throw new Error("invalid increment argument: identifier is empty");
993
995
  }
994
996
  if (identifier) {
995
- const match2 = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
997
+ const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`);
998
+ const match2 = `-${identifier}`.match(r);
996
999
  if (!match2 || match2[1] !== identifier) {
997
1000
  throw new Error(`invalid identifier: ${identifier}`);
998
1001
  }
@@ -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 {
@@ -3344,7 +3346,8 @@ var require_semver = __commonJS({
3344
3346
  throw new Error("invalid increment argument: identifier is empty");
3345
3347
  }
3346
3348
  if (identifier) {
3347
- const match2 = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
3349
+ const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`);
3350
+ const match2 = `-${identifier}`.match(r);
3348
3351
  if (!match2 || match2[1] !== identifier) {
3349
3352
  throw new Error(`invalid identifier: ${identifier}`);
3350
3353
  }
@@ -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 {
@@ -857,7 +859,8 @@ var require_semver = __commonJS({
857
859
  throw new Error("invalid increment argument: identifier is empty");
858
860
  }
859
861
  if (identifier) {
860
- const match2 = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
862
+ const r = new RegExp(`^${this.options.loose ? src2[t.PRERELEASELOOSE] : src2[t.PRERELEASE]}$`);
863
+ const match2 = `-${identifier}`.match(r);
861
864
  if (!match2 || match2[1] !== identifier) {
862
865
  throw new Error(`invalid identifier: ${identifier}`);
863
866
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/vite-lib-config",
3
- "version": "3.4.1",
3
+ "version": "3.4.2",
4
4
  "description": "Försäkringskassan toolchain to build libraries with Vite",
5
5
  "keywords": [
6
6
  "vite"