From 979bba63f5f500e36b6c501412807c18938430a7 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 76a76c7b65..521148b719 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 e1d37012b0..6098bddc74 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' )