Skip to content

Commit

Permalink
Use latest TypeScript version (#423)
Browse files Browse the repository at this point in the history
* bump typescript version and other deps

* linter fixes due to better type inference

* use latest eslint

* downgrade eslint

npm i doesn't complain but npm ci does :\

* regenerate docs
  • Loading branch information
wjhsf authored Jun 24, 2024
1 parent da21d8f commit e485f17
Show file tree
Hide file tree
Showing 4 changed files with 336 additions and 325 deletions.
2 changes: 0 additions & 2 deletions api/tough-cookie.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
```ts

/// <reference types="node" />

// @public
export interface Callback<T> {
// (undocumented)
Expand Down
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

0 comments on commit e485f17

Please sign in to comment.