[READ-ONLY] Mirror of https://github.com/improsocial/impro An extensible Bluesky client for web impro.social
6

Configure Feed

Select the types of activity you want to include in your feed.

Use promise.all for asset url loads

Grace Kind (Jul 22, 2026, 7:58 PM -0500) 9f22dd61 dab0e4d2

+6 -10
+1 -1
package.json
··· 1 1 { 2 2 "name": "impro", 3 - "version": "0.18.49", 3 + "version": "0.18.50", 4 4 "type": "module", 5 5 "scripts": { 6 6 "start": "rm -rf \"${BUILD_DIR:-build}\" && NODE_ENV=development eleventy --serve",
+5 -9
src/js/plugins/sourceProvider.js
··· 387 387 if (pluginId.endsWith("__LOCAL")) { 388 388 return []; 389 389 } 390 - const urls = [ 391 - await remoteAssetUrl({ repo, file: "manifest.json", release: version }), 392 - await remoteAssetUrl({ repo, file: "main.js", release: version }), 393 - await remoteAssetUrl({ repo, file: "styles.css", release: version }), 394 - ]; 390 + const files = ["manifest.json", "main.js", "styles.css"]; 395 391 try { 396 392 const manifest = await this.getManifest(pluginId, version, repo); 397 393 for (const font of manifest.fonts ?? []) { 398 - urls.push( 399 - await remoteAssetUrl({ repo, file: font.file, release: version }), 400 - ); 394 + files.push(font.file); 401 395 } 402 396 } catch { 403 397 // If the manifest can't be read the base URLs are still returned so 404 398 // reconcile doesn't purge a partially-cached plugin. 405 399 } 406 - return urls; 400 + return await Promise.all( 401 + files.map((file) => remoteAssetUrl({ repo, file, release: version })), 402 + ); 407 403 } 408 404 }