nails-boilerplate 2.0.5 → 2.0.7

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.
package/index.js CHANGED
@@ -1,4 +1,6 @@
1
1
  // Sets the Nails global object
2
2
  import nails from './lib/nails.js';
3
+
3
4
  export default nails;
5
+
4
6
  // set up Nails here
package/lib/nails.js CHANGED
@@ -32,7 +32,7 @@ nails.Controller = Controller;
32
32
  nails.Model = ModelV2;
33
33
  nails.events = new EventEmitter();
34
34
  nails._dbConnector = null;
35
- nails.MODELS = {};
35
+ nails.MODELS = {init: initializeModels};
36
36
 
37
37
  async function configure( app_config ) {
38
38
  express_app.set('nails_config', application);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nails-boilerplate",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "A node.js webserver scaffold",
5
5
  "type": "module",
6
6
  "main": "index.js",