@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 +5 -5
- package/databaseutils.js +1 -0
- package/package.json +4 -4
package/blcauth.js
CHANGED
|
@@ -156,8 +156,8 @@ class BLCAuth
|
|
|
156
156
|
{
|
|
157
157
|
try
|
|
158
158
|
{
|
|
159
|
-
const {
|
|
160
|
-
let APIidentifier = BLCAuth.API_ID_PREFIX +
|
|
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(
|
|
213
|
-
let APIidentifier = BLCAuth.API_ID_PREFIX +
|
|
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: [${
|
|
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
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nsshunt/stsdatamanagement",
|
|
3
|
-
"version": "1.10.
|
|
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.
|
|
8
|
-
"@nsshunt/stsinstrumentation": "^6.4.
|
|
9
|
-
"@nsshunt/stsutils": "^1.7.
|
|
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",
|