Skip to content

Commit 07f1632

Browse files
committed
chore: fix sorting issue
1 parent e1466bc commit 07f1632

9 files changed

Lines changed: 1394 additions & 35 deletions

File tree

cli/getModuleInfo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ async function getInfo() {
193193
node: nodeVersions,
194194
});
195195
}
196-
Semver.rsort(currentModule.versions);
196+
currentModule.versions.sort((a, b) => Semver.rcompare(a.name, b.name));
197197

198198
const readme = await getRawContent(moduleName, 'README.md');
199199
const repoInfo = await getRepoInfo(moduleName);

cli/modules.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const modules = {
44
package: 'joi',
55
compatibility: {
66
17: ['14', '16', '18', '20', '22'],
7+
18: ['20', '22', '24'],
78
},
89
},
910
address: {

package-lock.json

Lines changed: 7 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"joi": "^17.9.2",
2323
"lodash": "^4.17.21",
2424
"nuxt": "^2.17.1",
25-
"semver": "^7.5.4",
25+
"semver": "^7.7.2",
2626
"vue-codemirror": "^4.0.6"
2727
},
2828
"devDependencies": {

static/lib/formula/info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
},
5151
"api": true,
5252
"slogan": "Math and string formula parser.",
53-
"forks": 22,
53+
"forks": 21,
5454
"stars": 16,
5555
"updated": "2024-02-02T16:21:44Z",
5656
"link": "https://github.com/hapijs/formula"

0 commit comments

Comments
 (0)