We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccc33ec commit 4a6d292Copy full SHA for 4a6d292
2 files changed
docs/.vitepress/config.mts
@@ -88,7 +88,7 @@ export default defineConfig({
88
{
89
text: 'Get from NPM',
90
link: 'https://www.npmjs.com/package/@electric-sql/pglite',
91
- },
+ },
92
],
93
sidebar: [
94
docs/components/starCount.ts
@@ -54,12 +54,14 @@ export async function downloadCount(currentDownloadCount) {
54
}
55
56
export async function fetchNpmJsDownloadCount(currentCount) {
57
- const resp = await fetch('https://api.npmjs.org/downloads/point/last-week/@electric-sql/pglite')
+ const resp = await fetch(
58
+ 'https://api.npmjs.org/downloads/point/last-week/@electric-sql/pglite',
59
+ )
60
61
if (resp.ok) {
62
const data = await resp.json()
63
return data.downloads
64
65
66
return currentCount || FALLBACK_NPMJS_DWN_INITIAL_COUNT
-}
67
+}
0 commit comments