piral-base 1.13.0-beta.2b6bbd6 → 1.13.0-beta.afae61d
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/dist/piral-base-full.mjs
CHANGED
|
@@ -951,7 +951,7 @@ function satisfies(v, r) {
|
|
|
951
951
|
const match = r.match(/^([<>=~^]+)/);
|
|
952
952
|
const op = match ? match[1] : "=";
|
|
953
953
|
if (op !== "^" && op !== "~") {
|
|
954
|
-
return compare(v, r, op);
|
|
954
|
+
return compare(v, match ? r.substring(op.length) : r, op);
|
|
955
955
|
}
|
|
956
956
|
const [v1, v2, v3] = validateAndParse(v);
|
|
957
957
|
const [m1, m2, m3] = validateAndParse(r);
|
|
@@ -990,7 +990,7 @@ function satisfies(v, r) {
|
|
|
990
990
|
const match = r.match(/^([<>=~^]+)/);
|
|
991
991
|
const op = match ? match[1] : "=";
|
|
992
992
|
if (op !== "^" && op !== "~") {
|
|
993
|
-
return compare(v, r, op);
|
|
993
|
+
return compare(v, match ? r.substring(op.length) : r, op);
|
|
994
994
|
}
|
|
995
995
|
const [v1, v2, v3] = validateAndParse(v);
|
|
996
996
|
const [m1, m2, m3] = validateAndParse(r);
|
package/dist/piral-base-node.js
CHANGED
|
@@ -6354,7 +6354,7 @@ function satisfies(v, r) {
|
|
|
6354
6354
|
const match = r.match(/^([<>=~^]+)/);
|
|
6355
6355
|
const op = match ? match[1] : "=";
|
|
6356
6356
|
if (op !== "^" && op !== "~") {
|
|
6357
|
-
return compare(v, r, op);
|
|
6357
|
+
return compare(v, match ? r.substring(op.length) : r, op);
|
|
6358
6358
|
}
|
|
6359
6359
|
const [v1, v2, v3] = validateAndParse(v);
|
|
6360
6360
|
const [m1, m2, m3] = validateAndParse(r);
|