frontend-hamroun 1.2.3 → 1.2.5

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.
@@ -1,5 +1,6 @@
1
1
  import jwt from 'jsonwebtoken';
2
- import bcrypt from 'bcrypt';
2
+ import * as bcryptModule from 'bcrypt';
3
+ const bcrypt = bcryptModule.default || bcryptModule;
3
4
  import crypto from 'crypto';
4
5
  /**
5
6
  * Authentication service
@@ -1,4 +1,6 @@
1
1
  import mongoose from 'mongoose';
2
+ import * as bcryptModule from 'bcrypt';
3
+ const bcrypt = bcryptModule.default || bcryptModule;
2
4
  /**
3
5
  * Creates a data model from a Mongoose schema
4
6
  * @param name Model name