lalph 0.3.19 → 0.3.20

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/dist/cli.mjs CHANGED
@@ -151449,7 +151449,9 @@ const issueSourceRuntime = atomRuntime(CurrentIssueSource.layer.pipe(orDie$3));
151449
151449
  const currentIssuesAtom = family((projectId) => pipe(issueSourceRuntime.atom(fnUntraced(function* (get) {
151450
151450
  const issues = yield* pipe((yield* IssueSource).issues(projectId), withSpan("currentIssuesAtom.refresh"));
151451
151451
  const handle = setTimeout(() => {
151452
- get.refreshSelf();
151452
+ try {
151453
+ get.refreshSelf();
151454
+ } catch {}
151453
151455
  }, 3e4);
151454
151456
  get.addFinalizer(() => clearTimeout(handle));
151455
151457
  return issues;
@@ -152872,7 +152874,7 @@ const commandSource = make$36("source").pipe(withDescription("Select the issue s
152872
152874
 
152873
152875
  //#endregion
152874
152876
  //#region package.json
152875
- var version = "0.3.19";
152877
+ var version = "0.3.20";
152876
152878
 
152877
152879
  //#endregion
152878
152880
  //#region src/commands/projects/ls.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lalph",
3
3
  "type": "module",
4
- "version": "0.3.19",
4
+ "version": "0.3.20",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -171,7 +171,11 @@ export const currentIssuesAtom = Atom.family((projectId: ProjectId) =>
171
171
  Effect.withSpan("currentIssuesAtom.refresh"),
172
172
  )
173
173
  const handle = setTimeout(() => {
174
- get.refreshSelf()
174
+ try {
175
+ get.refreshSelf()
176
+ } catch {
177
+ // ignore - if the atom is no longer in use, refreshing will throw an error, which we can safely ignore
178
+ }
175
179
  }, 30_000)
176
180
  get.addFinalizer(() => clearTimeout(handle))
177
181
  return issues