From d5e3602e543ec9994bd713b2faa15e48831f928b Mon Sep 17 00:00:00 2001 From: Dmitry Verkhoturov Date: Mon, 11 Nov 2024 00:29:10 +0000 Subject: [PATCH] Fix fetch module import so that latest release version would be shown on website --- site/package.json | 2 +- site/src/data/github.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/site/package.json b/site/package.json index 76a76c7b..521148b7 100644 --- a/site/package.json +++ b/site/package.json @@ -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", diff --git a/site/src/data/github.js b/site/src/data/github.js index e1d37012..6098bddc 100644 --- a/site/src/data/github.js +++ b/site/src/data/github.js @@ -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' )