@modern-js/plugin-bff 1.17.0 → 1.17.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.
@@ -77,10 +77,12 @@ export default (() => ({
77
77
  apiDir,
78
78
  prefix
79
79
  });
80
+ const apiMode = apiRouter.getApiMode();
80
81
  const apiHandlerInfos = apiRouter.getApiHandlers();
81
82
  api.setAppContext(_objectSpread(_objectSpread({}, appContext), {}, {
82
83
  apiRouter,
83
- apiHandlerInfos
84
+ apiHandlerInfos,
85
+ apiMode
84
86
  }));
85
87
  return next(props);
86
88
  }
@@ -93,10 +93,12 @@ var _default = () => ({
93
93
  apiDir,
94
94
  prefix
95
95
  });
96
+ const apiMode = apiRouter.getApiMode();
96
97
  const apiHandlerInfos = apiRouter.getApiHandlers();
97
98
  api.setAppContext(_objectSpread(_objectSpread({}, appContext), {}, {
98
99
  apiRouter,
99
- apiHandlerInfos
100
+ apiHandlerInfos,
101
+ apiMode
100
102
  }));
101
103
  return next(props);
102
104
  }
@@ -77,10 +77,12 @@ export default (function () {
77
77
  apiDir: apiDir,
78
78
  prefix: prefix
79
79
  });
80
+ var apiMode = apiRouter.getApiMode();
80
81
  var apiHandlerInfos = apiRouter.getApiHandlers();
81
82
  api.setAppContext(_objectSpread(_objectSpread({}, appContext), {}, {
82
83
  apiRouter: apiRouter,
83
- apiHandlerInfos: apiHandlerInfos
84
+ apiHandlerInfos: apiHandlerInfos,
85
+ apiMode: apiMode
84
86
  }));
85
87
  return next(props);
86
88
  }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.17.0",
14
+ "version": "1.17.1-beta.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -56,13 +56,13 @@
56
56
  "@babel/core": "^7.18.0",
57
57
  "@babel/runtime": "^7.18.0",
58
58
  "@modern-js/babel-compiler": "1.17.0",
59
- "@modern-js/bff-core": "1.17.0",
59
+ "@modern-js/bff-core": "1.17.1-beta.0",
60
60
  "@modern-js/create-request": "1.17.0",
61
61
  "@modern-js/server-utils": "1.17.0",
62
62
  "@modern-js/utils": "1.17.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@modern-js/core": "1.17.0",
65
+ "@modern-js/core": "1.17.1",
66
66
  "@modern-js/bff-runtime": "1.17.0",
67
67
  "@modern-js/runtime": "1.17.0",
68
68
  "@modern-js/server-core": "1.17.0",
@@ -82,7 +82,8 @@
82
82
  "sideEffects": false,
83
83
  "publishConfig": {
84
84
  "registry": "https://registry.npmjs.org/",
85
- "access": "public"
85
+ "access": "public",
86
+ "types": "./dist/types/index.d.ts"
86
87
  },
87
88
  "wireit": {
88
89
  "build": {