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.2
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.3
Choose a head ref
  • 3 commits
  • 3 files changed
  • 1 contributor

Commits on Mar 11, 2022

  1. Bump dependencies

     @typescript-eslint/eslint-plugin  ^5.13.0  →  ^5.14.0
     @typescript-eslint/parser         ^5.13.0  →  ^5.14.0
     eslint-plugin-jsdoc               ^37.9.6  →  ^37.9.7
     lockfile-lint                      ^4.6.2  →   ^4.7.3
     ts-node                           ^10.6.0  →  ^10.7.0
    raineorshine committed Mar 11, 2022
    Copy the full SHA
    29c9aae View commit details
  2. Copy the full SHA
    7384771 View commit details
  3. 12.5.3

    raineorshine committed Mar 11, 2022
    Copy the full SHA
    c4d4205 View commit details
Showing with 124 additions and 118 deletions.
  1. +112 −111 package-lock.json
  2. +6 −6 package.json
  3. +6 −1 src/package-managers/npm.ts
223 changes: 112 additions & 111 deletions package-lock.json
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "npm-check-updates",
"version": "12.5.2",
"version": "12.5.3",
"author": "Tomas Junnonen <tomas1@gmail.com>",
"license": "Apache-2.0",
"contributors": [
@@ -104,8 +104,8 @@
"@types/semver": "^7.3.9",
"@types/semver-utils": "^1.1.1",
"@types/update-notifier": "^5.1.0",
"@typescript-eslint/eslint-plugin": "^5.13.0",
"@typescript-eslint/parser": "^5.13.0",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@typescript-eslint/parser": "^5.14.0",
"c8": "^7.11.0",
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
@@ -116,17 +116,17 @@
"eslint-config-standard": "^16.0.3",
"eslint-plugin-fp": "^2.3.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsdoc": "^37.9.6",
"eslint-plugin-jsdoc": "^38.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0",
"husky": "^7.0.4",
"lockfile-lint": "^4.6.2",
"lockfile-lint": "^4.7.3",
"markdownlint-cli": "^0.31.1",
"mocha": "^9.2.1",
"npm-run-all": "^4.1.5",
"should": "^13.2.3",
"strip-ansi": "^6.0.1",
"ts-node": "^10.6.0",
"ts-node": "^10.7.0",
"typescript": "^4.6.2",
"yarn": "^1.22.17"
},
7 changes: 6 additions & 1 deletion src/package-managers/npm.ts
Original file line number Diff line number Diff line change
@@ -44,7 +44,12 @@ const readNpmConfig = () => {
// needed until pacote supports full npm config compatibility
// See: https://github.com/zkat/pacote/issues/156
const config: Index<string | boolean> = {}
libnpmconfig.read().forEach((value: string, key: string) => {
// libnpmconfig incorrectly (?) ignores NPM_CONFIG_USERCONFIG because it is always overridden by the default builtin.userconfig
// set userconfig manually so that it is prioritized
const builtinsWithUserConfig = {
userconfig: process.env.npm_config_userconfig || process.env.NPM_CONFIG_USERCONFIG
}
libnpmconfig.read(null, builtinsWithUserConfig).forEach((value: string, key: string) => {
// replace env ${VARS} in strings with the process.env value
const normalizedValue = typeof value !== 'string' ? value
// parse stringified booleans