bare-http1 4.5.1 → 4.5.2

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.
Files changed (2) hide show
  1. package/index.d.ts +2 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -179,7 +179,7 @@ export interface HTTPServerConnectionOptions {
179
179
 
180
180
  export interface HTTPServerConnection {
181
181
  readonly server: HTTPServer
182
- readonly socket: TCPSocket
182
+ readonly socket: TCPSocket | null
183
183
 
184
184
  readonly req: HTTPIncomingMessage | null
185
185
  readonly res: HTTPServerResponse | null
@@ -228,7 +228,7 @@ export interface HTTPClientConnectionOptions {
228
228
  }
229
229
 
230
230
  export interface HTTPClientConnection {
231
- readonly socket: TCPSocket
231
+ readonly socket: TCPSocket | null
232
232
 
233
233
  readonly req: HTTPClientRequest | null
234
234
  readonly res: HTTPIncomingMessage | null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-http1",
3
- "version": "4.5.1",
3
+ "version": "4.5.2",
4
4
  "description": "Native HTTP/1 library for JavaScript",
5
5
  "exports": {
6
6
  "./package": "./package.json",