@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.
@@ -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 unwrapList(res);
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 unwrapList(res);
336
+ return Array.isArray(res) ? res : [];
337
337
  },
338
338
  createApi: async (data) => {
339
339
  const appId = await this.getApplicationId();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sso-id/node",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "type": "module",
5
5
  "description": "Official SSO.ID Node.js SDK (RS256 JWKS JWT verification, Express/Fastify middleware, Management API client)",
6
6
  "main": "dist/index.js",