@xuda.io/account_module 1.2.253 → 1.2.254

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 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1566,8 +1566,8 @@ const removeBg = async function (req, job_id, headers) {
1566
1566
 
1567
1567
  // Convert to buffer and save
1568
1568
  const outputBuffer = Buffer.from(await blob.arrayBuffer());
1569
-
1570
- fs.writeFileSync(outputPath, outputBuffer);
1569
+ const tempPath = path.join(os.tmpdir(), Date.now());
1570
+ fs.writeFileSync(tempPath, outputBuffer);
1571
1571
 
1572
1572
  const file_obj = {
1573
1573
  originalname: originalname,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.253",
3
+ "version": "1.2.254",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {