Fix fetch module import so that latest release version would be shown on website

This commit is contained in:
Dmitry Verkhoturov
2024-11-10 18:30:48 -06:00
committed by Umputun
parent a4772bd9de
commit d5e3602e54
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
"node": ">=20.11.1",
"yarn": ">=1.22"
},
"packageManager": "yarn@1.22.22",
"packageManager": "yarn@1.22.22",
"scripts": {
"start": "npm-run-all dev",
"dev": "npm-run-all -l clean build:css -p dev:css dev:11ty",
+1 -1
View File
@@ -6,7 +6,7 @@ module.exports = async function getLatestReleaseVersion() {
return currentData
}
try {
const fetch = await import('node-fetch')
const fetch = (await import('node-fetch')).default;
const res = await fetch(
'https://api.github.com/repos/umputun/remark42/releases'
)