@andrew_l/app 0.3.8 → 0.4.0

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/README.md CHANGED
@@ -170,9 +170,10 @@ export default defineWorker({
170
170
  },
171
171
  },
172
172
 
173
- async entry() {
173
+ async entry(props, abortSignal) {
174
174
  const pending = await fetchPending();
175
175
  for (const msg of pending) {
176
+ if (abortSignal.aborted) break;
176
177
  await this.send(msg.to, msg.body);
177
178
  }
178
179
  },
package/bin/vrun CHANGED
@@ -38,7 +38,6 @@ resolve_tsx_cli() {
38
38
 
39
39
  if [ $DEV_MODE -eq 1 ]; then
40
40
  if [ $WATCH_MODE -eq 1 ]; then
41
- echo "$PWD"
42
41
  TSX_CLI="$(resolve_tsx_cli)"
43
42
  if [ -z "$TSX_CLI" ]; then
44
43
  echo "vrun: cannot resolve tsx peer dependency. Install tsx ^4.22.4." >&2
@@ -0,0 +1,2 @@
1
+ import { cli } from "../index.mjs";
2
+ export { cli };