anentrypoint-design 0.0.377 → 0.0.378

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anentrypoint-design",
3
- "version": "0.0.377",
3
+ "version": "0.0.378",
4
4
  "description": "247420 design system SDK — webjsx + modified ripple-ui, single-file ESM bundle for reproducible use of the AnEntrypoint design.",
5
5
  "type": "module",
6
6
  "main": "./dist/247420.js",
@@ -141,7 +141,7 @@ async function* parseSseStream(response) {
141
141
  }
142
142
  }
143
143
  } finally {
144
- try { reader.releaseLock(); } catch { /* stream already closed/errored */ }
144
+ try { reader.releaseLock(); } catch { /* swallow: stream already closed/errored */ }
145
145
  }
146
146
  }
147
147
 
@@ -178,7 +178,7 @@ function partsFromMessages(assistantAndToolMessages) {
178
178
  const target = m.tool_call_id ? byId.get(m.tool_call_id) : null;
179
179
  let content = m.content;
180
180
  let isError = false;
181
- try { const parsed = JSON.parse(content); if (parsed && parsed.error) { isError = true; } } catch { /* not JSON, leave as-is */ }
181
+ try { const parsed = JSON.parse(content); if (parsed && parsed.error) { isError = true; } } catch { /* swallow: not JSON, leave as-is */ }
182
182
  if (target) { target.result = content; target.status = isError ? 'error' : 'done'; target.error = isError || undefined; }
183
183
  else parts.push({ kind: 'tool_result', name: 'result', result: content, error: isError || undefined, status: isError ? 'error' : 'done' });
184
184
  }
@@ -276,7 +276,7 @@ export const chat = makePage((ctx) => {
276
276
  }
277
277
 
278
278
  function stop() {
279
- if (ctx.state.abort) { try { ctx.state.abort.abort(); } catch { /* already settled */ } }
279
+ if (ctx.state.abort) { try { ctx.state.abort.abort(); } catch { /* swallow: already settled */ } }
280
280
  }
281
281
 
282
282
  return () => {
@@ -149,7 +149,7 @@ export function GitDiffView({ diff = '', filename } = {}) {
149
149
  const lang = langFromFilename(filename);
150
150
  const highlightRef = (el) => {
151
151
  if (!el) return;
152
- try { highlightAllUnder(el); } catch { /* progressive enhancement only */ }
152
+ try { highlightAllUnder(el); } catch { /* swallow: progressive enhancement only */ }
153
153
  };
154
154
  if (!hunks.length) {
155
155
  return h('div', { class: 'ds-git-diff-empty', role: 'status' }, 'no diff to show');