better-sse 0.16.0 → 0.16.1
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/build/index.cjs +4 -4
- package/build/index.mjs +4 -4
- package/package.json +1 -1
package/build/index.cjs
CHANGED
|
@@ -90,8 +90,8 @@ var NodeHttp1Connection = class extends Connection {
|
|
|
90
90
|
super();
|
|
91
91
|
this.req = req;
|
|
92
92
|
this.res = res;
|
|
93
|
-
req.socket
|
|
94
|
-
res.socket?.setNoDelay(true);
|
|
93
|
+
req.socket?.setNoDelay?.(true);
|
|
94
|
+
res.socket?.setNoDelay?.(true);
|
|
95
95
|
this.url = new URL(req.url ?? "/", `http://${req.headers.host ?? Connection.constants.REQUEST_HOST}`);
|
|
96
96
|
this.controller = new AbortController();
|
|
97
97
|
req.once("close", this.onClose);
|
|
@@ -134,8 +134,8 @@ var NodeHttp2CompatConnection = class extends Connection {
|
|
|
134
134
|
super();
|
|
135
135
|
this.req = req;
|
|
136
136
|
this.res = res;
|
|
137
|
-
req.socket
|
|
138
|
-
res.socket?.setNoDelay(true);
|
|
137
|
+
req.socket?.setNoDelay?.(true);
|
|
138
|
+
res.socket?.setNoDelay?.(true);
|
|
139
139
|
this.url = new URL(req.url ?? "/", `http://${req.headers.host ?? Connection.constants.REQUEST_HOST}`);
|
|
140
140
|
this.controller = new AbortController();
|
|
141
141
|
req.once("close", this.onClose);
|
package/build/index.mjs
CHANGED
|
@@ -90,8 +90,8 @@ var NodeHttp1Connection = class extends Connection {
|
|
|
90
90
|
super();
|
|
91
91
|
this.req = req;
|
|
92
92
|
this.res = res;
|
|
93
|
-
req.socket
|
|
94
|
-
res.socket?.setNoDelay(true);
|
|
93
|
+
req.socket?.setNoDelay?.(true);
|
|
94
|
+
res.socket?.setNoDelay?.(true);
|
|
95
95
|
this.url = new URL(req.url ?? "/", `http://${req.headers.host ?? Connection.constants.REQUEST_HOST}`);
|
|
96
96
|
this.controller = new AbortController();
|
|
97
97
|
req.once("close", this.onClose);
|
|
@@ -134,8 +134,8 @@ var NodeHttp2CompatConnection = class extends Connection {
|
|
|
134
134
|
super();
|
|
135
135
|
this.req = req;
|
|
136
136
|
this.res = res;
|
|
137
|
-
req.socket
|
|
138
|
-
res.socket?.setNoDelay(true);
|
|
137
|
+
req.socket?.setNoDelay?.(true);
|
|
138
|
+
res.socket?.setNoDelay?.(true);
|
|
139
139
|
this.url = new URL(req.url ?? "/", `http://${req.headers.host ?? Connection.constants.REQUEST_HOST}`);
|
|
140
140
|
this.controller = new AbortController();
|
|
141
141
|
req.once("close", this.onClose);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-sse",
|
|
3
3
|
"description": "Dead simple, dependency-less, spec-compliant server-sent events implementation written in TypeScript.",
|
|
4
|
-
"version": "0.16.
|
|
4
|
+
"version": "0.16.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Matthew W. <matthew.widdi@gmail.com>",
|
|
7
7
|
"repository": "github:MatthewWid/better-sse",
|