@astropub/assist
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "@astropub/assist", | ||
"description": "A library of tools to help you develop with Astro", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -8,3 +8,5 @@ import { createHash } from 'node:crypto' | ||
export const fetch = globalThis.fetch || await import('@astropub/webapi').then(exports => exports.fetch) | ||
export const fetch = await (async () => { | ||
return globalThis.fetch || await import('@astropub/webapi').then(exports => exports.fetch) | ||
})() | ||
@@ -11,0 +13,0 @@ export const getFileName = (value) => String(String(value).split('/').pop() || '') || 'file.bin' |
21717
565