@ladjs/api 12.0.2 → 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.
- package/index.js +5 -5
- package/package.json +15 -12
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
|
|
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.
|
|
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,13 +13,12 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@koa/router": "^12.0.0",
|
|
15
15
|
"@ladjs/i18n": "^8.0.1",
|
|
16
|
-
"@ladjs/koa-simple-ratelimit": "^4.0.
|
|
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",
|
|
20
20
|
"@ladjs/store-ip-address": "^0.0.7",
|
|
21
21
|
"boolean": "^3.2.0",
|
|
22
|
-
"cabin": "^9.1.2",
|
|
23
22
|
"express-request-id": "1.4.1",
|
|
24
23
|
"kcors": "^2.2.2",
|
|
25
24
|
"koa": "^2.13.4",
|
|
@@ -39,23 +38,24 @@
|
|
|
39
38
|
"response-time": "^2.3.2"
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|
|
42
|
-
"@commitlint/cli": "^17.0
|
|
43
|
-
"@commitlint/config-conventional": "^17.0
|
|
44
|
-
"ava": "^
|
|
41
|
+
"@commitlint/cli": "^17.2.0",
|
|
42
|
+
"@commitlint/config-conventional": "^17.2.0",
|
|
43
|
+
"ava": "^5.1.0",
|
|
44
|
+
"cabin": "^10.0.4",
|
|
45
45
|
"cross-env": "^7.0.3",
|
|
46
|
-
"eslint": "^8.
|
|
46
|
+
"eslint": "^8.28.0",
|
|
47
47
|
"eslint-config-xo-lass": "^2.0.1",
|
|
48
48
|
"fixpack": "^4.0.0",
|
|
49
|
-
"husky": "^8.0.
|
|
50
|
-
"ioredis": "^5.2.
|
|
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.
|
|
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.
|
|
58
|
-
"xo": "^0.
|
|
57
|
+
"supertest": "^6.3.1",
|
|
58
|
+
"xo": "^0.53.0"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">=14"
|
|
@@ -90,6 +90,9 @@
|
|
|
90
90
|
],
|
|
91
91
|
"license": "MIT",
|
|
92
92
|
"main": "index.js",
|
|
93
|
+
"peerDependencies": {
|
|
94
|
+
"cabin": ">= 10"
|
|
95
|
+
},
|
|
93
96
|
"repository": {
|
|
94
97
|
"type": "git",
|
|
95
98
|
"url": "https://github.com/ladjs/api"
|