Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: raineorshine/npm-check-updates
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v16.3.10
Choose a base ref
...
head repository: raineorshine/npm-check-updates
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v16.3.11
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Oct 9, 2022

  1. Copy the full SHA
    9c718a1 View commit details
  2. 16.3.11

    raineorshine committed Oct 9, 2022
    Copy the full SHA
    456d2dd View commit details
Showing with 11 additions and 9 deletions.
  1. +2 −2 package-lock.json
  2. +1 −1 package.json
  3. +8 −6 src/lib/runLocal.ts
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "npm-check-updates",
"version": "16.3.10",
"version": "16.3.11",
"author": "Tomas Junnonen <tomas1@gmail.com>",
"license": "Apache-2.0",
"contributors": [
14 changes: 8 additions & 6 deletions src/lib/runLocal.ts
Original file line number Diff line number Diff line change
@@ -25,6 +25,12 @@ import upgradePackageData from './upgradePackageData'
import upgradePackageDefinitions from './upgradePackageDefinitions'
import { getDependencyGroups } from './version-util'

const INTERACTIVE_HINT = `
↑/↓: Select a package
Space: Toggle selection
a: Toggle all
Enter: Upgrade`

/** Recreate the options object sorted. */
function sortOptions(options: Options): Options {
return transform(
@@ -103,11 +109,7 @@ const chooseUpgrades = async (

const response = await prompts({
choices: [...choices, { title: ' ', heading: true }],
hint: `
↑/↓: Select a package
Space: Toggle selection
a: Select/Deselect all
Enter: Upgrade`,
hint: INTERACTIVE_HINT,
instructions: false,
message: 'Choose which packages to update',
name: 'value',
@@ -133,7 +135,7 @@ const chooseUpgrades = async (

const response = await prompts({
choices: [...choices, { title: ' ', heading: true }],
hint: 'Space to deselect. Enter to upgrade.',
hint: INTERACTIVE_HINT + '\n',
instructions: false,
message: 'Choose which packages to update',
name: 'value',