mock-tls-server 1.0.0 → 1.0.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/lib/index.js CHANGED
@@ -27,7 +27,7 @@ import tls from 'node:tls';
27
27
  /**
28
28
  * @typedef {object} ListenOptions
29
29
  * @property {number} port The port to listen on.
30
- * @property {SecureConnectionCallback} secureConnectionListener If it exists,
30
+ * @property {SecureConnectionCallback} [secureConnectionListener] If it exists,
31
31
  * installed as a listener for the 'secureConnection' event.
32
32
  */
33
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mock-tls-server",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
package/types/index.d.ts CHANGED
@@ -28,7 +28,7 @@ export function connect(options: tls.ConnectionOptions | number, secureListener?
28
28
  /**
29
29
  * @typedef {object} ListenOptions
30
30
  * @property {number} port The port to listen on.
31
- * @property {SecureConnectionCallback} secureConnectionListener If it exists,
31
+ * @property {SecureConnectionCallback} [secureConnectionListener] If it exists,
32
32
  * installed as a listener for the 'secureConnection' event.
33
33
  */
34
34
  /**
@@ -88,7 +88,7 @@ export type ListenOptions = {
88
88
  * If it exists,
89
89
  * installed as a listener for the 'secureConnection' event.
90
90
  */
91
- secureConnectionListener: SecureConnectionCallback;
91
+ secureConnectionListener?: SecureConnectionCallback | undefined;
92
92
  };
93
93
  import tls from 'node:tls';
94
94
  import * as net from './net.js';