@npmcli/config 10.7.0 → 10.7.1

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.
Files changed (2) hide show
  1. package/lib/index.js +5 -2
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -608,13 +608,16 @@ class Config {
608
608
  if (internalEnv.includes(key)) {
609
609
  return
610
610
  }
611
+ const hint = where !== 'cli'
612
+ ? ' See `npm help npmrc` for supported config options.'
613
+ : ''
611
614
  if (!key.includes(':')) {
612
- this.queueWarning(key, `Unknown ${where} config "${where === 'cli' ? '--' : ''}${key}". This will stop working in the next major version of npm.`)
615
+ this.queueWarning(key, `Unknown ${where} config "${where === 'cli' ? '--' : ''}${key}". This will stop working in the next major version of npm.${hint}`)
613
616
  return
614
617
  }
615
618
  const baseKey = key.split(':').pop()
616
619
  if (!this.definitions[baseKey] && !this.nerfDarts.includes(baseKey)) {
617
- this.queueWarning(baseKey, `Unknown ${where} config "${baseKey}" (${key}). This will stop working in the next major version of npm.`)
620
+ this.queueWarning(baseKey, `Unknown ${where} config "${baseKey}" (${key}). This will stop working in the next major version of npm.${hint}`)
618
621
  }
619
622
  }
620
623
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npmcli/config",
3
- "version": "10.7.0",
3
+ "version": "10.7.1",
4
4
  "files": [
5
5
  "bin/",
6
6
  "lib/"
@@ -33,7 +33,7 @@
33
33
  "devDependencies": {
34
34
  "@npmcli/eslint-config": "^5.0.1",
35
35
  "@npmcli/mock-globals": "^1.0.0",
36
- "@npmcli/template-oss": "4.25.1",
36
+ "@npmcli/template-oss": "4.29.0",
37
37
  "tap": "^16.3.8"
38
38
  },
39
39
  "dependencies": {
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "templateOSS": {
53
53
  "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
54
- "version": "4.25.1",
54
+ "version": "4.29.0",
55
55
  "content": "../../scripts/template-oss/index.js"
56
56
  }
57
57
  }