@zukhruf/net 0.8.244 → 0.8.246
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 +12 -12
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -71,8 +71,8 @@ const sshd = new Server(
|
|
|
71
71
|
|
|
72
72
|
| A copy in the tests | With the package |
|
|
73
73
|
| ----------------------------------------------------------------- | -------------------------------------------------------------- |
|
|
74
|
-
| ssh `startSilentServer()
|
|
75
|
-
| mutex `standInServer(path, onPeer)
|
|
74
|
+
| ssh `startSilentServer()` and docker's copy, gone | `new Server(() => {}).serve(new TcpEndpoint())` |
|
|
75
|
+
| mutex and single-flight `standInServer(path, onPeer)`, gone | `new Server(onPeer).serve(new PipeEndpoint(path, { prefix }))` |
|
|
76
76
|
| ssh `listen(path, accepted, { allowHalfOpen })`, gone in 3c65b386 | `new Server(accepted, { allowHalfOpen }).serve(endpoint)` |
|
|
77
77
|
| `portOf(server)` | `serving.address.port` |
|
|
78
78
|
|
|
@@ -133,16 +133,16 @@ The package has no error class of its own. A caller does not do a different next
|
|
|
133
133
|
|
|
134
134
|
## Who uses it
|
|
135
135
|
|
|
136
|
-
| Consumer | How
|
|
137
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
138
|
-
| 106 test files of elt (49), text2sql (20), sdk-it (18), finetuning (9), mteb (6), deepagents (2), context-compiler (1) and offers-evals (1) | `HttpServer` on a `TcpEndpoint`
|
|
139
|
-
| ssh's `client`, `config-dial-route` and `config-dial` tests
|
|
140
|
-
| 6 mutex and 3 single-flight test files | `Server` on a `PipeEndpoint
|
|
141
|
-
| ssh `control.test.ts`, `owner-death.test.ts` and `channels.test.ts` | `Server` on a `TcpEndpoint` or a `PipeEndpoint`, with `allowHalfOpen` where the test answers after the end, in place of `listen`
|
|
142
|
-
| ssh `client-ref.test.ts`, `src/testing/reports.ts` and `src/testing/ssh-client.ts` | `Server` on a `TcpEndpoint`; `ssh-client.ts` ends with `shutdown(signal)`
|
|
143
|
-
| 9 files of ssh, and tools/eslint-rules `repoint.test.ts` | `serving.address.port`, in place of `portOf`
|
|
144
|
-
| the `sshd.ts` of ssh, docker and testing | `
|
|
145
|
-
| `@zukhruf/chaos` | `Proxy` is a handler that a `Server` serves
|
|
136
|
+
| Consumer | How | Record |
|
|
137
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- |
|
|
138
|
+
| 106 test files of elt (49), text2sql (20), sdk-it (18), finetuning (9), mteb (6), deepagents (2), context-compiler (1) and offers-evals (1) | `HttpServer` on a `TcpEndpoint` | backlog #6078 |
|
|
139
|
+
| ssh's `client`, `config-dial-route` and `config-dial` tests, and docker's `ssh-engine.test.ts` | `Server` whose handler only notes the accept, in place of ssh's `startSilentServer` and docker's copy of it | backlog #6078 |
|
|
140
|
+
| 6 mutex and 3 single-flight test files | `Server` on a `PipeEndpoint` with a rooted name, in place of the `standInServer` copies of mutex and single-flight | backlog #6078 |
|
|
141
|
+
| ssh `control.test.ts`, `owner-death.test.ts` and `channels.test.ts` | `Server` on a `TcpEndpoint` or a `PipeEndpoint`, with `allowHalfOpen` where the test answers after the end, in place of `listen` | backlog #6078 |
|
|
142
|
+
| ssh `client-ref.test.ts`, `src/testing/reports.ts` and `src/testing/ssh-client.ts` | `Server` on a `TcpEndpoint`; `ssh-client.ts` ends with `shutdown(signal)` | backlog #6078 |
|
|
143
|
+
| 9 files of ssh, and tools/eslint-rules `repoint.test.ts` | `serving.address.port`, in place of `portOf` | backlog #5947 |
|
|
144
|
+
| the `sshd.ts` of ssh, docker and testing | `Server` with `pauseOnConnect` on a `TcpEndpoint`, which hands each socket to an `sshd -i`, and `serving.address.port` in place of `portOf`; the disposal ends with `shutdown(signal)` | backlog #6078 |
|
|
145
|
+
| `@zukhruf/chaos` | `Proxy` is a handler that a `Server` serves | backlog #6078 |
|
|
146
146
|
|
|
147
147
|
## The same concepts in other systems
|
|
148
148
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zukhruf/net",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.246",
|
|
4
4
|
"description": "A server that accepts connections on a TCP port or a pipe and owns each socket: close destroys each one and waits for its close, shutdown waits until its signal aborts; @zukhruf/net/http serves HTTP the same way. After Go's net and net/http.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@zukhruf/fs": "^0.8.
|
|
53
|
-
"@zukhruf/parameterized-test": "^0.8.
|
|
54
|
-
"@zukhruf/pipes": "^0.8.
|
|
55
|
-
"@zukhruf/process": "^0.8.
|
|
52
|
+
"@zukhruf/fs": "^0.8.246",
|
|
53
|
+
"@zukhruf/parameterized-test": "^0.8.246",
|
|
54
|
+
"@zukhruf/pipes": "^0.8.246",
|
|
55
|
+
"@zukhruf/process": "^0.8.246"
|
|
56
56
|
}
|
|
57
57
|
}
|