@midwayjs/http-proxy 3.12.10 → 3.13.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/dist/config/config.default.js +3 -1
- package/dist/configuration.d.ts +2 -1
- package/dist/configuration.js +1 -1
- package/dist/interface.d.ts +1 -0
- package/package.json +10 -10
package/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { MidwayApplicationManager } from '@midwayjs/core';
|
|
2
|
+
import { HttpProxyConfig } from './interface';
|
|
2
3
|
export declare class HttpProxyConfiguration {
|
|
3
4
|
applicationManager: MidwayApplicationManager;
|
|
4
|
-
httpProxy:
|
|
5
|
+
httpProxy: Partial<HttpProxyConfig>;
|
|
5
6
|
onReady(): Promise<void>;
|
|
6
7
|
}
|
|
7
8
|
//# sourceMappingURL=configuration.d.ts.map
|
package/dist/configuration.js
CHANGED
|
@@ -15,7 +15,7 @@ const DefaultConfig = require("./config/config.default");
|
|
|
15
15
|
const middleware_1 = require("./middleware");
|
|
16
16
|
let HttpProxyConfiguration = class HttpProxyConfiguration {
|
|
17
17
|
async onReady() {
|
|
18
|
-
if (this.httpProxy) {
|
|
18
|
+
if (this.httpProxy.enable) {
|
|
19
19
|
this.applicationManager
|
|
20
20
|
.getApplications(['koa', 'faas', 'express', 'egg'])
|
|
21
21
|
.forEach(app => {
|
package/dist/interface.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/http-proxy",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.13.1",
|
|
4
4
|
"description": "Midway Component for http proxy",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"axios": "1.6.
|
|
29
|
+
"axios": "1.6.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@midwayjs/core": "^3.
|
|
33
|
-
"@midwayjs/express": "^3.
|
|
34
|
-
"@midwayjs/faas": "^3.
|
|
35
|
-
"@midwayjs/koa": "^3.
|
|
36
|
-
"@midwayjs/mock": "^3.
|
|
37
|
-
"@midwayjs/serverless-app": "^3.
|
|
38
|
-
"@midwayjs/web": "^3.
|
|
32
|
+
"@midwayjs/core": "^3.13.0",
|
|
33
|
+
"@midwayjs/express": "^3.13.0",
|
|
34
|
+
"@midwayjs/faas": "^3.13.0",
|
|
35
|
+
"@midwayjs/koa": "^3.13.0",
|
|
36
|
+
"@midwayjs/mock": "^3.13.0",
|
|
37
|
+
"@midwayjs/serverless-app": "^3.13.0",
|
|
38
|
+
"@midwayjs/web": "^3.13.1"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "bc7378899b34cc2846a7429777d052b0ed7cdb24"
|
|
41
41
|
}
|