inup 1.4.10 → 1.4.12
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/README.md +1 -7
- package/dist/config/constants.js +1 -2
- package/dist/core/package-detector.js +162 -89
- package/dist/core/upgrade-runner.js +62 -13
- package/dist/interactive-ui.js +116 -62
- package/dist/services/changelog-fetcher.js +59 -34
- package/dist/services/index.js +0 -2
- package/dist/services/jsdelivr-registry.js +92 -176
- package/dist/services/npm-registry.js +97 -27
- package/dist/ui/input-handler.js +1 -1
- package/dist/ui/renderer/index.js +2 -2
- package/dist/ui/renderer/package-list.js +32 -5
- package/dist/ui/state/state-manager.js +7 -5
- package/package.json +1 -1
|
@@ -68,7 +68,7 @@ class StateManager {
|
|
|
68
68
|
return;
|
|
69
69
|
const currentRow = this.navigationManager.getCurrentRow();
|
|
70
70
|
const currentState = states[currentRow];
|
|
71
|
-
if (!currentState)
|
|
71
|
+
if (!currentState || currentState.loadState !== 'ready')
|
|
72
72
|
return;
|
|
73
73
|
if (direction === 'left') {
|
|
74
74
|
// Move selection left with wraparound: latest -> range -> none -> latest
|
|
@@ -122,7 +122,7 @@ class StateManager {
|
|
|
122
122
|
if (states.length === 0)
|
|
123
123
|
return;
|
|
124
124
|
states.forEach((state) => {
|
|
125
|
-
if (state.hasRangeUpdate) {
|
|
125
|
+
if (state.loadState === 'ready' && state.hasRangeUpdate) {
|
|
126
126
|
state.selectedOption = 'range';
|
|
127
127
|
}
|
|
128
128
|
});
|
|
@@ -131,10 +131,10 @@ class StateManager {
|
|
|
131
131
|
if (states.length === 0)
|
|
132
132
|
return;
|
|
133
133
|
states.forEach((state) => {
|
|
134
|
-
if (state.hasMajorUpdate) {
|
|
134
|
+
if (state.loadState === 'ready' && state.hasMajorUpdate) {
|
|
135
135
|
state.selectedOption = 'latest';
|
|
136
136
|
}
|
|
137
|
-
else if (state.hasRangeUpdate) {
|
|
137
|
+
else if (state.loadState === 'ready' && state.hasRangeUpdate) {
|
|
138
138
|
state.selectedOption = 'range';
|
|
139
139
|
}
|
|
140
140
|
});
|
|
@@ -143,7 +143,9 @@ class StateManager {
|
|
|
143
143
|
if (states.length === 0)
|
|
144
144
|
return;
|
|
145
145
|
states.forEach((state) => {
|
|
146
|
-
state.
|
|
146
|
+
if (state.loadState === 'ready') {
|
|
147
|
+
state.selectedOption = 'none';
|
|
148
|
+
}
|
|
147
149
|
});
|
|
148
150
|
}
|
|
149
151
|
// Modal delegation
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inup",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.12",
|
|
4
4
|
"description": "Interactive CLI tool for upgrading dependencies with ease. Auto-detects and works with npm, yarn, pnpm, and bun. Inspired by yarn upgrade-interactive. Supports monorepos, workspaces, and batch upgrades.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|