database-connector 1.0.0 → 1.0.1

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 +33 -19
  2. package/package.json +1 -1
package/models/index.js CHANGED
@@ -13,23 +13,37 @@ const connectToDatabase = async (databaseUrl) => {
13
13
  }
14
14
  };
15
15
 
16
+ const Cart = require('./Cart');
17
+ const Product = require('./Product');
18
+ const View = require('./View');
19
+ const User = require('./User');
20
+ const Order = require('./Order');
21
+ const Bill = require('./Bill');
22
+ const Payment = require('./Payment');
23
+ const Store = require('./Store');
24
+ const Offer = require('./Offer');
25
+ const Category = require('./Category');
26
+ const ResetPassword = require('./ResetPassword');
27
+ const StoreRate = require('./StoreRate');
28
+ const Subscription = require('./Subscription');
29
+ const Plan = require('./Plan');
30
+ const SubscriptionOffer = require('./SubscriptionOffer');
16
31
 
17
-
18
-
19
- module.exports = require('./Cart');
20
- module.exports = require('./Product');
21
- module.exports = require('./View');
22
- module.exports = require('./User');
23
- module.exports = require('./Order');
24
- module.exports = require('./Bill');
25
- module.exports = require('./Payment');
26
- module.exports = require('./Store');
27
- module.exports = require('./Offer');
28
- module.exports = require('./Category');
29
- module.exports = require('./ResetPassword');
30
- module.exports = require('./StoreRate');
31
- module.exports = require('./Subscription');
32
- module.exports = require('./Plan');
33
- module.exports = require('./SubscriptionOffer');
34
- module.exports.connectToDatabase = connectToDatabase;
35
-
32
+ module.exports = {
33
+ connectToDatabase,
34
+ Cart,
35
+ Product,
36
+ View,
37
+ User,
38
+ Order,
39
+ Bill,
40
+ Payment,
41
+ Store,
42
+ Offer,
43
+ Category,
44
+ ResetPassword,
45
+ StoreRate,
46
+ Subscription,
47
+ Plan,
48
+ SubscriptionOffer,
49
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "database-connector",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "main": "models/index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"