mock-tls-server 1.1.1 → 1.1.4

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
@@ -74,6 +74,7 @@ export class MockTLSServer extends net.Server {
74
74
  ...tls_opts,
75
75
  });
76
76
  const temit = tsock.emit;
77
+ // @ts-expect-error Monkey patch
77
78
  tsock.emit = (eventName, ...args) => {
78
79
  log('tls', eventName, ...classNames(args));
79
80
  // @ts-ignore
@@ -95,10 +96,12 @@ export class MockTLSServer extends net.Server {
95
96
  } else {
96
97
  const caOpts = getCAoptions(cert_opts);
97
98
  caOpts.temp = true;
99
+ caOpts.mute = true;
98
100
  const authority =
99
101
  local_opts.authority || new CertificateAuthority(caOpts);
100
102
  const issueOpts = getIssueOptions(cert_opts);
101
103
  issueOpts.temp = true;
104
+ issueOpts.mute = true;
102
105
  const serverProps = authority.issueNew(issueOpts);
103
106
  this.cert = serverProps.cert;
104
107
  this.ca = serverProps.ca?.cert;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mock-tls-server",
3
- "version": "1.1.1",
3
+ "version": "1.1.4",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
@@ -33,24 +33,24 @@
33
33
  "license": "MIT",
34
34
  "repository": "hildjj/mock-tls-server",
35
35
  "dependencies": {
36
- "@cto.af/ca": "2.4.0",
37
- "@cto.af/utils": "1.3.2"
36
+ "@cto.af/ca": "2.6.4",
37
+ "@cto.af/utils": "1.4.2"
38
38
  },
39
39
  "devDependencies": {
40
- "@cto.af/eslint-config": "6.0.14",
41
- "@eslint/markdown": "7.2.0",
40
+ "@cto.af/eslint-config": "6.2.5",
41
+ "@eslint/markdown": "7.5.1",
42
42
  "@types/jsrsasign": "10.5.15",
43
- "@types/node": "24.5.2",
44
- "ava": "6.4.1",
45
- "c8": "10.1.3",
46
- "eslint": "9.36.0",
47
- "eslint-plugin-ava": "^15.1.0",
48
- "eslint-plugin-jsdoc": "60.1.1",
49
- "p-event": "7.0.0",
50
- "typedoc": "0.28.13",
51
- "typescript": "^5.9.2"
43
+ "@types/node": "25.3.5",
44
+ "ava": "7.0.0",
45
+ "eslint": "10.0.2",
46
+ "eslint-plugin-ava": "^16.0.0",
47
+ "eslint-plugin-jsdoc": "62.7.1",
48
+ "p-event": "7.1.0",
49
+ "superc8": "^12.2.4",
50
+ "typedoc": "0.28.17",
51
+ "typescript": "^5.9.3"
52
52
  },
53
- "packageManager": "pnpm@10.17.0",
53
+ "packageManager": "pnpm@10.30.3",
54
54
  "engines": {
55
55
  "node": ">=20"
56
56
  }
package/types/net.d.ts CHANGED
@@ -65,7 +65,7 @@ export function createServer(opts?: ServerOpts | SocketCallback, connectionListe
65
65
  /**
66
66
  * A mock server socket, more-or-less like net.Server.
67
67
  */
68
- export class Server extends EventEmitter<[never]> {
68
+ export class Server extends EventEmitter<any> {
69
69
  /**
70
70
  * Creates an instance of Server.
71
71
  *