@nocobase/server 0.9.2-alpha.2 → 0.9.2-alpha.4

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.
@@ -30,7 +30,7 @@ var _default = app => {
30
30
  if (!opts.silent) {
31
31
  console.log('NocoBase is already installed. To reinstall, please execute:');
32
32
  console.log();
33
- let command = '$ yarn nocobase install -f';
33
+ const command = '$ yarn nocobase install -f';
34
34
  console.log(_chalk().default.yellow(command));
35
35
  console.log();
36
36
  console.log(_chalk().default.red('This operation will clear the database!!!'));
@@ -21,7 +21,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
21
21
  function db2resource(ctx, next) {
22
22
  const resourcer = ctx.resourcer;
23
23
  const database = ctx.db;
24
- let params = (0, _resourcer().parseRequest)({
24
+ const params = (0, _resourcer().parseRequest)({
25
25
  path: ctx.request.path,
26
26
  method: ctx.request.method
27
27
  }, {
@@ -144,7 +144,7 @@ class PluginManager {
144
144
  _step;
145
145
  try {
146
146
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
147
- let plugin = _step.value;
147
+ const plugin = _step.value;
148
148
  if (typeof plugin == 'string') {
149
149
  this.addStatic(plugin);
150
150
  } else {
@@ -340,7 +340,7 @@ class PluginManager {
340
340
  const instance = _this4.addStatic(plugin, _objectSpread(_objectSpread({}, options), {}, {
341
341
  async: true
342
342
  }));
343
- let model = yield _this4.repository.findOne({
343
+ const model = yield _this4.repository.findOne({
344
344
  transaction,
345
345
  filter: {
346
346
  name: plugin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/server",
3
- "version": "0.9.2-alpha.2",
3
+ "version": "0.9.2-alpha.4",
4
4
  "main": "lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "license": "Apache-2.0",
@@ -8,12 +8,12 @@
8
8
  "@hapi/topo": "^6.0.0",
9
9
  "@koa/cors": "^3.1.0",
10
10
  "@koa/router": "^9.4.0",
11
- "@nocobase/acl": "0.9.2-alpha.2",
12
- "@nocobase/actions": "0.9.2-alpha.2",
13
- "@nocobase/database": "0.9.2-alpha.2",
14
- "@nocobase/logger": "0.9.2-alpha.2",
15
- "@nocobase/resourcer": "0.9.2-alpha.2",
16
- "@nocobase/utils": "0.9.2-alpha.2",
11
+ "@nocobase/acl": "0.9.2-alpha.4",
12
+ "@nocobase/actions": "0.9.2-alpha.4",
13
+ "@nocobase/database": "0.9.2-alpha.4",
14
+ "@nocobase/logger": "0.9.2-alpha.4",
15
+ "@nocobase/resourcer": "0.9.2-alpha.4",
16
+ "@nocobase/utils": "0.9.2-alpha.4",
17
17
  "chalk": "^4.1.1",
18
18
  "commander": "^9.2.0",
19
19
  "find-package-json": "^1.2.0",
@@ -29,5 +29,5 @@
29
29
  "devDependencies": {
30
30
  "@types/semver": "^7.3.9"
31
31
  },
32
- "gitHead": "1a0de6908b2b1854bdf434fcafa8909cb65bb8a3"
32
+ "gitHead": "96cb023f353a4fb099dea074c575be65ebab813f"
33
33
  }