@calimero-network/mero-js 2.2.0 → 2.2.1
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/admin-api/admin-client.d.ts.map +1 -1
- package/dist/admin-api/admin-client.js +2 -1
- package/dist/admin-api/admin-client.js.map +1 -1
- package/dist/index.browser.mjs +1 -1
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1079,7 +1079,10 @@ var AdminApiClient = class {
|
|
|
1079
1079
|
await this.httpClient.post(`/admin-api/groups/${parentGroupId}/unnest`, request);
|
|
1080
1080
|
}
|
|
1081
1081
|
async listSubgroups(groupId) {
|
|
1082
|
-
|
|
1082
|
+
const response = await this.httpClient.get(
|
|
1083
|
+
`/admin-api/groups/${groupId}/subgroups`
|
|
1084
|
+
);
|
|
1085
|
+
return response.subgroups ?? response.data ?? [];
|
|
1083
1086
|
}
|
|
1084
1087
|
async detachContextFromGroup(groupId, contextId, request) {
|
|
1085
1088
|
await this.httpClient.post(`/admin-api/groups/${groupId}/contexts/${contextId}/remove`, request ?? {});
|