@ladjs/web 18.0.5 → 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.
Files changed (2) hide show
  1. package/index.js +8 -8
  2. package/package.json +11 -11
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 ? reportUri : null
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 ? this.config.logger : console
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.5",
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,7 +17,7 @@
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.1",
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",
@@ -34,7 +34,7 @@
34
34
  "koa-better-flash": "^0.0.4",
35
35
  "koa-better-timeout": "^0.0.6",
36
36
  "koa-bodyparser": "^4.3.0",
37
- "koa-cash": "^4.1.0",
37
+ "koa-cash": "^4.1.1",
38
38
  "koa-compress": "^5.1.0",
39
39
  "koa-conditional-get": "^3.0.0",
40
40
  "koa-connect": "^2.1.0",
@@ -56,25 +56,25 @@
56
56
  "response-time": "^2.3.2"
57
57
  },
58
58
  "devDependencies": {
59
- "@commitlint/cli": "^17.0.3",
60
- "@commitlint/config-conventional": "^17.0.3",
59
+ "@commitlint/cli": "^17.2.0",
60
+ "@commitlint/config-conventional": "^17.2.0",
61
61
  "@ladjs/passport": "^5.0.3",
62
- "ava": "^4.3.1",
62
+ "ava": "^5.1.0",
63
63
  "cabin": "^10.0.4",
64
64
  "cross-env": "^7.0.3",
65
- "eslint": "^8.20.0",
65
+ "eslint": "^8.28.0",
66
66
  "eslint-config-xo-lass": "^2.0.1",
67
67
  "fixpack": "^4.0.0",
68
- "husky": "^8.0.1",
69
- "ioredis": "^5.2.1",
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.2.4",
77
- "xo": "^0.50.0"
76
+ "supertest": "^6.3.1",
77
+ "xo": "^0.53.0"
78
78
  },
79
79
  "engines": {
80
80
  "node": ">=14"