@abtnode/blocklet-services 1.8.45 → 1.8.47

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.
@@ -1,5 +1,4 @@
1
1
  const { BlockletStatus } = require('@blocklet/constant');
2
- const getBlockletNotRunningTemplate = require('@abtnode/router-templates/lib/blocklet-not-running');
3
2
  const getBlockletMaintenanceTemplate = require('@abtnode/router-templates/lib/blocklet-maintenance');
4
3
 
5
4
  const { shouldGotoStartPage, getRedirectUrl } = require('../util');
@@ -27,11 +26,9 @@ const checkRunning = async (req, res, next) => {
27
26
  res.status(500);
28
27
  // return json if json has high priority, e.g. "*/*,application/json"
29
28
  if (req.accepts(['html', 'json']) === 'json') {
30
- res.json({ code: 'error', error: 'blocklet is not running' });
31
- } else if (blocklet.status === BlockletStatus.starting) {
32
- res.send(getBlockletMaintenanceTemplate(blocklet, nodeInfo));
29
+ res.json({ code: 'error', error: 'blocklet is under maintenance' });
33
30
  } else {
34
- res.send(getBlockletNotRunningTemplate(blocklet, nodeInfo));
31
+ res.send(getBlockletMaintenanceTemplate(blocklet, nodeInfo));
35
32
  }
36
33
  return;
37
34
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.45",
6
+ "version": "1.8.47",
7
7
  "description": "Provide unified services for every blocklet",
8
8
  "main": "api/index.js",
9
9
  "files": [
@@ -31,26 +31,26 @@
31
31
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
32
32
  "license": "MIT",
33
33
  "dependencies": {
34
- "@abtnode/auth": "1.8.45",
35
- "@abtnode/client": "1.8.45",
36
- "@abtnode/constant": "1.8.45",
37
- "@abtnode/core": "1.8.45",
38
- "@abtnode/cron": "1.8.45",
39
- "@abtnode/db": "1.8.45",
40
- "@abtnode/logger": "1.8.45",
41
- "@abtnode/router-adapter": "1.8.45",
42
- "@abtnode/router-templates": "1.8.45",
43
- "@abtnode/util": "1.8.45",
34
+ "@abtnode/auth": "1.8.47",
35
+ "@abtnode/client": "1.8.47",
36
+ "@abtnode/constant": "1.8.47",
37
+ "@abtnode/core": "1.8.47",
38
+ "@abtnode/cron": "1.8.47",
39
+ "@abtnode/db": "1.8.47",
40
+ "@abtnode/logger": "1.8.47",
41
+ "@abtnode/router-adapter": "1.8.47",
42
+ "@abtnode/router-templates": "1.8.47",
43
+ "@abtnode/util": "1.8.47",
44
44
  "@arcblock/did-auth": "1.18.31",
45
45
  "@arcblock/did-auth-storage-nedb": "^1.7.1",
46
46
  "@arcblock/event-hub": "1.18.31",
47
47
  "@arcblock/jwt": "1.18.31",
48
48
  "@arcblock/ws": "1.18.31",
49
- "@blocklet/constant": "1.8.45",
49
+ "@blocklet/constant": "1.8.47",
50
50
  "@blocklet/form-builder": "^0.1.10",
51
51
  "@blocklet/form-collector": "^0.1.5",
52
- "@blocklet/meta": "1.8.45",
53
- "@blocklet/sdk": "1.8.45",
52
+ "@blocklet/meta": "1.8.47",
53
+ "@blocklet/sdk": "1.8.47",
54
54
  "@did-connect/authenticator": "^2.1.29",
55
55
  "@did-connect/relay-adapter-express": "^2.1.29",
56
56
  "@did-connect/storage-nedb": "^2.1.29",
@@ -83,7 +83,7 @@
83
83
  "@nedb/multi": "^2.0.5"
84
84
  },
85
85
  "devDependencies": {
86
- "@abtnode/ux": "1.8.45",
86
+ "@abtnode/ux": "1.8.47",
87
87
  "@arcblock/did-connect": "^2.4.58",
88
88
  "@arcblock/icons": "^2.4.58",
89
89
  "@arcblock/ux": "^2.4.58",
@@ -147,5 +147,5 @@
147
147
  "url": "https://github.com/ArcBlock/blocklet-server/issues",
148
148
  "email": "shijun@arcblock.io"
149
149
  },
150
- "gitHead": "a84232c1a3bb713e3b9de41092d01694420cd8b5"
150
+ "gitHead": "87f368c3add9af5ae5c9db3b34682b743032acb4"
151
151
  }