database-connector 1.0.1 → 1.0.2

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/models/index.js +3 -0
  2. package/package.json +1 -1
package/models/index.js CHANGED
@@ -13,6 +13,7 @@ const connectToDatabase = async (databaseUrl) => {
13
13
  }
14
14
  };
15
15
 
16
+ // Import des modèles
16
17
  const Cart = require('./Cart');
17
18
  const Product = require('./Product');
18
19
  const View = require('./View');
@@ -29,6 +30,7 @@ const Subscription = require('./Subscription');
29
30
  const Plan = require('./Plan');
30
31
  const SubscriptionOffer = require('./SubscriptionOffer');
31
32
 
33
+ // Exportation
32
34
  module.exports = {
33
35
  connectToDatabase,
34
36
  Cart,
@@ -46,4 +48,5 @@ module.exports = {
46
48
  Subscription,
47
49
  Plan,
48
50
  SubscriptionOffer,
51
+ ObjectId: mongoose.Types.ObjectId,
49
52
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "database-connector",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "main": "models/index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"