@acryldev/launcher-desktop 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -172,14 +172,18 @@ async function readBlends(fetchImpl = (input, init) => fetch(input, init), url =
172
172
  const source = text$2(entry.source);
173
173
  if (!BLEND_SOURCE.test(source)) continue;
174
174
  ids.add(entry.id);
175
+ const placement = record$1(entry.placement);
176
+ const category = text$2(placement?.category) === "" ? text$2(entry.category) : [text$2(placement?.category), text$2(placement?.subcategory)].filter(Boolean).join(" › ");
177
+ const publisher = text$2(entry.publisher);
175
178
  blends.push({
176
179
  id: entry.id,
177
180
  name: text$2(entry.name) || entry.id,
178
181
  version: text$2(entry.version),
179
- category: text$2(entry.category),
182
+ category,
180
183
  description: text$2(entry.description),
181
184
  origin: "community",
182
- source
185
+ source,
186
+ ...publisher === "" ? {} : { publisher }
183
187
  });
184
188
  }
185
189
  return blends.sort((a, b) => a.name.localeCompare(b.name));