@xuda.io/account_module 1.2.246 → 1.2.247

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 +4 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1548,9 +1548,10 @@ export const get_user_name = async function (uid) {
1548
1548
 
1549
1549
  const removeBg = async function (inputPath, url, outputPath) {
1550
1550
  try {
1551
- // Load image from file
1552
- // const imageBuffer = fs.readFileSync(inputPath);
1553
-
1551
+ let imageBuffer;
1552
+ if (inputPath) {
1553
+ imageBuffer = fs.readFileSync(inputPath);
1554
+ }
1554
1555
  // Remove background (returns a Blob)
1555
1556
 
1556
1557
  const res = await fetch(imgObj.url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.246",
3
+ "version": "1.2.247",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {