@xuda.io/ai_module 1.1.4777 → 1.1.4779

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.
Files changed (2) hide show
  1. package/index.mjs +2 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -7037,17 +7037,15 @@ export const get_profile_picture = async function (uid, account_type = 'business
7037
7037
  try {
7038
7038
  url = await getUserPhotoByEmail(email);
7039
7039
  if (url) {
7040
- profile_picture_source = 'google';
7041
-
7042
7040
  try {
7043
7041
  image_blob_ret = await get_image_blob_from_downloaded_image(url);
7042
+ profile_picture_source = 'google';
7044
7043
  } catch (err) {
7045
7044
  if (!err.message.includes('Failed to fetch image URL')) {
7046
7045
  console.error(err);
7047
7046
  return '';
7048
7047
  }
7049
- profile_picture_source = 'factual';
7050
- factual_image_mode = true;
7048
+ url = '';
7051
7049
  }
7052
7050
  } else {
7053
7051
  // first attempt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4777",
3
+ "version": "1.1.4779",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",