@calimero-network/mero-js 6.1.0 → 7.0.0
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.js +9 -9
- 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 +3 -3
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1198,7 +1198,7 @@ var AdminApiClient = class {
|
|
|
1198
1198
|
const response = await this.httpClient.get(
|
|
1199
1199
|
`/admin-api/groups/${groupId}/metadata`
|
|
1200
1200
|
);
|
|
1201
|
-
return response?.data
|
|
1201
|
+
return response?.data ?? null;
|
|
1202
1202
|
}
|
|
1203
1203
|
async setMemberMetadata(groupId, identity, request) {
|
|
1204
1204
|
await this.httpClient.put(`/admin-api/groups/${groupId}/members/${identity}/metadata`, request);
|
|
@@ -1207,7 +1207,7 @@ var AdminApiClient = class {
|
|
|
1207
1207
|
const response = await this.httpClient.get(
|
|
1208
1208
|
`/admin-api/groups/${groupId}/members/${identity}/metadata`
|
|
1209
1209
|
);
|
|
1210
|
-
return response?.data
|
|
1210
|
+
return response?.data ?? null;
|
|
1211
1211
|
}
|
|
1212
1212
|
async setContextMetadata(groupId, contextId, request) {
|
|
1213
1213
|
await this.httpClient.put(`/admin-api/groups/${groupId}/contexts/${contextId}/metadata`, request);
|
|
@@ -1216,7 +1216,7 @@ var AdminApiClient = class {
|
|
|
1216
1216
|
const response = await this.httpClient.get(
|
|
1217
1217
|
`/admin-api/groups/${groupId}/contexts/${contextId}/metadata`
|
|
1218
1218
|
);
|
|
1219
|
-
return response?.data
|
|
1219
|
+
return response?.data ?? null;
|
|
1220
1220
|
}
|
|
1221
1221
|
async syncGroup(groupId, request) {
|
|
1222
1222
|
return unwrap(await this.httpClient.post(`/admin-api/groups/${groupId}/sync`, request ?? {}));
|