@ffflorian/https-proxy 1.10.3 → 1.10.5

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.
@@ -78,7 +78,7 @@ export class HttpsProxy {
78
78
  res.end('Bad Request');
79
79
  this.logger.warn(`Rejected "${req.method}" request from "${req.socket.remoteAddress}"`);
80
80
  };
81
- this.options = Object.assign(Object.assign({}, defaultOptions), options);
81
+ this.options = { ...defaultOptions, ...options };
82
82
  this.logger = logdown('https-proxy', {
83
83
  logger: console,
84
84
  markdown: false,
package/dist/cjs/cli.js CHANGED
@@ -20,4 +20,9 @@ if ((commanderOptions.password && !commanderOptions.username) ||
20
20
  commander.outputHelp();
21
21
  process.exit(1);
22
22
  }
23
- new HttpsProxy(Object.assign(Object.assign(Object.assign(Object.assign({}, (commanderOptions.password && { password: commanderOptions.password })), (commanderOptions.port && { port: commanderOptions.port })), (commanderOptions.target && { target: commanderOptions.target })), (commanderOptions.username && { username: commanderOptions.username }))).start();
23
+ new HttpsProxy({
24
+ ...(commanderOptions.password && { password: commanderOptions.password }),
25
+ ...(commanderOptions.port && { port: commanderOptions.port }),
26
+ ...(commanderOptions.target && { target: commanderOptions.target }),
27
+ ...(commanderOptions.username && { username: commanderOptions.username }),
28
+ }).start();
@@ -78,7 +78,7 @@ export class HttpsProxy {
78
78
  res.end('Bad Request');
79
79
  this.logger.warn(`Rejected "${req.method}" request from "${req.socket.remoteAddress}"`);
80
80
  };
81
- this.options = Object.assign(Object.assign({}, defaultOptions), options);
81
+ this.options = { ...defaultOptions, ...options };
82
82
  this.logger = logdown('https-proxy', {
83
83
  logger: console,
84
84
  markdown: false,
package/dist/esm/cli.js CHANGED
@@ -20,4 +20,9 @@ if ((commanderOptions.password && !commanderOptions.username) ||
20
20
  commander.outputHelp();
21
21
  process.exit(1);
22
22
  }
23
- new HttpsProxy(Object.assign(Object.assign(Object.assign(Object.assign({}, (commanderOptions.password && { password: commanderOptions.password })), (commanderOptions.port && { port: commanderOptions.port })), (commanderOptions.target && { target: commanderOptions.target })), (commanderOptions.username && { username: commanderOptions.username }))).start();
23
+ new HttpsProxy({
24
+ ...(commanderOptions.password && { password: commanderOptions.password }),
25
+ ...(commanderOptions.port && { port: commanderOptions.port }),
26
+ ...(commanderOptions.target && { target: commanderOptions.target }),
27
+ ...(commanderOptions.username && { username: commanderOptions.username }),
28
+ }).start();
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "bin": "dist/cjs/cli.js",
4
4
  "dependencies": {
5
5
  "basic-auth": "2.0.1",
6
- "commander": "12.0.0",
6
+ "commander": "12.1.0",
7
7
  "http-status-codes": "2.3.0",
8
8
  "logdown": "3.3.1",
9
9
  "tsscmp": "1.0.6"
@@ -12,8 +12,8 @@
12
12
  "devDependencies": {
13
13
  "@types/basic-auth": "1.1.8",
14
14
  "@types/tsscmp": "1.0.2",
15
- "rimraf": "5.0.5",
16
- "typescript": "5.4.4"
15
+ "rimraf": "5.0.7",
16
+ "typescript": "5.5.2"
17
17
  },
18
18
  "engines": {
19
19
  "node": ">= 18.0"
@@ -46,6 +46,6 @@
46
46
  "start": "node --loader ts-node/esm src/cli.ts"
47
47
  },
48
48
  "type": "module",
49
- "version": "1.10.3",
50
- "gitHead": "ca4256609abc0b2ce6b44c4d0691c250830e2993"
49
+ "version": "1.10.5",
50
+ "gitHead": "f7a6a79286e4eb85392b5f2d33942ab166142109"
51
51
  }