aloux-iam 1.0.6 → 1.0.8

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.
@@ -706,7 +706,7 @@ self.updatePicture = async (req, res) => {
706
706
  };
707
707
  }
708
708
 
709
- const url = await providers.storage()?.upload("user/urlImg-" + user._id, req.files.urlImg);
709
+ const url = await providers.storage()?.upload("user/urlImg-" + user._id, req.files.urlImg, null, "public-read");
710
710
  await User.updateOne(
711
711
  { _id: user._id },
712
712
  { urlImg: url, lastUpdate: new Date().getTime() }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aloux-iam",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Aloux IAM for APIs ",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -28,8 +28,8 @@
28
28
  "js-yaml": "^4.1.1",
29
29
  "jsonwebtoken": "^9.0.3",
30
30
  "method-override": "^3.0.0",
31
- "mongodb": "^7.2.0",
32
- "mongoose": "^9.6.2",
31
+ "mongodb": "^6.0.0",
32
+ "mongoose": "^8.22.0",
33
33
  "otplib": "^12.0.1",
34
34
  "qrcode": "^1.5.4"
35
35
  }