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: v12.5.7
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: v12.5.8
Choose a head ref
  • 5 commits
  • 7 files changed
  • 3 contributors

Commits on Apr 3, 2022

  1. build(deps): bump actions/setup-node from 2 to 3.1.0

    Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2 to 3.1.0.
    - [Release notes](https://github.com/actions/setup-node/releases)
    - [Commits](actions/setup-node@v2...v3.1.0)
    
    ---
    updated-dependencies:
    - dependency-name: actions/setup-node
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and raineorshine committed Apr 3, 2022
    Copy the full SHA
    3cf8bfb View commit details
  2. Copy the full SHA
    ce619f9 View commit details

Commits on Apr 4, 2022

  1. Copy the full SHA
    896cc11 View commit details

Commits on Apr 5, 2022

  1. Copy the full SHA
    9573a33 View commit details

Commits on Apr 6, 2022

  1. 12.5.8

    raineorshine committed Apr 6, 2022
    Copy the full SHA
    015fe36 View commit details
Showing with 14 additions and 10 deletions.
  1. +1 −1 .github/workflows/codeql.yml
  2. +2 −2 .github/workflows/lint.yml
  3. +2 −2 .github/workflows/test.yml
  4. +2 −2 package-lock.json
  5. +1 −1 package.json
  6. +4 −1 src/lib/getNcuRc.ts
  7. +2 −1 src/lib/runLocal.ts
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -19,10 +19,10 @@ jobs:

steps:
- name: Clone repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3.1.0
with:
node-version: ${{ env.NODE }}
cache: npm
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -26,10 +26,10 @@ jobs:

steps:
- name: Clone repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3.1.0
with:
node-version: ${{ matrix.node }}
cache: npm
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": "12.5.7",
"version": "12.5.8",
"author": "Tomas Junnonen <tomas1@gmail.com>",
"license": "Apache-2.0",
"contributors": [
5 changes: 4 additions & 1 deletion src/lib/getNcuRc.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import path from 'path'
import _ from 'lodash'
import chalk from 'chalk'
import { rcFile } from 'rc-config-loader'
import cliOptions, { CLIOption } from '../cli-options'
import { Index } from '../types'
@@ -38,7 +39,9 @@ function getNcuRc({ configFileName, configFilePath, packageFile }: Options = {})
// validate arguments here to provide a better error message
const unknownOptions = Object.keys(result?.config || {}).filter(arg => !cliOptionMap[arg])
if (unknownOptions.length > 0) {
console.error(`Unknown option${unknownOptions.length === 1 ? '' : 's'} found in rc file:`, unknownOptions.join(', '))
console.error(chalk.red(`Unknown option${unknownOptions.length === 1 ? '' : 's'} found in config file:`), chalk.gray(unknownOptions.join(', ')))
console.info('Using config file ' + result!.filePath)
console.info(`You can change the config file path with ${chalk.blue('--configFilePath')}`)
}

// flatten config object into command line arguments to be read by commander
3 changes: 2 additions & 1 deletion src/lib/runLocal.ts
Original file line number Diff line number Diff line change
@@ -156,7 +156,8 @@ async function runLocal(options: Options, pkgData?: Maybe<string>, pkgFile?: May
})
}
else {
print(options, `\nRun ${chalk.cyan('ncu -u')} to upgrade ${getPackageFileName(options)}`)
const ncuCmd = process.env.npm_lifecycle_event === 'npx' ? 'npx npm-check-updates' : 'ncu'
print(options, `\nRun ${chalk.cyan(`${ncuCmd} -u`)} to upgrade ${getPackageFileName(options)}`)
}
}