@ladjs/web 18.0.4 → 18.0.6
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 +8 -8
- package/package.json +15 -12
package/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const process = require('process');
|
|
2
|
-
const http = require('http');
|
|
3
|
-
const http2 = require('http2');
|
|
4
|
-
const path = require('path');
|
|
5
|
-
const util = require('util');
|
|
6
|
-
const zlib = require('zlib');
|
|
1
|
+
const process = require('node:process');
|
|
2
|
+
const http = require('node:http');
|
|
3
|
+
const http2 = require('node:http2');
|
|
4
|
+
const path = require('node:path');
|
|
5
|
+
const util = require('node:util');
|
|
6
|
+
const zlib = require('node:zlib');
|
|
7
7
|
|
|
8
8
|
const Boom = require('@hapi/boom');
|
|
9
9
|
const CSRF = require('koa-csrf');
|
|
@@ -141,7 +141,7 @@ class Web {
|
|
|
141
141
|
imgSrc: defaultSrc,
|
|
142
142
|
styleSrc: [...defaultSrc, "'unsafe-inline'"],
|
|
143
143
|
scriptSrc: [...defaultSrc, "'unsafe-inline'"],
|
|
144
|
-
reportUri: reportUri
|
|
144
|
+
reportUri: reportUri || null
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
: null,
|
|
@@ -198,7 +198,7 @@ class Web {
|
|
|
198
198
|
: this.config.logger instanceof Cabin
|
|
199
199
|
? this.config.logger
|
|
200
200
|
: new Cabin({
|
|
201
|
-
logger: this.config.logger
|
|
201
|
+
logger: this.config.logger || console
|
|
202
202
|
});
|
|
203
203
|
app.context.logger = this.logger;
|
|
204
204
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ladjs/web",
|
|
3
3
|
"description": "Web server for Lad",
|
|
4
|
-
"version": "18.0.
|
|
4
|
+
"version": "18.0.6",
|
|
5
5
|
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/ladjs/web/issues",
|
|
@@ -17,13 +17,12 @@
|
|
|
17
17
|
"@ladjs/koa-better-static": "^2.0.1",
|
|
18
18
|
"@ladjs/koa-cache-responses": "^0.0.3",
|
|
19
19
|
"@ladjs/koa-isajax": "^2.0.0",
|
|
20
|
-
"@ladjs/koa-simple-ratelimit": "^4.0.
|
|
20
|
+
"@ladjs/koa-simple-ratelimit": "^4.0.2",
|
|
21
21
|
"@ladjs/redis": "^1.0.7",
|
|
22
22
|
"@ladjs/shared-config": "^8.0.0",
|
|
23
23
|
"@ladjs/state-helper": "^3.0.1",
|
|
24
24
|
"@ladjs/store-ip-address": "^0.0.7",
|
|
25
25
|
"boolean": "^3.2.0",
|
|
26
|
-
"cabin": "^9.1.2",
|
|
27
26
|
"crypto-random-string": "3",
|
|
28
27
|
"express-request-id": "1.4.1",
|
|
29
28
|
"is-string-and-not-blank": "^0.0.2",
|
|
@@ -35,7 +34,7 @@
|
|
|
35
34
|
"koa-better-flash": "^0.0.4",
|
|
36
35
|
"koa-better-timeout": "^0.0.6",
|
|
37
36
|
"koa-bodyparser": "^4.3.0",
|
|
38
|
-
"koa-cash": "^4.1.
|
|
37
|
+
"koa-cash": "^4.1.1",
|
|
39
38
|
"koa-compress": "^5.1.0",
|
|
40
39
|
"koa-conditional-get": "^3.0.0",
|
|
41
40
|
"koa-connect": "^2.1.0",
|
|
@@ -57,24 +56,25 @@
|
|
|
57
56
|
"response-time": "^2.3.2"
|
|
58
57
|
},
|
|
59
58
|
"devDependencies": {
|
|
60
|
-
"@commitlint/cli": "^17.0
|
|
61
|
-
"@commitlint/config-conventional": "^17.0
|
|
59
|
+
"@commitlint/cli": "^17.2.0",
|
|
60
|
+
"@commitlint/config-conventional": "^17.2.0",
|
|
62
61
|
"@ladjs/passport": "^5.0.3",
|
|
63
|
-
"ava": "^
|
|
62
|
+
"ava": "^5.1.0",
|
|
63
|
+
"cabin": "^10.0.4",
|
|
64
64
|
"cross-env": "^7.0.3",
|
|
65
|
-
"eslint": "^8.
|
|
65
|
+
"eslint": "^8.28.0",
|
|
66
66
|
"eslint-config-xo-lass": "^2.0.1",
|
|
67
67
|
"fixpack": "^4.0.0",
|
|
68
|
-
"husky": "^8.0.
|
|
69
|
-
"ioredis": "^5.2.
|
|
68
|
+
"husky": "^8.0.2",
|
|
69
|
+
"ioredis": "^5.2.4",
|
|
70
70
|
"ioredis-mock": "^8.2.2",
|
|
71
71
|
"lint-staged": "^13.0.3",
|
|
72
72
|
"nyc": "^15.1.0",
|
|
73
73
|
"pug": "^3.0.2",
|
|
74
74
|
"remark-cli": "^11.0.0",
|
|
75
75
|
"remark-preset-github": "^4.0.4",
|
|
76
|
-
"supertest": "^6.
|
|
77
|
-
"xo": "^0.
|
|
76
|
+
"supertest": "^6.3.1",
|
|
77
|
+
"xo": "^0.53.0"
|
|
78
78
|
},
|
|
79
79
|
"engines": {
|
|
80
80
|
"node": ">=14"
|
|
@@ -100,6 +100,9 @@
|
|
|
100
100
|
],
|
|
101
101
|
"license": "MIT",
|
|
102
102
|
"main": "index.js",
|
|
103
|
+
"peerDependencies": {
|
|
104
|
+
"cabin": ">= 10"
|
|
105
|
+
},
|
|
103
106
|
"repository": {
|
|
104
107
|
"type": "git",
|
|
105
108
|
"url": "https://github.com/ladjs/web"
|