File tree Expand file tree Collapse file tree 3 files changed +4
-11
lines changed
Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ import process from 'node:process';
22
33// eslint-disable-next-line import/no-anonymous-default-export
44export 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 ) {
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import https from 'node:https';
22import fs from 'node:fs' ;
33import process from 'node:process' ;
44import express from 'express' ;
5+ import { describe , it } from 'mocha' ;
56import request from 'supertest' ;
67import yes from '../lib/index.js' ;
78
You can’t perform that action at this time.
0 commit comments