Skip to content

Commit

Permalink
Merge pull request #6224 from espoon-voltti/dependabot/npm_and_yarn/a…
Browse files Browse the repository at this point in the history
…pigw/tough-cookie-5.1.0

Bump tough-cookie from 4.1.3 to 5.1.0 in /apigw
  • Loading branch information
akheron authored Jan 17, 2025
2 parents f9edf45 + 23ef44a commit 8821907
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 57 deletions.
2 changes: 1 addition & 1 deletion apigw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"node-forge": "^1.3.1",
"nodemon": "^3.1.0",
"prettier": "^3.4.1",
"tough-cookie": "^4.1.3",
"tough-cookie": "^5.1.0",
"ts-jest": "^29.2.2",
"ts-node": "^10.9.1",
"typescript": "^5.7.2",
Expand Down
10 changes: 2 additions & 8 deletions apigw/src/shared/test/gateway-tester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,11 @@ export class GatewayTester {
return undefined
}

public async setCookie(cookie: Cookie): Promise<Cookie> {
public async setCookie(cookie: Cookie): Promise<void> {
// Cookie domain must be cleared before setting to avoid issue with "localhost"
// being in the public suffix list (and therefore denied by setCookie())
cookie.domain = null
const cookieString = cookie.cookieString()
return await this.cookies.setCookie(cookieString, this.baseUrl, {
http: cookie.httpOnly,
secure: cookie.secure,
now: cookie.creation ?? undefined,
sameSiteContext: cookie.sameSite
})
await this.cookies.setCookie(cookie, this.baseUrl)
}

public async getCookie(key: string): Promise<Cookie | undefined> {
Expand Down
73 changes: 25 additions & 48 deletions apigw/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3356,7 +3356,7 @@ __metadata:
redis: "npm:^4.7.0"
split2: "npm:^4.2.0"
through2: "npm:^4.0.2"
tough-cookie: "npm:^4.1.3"
tough-cookie: "npm:^5.1.0"
ts-jest: "npm:^29.2.2"
ts-node: "npm:^10.9.1"
typescript: "npm:^5.7.2"
Expand Down Expand Up @@ -6156,13 +6156,6 @@ __metadata:
languageName: node
linkType: hard

"psl@npm:^1.1.33":
version: 1.8.0
resolution: "psl@npm:1.8.0"
checksum: 10/5f62a8eca06cb4a017983d15b92b0d38dc8699d637eabc8cb482c59b4106c9760f59cc8afabcb8bb7b98f0322907680d8f0f59226386fffab5248d180bc04578
languageName: node
linkType: hard

"pstree.remy@npm:^1.1.8":
version: 1.1.8
resolution: "pstree.remy@npm:1.1.8"
Expand All @@ -6180,7 +6173,7 @@ __metadata:
languageName: node
linkType: hard

"punycode@npm:^2.1.0, punycode@npm:^2.1.1":
"punycode@npm:^2.1.0":
version: 2.1.1
resolution: "punycode@npm:2.1.1"
checksum: 10/939daa010c2cacebdb060c40ecb52fef0a739324a66f7fffe0f94353a1ee83e3b455e9032054c4a0c4977b0a28e27086f2171c392832b59a01bd948fd8e20914
Expand Down Expand Up @@ -6214,13 +6207,6 @@ __metadata:
languageName: node
linkType: hard

"querystringify@npm:^2.1.1":
version: 2.2.0
resolution: "querystringify@npm:2.2.0"
checksum: 10/46ab16f252fd892fc29d6af60966d338cdfeea68a231e9457631ffd22d67cec1e00141e0a5236a2eb16c0d7d74175d9ec1d6f963660c6f2b1c2fc85b194c5680
languageName: node
linkType: hard

"queue-microtask@npm:^1.2.2":
version: 1.2.3
resolution: "queue-microtask@npm:1.2.3"
Expand Down Expand Up @@ -6328,13 +6314,6 @@ __metadata:
languageName: node
linkType: hard

"requires-port@npm:^1.0.0":
version: 1.0.0
resolution: "requires-port@npm:1.0.0"
checksum: 10/878880ee78ccdce372784f62f52a272048e2d0827c29ae31e7f99da18b62a2b9463ea03a75f277352f4697c100183debb0532371ad515a2d49d4bfe596dd4c20
languageName: node
linkType: hard

"resolve-cwd@npm:^3.0.0":
version: 3.0.0
resolution: "resolve-cwd@npm:3.0.0"
Expand Down Expand Up @@ -6973,6 +6952,24 @@ __metadata:
languageName: node
linkType: hard

"tldts-core@npm:^6.1.71":
version: 6.1.71
resolution: "tldts-core@npm:6.1.71"
checksum: 10/9bed9e06791c9044d5f6cfe75c7b685c650c1d5cd3fc6f8c5ee3b24478925a1c356a621fe592b889f11b340e5db96a8876ec810379abad11c71700c9d4fe86b7
languageName: node
linkType: hard

"tldts@npm:^6.1.32":
version: 6.1.71
resolution: "tldts@npm:6.1.71"
dependencies:
tldts-core: "npm:^6.1.71"
bin:
tldts: bin/cli.js
checksum: 10/6a3e9ebf140c45ce5e179b3d9011b6b828c14bacfb2834f3ca61e8a5557b29b2a4e0b62da2c0382156d09e265e0f16255b5acdfef1cbccb25d7cd051ef11e9eb
languageName: node
linkType: hard

"tlhunter-sorted-set@npm:^0.1.0":
version: 0.1.0
resolution: "tlhunter-sorted-set@npm:0.1.0"
Expand Down Expand Up @@ -7021,15 +7018,12 @@ __metadata:
languageName: node
linkType: hard

"tough-cookie@npm:^4.1.3":
version: 4.1.3
resolution: "tough-cookie@npm:4.1.3"
"tough-cookie@npm:^5.1.0":
version: 5.1.0
resolution: "tough-cookie@npm:5.1.0"
dependencies:
psl: "npm:^1.1.33"
punycode: "npm:^2.1.1"
universalify: "npm:^0.2.0"
url-parse: "npm:^1.5.3"
checksum: 10/cf148c359b638a7069fc3ba9a5257bdc9616a6948a98736b92c3570b3f8401cf9237a42bf716878b656f372a1fb65b74dd13a46ccff8eceba14ffd053d33f72a
tldts: "npm:^6.1.32"
checksum: 10/01908de89d5268e424eb07c17230ef69110fed598f8036db366d2c992d5e8e52ccd3af600c87b7fb43479046eb4289f21baa4467a3032a2230a8d3878d3cb76d
languageName: node
linkType: hard

Expand Down Expand Up @@ -7324,13 +7318,6 @@ __metadata:
languageName: node
linkType: hard

"universalify@npm:^0.2.0":
version: 0.2.0
resolution: "universalify@npm:0.2.0"
checksum: 10/e86134cb12919d177c2353196a4cc09981524ee87abf621f7bc8d249dbbbebaec5e7d1314b96061497981350df786e4c5128dbf442eba104d6e765bc260678b5
languageName: node
linkType: hard

"unpipe@npm:1.0.0, unpipe@npm:~1.0.0":
version: 1.0.0
resolution: "unpipe@npm:1.0.0"
Expand Down Expand Up @@ -7361,16 +7348,6 @@ __metadata:
languageName: node
linkType: hard

"url-parse@npm:^1.5.3":
version: 1.5.10
resolution: "url-parse@npm:1.5.10"
dependencies:
querystringify: "npm:^2.1.1"
requires-port: "npm:^1.0.0"
checksum: 10/c9e96bc8c5b34e9f05ddfeffc12f6aadecbb0d971b3cc26015b58d5b44676a99f50d5aeb1e5c9e61fa4d49961ae3ab1ae997369ed44da51b2f5ac010d188e6ad
languageName: node
linkType: hard

"util-deprecate@npm:^1.0.1":
version: 1.0.2
resolution: "util-deprecate@npm:1.0.2"
Expand Down

0 comments on commit 8821907

Please sign in to comment.