@gasket/plugin-https-proxy 7.2.2 → 7.3.0

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/actions.js CHANGED
@@ -1,5 +1,3 @@
1
- /// <reference types="./index.d.ts"/>
2
-
3
1
  import proxy from 'http-proxy';
4
2
 
5
3
  /** @type {import('@gasket/core').ActionHandler<'startProxyServer'>} */
package/lib/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { Plugin } from '@gasket/core';
1
+ import type { Plugin, MaybeAsync } from '@gasket/core';
2
2
  import type { ServerOptions as ProxyServerOptions, Server as ProxyServer } from 'http-proxy';
3
- import http from 'http';
3
+ import type { RequireAtLeastOne } from '@gasket/plugin-https';
4
4
 
5
5
  interface BaseHttpsProxyConfig extends ProxyServerOptions {
6
6
  protocol?: string;
@@ -8,6 +8,8 @@ interface BaseHttpsProxyConfig extends ProxyServerOptions {
8
8
  hostname?: string;
9
9
  /** defaults to 8080 */
10
10
  port?: number;
11
+ target?: string;
12
+ forward?: string;
11
13
  }
12
14
 
13
15
  declare module '@gasket/core' {
@@ -26,9 +28,9 @@ declare module '@gasket/core' {
26
28
  }
27
29
  }
28
30
 
29
- const plugin: Plugin = {
30
- name: '@gasket/plugin-plugin-https-proxy',
31
- hooks: {}
32
- };
33
31
 
34
- export default plugin;
32
+
33
+ declare module '@gasket/plugin-https-proxy' {
34
+ const plugin: Plugin;
35
+ export default plugin;
36
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gasket/plugin-https-proxy",
3
- "version": "7.2.2",
3
+ "version": "7.3.0",
4
4
  "description": "Adds support for running an https proxy",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -8,16 +8,6 @@
8
8
  "files": [
9
9
  "lib"
10
10
  ],
11
- "scripts": {
12
- "lint": "eslint .",
13
- "lint:fix": "npm run lint -- --fix",
14
- "test": "vitest --watch=false",
15
- "test:watch": "vitest",
16
- "test:coverage": "npm run test -- --coverage",
17
- "posttest": "npm run lint && npm run typecheck",
18
- "typecheck": "tsc",
19
- "typecheck:watch": "tsc --watch"
20
- },
21
11
  "repository": {
22
12
  "type": "git",
23
13
  "url": "git+ssh://git@github.com/godaddy/gasket.git"
@@ -41,16 +31,20 @@
41
31
  "http-proxy": "^1.18.1"
42
32
  },
43
33
  "devDependencies": {
44
- "@gasket/core": "^7.2.2",
45
- "@gasket/plugin-logger": "^7.2.2",
46
- "@types/node": "^20.12.5",
47
- "eslint": "^8.56.0",
34
+ "@types/jest": "^29.5.14",
35
+ "@types/node": "^20.17.19",
36
+ "eslint": "^8.57.1",
48
37
  "eslint-config-godaddy": "^7.1.1",
49
- "eslint-plugin-jest": "^28.6.0",
50
- "eslint-plugin-json": "^3.1.0",
38
+ "eslint-config-godaddy-typescript": "^4.0.3",
39
+ "eslint-plugin-jest": "^28.11.0",
51
40
  "eslint-plugin-unicorn": "^55.0.0",
52
- "typescript": "^5.4.5",
53
- "vitest": "^2.1.5"
41
+ "typescript": "^5.7.3",
42
+ "vitest": "^2.1.9",
43
+ "@gasket/core": "^7.3.0",
44
+ "@gasket/plugin-https": "^7.3.0",
45
+ "@gasket/plugin-logger": "^7.3.0",
46
+ "@gasket/plugin-metadata": "^7.3.0",
47
+ "create-gasket-app": "^7.3.0"
54
48
  },
55
49
  "eslintConfig": {
56
50
  "extends": [
@@ -64,7 +58,29 @@
64
58
  ],
65
59
  "rules": {
66
60
  "unicorn/filename-case": "error"
67
- }
61
+ },
62
+ "overrides": [
63
+ {
64
+ "files": [
65
+ "lib/*.ts"
66
+ ],
67
+ "extends": [
68
+ "godaddy-typescript"
69
+ ],
70
+ "rules": {
71
+ "jsdoc/*": "off"
72
+ }
73
+ }
74
+ ]
68
75
  },
69
- "gitHead": "f34775900acd2c6a6b3a224751c6dc091b7f50fe"
70
- }
76
+ "scripts": {
77
+ "lint": "eslint .",
78
+ "lint:fix": "pnpm run lint --fix",
79
+ "test": "vitest --watch=false",
80
+ "test:watch": "vitest",
81
+ "test:coverage": "pnpm run test --coverage",
82
+ "posttest": "pnpm run lint && pnpm run typecheck",
83
+ "typecheck": "tsc",
84
+ "typecheck:watch": "tsc --watch"
85
+ }
86
+ }