@gasket/plugin-https-proxy 8.0.0-next.1 → 8.0.0-next.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.
Files changed (2) hide show
  1. package/lib/index.d.ts +6 -1
  2. package/package.json +8 -5
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": "8.0.0-next.1",
3
+ "version": "8.0.0-next.2",
4
4
  "description": "Adds support for running an https proxy",
5
5
  "type": "module",
6
6
  "types": "lib/index.d.ts",
@@ -15,7 +15,10 @@
15
15
  },
16
16
  "./package.json": "./package.json"
17
17
  },
18
- "repository": "godaddy/gasket.git",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "godaddy/gasket.git"
21
+ },
19
22
  "publishConfig": {
20
23
  "access": "public"
21
24
  },
@@ -34,11 +37,11 @@
34
37
  },
35
38
  "devDependencies": {
36
39
  "vitest": "^3.2.0",
37
- "@gasket/core": "^8.0.0-next.1",
40
+ "@gasket/core": "^8.0.0-next.3",
38
41
  "@gasket/plugin-https": "^8.0.0-next.1",
39
- "@gasket/plugin-logger": "^8.0.0-next.1",
42
+ "@gasket/plugin-logger": "^8.0.0-next.2",
40
43
  "@gasket/plugin-metadata": "^8.0.0-next.1",
41
- "create-gasket-app": "^8.0.0-next.1"
44
+ "create-gasket-app": "^8.0.0-next.3"
42
45
  },
43
46
  "scripts": {
44
47
  "lint": "eslint .",