@modern-js/plugin-bff 3.9.0 → 3.9.2

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/cjs/cli.js CHANGED
@@ -239,7 +239,7 @@ const bffPlugin = ()=>({
239
239
  if (config?.bff?.crossProject) return [
240
240
  appContext.apiDirectory
241
241
  ];
242
- return [];
242
+ else return [];
243
243
  });
244
244
  api.onFileChanged(async (e)=>{
245
245
  const { filename, eventType, isPrivate } = e;
@@ -88,7 +88,7 @@ const server = ()=>({
88
88
  name: 'bind-bff',
89
89
  handler: (c, next)=>{
90
90
  if (!c.req.path.startsWith(prefix) && !enableHandleWeb) return next();
91
- return handler(c, next);
91
+ else return handler(c, next);
92
92
  },
93
93
  order: 'post',
94
94
  before: [
@@ -90,7 +90,7 @@ const createHonoHandler = (handler)=>async (c)=>{
90
90
  }
91
91
  throw error;
92
92
  }
93
- {
93
+ else {
94
94
  const routePath = c.req.routePath;
95
95
  const paramNames = routePath.match(/:\w+/g)?.map((s)=>s.slice(1)) || [];
96
96
  const params = Object.fromEntries(paramNames.map((name)=>[
package/dist/esm/cli.mjs CHANGED
@@ -193,7 +193,7 @@ const bffPlugin = ()=>({
193
193
  if (config?.bff?.crossProject) return [
194
194
  appContext.apiDirectory
195
195
  ];
196
- return [];
196
+ else return [];
197
197
  });
198
198
  api.onFileChanged(async (e)=>{
199
199
  const { filename, eventType, isPrivate } = e;
@@ -46,7 +46,7 @@ const server = ()=>({
46
46
  name: 'bind-bff',
47
47
  handler: (c, next)=>{
48
48
  if (!c.req.path.startsWith(prefix) && !enableHandleWeb) return next();
49
- return handler(c, next);
49
+ else return handler(c, next);
50
50
  },
51
51
  order: 'post',
52
52
  before: [
@@ -47,7 +47,7 @@ const createHonoHandler = (handler)=>async (c)=>{
47
47
  }
48
48
  throw error;
49
49
  }
50
- {
50
+ else {
51
51
  const routePath = c.req.routePath;
52
52
  const paramNames = routePath.match(/:\w+/g)?.map((s)=>s.slice(1)) || [];
53
53
  const params = Object.fromEntries(paramNames.map((name)=>[
@@ -197,7 +197,7 @@ const bffPlugin = ()=>({
197
197
  if (config?.bff?.crossProject) return [
198
198
  appContext.apiDirectory
199
199
  ];
200
- return [];
200
+ else return [];
201
201
  });
202
202
  api.onFileChanged(async (e)=>{
203
203
  const { filename, eventType, isPrivate } = e;
@@ -47,7 +47,7 @@ const server = ()=>({
47
47
  name: 'bind-bff',
48
48
  handler: (c, next)=>{
49
49
  if (!c.req.path.startsWith(prefix) && !enableHandleWeb) return next();
50
- return handler(c, next);
50
+ else return handler(c, next);
51
51
  },
52
52
  order: 'post',
53
53
  before: [
@@ -48,7 +48,7 @@ const createHonoHandler = (handler)=>async (c)=>{
48
48
  }
49
49
  throw error;
50
50
  }
51
- {
51
+ else {
52
52
  const routePath = c.req.routePath;
53
53
  const paramNames = routePath.match(/:\w+/g)?.map((s)=>s.slice(1)) || [];
54
54
  const params = Object.fromEntries(paramNames.map((name)=>[
@@ -1 +1 @@
1
- export * from './constants';
1
+ export * from './constants.js';
@@ -1,2 +1,2 @@
1
1
  export * from '@modern-js/bff-core';
2
- export * from './operators';
2
+ export * from './operators.js';
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.9.0",
18
+ "version": "3.9.2",
19
19
  "types": "./dist/types/cli.d.ts",
20
20
  "main": "./dist/cjs/cli.js",
21
21
  "exports": {
@@ -79,29 +79,29 @@
79
79
  "@swc/helpers": "^0.5.17",
80
80
  "qs": "^6.15.3",
81
81
  "type-is": "^1.6.18",
82
- "@modern-js/bff-core": "3.9.0",
83
- "@modern-js/builder": "3.9.0",
84
- "@modern-js/create-request": "3.9.0",
85
- "@modern-js/server-core": "3.9.0",
86
- "@modern-js/server-utils": "3.9.0",
87
- "@modern-js/utils": "3.9.0"
82
+ "@modern-js/bff-core": "3.9.2",
83
+ "@modern-js/builder": "3.9.2",
84
+ "@modern-js/create-request": "3.9.2",
85
+ "@modern-js/server-core": "3.9.2",
86
+ "@modern-js/server-utils": "3.9.2",
87
+ "@modern-js/utils": "3.9.2"
88
88
  },
89
89
  "devDependencies": {
90
- "@rsbuild/core": "2.2.0-rc.0",
91
- "@rslib/core": "0.23.2",
90
+ "@rsbuild/core": "2.2.7",
91
+ "@rslib/core": "1.0.0",
92
92
  "@types/node": "^20",
93
93
  "@types/qs": "^6.15.1",
94
94
  "@types/type-is": "^1.6.7",
95
95
  "memfs": "^3.5.3",
96
96
  "typescript": "^5",
97
97
  "zod": "^3.25.76",
98
- "@modern-js/app-tools": "3.9.0",
99
- "@modern-js/bff-runtime": "3.9.0",
100
- "@modern-js/plugin": "3.9.0",
98
+ "@modern-js/app-tools": "3.9.2",
99
+ "@modern-js/bff-runtime": "3.9.2",
101
100
  "@modern-js/rslib": "2.68.10",
102
- "@modern-js/runtime": "3.9.0",
103
- "@modern-js/types": "3.9.0",
104
- "@scripts/rstest-config": "2.66.0"
101
+ "@modern-js/plugin": "3.9.2",
102
+ "@modern-js/runtime": "3.9.2",
103
+ "@scripts/rstest-config": "2.66.0",
104
+ "@modern-js/types": "3.9.2"
105
105
  },
106
106
  "sideEffects": false,
107
107
  "publishConfig": {