@simitgroup/simpleapp-generator 1.6.6-h-alpha → 1.6.6-i-alpha

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/ReleaseNote.md CHANGED
@@ -1,3 +1,9 @@
1
+ [1.6.6i-alpha]
2
+ 1. Fix a-api-key env.
3
+
4
+ [1.6.6h-alpha]
5
+ 1. Fix package.json
6
+
1
7
  [1.6.6g-alpha]
2
8
  1. improve x-api-key & x-api-secret, fix schema example
3
9
  2. Fix getAvatarByUid.
@@ -26,7 +32,7 @@
26
32
 
27
33
  [1.6.5g]
28
34
  1. change simpleapp document controller use document name instead of document type
29
- 2. allow use header x-api-key(match env X_APIKEY), x-api-secret (match env X_API_SECRET), to by pass access token. which will use robotuser in user context
35
+ 2. allow use header x-api-key(match env X_API_KEY), x-api-secret (match env X_API_SECRET), to by pass access token. which will use robotuser in user context
30
36
  3. add support of x-guest-accesstoken (submit by external user source, like parent/student app), it store into usercontext as guestinfo, since appuser = robotuser
31
37
  4. Fix document search properties to restrict (required field and sorts)
32
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simitgroup/simpleapp-generator",
3
- "version": "1.6.6h-alpha",
3
+ "version": "1.6.6i-alpha",
4
4
  "description": "frontend nuxtjs and backend nests code generator using jsonschema",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -13,7 +13,7 @@ HTTP_PORT=<%=it.configs.backendPort%>
13
13
 
14
14
  BPMN_PATH=./src/simpleapp/workflows/bpmn/
15
15
 
16
- X_APIKEY=
16
+ X_API_KEY=
17
17
  X_API_SECRET=
18
18
 
19
19
  OAUTH2_BASEURL=<%=it.configs.oauthSetting ? it.configs.oauthSetting.oauthBaseUrl : ''%>
@@ -69,9 +69,9 @@ export class TenantMiddleware implements NestMiddleware {
69
69
 
70
70
 
71
71
  //if APIKEY defined, and there is api key and secret supplied. use robot user
72
- if(process.env.X_APIKEY &&req.headers['x-api-key'] && req.headers['x-api-secret']){
72
+ if(process.env.X_API_KEY &&req.headers['x-api-key'] && req.headers['x-api-secret']){
73
73
 
74
- if(req.headers['x-api-key']==process.env.X_APIKEY &&
74
+ if(req.headers['x-api-key']==process.env.X_API_KEY &&
75
75
  req.headers['x-api-secret']==process.env.X_API_SECRET){
76
76
 
77
77
  u.setAsStaticUser(