@xuda.io/ai_module 1.1.4554 → 1.1.4556
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/index.mjs +11 -12
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5255,17 +5255,16 @@ setTimeout(async () => {
|
|
|
5255
5255
|
// },
|
|
5256
5256
|
// });
|
|
5257
5257
|
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
// );
|
|
5258
|
+
ret = await get_profile_picture(
|
|
5259
|
+
uid,
|
|
5260
|
+
'business',
|
|
5261
|
+
'docxsite',
|
|
5262
|
+
{
|
|
5263
|
+
email: '',
|
|
5264
|
+
body: '',
|
|
5265
|
+
},
|
|
5266
|
+
account_profile_info,
|
|
5267
|
+
);
|
|
5269
5268
|
|
|
5270
5269
|
// ret =await get_business_info(uid, 'docxsite', 'info@docxsite.com', account_profile_info);
|
|
5271
5270
|
|
|
@@ -6475,7 +6474,7 @@ function normalizeFilename(name) {
|
|
|
6475
6474
|
.replace(/^_+|_+$/g, ''); // trim leading/trailing underscores
|
|
6476
6475
|
}
|
|
6477
6476
|
|
|
6478
|
-
export const get_profile_picture = async function (uid, account_type = 'business', name, metadata = {}, account_profile_info, job_id, headers) {
|
|
6477
|
+
export const get_profile_picture = async function (uid, account_type = 'business', name, metadata = {}, account_profile_info, job_id, headers = {}) {
|
|
6479
6478
|
const tempDir = os.tmpdir();
|
|
6480
6479
|
const uniqueId = Date.now() + '_' + Math.random().toString(36).substring(7);
|
|
6481
6480
|
const tempOutputPath = path.join(tempDir, `output_${uniqueId}.png`);
|