adapt-authoring-core 2.4.2 → 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 = ['tests', 'standardjs', 'releases']
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`
@@ -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>`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adapt-authoring-core",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "description": "A bundle of reusable 'core' functionality",
5
5
  "homepage": "https://github.com/adapt-security/adapt-authoring-core",
6
6
  "license": "GPL-3.0",