@modern-js/plugin-bff 2.4.0 → 2.4.1-beta.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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @modern-js/plugin-bff
2
2
 
3
+ ## 2.4.1-beta.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [11c053b]
8
+ - @modern-js/utils@2.4.1-beta.0
9
+ - @modern-js/server-utils@2.4.1-beta.0
10
+ - @modern-js/bff-core@2.4.1-beta.0
11
+ - @modern-js/create-request@2.4.1-beta.0
12
+
3
13
  ## 2.4.0
4
14
 
5
15
  ### Patch Changes
@@ -168,7 +168,7 @@ var cli_default = function() {
168
168
  tools: {
169
169
  webpackChain: function(chain, param) {
170
170
  var name = param.name, CHAIN_ID = param.CHAIN_ID;
171
- var ref = api.useAppContext(), appDirectory = ref.appDirectory, port = ref.port;
171
+ var _api_useAppContext = api.useAppContext(), appDirectory = _api_useAppContext.appDirectory, port = _api_useAppContext.port;
172
172
  var modernConfig = api.useResolvedConfigContext();
173
173
  var bff = (modernConfig || {}).bff;
174
174
  var prefix = (bff === null || bff === void 0 ? void 0 : bff.prefix) || DEFAULT_API_PREFIX;
@@ -250,14 +250,14 @@ var cli_default = function() {
250
250
  },
251
251
  afterBuild: function afterBuild() {
252
252
  return _asyncToGenerator(function() {
253
- var ref, appDirectory, distDirectory, modernConfig, distDir, apiDir, sharedDir, tsconfigPath, sourceDirs, server, _source, alias, define, globalVars, babel;
253
+ var _api_useAppContext, appDirectory, distDirectory, modernConfig, distDir, apiDir, sharedDir, tsconfigPath, sourceDirs, server, _modernConfig_source, alias, define, globalVars, babel;
254
254
  return __generator(this, function(_state) {
255
255
  switch(_state.label){
256
256
  case 0:
257
257
  if (unRegisterResolveRuntimePath) {
258
258
  unRegisterResolveRuntimePath();
259
259
  }
260
- ref = api.useAppContext(), appDirectory = ref.appDirectory, distDirectory = ref.distDirectory;
260
+ _api_useAppContext = api.useAppContext(), appDirectory = _api_useAppContext.appDirectory, distDirectory = _api_useAppContext.distDirectory;
261
261
  modernConfig = api.useResolvedConfigContext();
262
262
  distDir = path.resolve(distDirectory);
263
263
  apiDir = path.resolve(appDirectory, API_DIR);
@@ -271,7 +271,7 @@ var cli_default = function() {
271
271
  sourceDirs.push(sharedDir);
272
272
  }
273
273
  server = modernConfig.server;
274
- _source = modernConfig.source, alias = _source.alias, define = _source.define, globalVars = _source.globalVars;
274
+ _modernConfig_source = modernConfig.source, alias = _modernConfig_source.alias, define = _modernConfig_source.define, globalVars = _modernConfig_source.globalVars;
275
275
  babel = modernConfig.tools.babel;
276
276
  if (!(sourceDirs.length > 0)) return [
277
277
  3,
@@ -105,7 +105,7 @@ var server_default = function() {
105
105
  var apiAppPath = "";
106
106
  return {
107
107
  prepare: function prepare() {
108
- var ref = api.useAppContext(), appDirectory = ref.appDirectory, distDirectory = ref.distDirectory;
108
+ var _api_useAppContext = api.useAppContext(), appDirectory = _api_useAppContext.appDirectory, distDirectory = _api_useAppContext.distDirectory;
109
109
  var root = isProd() ? distDirectory : appDirectory;
110
110
  var apiPath = path.resolve(root || process.cwd(), API_DIR);
111
111
  apiAppPath = path.resolve(apiPath, API_APP_NAME);
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.4.0",
14
+ "version": "2.4.1-beta.0",
15
15
  "jsnext:source": "./src/cli.ts",
16
16
  "types": "./dist/types/cli.d.ts",
17
17
  "main": "./dist/js/node/cli.js",
@@ -51,10 +51,10 @@
51
51
  "dependencies": {
52
52
  "@babel/core": "^7.18.0",
53
53
  "@babel/runtime": "^7.18.0",
54
- "@modern-js/bff-core": "2.4.0",
55
- "@modern-js/create-request": "2.4.0",
56
- "@modern-js/server-utils": "2.4.0",
57
- "@modern-js/utils": "2.4.0"
54
+ "@modern-js/bff-core": "2.4.1-beta.0",
55
+ "@modern-js/create-request": "2.4.1-beta.0",
56
+ "@modern-js/server-utils": "2.4.1-beta.0",
57
+ "@modern-js/utils": "2.4.1-beta.0"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/babel__core": "^7.1.15",
@@ -66,12 +66,12 @@
66
66
  "typescript": "^4",
67
67
  "webpack": "^5.75.0",
68
68
  "webpack-chain": "^6.5.1",
69
- "@modern-js/core": "2.4.0",
69
+ "@modern-js/runtime": "2.4.1-beta.0",
70
+ "@modern-js/core": "2.4.1-beta.0",
70
71
  "@modern-js/bff-runtime": "2.4.0",
71
- "@modern-js/server-core": "2.4.0",
72
- "@modern-js/runtime": "2.4.0",
72
+ "@modern-js/server-core": "2.4.1-beta.0",
73
73
  "@modern-js/types": "2.4.0",
74
- "@modern-js/app-tools": "2.4.0",
74
+ "@modern-js/app-tools": "3.0.0-beta.0",
75
75
  "@scripts/build": "2.4.0",
76
76
  "@scripts/jest-config": "2.4.0"
77
77
  },