chanjs 1.0.3 → 1.0.4

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/core/chan.js +0 -5
  2. package/package.json +1 -1
package/core/chan.js CHANGED
@@ -41,12 +41,8 @@ class Chan {
41
41
  const configPath = path.join(config.APP_PATH, "config/index.js");
42
42
  if (fs.existsSync(configPath)) {
43
43
  const config = require(configPath);
44
- console.log('111----',Chan.config)
45
44
  Chan.config = Object.assign(Chan.config, config);
46
- console.log('222----',Chan.config)
47
45
  }
48
-
49
-
50
46
  }
51
47
 
52
48
  // 加载扩展
@@ -59,7 +55,6 @@ class Chan {
59
55
  for (let i = 0, file; i < controllers.length; i++) {
60
56
  file = controllers[i];
61
57
  const helper = require(path.join(extendPath, file));
62
-
63
58
  const fileName = file.replace(".js", "");
64
59
  Chan.helper[fileName] = helper;
65
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chanjs",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Chanjs develops a lightweight MVC framework based on express pure JavaScript",
5
5
  "main": "core/chan.js",
6
6
  "module":"core/chan.js",