@zgeoff/imp-client 0.6.0 → 0.8.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 +5 -3
- package/dist/index.d.ts +571 -2
- package/dist/index.js +301 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# @zgeoff/imp-client
|
|
2
2
|
|
|
3
3
|
A typed client for [impd](https://github.com/zgeoff/imp), the imp host daemon. It runs in Bun, in
|
|
4
|
-
Node 22 or later, and in browsers with
|
|
5
|
-
17.4 or later.
|
|
4
|
+
binaries that `bun build --compile` makes, in Node 22.6 or later, and in browsers with
|
|
5
|
+
`Promise.withResolvers`: Chrome 119, Firefox 121 and Safari 17.4 or later. CI checks each release
|
|
6
|
+
under Node, Bun and a compiled Bun binary.
|
|
6
7
|
|
|
7
8
|
```sh
|
|
8
9
|
npm install @zgeoff/imp-client
|
|
@@ -123,7 +124,8 @@ the command did not run to its exit, `exit` rejects with an `ExecError` whose `c
|
|
|
123
124
|
in the table below, plus `EXEC_FAILED` when the command cannot start) or one of `UNAUTHORIZED` (also
|
|
124
125
|
for an exec ticket that expired or was used), `UNREACHABLE`, `RESTARTING`, `CONNECTION_CLOSED`,
|
|
125
126
|
`DETACHED`, `BAD_MESSAGE`, `CLOSED`, `OUTPUT_OVERFLOW` and `LOCAL_ERROR`. Its `data` is impd's error
|
|
126
|
-
data.
|
|
127
|
+
data. An abort before the command starts, during the ticket call or the connect, rejects with the
|
|
128
|
+
abort's reason instead, an `AbortError` by default; after the start it ends the session as `CLOSED`.
|
|
127
129
|
|
|
128
130
|
## Errors
|
|
129
131
|
|