npm-check-updates 9.2.3 → 9.2.4

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.
@@ -25,7 +25,9 @@ const greatest = async (name, version, options) => {
25
25
  // eslint-disable-next-line fp/no-mutating-methods
26
26
  const tags = [...tagMap.keys()]
27
27
  .map(tag => versionUtil.isSimpleVersion(tag) ? tag + '.0.0' : tag)
28
- .filter(semver.valid)
28
+ // do not pass semver.valid reference directly since the mapping index will be interpreted as the loose option
29
+ // https://github.com/npm/node-semver#functions
30
+ .filter(tag => semver.valid(tag))
29
31
  .sort(versionUtil.compareVersions)
30
32
  const latestVersion = tags[tags.length - 1]
31
33
  return latestVersion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-check-updates",
3
- "version": "9.2.3",
3
+ "version": "9.2.4",
4
4
  "author": "Tomas Junnonen <tomas1@gmail.com>",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [
@@ -51,7 +51,7 @@
51
51
  "chalk": "^4.1.0",
52
52
  "cint": "^8.2.1",
53
53
  "cli-table": "^0.3.1",
54
- "commander": "^6.1.0",
54
+ "commander": "^6.2.0",
55
55
  "find-up": "5.0.0",
56
56
  "get-stdin": "^8.0.0",
57
57
  "json-parse-helpfulerror": "^1.0.3",
@@ -62,7 +62,7 @@
62
62
  "pacote": "^11.1.11",
63
63
  "parse-github-url": "^1.0.2",
64
64
  "progress": "^2.0.3",
65
- "prompts": "^2.3.2",
65
+ "prompts": "^2.4.0",
66
66
  "rc-config-loader": "^3.0.0",
67
67
  "remote-git-tags": "^3.0.0",
68
68
  "rimraf": "^3.0.2",
@@ -76,15 +76,15 @@
76
76
  "chai-as-promised": "^7.1.1",
77
77
  "chai-string": "^1.5.0",
78
78
  "chokidar-cli": "^2.1.0",
79
- "eslint": "^7.10.0",
79
+ "eslint": "^7.12.1",
80
80
  "eslint-config-standard": "^14.1.1",
81
81
  "eslint-plugin-fp": "^2.3.0",
82
82
  "eslint-plugin-import": "^2.22.1",
83
- "eslint-plugin-jsdoc": "^30.6.2",
83
+ "eslint-plugin-jsdoc": "^30.7.5",
84
84
  "eslint-plugin-node": "^11.1.0",
85
85
  "eslint-plugin-promise": "^4.2.1",
86
86
  "eslint-plugin-standard": "^4.0.1",
87
- "mocha": "^8.1.3",
87
+ "mocha": "^8.2.0",
88
88
  "nyc": "^15.1.0",
89
89
  "should": "^13.2.3",
90
90
  "tmp": "0.2.1"