skyeye-svc-common-utils 1.0.32 → 1.0.34

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skyeye-svc-common-utils",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -57,7 +57,7 @@
57
57
  "node-fetch": "^2.6.0",
58
58
  "nyc": "^15.1.0",
59
59
  "rotating-file-stream": "^1.4.6",
60
- "skyeye-common-const": "1.0.22",
60
+ "skyeye-common-const": "1.0.24",
61
61
  "swagger-jsdoc": "^3.5.0",
62
62
  "swagger-ui-express": "^4.1.3",
63
63
  "ts-node": "^9.0.0",
@@ -51,7 +51,8 @@ export const commonAppConst = {
51
51
  '/account/internal/retrieve'
52
52
  ],
53
53
  info: {
54
- subcriptionFeaturePermissionModel: 'subcriptionFeaturePermissionModel'
54
+ subcriptionFeaturePermissionModel: 'subcriptionFeaturePermissionModel',
55
+ subKeys: 'subKeys'
55
56
  },
56
57
  mode: {
57
58
  api: 'api',
@@ -104,7 +104,7 @@ export async function userInfoToFeatureListByName(userInfo: UserInfo, featureNam
104
104
 
105
105
  export async function userInfoSimplifier(userInfo:UserInfo, select?: string[]) {
106
106
  let data:any = {}
107
- const defaultSelect: string[] = Object.keys(userInfo).filter(k => k!= commonAppConst.user.info.subcriptionFeaturePermissionModel )
107
+ const defaultSelect: string[] = Object.keys(userInfo).filter(k => k!= commonAppConst.user.info.subcriptionFeaturePermissionModel && k !=commonAppConst.user.info.subKeys)
108
108
  select = select || defaultSelect;
109
109
  select.forEach(x => {
110
110
  if(userInfo.hasOwnProperty(x)) {