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 b4d3709 commit 80a3d68Copy full SHA for 80a3d68
.eslintrc.yml
@@ -2,6 +2,8 @@ root: true
2
env:
3
es6: true
4
node: true
5
+languageOptions:
6
+ ecmaVersion: 2022
7
rules:
8
eol-last: error
9
eqeqeq: [error, allow-null]
lib/response.js
@@ -708,7 +708,7 @@ res.get = function(field){
708
709
res.clearCookie = function clearCookie(name, options) {
710
// Force cookie expiration by setting expires to the past
711
- const opts = Object.assign({ path: '/' } , options, { expires: new Date(1) })
+ const opts = { path: '/', ...options, expires: new Date(1)};
712
// ensure maxAge is not passed
713
delete opts.maxAge
714
0 commit comments