mastercontroller 1.2.11 → 1.2.12

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/MasterControl.js +4 -4
  2. package/package.json +2 -2
package/MasterControl.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // MasterControl - by Alexander rich
2
- // version 1.0.246
2
+ // version 1.0.247
3
3
 
4
4
  var url = require('url');
5
5
  var fileserver = require('fs');
@@ -156,19 +156,19 @@ class MasterControl {
156
156
  if(files && files.length > 0){
157
157
  require(files[0]);
158
158
  }else{
159
- master.error.log(`Cannot find config file under ${rootFolderLocation}`, "error");
159
+ this.error.log(`Cannot find config file under ${rootFolderLocation}`, "error");
160
160
  }
161
161
  var routeFiles = globSearch.sync("**/*routes.js", { cwd: rootFolderLocation, absolute: true });
162
162
  var route = routeFiles && routeFiles.length > 0 ? routeFiles[0] : null;
163
163
  var routeObject = {
164
- isComponent : true,
164
+ isComponent : true,
165
165
  root : rootFolderLocation
166
166
  }
167
167
  this.router.setup(routeObject);
168
168
  if(route){
169
169
  require(route);
170
170
  }else{
171
- master.error.log(`Cannot find routes file under ${rootFolderLocation}`, "error");
171
+ this.error.log(`Cannot find routes file under ${rootFolderLocation}`, "error");
172
172
  }
173
173
  }
174
174
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "qs" : "^6.14.0",
4
4
  "formidable": "^3.5.4",
5
5
  "cookie": "^1.0.2",
6
- "winston": "^3.17.0",
6
+ "winston": "^3.18.3",
7
7
  "glob" :"^11.0.3"
8
8
  },
9
9
  "description": "A class library that makes using the Master Framework a breeze",
@@ -18,5 +18,5 @@
18
18
  "scripts": {
19
19
  "test": "echo \"Error: no test specified\" && exit 1"
20
20
  },
21
- "version": "1.2.11"
21
+ "version": "1.2.12"
22
22
  }