alemonjs 2.1.0-alpha.35 → 2.1.0-alpha.36

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/lib/cbp/router.js CHANGED
@@ -102,7 +102,7 @@ router.all('app/{*path}', async (ctx) => {
102
102
  };
103
103
  return;
104
104
  }
105
- const apiModule = await import(modulePath);
105
+ const apiModule = await import(`file://${modulePath}`);
106
106
  if (!apiModule[ctx.method] || typeof apiModule[ctx.method] !== 'function') {
107
107
  ctx.status = 405;
108
108
  return;
@@ -216,7 +216,7 @@ router.all('apps/:app/{*path}', async (ctx) => {
216
216
  };
217
217
  return;
218
218
  }
219
- const apiModule = await import(modulePath);
219
+ const apiModule = await import(`file://${modulePath}`);
220
220
  if (!apiModule[ctx.method] || typeof apiModule[ctx.method] !== 'function') {
221
221
  ctx.status = 405;
222
222
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alemonjs",
3
- "version": "2.1.0-alpha.35",
3
+ "version": "2.1.0-alpha.36",
4
4
  "description": "bot script",
5
5
  "author": "lemonade",
6
6
  "license": "MIT",