chanjs 1.1.4 → 1.1.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.
package/index.js CHANGED
@@ -11,7 +11,7 @@ import {bindClass,createKnex,loadWebToEnd} from "./core/helper.js";
11
11
  import Service from "./core/lib/service.js";
12
12
  import cache from './core/lib/cache.js';
13
13
  import core from "./core/lib/index.js";
14
- import extend from "./core/lib/extend.js";
14
+
15
15
  /**
16
16
  * @description 基于express封装的mvc框架,遵循约定优于配置原则
17
17
  */
@@ -29,7 +29,6 @@ class Chan {
29
29
  }
30
30
 
31
31
  async init() {
32
- extend(this.app);
33
32
  await this.loadConfig();
34
33
  await this.loadExtends();
35
34
  this.loadCore();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "chanjs",
4
- "version": "1.1.4",
4
+ "version": "1.1.5",
5
5
  "description": "chanjs基于express5 纯js研发的轻量级mvc框架。",
6
6
  "main": "index.js",
7
7
  "module": "index.js",
@@ -1,13 +0,0 @@
1
- import express from "express";
2
- export default (app)=>{
3
- app.plus = {
4
- setStatic:function ({prefix,dir,maxAge}) {
5
- app.use(prefix, express.static(dir, { maxAge: maxAge || 0 }));
6
- }
7
- }
8
-
9
-
10
- }
11
-
12
-
13
-