@profullstack/waitlist 0.2.0 → 0.2.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/seo.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@profullstack/waitlist",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Email waitlist for any launch page: a <waitlist-form> web component, a live signup chart, and a static-site builder on @profullstack/css + @profullstack/charts.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/seo.js CHANGED
@@ -168,12 +168,12 @@ export function llmsTxt(s) {
168
168
  '',
169
169
  `- Status: waitlist (not launched yet)`,
170
170
  `- Site: ${s.url}`,
171
- s.moshpit ? `- Moshpit name: https://${s.name}` : '',
172
- s.audience ? `- Who it is for: ${s.audience}` : '',
173
- `- How to join: enter an email at ${s.url} and confirm it, or POST {"email","dn":"${s.dn}"} to ${s.api}/api/waitlist`,
171
+ s.moshpit ? `- Moshpit name: https://${s.name}` : null,
172
+ s.audience ? `- Who it is for: ${s.audience}` : null,
173
+ `- How to join: enter an email at ${s.url} and confirm it, or POST {"email":"you@example.com","dn":"${s.dn}"} to ${s.api}/api/waitlist`,
174
174
  `- Waitlist count: ${s.api}/api/waitlist/stats?dn=${encodeURIComponent(s.dn)}`,
175
175
  '',
176
- ].filter((l, i, a) => l !== '' || a[i - 1] !== '');
176
+ ].filter((l) => l !== null);
177
177
  if (s.points.length) lines.push('## What is coming', '', ...s.points.map((p) => `- ${p}`), '');
178
178
  lines.push('## Questions', '');
179
179
  for (const f of s.faq) lines.push(`### ${f.q}`, '', f.a, '');