@gjsify/net 0.53.0 → 0.54.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/lib/types/error.spec.d.ts +16 -0
- package/package.json +7 -7
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Is this socket error the peer aborting the connection rather than a real fault?
|
|
3
|
+
*
|
|
4
|
+
* Closing a TCP connection that still has unread data queued in the peer's receive
|
|
5
|
+
* buffer makes the stack send RST instead of FIN, and the sender's next read reports
|
|
6
|
+
* `ECONNRESET`. Whether that surfaces depends on the OS, which is why it needs naming
|
|
7
|
+
* rather than blanket tolerance: win32 delivers the reset to a server socket whose
|
|
8
|
+
* client simply walked away, darwin and linux deliver a clean FIN and the read reports
|
|
9
|
+
* EOF. `read ECONNRESET` is that event, not a bug — a spec that has no reader for the
|
|
10
|
+
* peer's data provokes it.
|
|
11
|
+
*
|
|
12
|
+
* Deliberately narrow: `EPIPE` is OUR write to a socket the peer already closed, and a
|
|
13
|
+
* `ERR_STREAM_*` code comes from the stream layer above the socket, so neither is a peer
|
|
14
|
+
* reset and a test that swallows one of those is hiding something real.
|
|
15
|
+
*/
|
|
16
|
+
export declare function isPeerReset(err: unknown): boolean;
|
|
1
17
|
declare const _default: () => Promise<void>;
|
|
2
18
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/net",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.0",
|
|
4
4
|
"description": "Node.js net module for Gjs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
@@ -41,18 +41,18 @@
|
|
|
41
41
|
"net"
|
|
42
42
|
],
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@gjsify/cli": "^0.
|
|
45
|
-
"@gjsify/unit": "^0.
|
|
44
|
+
"@gjsify/cli": "^0.54.0",
|
|
45
|
+
"@gjsify/unit": "^0.54.0",
|
|
46
46
|
"@types/node": "^25.9.2",
|
|
47
47
|
"typescript": "^6.0.3"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@girs/gio-2.0": "5.4.0",
|
|
51
51
|
"@girs/glib-2.0": "5.4.0",
|
|
52
|
-
"@gjsify/buffer": "^0.
|
|
53
|
-
"@gjsify/events": "^0.
|
|
54
|
-
"@gjsify/stream": "^0.
|
|
55
|
-
"@gjsify/utils": "^0.
|
|
52
|
+
"@gjsify/buffer": "^0.54.0",
|
|
53
|
+
"@gjsify/events": "^0.54.0",
|
|
54
|
+
"@gjsify/stream": "^0.54.0",
|
|
55
|
+
"@gjsify/utils": "^0.54.0"
|
|
56
56
|
},
|
|
57
57
|
"gjsify": {
|
|
58
58
|
"runtimes": {
|