http-proxy-middleware 1.0.0 → 1.0.1
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/CHANGELOG.md +5 -1
- package/README.md +10 -2
- package/dist/tsconfig.tsbuildinfo +2911 -0
- package/dist/types.d.ts +3 -3
- package/package.json +21 -16
package/dist/types.d.ts
CHANGED
|
@@ -16,12 +16,12 @@ export interface Options extends httpProxy.ServerOptions {
|
|
|
16
16
|
[regexp: string]: string;
|
|
17
17
|
} | ((path: string, req: Request) => string) | ((path: string, req: Request) => Promise<string>);
|
|
18
18
|
router?: {
|
|
19
|
-
[hostOrPath: string]:
|
|
20
|
-
} | ((req: Request) =>
|
|
19
|
+
[hostOrPath: string]: httpProxy.ServerOptions['target'];
|
|
20
|
+
} | ((req: Request) => httpProxy.ServerOptions['target']) | ((req: Request) => Promise<httpProxy.ServerOptions['target']>);
|
|
21
21
|
logLevel?: 'debug' | 'info' | 'warn' | 'error' | 'silent';
|
|
22
22
|
logProvider?(provider: LogProvider): LogProvider;
|
|
23
23
|
onError?(err: Error, req: Request, res: Response): void;
|
|
24
|
-
onProxyRes?(proxyRes: http.
|
|
24
|
+
onProxyRes?(proxyRes: http.IncomingMessage, req: Request, res: Response): void;
|
|
25
25
|
onProxyReq?(proxyReq: http.ClientRequest, req: Request, res: Response): void;
|
|
26
26
|
onProxyReqWs?(proxyReq: http.ClientRequest, req: Request, socket: net.Socket, options: httpProxy.ServerOptions, head: any): void;
|
|
27
27
|
onOpen?(proxySocket: net.Socket): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "http-proxy-middleware",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"lint:fix": "prettier --write \"**/*.{js,ts,md}\"",
|
|
16
16
|
"build": "tsc",
|
|
17
17
|
"pretest": "yarn build",
|
|
18
|
-
"test": "jest
|
|
18
|
+
"test": "jest",
|
|
19
19
|
"precover": "yarn clean && yarn build",
|
|
20
|
-
"cover": "jest --
|
|
20
|
+
"cover": "jest --coverage",
|
|
21
21
|
"precoveralls": "yarn clean && yarn build",
|
|
22
|
-
"coveralls": "jest --
|
|
22
|
+
"coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls",
|
|
23
23
|
"postcoveralls": "yarn clean",
|
|
24
24
|
"prepare": "yarn clean && yarn build"
|
|
25
25
|
},
|
|
@@ -50,27 +50,31 @@
|
|
|
50
50
|
},
|
|
51
51
|
"homepage": "https://github.com/chimurai/http-proxy-middleware#readme",
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@commitlint/cli": "^8.
|
|
54
|
-
"@commitlint/config-conventional": "^8.
|
|
55
|
-
"@types/express": "^4.17.
|
|
56
|
-
"@types/is-glob": "^4.0.
|
|
57
|
-
"@types/jest": "^25.1.
|
|
53
|
+
"@commitlint/cli": "^8.3.5",
|
|
54
|
+
"@commitlint/config-conventional": "^8.3.4",
|
|
55
|
+
"@types/express": "^4.17.2",
|
|
56
|
+
"@types/is-glob": "^4.0.1",
|
|
57
|
+
"@types/jest": "^25.1.3",
|
|
58
58
|
"@types/lodash": "^4.14.149",
|
|
59
59
|
"@types/micromatch": "^4.0.1",
|
|
60
|
-
"@types/node": "^
|
|
60
|
+
"@types/node": "^13.7.4",
|
|
61
|
+
"@types/supertest": "^2.0.8",
|
|
61
62
|
"browser-sync": "^2.26.7",
|
|
62
|
-
"connect": "^3.
|
|
63
|
+
"connect": "^3.7.0",
|
|
63
64
|
"coveralls": "^3.0.5",
|
|
64
|
-
"express": "^4.
|
|
65
|
-
"husky": "^
|
|
65
|
+
"express": "^4.17.1",
|
|
66
|
+
"husky": "^4.2.3",
|
|
66
67
|
"jest": "^25.1.0",
|
|
68
|
+
"lint-staged": "^10.0.7",
|
|
69
|
+
"mockttp": "^0.19.3",
|
|
67
70
|
"open": "^7.0.2",
|
|
68
71
|
"prettier": "^1.19.1",
|
|
72
|
+
"supertest": "^4.0.2",
|
|
69
73
|
"ts-jest": "^25.2.0",
|
|
70
74
|
"tslint": "^6.0.0",
|
|
71
75
|
"tslint-config-prettier": "^1.18.0",
|
|
72
|
-
"typescript": "^3.
|
|
73
|
-
"ws": "^7.1
|
|
76
|
+
"typescript": "^3.8.2",
|
|
77
|
+
"ws": "^7.2.1"
|
|
74
78
|
},
|
|
75
79
|
"dependencies": {
|
|
76
80
|
"@types/http-proxy": "^1.17.3",
|
|
@@ -84,7 +88,8 @@
|
|
|
84
88
|
},
|
|
85
89
|
"husky": {
|
|
86
90
|
"hooks": {
|
|
87
|
-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
91
|
+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
|
92
|
+
"pre-commit": "lint-staged"
|
|
88
93
|
}
|
|
89
94
|
},
|
|
90
95
|
"commitlint": {
|