@midwayjs/http-proxy 4.0.0-beta.7 → 4.0.0-beta.8
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/configuration.js +2 -0
- package/dist/middleware.d.ts +0 -1
- package/dist/middleware.js +2 -0
- package/package.json +8 -8
package/dist/configuration.js
CHANGED
|
@@ -14,6 +14,8 @@ const core_1 = require("@midwayjs/core");
|
|
|
14
14
|
const DefaultConfig = require("./config/config.default");
|
|
15
15
|
const middleware_1 = require("./middleware");
|
|
16
16
|
let HttpProxyConfiguration = class HttpProxyConfiguration {
|
|
17
|
+
applicationManager;
|
|
18
|
+
httpProxy;
|
|
17
19
|
async onReady() {
|
|
18
20
|
if (this.httpProxy.enable) {
|
|
19
21
|
this.applicationManager
|
package/dist/middleware.d.ts
CHANGED
package/dist/middleware.js
CHANGED
|
@@ -13,6 +13,8 @@ exports.HttpProxyMiddleware = void 0;
|
|
|
13
13
|
const core_1 = require("@midwayjs/core");
|
|
14
14
|
const axios = require("axios");
|
|
15
15
|
let HttpProxyMiddleware = class HttpProxyMiddleware {
|
|
16
|
+
httpProxy;
|
|
17
|
+
logger;
|
|
16
18
|
resolve(app) {
|
|
17
19
|
if (app.getNamespace() === 'express') {
|
|
18
20
|
return async (req, res, next) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/http-proxy",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.8",
|
|
4
4
|
"description": "Midway Component for http proxy",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"axios": "1.12.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@midwayjs/core": "^4.0.0-beta.
|
|
33
|
-
"@midwayjs/express": "^4.0.0-beta.
|
|
34
|
-
"@midwayjs/faas": "^4.0.0-beta.
|
|
35
|
-
"@midwayjs/koa": "^4.0.0-beta.
|
|
36
|
-
"@midwayjs/mock": "^4.0.0-beta.
|
|
37
|
-
"@midwayjs/web": "^4.0.0-beta.
|
|
32
|
+
"@midwayjs/core": "^4.0.0-beta.8",
|
|
33
|
+
"@midwayjs/express": "^4.0.0-beta.8",
|
|
34
|
+
"@midwayjs/faas": "^4.0.0-beta.8",
|
|
35
|
+
"@midwayjs/koa": "^4.0.0-beta.8",
|
|
36
|
+
"@midwayjs/mock": "^4.0.0-beta.8",
|
|
37
|
+
"@midwayjs/web": "^4.0.0-beta.8",
|
|
38
38
|
"nock": "13.5.5"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "355e55949fdd132b0bdcb4830222a0a027e92ded"
|
|
41
41
|
}
|