Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use latest TypeScript version #423

Merged
merged 5 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/cookie/cookieJar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ export class CookieJar {
cookies = cookies.filter(matchingCookie)

// sorting of S5.4 part 2
if (options && 'sort' in options && options.sort !== false) {
if ('sort' in options && options.sort !== false) {
cookies = cookies.sort(cookieCompare)
}

Expand Down Expand Up @@ -1474,7 +1474,7 @@ export class CookieJar {

completedCount++

if (completedCount === cookies?.length) {
if (completedCount === cookies.length) {
if (removeErrors[0]) cb(removeErrors[0])
else cb(null, undefined)
return
Expand Down
Loading
Loading