@nsshunt/stsdatamanagement 1.10.1 → 1.10.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.
package/blcauth.js CHANGED
@@ -156,8 +156,8 @@ class BLCAuth
156
156
  {
157
157
  try
158
158
  {
159
- const { APIId, M2MApplications, permissions } = api;
160
- let APIidentifier = BLCAuth.API_ID_PREFIX + APIId;
159
+ const { M2MApplications, permissions, identifier } = api;
160
+ let APIidentifier = BLCAuth.API_ID_PREFIX + identifier;
161
161
  let existingAPI = await this.#accessLayer.getLatestResource(APIidentifier);
162
162
  if (existingAPI.status === 200) {
163
163
  return { status: status.conflict, error: 'API already exists.', detail: { message: `API already exists: [${APIidentifier}]` }};
@@ -209,11 +209,11 @@ class BLCAuth
209
209
  return application;
210
210
  }
211
211
 
212
- async GetAPI(APIId) {
213
- let APIidentifier = BLCAuth.API_ID_PREFIX + APIId;
212
+ async GetAPI(identifier) {
213
+ let APIidentifier = BLCAuth.API_ID_PREFIX + identifier;
214
214
  let api = await this.#accessLayer.getLatestResource(APIidentifier);
215
215
  if (api.status !== 200) {
216
- return { status: status.notfound, error: 'API not found.', detail: { message: `API not found: [${APIId}]` }};
216
+ return { status: status.notfound, error: 'API not found.', detail: { message: `API not found: [${identifier}]` }};
217
217
  }
218
218
  return api;
219
219
  }
package/databaseutils.js CHANGED
@@ -73,6 +73,7 @@ class DatabaseUtils
73
73
  return false;
74
74
  } else {
75
75
  console.log(`Application registered: ${JSON.stringify(retVal)}`);
76
+ console.log(`Application secret : ${application.clientSecret}`);
76
77
  }
77
78
  }
78
79
  return true;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@nsshunt/stsdatamanagement",
3
- "version": "1.10.1",
3
+ "version": "1.10.4",
4
4
  "description": "STS Data Management Modules, Utilities and Services",
5
5
  "main": "dbaccess.js",
6
6
  "dependencies": {
7
- "@nsshunt/stsconfig": "^1.17.1",
8
- "@nsshunt/stsinstrumentation": "^6.4.2",
9
- "@nsshunt/stsutils": "^1.7.5",
7
+ "@nsshunt/stsconfig": "^1.20.0",
8
+ "@nsshunt/stsinstrumentation": "^6.4.3",
9
+ "@nsshunt/stsutils": "^1.7.6",
10
10
  "axios": "^0.26.0",
11
11
  "bcryptjs": "^2.4.3",
12
12
  "cli-progress": "^3.10.0",