adapt-authoring-core 2.2.3 → 2.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.
@@ -1,4 +1,4 @@
1
- name: Standard.js formatting check
1
+ name: Lint
2
2
  on: push
3
3
  jobs:
4
4
  default:
@@ -9,4 +9,4 @@ jobs:
9
9
  with:
10
10
  node-version: 'lts/*'
11
11
  - run: npm install
12
- - run: npx standard
12
+ - run: npx standard
@@ -14,9 +14,10 @@ export default class CoreModules {
14
14
  const workflows = ['tests', 'standardjs']
15
15
  const results = await Promise.all(workflows.map(async w => {
16
16
  const url = `${homepage}/actions/workflows/${w}.yml`
17
+ const badgeUrl = `${url}/badge.svg`
17
18
  try {
18
- const res = await fetch(url, { method: 'HEAD', redirect: 'follow' })
19
- if (res.ok) return `[![${w}](${url}/badge.svg)](${url})`
19
+ const res = await fetch(badgeUrl, { method: 'HEAD' })
20
+ if (res.ok) return `[![${w}](${badgeUrl})](${url})`
20
21
  } catch {}
21
22
  return null
22
23
  }))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adapt-authoring-core",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
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",