@gasket/plugin-https-proxy 7.5.0 → 7.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.
- package/lib/index.d.ts +6 -1
- package/package.json +7 -8
package/lib/index.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import type { Plugin, MaybeAsync } from '@gasket/core';
|
|
2
|
-
import type { RequireAtLeastOne } from '@gasket/plugin-https';
|
|
3
2
|
import type { Url } from 'url';
|
|
4
3
|
import type { Stream } from 'stream';
|
|
5
4
|
import ProxyServer from 'http-proxy';
|
|
6
5
|
|
|
6
|
+
type RequireAtLeastOne<T, Keys extends keyof T = keyof T> =
|
|
7
|
+
Pick<T, Exclude<keyof T, Keys>> &
|
|
8
|
+
{
|
|
9
|
+
[K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
|
|
10
|
+
}[Keys];
|
|
11
|
+
|
|
7
12
|
/**
|
|
8
13
|
* http-proxy does not export types.
|
|
9
14
|
* Any Proxy* types have been lifted from @types/http-proxy
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gasket/plugin-https-proxy",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.2",
|
|
4
4
|
"description": "Adds support for running an https proxy",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -37,16 +37,15 @@
|
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"vitest": "^3.2.0",
|
|
40
|
-
"@gasket/cjs": "^7.1.
|
|
41
|
-
"@gasket/core": "^7.6
|
|
42
|
-
"@gasket/plugin-https": "^7.4.
|
|
43
|
-
"@gasket/plugin-logger": "^7.
|
|
44
|
-
"@gasket/plugin-metadata": "^7.5.
|
|
45
|
-
"create-gasket-app": "^7.4.
|
|
40
|
+
"@gasket/cjs": "^7.1.2",
|
|
41
|
+
"@gasket/core": "^7.7.6",
|
|
42
|
+
"@gasket/plugin-https": "^7.4.2",
|
|
43
|
+
"@gasket/plugin-logger": "^7.5.1",
|
|
44
|
+
"@gasket/plugin-metadata": "^7.5.13",
|
|
45
|
+
"create-gasket-app": "^7.4.24"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "gasket-cjs ./lib",
|
|
49
|
-
"build:watch": "pnpm run build --watch",
|
|
50
49
|
"lint": "eslint .",
|
|
51
50
|
"lint:fix": "pnpm run lint --fix",
|
|
52
51
|
"posttest": "pnpm run lint && pnpm run typecheck",
|