@xuda.io/ai_module 1.1.4348 → 1.1.4349

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 -7
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -6793,6 +6793,7 @@ const get_profile_image = async function (uid, account_type = 'business', name,
6793
6793
  factual_image_mode = true;
6794
6794
  }
6795
6795
  } else {
6796
+ // success
6796
6797
  let file;
6797
6798
  try {
6798
6799
  file = await get_image_blob_from_downloaded_image(url);
@@ -6802,13 +6803,7 @@ const get_profile_image = async function (uid, account_type = 'business', name,
6802
6803
  return '';
6803
6804
  }
6804
6805
 
6805
- try {
6806
- url = await get_url();
6807
- file = await get_image_blob_from_downloaded_image(url);
6808
- } catch (err) {
6809
- // create factual image
6810
- factual_image_mode = true;
6811
- }
6806
+ factual_image_mode = true;
6812
6807
  }
6813
6808
  }
6814
6809
  if (factual_image_mode) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4348",
3
+ "version": "1.1.4349",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",