@sso-id/node 0.2.7 → 0.2.8
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/dist/management.js +2 -2
- package/package.json +1 -1
package/dist/management.js
CHANGED
|
@@ -312,7 +312,7 @@ export class ManagementClient {
|
|
|
312
312
|
if (!appId)
|
|
313
313
|
return [];
|
|
314
314
|
const res = await this.request('GET', `/api/applications/${encodeURIComponent(appId)}/menus`).catch(() => []);
|
|
315
|
-
return
|
|
315
|
+
return Array.isArray(res) ? res : [];
|
|
316
316
|
},
|
|
317
317
|
createMenu: async (data) => {
|
|
318
318
|
const appId = await this.getApplicationId();
|
|
@@ -333,7 +333,7 @@ export class ManagementClient {
|
|
|
333
333
|
if (!appId)
|
|
334
334
|
return [];
|
|
335
335
|
const res = await this.request('GET', `/api/applications/${encodeURIComponent(appId)}/apis`).catch(() => []);
|
|
336
|
-
return
|
|
336
|
+
return Array.isArray(res) ? res : [];
|
|
337
337
|
},
|
|
338
338
|
createApi: async (data) => {
|
|
339
339
|
const appId = await this.getApplicationId();
|
package/package.json
CHANGED