@ffflorian/https-proxy 1.20.3 → 1.20.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.
@@ -1,4 +1,4 @@
1
- import basicAuth from 'basic-auth';
1
+ import { parse as parseBasicAuth } from 'basic-auth';
2
2
  import { StatusCodes as HTTP_STATUS } from 'http-status-codes';
3
3
  import logdown from 'logdown';
4
4
  import http from 'node:http';
@@ -104,7 +104,7 @@ export class HttpsProxy {
104
104
  ].join('\r\n');
105
105
  }
106
106
  validateAuthorization(auth) {
107
- const credentials = basicAuth.parse(auth);
107
+ const credentials = parseBasicAuth(auth);
108
108
  return (!!credentials &&
109
109
  compare(credentials.name, this.options.username) &&
110
110
  compare(credentials.pass, this.options.password));
package/dist/cli.js CHANGED
File without changes
package/package.json CHANGED
@@ -2,8 +2,8 @@
2
2
  "author": "Florian Imdahl <git@ffflorian.de>",
3
3
  "bin": "dist/cli.js",
4
4
  "dependencies": {
5
- "basic-auth": "2.0.1",
6
- "commander": "14.0.3",
5
+ "basic-auth": "3.0.0",
6
+ "commander": "15.0.0",
7
7
  "http-status-codes": "2.3.0",
8
8
  "logdown": "3.3.1",
9
9
  "tsscmp": "1.0.6"
@@ -12,11 +12,11 @@
12
12
  "devDependencies": {
13
13
  "@types/basic-auth": "1.1.8",
14
14
  "@types/tsscmp": "1.0.2",
15
- "tsx": "4.22.0",
16
- "typescript": "6.0.3"
15
+ "tsx": "4.23.13",
16
+ "typescript": "7.0.2"
17
17
  },
18
18
  "engines": {
19
- "node": ">= 21"
19
+ "node": ">= 22.12.0"
20
20
  },
21
21
  "exports": "./dist/index.js",
22
22
  "files": [
@@ -42,5 +42,5 @@
42
42
  "test": "vitest run"
43
43
  },
44
44
  "type": "module",
45
- "version": "1.20.3"
45
+ "version": "1.20.5"
46
46
  }