q-koa 10.9.5 → 11.0.1

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/app.js +10 -5
  2. package/package.json +1 -1
package/core/app.js CHANGED
@@ -254,7 +254,7 @@ class APP {
254
254
  ) {
255
255
  this.app[appName].model.log.upsert(errorData)
256
256
  }
257
- if (process.env.NODE_ENV !== 'production') {
257
+ if (is_dev) {
258
258
  console.log(err.stack)
259
259
  }
260
260
  throw new Error(err.message)
@@ -276,12 +276,17 @@ class APP {
276
276
  'HH:mm:ss'
277
277
  )} server is running at http://localhost:${this.port}`
278
278
  )
279
- console.log(
280
- `first app is http://localhost:3001/${appName}/setting/findOne`
281
- )
279
+ if (is_dev) {
280
+ console.log(
281
+ `first app is http://localhost:3001/${appName}/setting/findOne`
282
+ )
283
+ }
284
+
285
+ const version = require('q-koa/package.json').version
286
+ console.log(chalk.green(`version: ${version}`))
282
287
  })
283
288
 
284
- if (process.env.NODE_ENV !== 'production') {
289
+ if (is_dev) {
285
290
  if (
286
291
  this.app[appName].service.model &&
287
292
  this.app[appName].service.model.loadModel
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "10.9.5",
3
+ "version": "11.0.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {