Skip to content

Commit d71f598

Browse files
chore(deps): update to the latest xo (#93)
1 parent 48c3c6a commit d71f598

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import process from 'node:process';
22

33
// eslint-disable-next-line import/no-anonymous-default-export
44
export default function (options) {
5-
options = options ? options : {};
6-
const maxAge = options.maxAge ? options.maxAge : 86_400;
5+
options = options || {};
6+
const maxAge = options.maxAge || 86_400;
77
const includeSubDomains = options.includeSubDomains === undefined ? true : options.includeSubdomains;
88

99
return function (request, response, next) {

package.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,7 @@
3030
"express": "^4.17.1",
3131
"mocha": "^10.0.0",
3232
"supertest": "^6.0.0",
33-
"xo": "^0.52.0"
34-
},
35-
"xo": {
36-
"overrides": [
37-
{
38-
"files": "test/*.js",
39-
"env": "mocha"
40-
}
41-
]
33+
"xo": "^0.53.1"
4234
},
4335
"engines": {
4436
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"

test/test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import https from 'node:https';
22
import fs from 'node:fs';
33
import process from 'node:process';
44
import express from 'express';
5+
import {describe, it} from 'mocha';
56
import request from 'supertest';
67
import yes from '../lib/index.js';
78

0 commit comments

Comments
 (0)