@xuda.io/ai_module 1.1.4770 → 1.1.4772

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 +0 -18
  2. package/package.json +3 -2
package/index.mjs CHANGED
@@ -7073,24 +7073,6 @@ export const get_profile_picture = async function (uid, account_type = 'business
7073
7073
  }
7074
7074
  };
7075
7075
 
7076
- // async function normalizeBase64To1024(base64Image) {
7077
- // const inputBuffer = Buffer.from(base64Image, 'base64');
7078
-
7079
- // const normalizedBuffer = await sharp(inputBuffer)
7080
- // .resize(1024, 1024, {
7081
- // fit: 'contain', // Preserve aspect ratio, fit within 211x211
7082
- // background: { r: 0, g: 0, b: 0, alpha: 0 }, // Transparent background for padding
7083
- // })
7084
- // .png({
7085
- // quality: 100,
7086
- // compressionLevel: 9,
7087
- // force: true,
7088
- // })
7089
- // .toBuffer();
7090
-
7091
- // return normalizedBuffer.toString('base64'); // Return normalized base64 string
7092
- // }
7093
-
7094
7076
  async function normalizeBase64To1024(
7095
7077
  base64Image,
7096
7078
  resize = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4770",
3
+ "version": "1.1.4772",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",
@@ -21,7 +21,8 @@
21
21
  "puppeteer-extra-plugin-stealth": "^2.11.2",
22
22
  "youtube-dl-exec": "^2.1.3",
23
23
  "md-to-pdf": "^5.2.5",
24
- "vm2": "^3.10.0"
24
+ "vm2": "^3.10.0",
25
+ "firebase-admin": "^9.6.0"
25
26
  },
26
27
  "devDependencies": {},
27
28
  "scripts": {