@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.mjs
CHANGED
|
@@ -1138,7 +1138,7 @@ var AdminApiClient = class {
|
|
|
1138
1138
|
const response = await this.httpClient.get(
|
|
1139
1139
|
`/admin-api/groups/${groupId}/metadata`
|
|
1140
1140
|
);
|
|
1141
|
-
return response?.data
|
|
1141
|
+
return response?.data ?? null;
|
|
1142
1142
|
}
|
|
1143
1143
|
async setMemberMetadata(groupId, identity, request) {
|
|
1144
1144
|
await this.httpClient.put(`/admin-api/groups/${groupId}/members/${identity}/metadata`, request);
|
|
@@ -1147,7 +1147,7 @@ var AdminApiClient = class {
|
|
|
1147
1147
|
const response = await this.httpClient.get(
|
|
1148
1148
|
`/admin-api/groups/${groupId}/members/${identity}/metadata`
|
|
1149
1149
|
);
|
|
1150
|
-
return response?.data
|
|
1150
|
+
return response?.data ?? null;
|
|
1151
1151
|
}
|
|
1152
1152
|
async setContextMetadata(groupId, contextId, request) {
|
|
1153
1153
|
await this.httpClient.put(`/admin-api/groups/${groupId}/contexts/${contextId}/metadata`, request);
|
|
@@ -1156,7 +1156,7 @@ var AdminApiClient = class {
|
|
|
1156
1156
|
const response = await this.httpClient.get(
|
|
1157
1157
|
`/admin-api/groups/${groupId}/contexts/${contextId}/metadata`
|
|
1158
1158
|
);
|
|
1159
|
-
return response?.data
|
|
1159
|
+
return response?.data ?? null;
|
|
1160
1160
|
}
|
|
1161
1161
|
async syncGroup(groupId, request) {
|
|
1162
1162
|
return unwrap(await this.httpClient.post(`/admin-api/groups/${groupId}/sync`, request ?? {}));
|