@nocobase/plugin-client 0.7.0-alpha.56 → 0.7.0-alpha.59

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.
Files changed (2) hide show
  1. package/lib/plugin.js +4 -0
  2. package/package.json +4 -4
package/lib/plugin.js CHANGED
@@ -176,6 +176,10 @@ class ClientPlugin extends _server().Plugin {
176
176
  return next();
177
177
  }
178
178
 
179
+ if (ctx.path.startsWith(_this2.app.resourcer.options.prefix)) {
180
+ return next();
181
+ }
182
+
179
183
  yield (0, _koaStatic().default)(root)(ctx, next); // console.log('koa-send', root, ctx.status);
180
184
 
181
185
  if (ctx.status == 404) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-client",
3
- "version": "0.7.0-alpha.56",
3
+ "version": "0.7.0-alpha.59",
4
4
  "main": "lib/index.js",
5
5
  "license": "Apache-2.0",
6
6
  "licenses": [
@@ -10,10 +10,10 @@
10
10
  }
11
11
  ],
12
12
  "dependencies": {
13
- "@nocobase/server": "0.7.0-alpha.56"
13
+ "@nocobase/server": "0.7.0-alpha.59"
14
14
  },
15
15
  "devDependencies": {
16
- "@nocobase/test": "0.7.0-alpha.56"
16
+ "@nocobase/test": "0.7.0-alpha.59"
17
17
  },
18
- "gitHead": "9a8c05e8fb26029f1d1ba68408a8bddac0e67a76"
18
+ "gitHead": "c90e5aee4c8257a3ab7ff492e69cb568cccff8b5"
19
19
  }