adapt-authoring-core 2.4.1 → 2.4.3
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.
|
@@ -11,7 +11,7 @@ export default class CoreModules {
|
|
|
11
11
|
|
|
12
12
|
async getWorkflowBadges (homepage) {
|
|
13
13
|
if (!homepage) return []
|
|
14
|
-
const workflows = ['
|
|
14
|
+
const workflows = ['standardjs', 'tests', 'releases']
|
|
15
15
|
const results = await Promise.all(workflows.map(async w => {
|
|
16
16
|
const url = `${homepage}/actions/workflows/${w}.yml`
|
|
17
17
|
const badgeUrl = `${url}/badge.svg`
|
|
@@ -30,6 +30,6 @@ export default class CoreModules {
|
|
|
30
30
|
const badges = await this.getWorkflowBadges(homepage)
|
|
31
31
|
return `| ${homepage ? `[${name}](${homepage})` : name} | ${version} | ${description} | ${badges.join('<br>')} |`
|
|
32
32
|
}))
|
|
33
|
-
return `| Name | Version | Description | Status |\n| - | :-: | - |
|
|
33
|
+
return `| Name | Version | Description | Status |\n| - | :-: | - | - |\n${rows.join('\n')}`
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -124,7 +124,7 @@ export default class Licensing {
|
|
|
124
124
|
|
|
125
125
|
async generateMd () {
|
|
126
126
|
let md = '<tr><th>Name</th><th>Version</th><th>License</th><th>Description</th></tr>\n'
|
|
127
|
-
this.dependencies.forEach(pkg => {
|
|
127
|
+
this.dependencies.sort((a, b) => a.name.localeCompare(b.name)).forEach(pkg => {
|
|
128
128
|
md += `<tr><td>${pkg.homepage ? `<a href="${pkg.homepage}" target="_blank">${pkg.name}</a>` : pkg.name}</td><td>${pkg.version}</td><td>${pkg.license}</td><td>${pkg.description}</tr>\n`
|
|
129
129
|
})
|
|
130
130
|
return `<details>\n<summary>Module dependency list</summary>\n<table>${md}</table>\n</details>`
|