@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/cjs/index.js
CHANGED
|
@@ -3044,7 +3044,7 @@ var updateMeProfile = async ({
|
|
|
3044
3044
|
response.statusText
|
|
3045
3045
|
);
|
|
3046
3046
|
}
|
|
3047
|
-
return await response.json();
|
|
3047
|
+
return processUsername_default(await response.json());
|
|
3048
3048
|
} catch (error2) {
|
|
3049
3049
|
if (error2 instanceof AsgardeoAPIError) {
|
|
3050
3050
|
throw error2;
|
|
@@ -4999,6 +4999,20 @@ var generateFlattenedUserProfile = (meResponse, processedSchemas) => {
|
|
|
4999
4999
|
return;
|
|
5000
5000
|
}
|
|
5001
5001
|
let value = get_default(meResponse, name);
|
|
5002
|
+
if (value === void 0) {
|
|
5003
|
+
const dotIndex = name.indexOf(".");
|
|
5004
|
+
if (dotIndex > 0) {
|
|
5005
|
+
const head = name.slice(0, dotIndex);
|
|
5006
|
+
const tail = name.slice(dotIndex + 1);
|
|
5007
|
+
const arr = meResponse[head];
|
|
5008
|
+
if (Array.isArray(arr)) {
|
|
5009
|
+
const match = arr.find((item) => item && item.type === tail);
|
|
5010
|
+
if (match && match.value !== void 0) {
|
|
5011
|
+
value = match.value;
|
|
5012
|
+
}
|
|
5013
|
+
}
|
|
5014
|
+
}
|
|
5015
|
+
}
|
|
5002
5016
|
if (value === void 0) {
|
|
5003
5017
|
const schemaNamespaces = [
|
|
5004
5018
|
"urn:ietf:params:scim:schemas:core:2.0:User",
|