@asgardeo/javascript 0.19.0 → 0.19.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/cjs/index.js +15 -1
- package/dist/cjs/index.js.map +2 -2
- package/dist/edge/index.js +15 -1
- package/dist/edge/index.js.map +2 -2
- package/dist/index.js +15 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/edge/index.js
CHANGED
|
@@ -2911,7 +2911,7 @@ var updateMeProfile = async ({
|
|
|
2911
2911
|
response.statusText
|
|
2912
2912
|
);
|
|
2913
2913
|
}
|
|
2914
|
-
return await response.json();
|
|
2914
|
+
return processUsername_default(await response.json());
|
|
2915
2915
|
} catch (error2) {
|
|
2916
2916
|
if (error2 instanceof AsgardeoAPIError) {
|
|
2917
2917
|
throw error2;
|
|
@@ -4866,6 +4866,20 @@ var generateFlattenedUserProfile = (meResponse, processedSchemas) => {
|
|
|
4866
4866
|
return;
|
|
4867
4867
|
}
|
|
4868
4868
|
let value = get_default(meResponse, name);
|
|
4869
|
+
if (value === void 0) {
|
|
4870
|
+
const dotIndex = name.indexOf(".");
|
|
4871
|
+
if (dotIndex > 0) {
|
|
4872
|
+
const head = name.slice(0, dotIndex);
|
|
4873
|
+
const tail = name.slice(dotIndex + 1);
|
|
4874
|
+
const arr = meResponse[head];
|
|
4875
|
+
if (Array.isArray(arr)) {
|
|
4876
|
+
const match = arr.find((item) => item && item.type === tail);
|
|
4877
|
+
if (match && match.value !== void 0) {
|
|
4878
|
+
value = match.value;
|
|
4879
|
+
}
|
|
4880
|
+
}
|
|
4881
|
+
}
|
|
4882
|
+
}
|
|
4869
4883
|
if (value === void 0) {
|
|
4870
4884
|
const schemaNamespaces = [
|
|
4871
4885
|
"urn:ietf:params:scim:schemas:core:2.0:User",
|