@modern-js/plugin-bff 2.32.0 → 2.32.2-alpha.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 +23 -0
- package/dist/cjs/cli.js +3 -4
- package/dist/esm/cli.js +3 -4
- package/dist/esm-node/cli.js +3 -4
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @modern-js/plugin-bff
|
|
2
2
|
|
|
3
|
+
## 2.32.2-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 01f3ca4be25: fix: should passthrough the requestCreator
|
|
8
|
+
fix: 应该传 requestCreator
|
|
9
|
+
- 01f3ca4be25: fix: should passthrough the requestCreator
|
|
10
|
+
fix: 应该透传 requestCreator
|
|
11
|
+
- Updated dependencies [bc1f8daf0ff]
|
|
12
|
+
- @modern-js/utils@2.32.2-alpha.0
|
|
13
|
+
- @modern-js/bff-core@2.32.2-alpha.0
|
|
14
|
+
- @modern-js/create-request@2.32.2-alpha.0
|
|
15
|
+
- @modern-js/server-utils@2.32.2-alpha.0
|
|
16
|
+
|
|
17
|
+
## 2.32.1
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- @modern-js/bff-core@2.32.1
|
|
22
|
+
- @modern-js/create-request@2.32.1
|
|
23
|
+
- @modern-js/utils@2.32.1
|
|
24
|
+
- @modern-js/server-utils@2.32.1
|
|
25
|
+
|
|
3
26
|
## 2.32.0
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/dist/cjs/cli.js
CHANGED
|
@@ -51,9 +51,6 @@ const bffPlugin = () => ({
|
|
|
51
51
|
},
|
|
52
52
|
proxy: {
|
|
53
53
|
type: "object"
|
|
54
|
-
},
|
|
55
|
-
requestCreator: {
|
|
56
|
-
type: "string"
|
|
57
54
|
}
|
|
58
55
|
}
|
|
59
56
|
}
|
|
@@ -64,7 +61,7 @@ const bffPlugin = () => ({
|
|
|
64
61
|
return {
|
|
65
62
|
tools: {
|
|
66
63
|
bundlerChain: (chain, { CHAIN_ID, isServer }) => {
|
|
67
|
-
var _bff, _bff1;
|
|
64
|
+
var _bff, _bff1, _bff2;
|
|
68
65
|
const { port, appDirectory, apiDirectory, lambdaDirectory } = api.useAppContext();
|
|
69
66
|
const modernConfig = api.useResolvedConfigContext();
|
|
70
67
|
const { bff } = modernConfig || {};
|
|
@@ -92,6 +89,8 @@ const bffPlugin = () => ({
|
|
|
92
89
|
existLambda,
|
|
93
90
|
port,
|
|
94
91
|
target: name,
|
|
92
|
+
// Internal field
|
|
93
|
+
requestCreator: (_bff2 = bff) === null || _bff2 === void 0 ? void 0 : _bff2.requestCreator,
|
|
95
94
|
httpMethodDecider
|
|
96
95
|
});
|
|
97
96
|
}
|
package/dist/esm/cli.js
CHANGED
|
@@ -37,9 +37,6 @@ export var bffPlugin = function() {
|
|
|
37
37
|
},
|
|
38
38
|
proxy: {
|
|
39
39
|
type: "object"
|
|
40
|
-
},
|
|
41
|
-
requestCreator: {
|
|
42
|
-
type: "string"
|
|
43
40
|
}
|
|
44
41
|
}
|
|
45
42
|
}
|
|
@@ -51,7 +48,7 @@ export var bffPlugin = function() {
|
|
|
51
48
|
tools: {
|
|
52
49
|
bundlerChain: function(chain, param) {
|
|
53
50
|
var CHAIN_ID = param.CHAIN_ID, isServer = param.isServer;
|
|
54
|
-
var _bff, _bff1;
|
|
51
|
+
var _bff, _bff1, _bff2;
|
|
55
52
|
var _api_useAppContext = api.useAppContext(), port = _api_useAppContext.port, appDirectory = _api_useAppContext.appDirectory, apiDirectory = _api_useAppContext.apiDirectory, lambdaDirectory = _api_useAppContext.lambdaDirectory;
|
|
56
53
|
var modernConfig = api.useResolvedConfigContext();
|
|
57
54
|
var bff = (modernConfig || {}).bff;
|
|
@@ -79,6 +76,8 @@ export var bffPlugin = function() {
|
|
|
79
76
|
existLambda: existLambda,
|
|
80
77
|
port: port,
|
|
81
78
|
target: name,
|
|
79
|
+
// Internal field
|
|
80
|
+
requestCreator: (_bff2 = bff) === null || _bff2 === void 0 ? void 0 : _bff2.requestCreator,
|
|
82
81
|
httpMethodDecider: httpMethodDecider
|
|
83
82
|
});
|
|
84
83
|
}
|
package/dist/esm-node/cli.js
CHANGED
|
@@ -31,9 +31,6 @@ export const bffPlugin = () => ({
|
|
|
31
31
|
},
|
|
32
32
|
proxy: {
|
|
33
33
|
type: "object"
|
|
34
|
-
},
|
|
35
|
-
requestCreator: {
|
|
36
|
-
type: "string"
|
|
37
34
|
}
|
|
38
35
|
}
|
|
39
36
|
}
|
|
@@ -44,7 +41,7 @@ export const bffPlugin = () => ({
|
|
|
44
41
|
return {
|
|
45
42
|
tools: {
|
|
46
43
|
bundlerChain: (chain, { CHAIN_ID, isServer }) => {
|
|
47
|
-
var _bff, _bff1;
|
|
44
|
+
var _bff, _bff1, _bff2;
|
|
48
45
|
const { port, appDirectory, apiDirectory, lambdaDirectory } = api.useAppContext();
|
|
49
46
|
const modernConfig = api.useResolvedConfigContext();
|
|
50
47
|
const { bff } = modernConfig || {};
|
|
@@ -72,6 +69,8 @@ export const bffPlugin = () => ({
|
|
|
72
69
|
existLambda,
|
|
73
70
|
port,
|
|
74
71
|
target: name,
|
|
72
|
+
// Internal field
|
|
73
|
+
requestCreator: (_bff2 = bff) === null || _bff2 === void 0 ? void 0 : _bff2.requestCreator,
|
|
75
74
|
httpMethodDecider
|
|
76
75
|
});
|
|
77
76
|
}
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.32.
|
|
18
|
+
"version": "2.32.2-alpha.1",
|
|
19
19
|
"jsnext:source": "./src/cli.ts",
|
|
20
20
|
"types": "./dist/types/cli.d.ts",
|
|
21
21
|
"main": "./dist/cjs/cli.js",
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@babel/core": "^7.21.8",
|
|
59
59
|
"@swc/helpers": "0.5.1",
|
|
60
|
-
"@modern-js/create-request": "2.32.
|
|
61
|
-
"@modern-js/bff-core": "2.32.
|
|
62
|
-
"@modern-js/server-utils": "2.32.
|
|
63
|
-
"@modern-js/utils": "2.32.
|
|
60
|
+
"@modern-js/create-request": "2.32.2-alpha.1",
|
|
61
|
+
"@modern-js/bff-core": "2.32.2-alpha.1",
|
|
62
|
+
"@modern-js/server-utils": "2.32.2-alpha.1",
|
|
63
|
+
"@modern-js/utils": "2.32.2-alpha.1"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@types/babel__core": "^7.20.0",
|
|
@@ -71,14 +71,14 @@
|
|
|
71
71
|
"ts-jest": "^29.1.0",
|
|
72
72
|
"typescript": "^5",
|
|
73
73
|
"webpack": "^5.88.1",
|
|
74
|
-
"@modern-js/runtime": "2.32.
|
|
75
|
-
"@modern-js/core": "2.32.
|
|
76
|
-
"@modern-js/bff-runtime": "2.32.
|
|
77
|
-
"@modern-js/server-core": "2.32.
|
|
78
|
-
"@modern-js/types": "2.32.
|
|
79
|
-
"@modern-js/app-tools": "2.32.
|
|
80
|
-
"@scripts/
|
|
81
|
-
"@scripts/
|
|
74
|
+
"@modern-js/runtime": "2.32.2-alpha.1",
|
|
75
|
+
"@modern-js/core": "2.32.2-alpha.1",
|
|
76
|
+
"@modern-js/bff-runtime": "2.32.2-alpha.1",
|
|
77
|
+
"@modern-js/server-core": "2.32.2-alpha.1",
|
|
78
|
+
"@modern-js/types": "2.32.2-alpha.1",
|
|
79
|
+
"@modern-js/app-tools": "2.32.2-alpha.1",
|
|
80
|
+
"@scripts/jest-config": "2.32.1",
|
|
81
|
+
"@scripts/build": "2.32.1"
|
|
82
82
|
},
|
|
83
83
|
"sideEffects": false,
|
|
84
84
|
"publishConfig": {
|