chanjs 2.0.6 → 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.
Files changed (2) hide show
  1. package/index.js +1 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2,7 +2,6 @@ import "./global/index.js";
2
2
  import path from "path";
3
3
  import fs from "fs";
4
4
  import express from "express";
5
-
6
5
  import { Controller, Service } from "./core/index.js";
7
6
  import {
8
7
  log,
@@ -166,7 +165,7 @@ class Chan {
166
165
  }
167
166
 
168
167
  run(cb) {
169
- const port = Chan.config.port || "81";
168
+ const port = Chan.config.PORT || "81";
170
169
  this.app.listen(port, () => {
171
170
  cb ? cb(port) : console.log(`Server is running on port ${port}`);
172
171
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "chanjs",
4
- "version": "2.0.6",
4
+ "version": "2.0.7",
5
5
  "description": "chanjs基于express5 纯js研发的轻量级mvc框架。",
6
6
  "main": "index.js",
7
7
  "module": "index.js",