@enke.dev/bumper 0.0.8 → 0.0.9
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/cli.mjs +5 -2
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -2670,8 +2670,11 @@ async function rewriteSpecs(pkg, managed, latest, peerCaps, tool, cwd, lookups)
|
|
|
2670
2670
|
return acc;
|
|
2671
2671
|
}
|
|
2672
2672
|
const current = spec.replace(/^[\^~]/, "");
|
|
2673
|
-
if (
|
|
2674
|
-
|
|
2673
|
+
if (import_semver3.default.valid(current) && import_semver3.default.lt(version, current)) {
|
|
2674
|
+
const currentViolatesCaps = capped_ && !(capRanges.get(name) ?? []).every((range) => import_semver3.default.satisfies(current, range));
|
|
2675
|
+
if (!currentViolatesCaps) {
|
|
2676
|
+
return acc;
|
|
2677
|
+
}
|
|
2675
2678
|
}
|
|
2676
2679
|
const next = `${operatorOf(spec)}${version}`;
|
|
2677
2680
|
if (next === spec) {
|