@ladjs/api 12.0.3 → 12.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/index.js +5 -5
  2. package/package.json +11 -11
package/index.js CHANGED
@@ -1,7 +1,7 @@
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');
5
5
 
6
6
  const Cabin = require('cabin');
7
7
  const I18N = require('@ladjs/i18n');
@@ -51,7 +51,7 @@ class API {
51
51
  : this.config.logger instanceof Cabin
52
52
  ? this.config.logger
53
53
  : new Cabin({
54
- logger: this.config.logger ? this.config.logger : console
54
+ logger: this.config.logger || console
55
55
  });
56
56
  app.context.logger = this.logger;
57
57
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ladjs/api",
3
3
  "description": "API server for Lad",
4
- "version": "12.0.3",
4
+ "version": "12.0.4",
5
5
  "author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",
6
6
  "bugs": {
7
7
  "url": "https://github.com/ladjs/api/issues",
@@ -13,7 +13,7 @@
13
13
  "dependencies": {
14
14
  "@koa/router": "^12.0.0",
15
15
  "@ladjs/i18n": "^8.0.1",
16
- "@ladjs/koa-simple-ratelimit": "^4.0.1",
16
+ "@ladjs/koa-simple-ratelimit": "^4.0.2",
17
17
  "@ladjs/passport": "^5.0.3",
18
18
  "@ladjs/redis": "^1.0.7",
19
19
  "@ladjs/shared-config": "^8.0.0",
@@ -38,24 +38,24 @@
38
38
  "response-time": "^2.3.2"
39
39
  },
40
40
  "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",
44
44
  "cabin": "^10.0.4",
45
45
  "cross-env": "^7.0.3",
46
- "eslint": "^8.20.0",
46
+ "eslint": "^8.28.0",
47
47
  "eslint-config-xo-lass": "^2.0.1",
48
48
  "fixpack": "^4.0.0",
49
- "husky": "^8.0.1",
50
- "ioredis": "^5.2.1",
49
+ "husky": "^8.0.2",
50
+ "ioredis": "^5.2.4",
51
51
  "ioredis-mock": "^8.2.2",
52
52
  "lint-staged": "13.0.3",
53
- "mongoose": "^6.4.6",
53
+ "mongoose": "^6.7.2",
54
54
  "nyc": "^15.1.0",
55
55
  "remark-cli": "^11.0.0",
56
56
  "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"
59
59
  },
60
60
  "engines": {
61
61
  "node": ">=14"