Commit 3e889c1
Improve lockfile parsing robustness and error handling
- Fix error handling in version_from_package_lock to safely check for
version key existence using safe navigation operator
- Improve lockfile path construction using File.dirname instead of
".." for more robust path resolution
- Add ClassLength RuboCop disable for NodePackageVersion class
These changes address code review feedback to make the implementation
more robust and handle edge cases better.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 40efccd commit 3e889c1
1 file changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
215 | 216 | | |
216 | 217 | | |
217 | 218 | | |
| |||
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
227 | | - | |
| 228 | + | |
| 229 | + | |
228 | 230 | | |
229 | 231 | | |
230 | 232 | | |
231 | | - | |
| 233 | + | |
| 234 | + | |
232 | 235 | | |
233 | 236 | | |
234 | 237 | | |
| |||
393 | 396 | | |
394 | 397 | | |
395 | 398 | | |
396 | | - | |
| 399 | + | |
| 400 | + | |
397 | 401 | | |
398 | 402 | | |
399 | 403 | | |
400 | | - | |
401 | | - | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
402 | 407 | | |
403 | 408 | | |
404 | 409 | | |
| |||
443 | 448 | | |
444 | 449 | | |
445 | 450 | | |
| 451 | + | |
446 | 452 | | |
447 | 453 | | |
0 commit comments