We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9cb7f8 commit 44cd10bCopy full SHA for 44cd10b
lib/index.js
@@ -2,7 +2,7 @@ import process from 'node:process';
2
3
// eslint-disable-next-line import/no-anonymous-default-export
4
export default function (options) {
5
- options = options || {};
+ options ||= {};
6
const maxAge = options.maxAge || 86_400;
7
const includeSubDomains = options.includeSubDomains === undefined ? true : options.includeSubdomains;
8
@@ -11,7 +11,7 @@ export default function (options) {
11
const secure = request.connection.encrypted || (request.get('X-Forwarded-Proto') === 'https');
12
13
if (options.ignoreFilter) {
14
- ignoreRequest = ignoreRequest || options.ignoreFilter(request);
+ ignoreRequest ||= options.ignoreFilter(request);
15
}
16
17
if (ignoreRequest) {
0 commit comments