notherbase-fs 3.2.4 → 3.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.
Files changed (2) hide show
  1. package/notherbase-fs.js +2 -1
  2. package/package.json +1 -1
package/notherbase-fs.js CHANGED
@@ -17,7 +17,7 @@ import SpiritWorld from "./controllers/spirit-world.js";
17
17
  * The engine that runs a nother base.
18
18
  */
19
19
  class NotherBaseFS {
20
- constructor(contentPath) {
20
+ constructor(contentPath, globals = null) {
21
21
  this.app = express();
22
22
  this.server = http.createServer(this.app);
23
23
  this.io = new Server(this.server);
@@ -56,6 +56,7 @@ class NotherBaseFS {
56
56
 
57
57
  //provide database access and etc to use in routes
58
58
  this.app.use((req, res, next) => {
59
+ req.globals = globals;
59
60
  req.db = Models;
60
61
  req.contentPath = contentPath;
61
62
  req.lock = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notherbase-fs",
3
- "version": "3.2.4",
3
+ "version": "3.2.5",
4
4
  "description": "Functions to help make developing for NotherBase easier.",
5
5
  "exports": "./notherbase-fs.js",
6
6
  "scripts": {