@abtnode/blocklet-services 1.7.10 → 1.7.11

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/package.json +14 -15
  2. package/configs/auth.json +0 -66
package/package.json CHANGED
@@ -3,13 +3,12 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.7.10",
6
+ "version": "1.7.11",
7
7
  "description": "Provide unified services for every blocklet",
8
8
  "main": "api/index.js",
9
9
  "files": [
10
10
  "build",
11
11
  "api",
12
- "configs",
13
12
  "README.md"
14
13
  ],
15
14
  "scripts": {
@@ -32,22 +31,22 @@
32
31
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
33
32
  "license": "MIT",
34
33
  "dependencies": {
35
- "@abtnode/auth": "1.7.10",
36
- "@abtnode/client": "1.7.10",
37
- "@abtnode/constant": "1.7.10",
38
- "@abtnode/core": "1.7.10",
39
- "@abtnode/cron": "1.7.10",
40
- "@abtnode/logger": "1.7.10",
41
- "@abtnode/router-adapter": "1.7.10",
42
- "@abtnode/router-templates": "1.7.10",
43
- "@abtnode/util": "1.7.10",
34
+ "@abtnode/auth": "1.7.11",
35
+ "@abtnode/client": "1.7.11",
36
+ "@abtnode/constant": "1.7.11",
37
+ "@abtnode/core": "1.7.11",
38
+ "@abtnode/cron": "1.7.11",
39
+ "@abtnode/logger": "1.7.11",
40
+ "@abtnode/router-adapter": "1.7.11",
41
+ "@abtnode/router-templates": "1.7.11",
42
+ "@abtnode/util": "1.7.11",
44
43
  "@arcblock/did-auth": "^1.16.5",
45
44
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
46
45
  "@arcblock/event-hub": "1.16.5",
47
46
  "@arcblock/jwt": "^1.16.5",
48
47
  "@arcblock/ws": "^1.16.5",
49
- "@blocklet/meta": "1.7.10",
50
- "@blocklet/sdk": "1.7.10",
48
+ "@blocklet/meta": "1.7.11",
49
+ "@blocklet/sdk": "1.7.11",
51
50
  "@ocap/client": "^1.16.5",
52
51
  "@ocap/util": "^1.16.5",
53
52
  "body-parser": "^1.19.0",
@@ -71,7 +70,7 @@
71
70
  "url-join": "^4.0.1"
72
71
  },
73
72
  "devDependencies": {
74
- "@abtnode/ux": "1.7.10",
73
+ "@abtnode/ux": "1.7.11",
75
74
  "@arcblock/did-connect": "^1.17.11",
76
75
  "@arcblock/icons": "^1.17.11",
77
76
  "@arcblock/ux": "^1.17.11",
@@ -124,5 +123,5 @@
124
123
  "url": "https://github.com/ArcBlock/blocklet-server/issues",
125
124
  "email": "shijun@arcblock.io"
126
125
  },
127
- "gitHead": "8eab10fd39b6183a2fa4d2706f52e8b2ecaa059a"
126
+ "gitHead": "84e741e6b37e47d52bf834ce3ace8ed601d0896c"
128
127
  }
package/configs/auth.json DELETED
@@ -1,66 +0,0 @@
1
- {
2
- "name": "auth",
3
- "description": "Neat and easy to use user authentication and authorization service for blocklets",
4
- "version": "1.0.0",
5
- "schema": {
6
- "JSONSchema": {
7
- "title": "Config Auth Service",
8
- "description": "Customize how Auth Service works",
9
- "type": "object",
10
- "required": ["profileFields", "webWalletUrl"],
11
- "properties": {
12
- "whoCanAccess": {
13
- "type": "string",
14
- "title": "Who can access the blocklet?",
15
- "enum": ["owner", "invited", "all"],
16
- "default": "all"
17
- },
18
- "profileFields": {
19
- "type": "array",
20
- "title": "What info do you want user to provide when login?",
21
- "items": {
22
- "type": "string",
23
- "enum": ["fullName", "email", "avatar", "phone"]
24
- },
25
- "default": ["fullName", "email", "avatar"],
26
- "uniqueItems": true
27
- },
28
- "allowSwitchProfile": {
29
- "type": "boolean",
30
- "title": "Does you app allow user to switch profile?",
31
- "default": true
32
- },
33
- "webWalletUrl": {
34
- "type": "string",
35
- "title": "The URL of your preferred web wallet instance",
36
- "pattern": "^https?://",
37
- "default": "https://web.abtwallet.io"
38
- },
39
- "ignoreUrls": {
40
- "type": "array",
41
- "title": "Which URLs do not need to be protected. e.g: /public/**",
42
- "items": {
43
- "type": "string",
44
- "minLength": 1
45
- },
46
- "default": []
47
- },
48
- "blockUnauthenticated": {
49
- "type": "boolean",
50
- "title": "Do you want Auth Service block unauthenticated requests for you?",
51
- "default": false
52
- },
53
- "blockUnauthorized": {
54
- "type": "boolean",
55
- "title": "Do you want Auth Service block unauthorized requests for you?",
56
- "default": false
57
- }
58
- }
59
- },
60
- "UISchema": {
61
- "profileFields": {
62
- "ui:widget": "checkboxes"
63
- }
64
- }
65
- }
66
- }