@steedos/steedos-plugin-schema-builder 2.3.1 → 2.3.2-beta.10

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/index.js CHANGED
@@ -1,16 +1,14 @@
1
1
  const express = require('express');
2
- const app = express();
3
2
  const path = require('path');
4
3
  const fs= require('fs');
5
4
  exports.init = function () {
6
5
  const publicPath = path.join(__dirname, "public", "schema-builder");
7
6
  if(fs.existsSync(publicPath)){
8
- const router = express.Router()
7
+ const router = require('@steedos/router').staticRouter();
9
8
  const cacheTime = 1000 * 60 * 60 * 24;
10
9
  let routerPath = "/schema-builder"
11
10
  if (__meteor_runtime_config__ && __meteor_runtime_config__.ROOT_URL_PATH_PREFIX)
12
11
  routerPath = __meteor_runtime_config__.ROOT_URL_PATH_PREFIX + routerPath;
13
12
  router.use(routerPath, express.static(publicPath, { maxAge: cacheTime }));
14
- WebApp.rawConnectHandlers.use(router);
15
13
  }
16
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/steedos-plugin-schema-builder",
3
- "version": "2.3.1",
3
+ "version": "2.3.2-beta.10",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "",
@@ -10,5 +10,5 @@
10
10
  "access": "public"
11
11
  },
12
12
  "homepage": "https://www.steedos.com",
13
- "gitHead": "f8938e298cec11b2f91172e0d3506079daa7d670"
13
+ "gitHead": "44b1617fea53eb016e82e72174e1d33bdbfe3fd1"
14
14
  }
@@ -25,7 +25,6 @@
25
25
  "devDependencies": {
26
26
  "@antv/g6": "^3.6.0",
27
27
  "@iarna/rtf-to-html": "^1.1.0",
28
- "@steedos/accounts": "2.2.50",
29
28
  "@types/react": "^16.9.22",
30
29
  "@types/react-dom": "^16.8.4",
31
30
  "ahooks": "^2.4.0",
@@ -45,7 +44,6 @@
45
44
  "react-scrollbars-custom": "^4.0.21",
46
45
  "stats": "^1.0.0",
47
46
  "stats.js": "^0.17.0",
48
- "steedos-server": "2.2.50",
49
47
  "typescript": "4.6.3",
50
48
  "unstated-next": "^1.1.0",
51
49
  "with-dnd-context": "^1.0.4",