File tree Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 1- const process = require ( 'process' ) ;
2- const http = require ( 'http' ) ;
3- const https = require ( 'https' ) ;
4- const util = require ( 'util' ) ;
1+ const process = require ( 'node: process' ) ;
2+ const http = require ( 'node: http' ) ;
3+ const https = require ( 'node: https' ) ;
4+ const util = require ( 'node: util' ) ;
55
66const Cabin = require ( 'cabin' ) ;
77const I18N = require ( '@ladjs/i18n' ) ;
@@ -51,7 +51,7 @@ class API {
5151 : this . config . logger instanceof Cabin
5252 ? this . config . logger
5353 : new Cabin ( {
54- logger : this . config . logger ? this . config . logger : console
54+ logger : this . config . logger || console
5555 } ) ;
5656 app . context . logger = this . logger ;
5757
Original file line number Diff line number Diff line change 1313 "dependencies" : {
1414 "@koa/router" : " ^12.0.0" ,
1515 "@ladjs/i18n" : " ^8.0.1" ,
16- "@ladjs/koa-simple-ratelimit" : " ^4.0.1 " ,
16+ "@ladjs/koa-simple-ratelimit" : " ^4.0.2 " ,
1717 "@ladjs/passport" : " ^5.0.3" ,
1818 "@ladjs/redis" : " ^1.0.7" ,
1919 "@ladjs/shared-config" : " ^8.0.0" ,
3838 "response-time" : " ^2.3.2"
3939 },
4040 "devDependencies" : {
41- "@commitlint/cli" : " ^17.0.3 " ,
42- "@commitlint/config-conventional" : " ^17.0.3 " ,
43- "ava" : " ^4.3.1 " ,
41+ "@commitlint/cli" : " ^17.2.0 " ,
42+ "@commitlint/config-conventional" : " ^17.2.0 " ,
43+ "ava" : " ^5.1.0 " ,
4444 "cabin" : " ^10.0.4" ,
4545 "cross-env" : " ^7.0.3" ,
46- "eslint" : " ^8.20 .0" ,
46+ "eslint" : " ^8.28 .0" ,
4747 "eslint-config-xo-lass" : " ^2.0.1" ,
4848 "fixpack" : " ^4.0.0" ,
49- "husky" : " ^8.0.1 " ,
50- "ioredis" : " ^5.2.1 " ,
49+ "husky" : " ^8.0.2 " ,
50+ "ioredis" : " ^5.2.4 " ,
5151 "ioredis-mock" : " ^8.2.2" ,
5252 "lint-staged" : " 13.0.3" ,
53- "mongoose" : " ^6.4.6 " ,
53+ "mongoose" : " ^6.7.2 " ,
5454 "nyc" : " ^15.1.0" ,
5555 "remark-cli" : " ^11.0.0" ,
5656 "remark-preset-github" : " ^4.0.4" ,
57- "supertest" : " ^6.2.4 " ,
58- "xo" : " ^0.50 .0"
57+ "supertest" : " ^6.3.1 " ,
58+ "xo" : " ^0.53 .0"
5959 },
6060 "engines" : {
6161 "node" : " >=14"
You can’t perform that action at this time.
0 commit comments