Skip to content

Commit 8821907

Browse files
authored
Merge pull request #6224 from espoon-voltti/dependabot/npm_and_yarn/apigw/tough-cookie-5.1.0
Bump tough-cookie from 4.1.3 to 5.1.0 in /apigw
2 parents f9edf45 + 23ef44a commit 8821907

File tree

3 files changed

+28
-57
lines changed

3 files changed

+28
-57
lines changed

apigw/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"node-forge": "^1.3.1",
7474
"nodemon": "^3.1.0",
7575
"prettier": "^3.4.1",
76-
"tough-cookie": "^4.1.3",
76+
"tough-cookie": "^5.1.0",
7777
"ts-jest": "^29.2.2",
7878
"ts-node": "^10.9.1",
7979
"typescript": "^5.7.2",

apigw/src/shared/test/gateway-tester.ts

+2-8
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,11 @@ export class GatewayTester {
6060
return undefined
6161
}
6262

63-
public async setCookie(cookie: Cookie): Promise<Cookie> {
63+
public async setCookie(cookie: Cookie): Promise<void> {
6464
// Cookie domain must be cleared before setting to avoid issue with "localhost"
6565
// being in the public suffix list (and therefore denied by setCookie())
6666
cookie.domain = null
67-
const cookieString = cookie.cookieString()
68-
return await this.cookies.setCookie(cookieString, this.baseUrl, {
69-
http: cookie.httpOnly,
70-
secure: cookie.secure,
71-
now: cookie.creation ?? undefined,
72-
sameSiteContext: cookie.sameSite
73-
})
67+
await this.cookies.setCookie(cookie, this.baseUrl)
7468
}
7569

7670
public async getCookie(key: string): Promise<Cookie | undefined> {

apigw/yarn.lock

+25-48
Original file line numberDiff line numberDiff line change
@@ -3356,7 +3356,7 @@ __metadata:
33563356
redis: "npm:^4.7.0"
33573357
split2: "npm:^4.2.0"
33583358
through2: "npm:^4.0.2"
3359-
tough-cookie: "npm:^4.1.3"
3359+
tough-cookie: "npm:^5.1.0"
33603360
ts-jest: "npm:^29.2.2"
33613361
ts-node: "npm:^10.9.1"
33623362
typescript: "npm:^5.7.2"
@@ -6156,13 +6156,6 @@ __metadata:
61566156
languageName: node
61576157
linkType: hard
61586158

6159-
"psl@npm:^1.1.33":
6160-
version: 1.8.0
6161-
resolution: "psl@npm:1.8.0"
6162-
checksum: 10/5f62a8eca06cb4a017983d15b92b0d38dc8699d637eabc8cb482c59b4106c9760f59cc8afabcb8bb7b98f0322907680d8f0f59226386fffab5248d180bc04578
6163-
languageName: node
6164-
linkType: hard
6165-
61666159
"pstree.remy@npm:^1.1.8":
61676160
version: 1.1.8
61686161
resolution: "pstree.remy@npm:1.1.8"
@@ -6180,7 +6173,7 @@ __metadata:
61806173
languageName: node
61816174
linkType: hard
61826175

6183-
"punycode@npm:^2.1.0, punycode@npm:^2.1.1":
6176+
"punycode@npm:^2.1.0":
61846177
version: 2.1.1
61856178
resolution: "punycode@npm:2.1.1"
61866179
checksum: 10/939daa010c2cacebdb060c40ecb52fef0a739324a66f7fffe0f94353a1ee83e3b455e9032054c4a0c4977b0a28e27086f2171c392832b59a01bd948fd8e20914
@@ -6214,13 +6207,6 @@ __metadata:
62146207
languageName: node
62156208
linkType: hard
62166209

6217-
"querystringify@npm:^2.1.1":
6218-
version: 2.2.0
6219-
resolution: "querystringify@npm:2.2.0"
6220-
checksum: 10/46ab16f252fd892fc29d6af60966d338cdfeea68a231e9457631ffd22d67cec1e00141e0a5236a2eb16c0d7d74175d9ec1d6f963660c6f2b1c2fc85b194c5680
6221-
languageName: node
6222-
linkType: hard
6223-
62246210
"queue-microtask@npm:^1.2.2":
62256211
version: 1.2.3
62266212
resolution: "queue-microtask@npm:1.2.3"
@@ -6328,13 +6314,6 @@ __metadata:
63286314
languageName: node
63296315
linkType: hard
63306316

6331-
"requires-port@npm:^1.0.0":
6332-
version: 1.0.0
6333-
resolution: "requires-port@npm:1.0.0"
6334-
checksum: 10/878880ee78ccdce372784f62f52a272048e2d0827c29ae31e7f99da18b62a2b9463ea03a75f277352f4697c100183debb0532371ad515a2d49d4bfe596dd4c20
6335-
languageName: node
6336-
linkType: hard
6337-
63386317
"resolve-cwd@npm:^3.0.0":
63396318
version: 3.0.0
63406319
resolution: "resolve-cwd@npm:3.0.0"
@@ -6973,6 +6952,24 @@ __metadata:
69736952
languageName: node
69746953
linkType: hard
69756954

6955+
"tldts-core@npm:^6.1.71":
6956+
version: 6.1.71
6957+
resolution: "tldts-core@npm:6.1.71"
6958+
checksum: 10/9bed9e06791c9044d5f6cfe75c7b685c650c1d5cd3fc6f8c5ee3b24478925a1c356a621fe592b889f11b340e5db96a8876ec810379abad11c71700c9d4fe86b7
6959+
languageName: node
6960+
linkType: hard
6961+
6962+
"tldts@npm:^6.1.32":
6963+
version: 6.1.71
6964+
resolution: "tldts@npm:6.1.71"
6965+
dependencies:
6966+
tldts-core: "npm:^6.1.71"
6967+
bin:
6968+
tldts: bin/cli.js
6969+
checksum: 10/6a3e9ebf140c45ce5e179b3d9011b6b828c14bacfb2834f3ca61e8a5557b29b2a4e0b62da2c0382156d09e265e0f16255b5acdfef1cbccb25d7cd051ef11e9eb
6970+
languageName: node
6971+
linkType: hard
6972+
69766973
"tlhunter-sorted-set@npm:^0.1.0":
69776974
version: 0.1.0
69786975
resolution: "tlhunter-sorted-set@npm:0.1.0"
@@ -7021,15 +7018,12 @@ __metadata:
70217018
languageName: node
70227019
linkType: hard
70237020

7024-
"tough-cookie@npm:^4.1.3":
7025-
version: 4.1.3
7026-
resolution: "tough-cookie@npm:4.1.3"
7021+
"tough-cookie@npm:^5.1.0":
7022+
version: 5.1.0
7023+
resolution: "tough-cookie@npm:5.1.0"
70277024
dependencies:
7028-
psl: "npm:^1.1.33"
7029-
punycode: "npm:^2.1.1"
7030-
universalify: "npm:^0.2.0"
7031-
url-parse: "npm:^1.5.3"
7032-
checksum: 10/cf148c359b638a7069fc3ba9a5257bdc9616a6948a98736b92c3570b3f8401cf9237a42bf716878b656f372a1fb65b74dd13a46ccff8eceba14ffd053d33f72a
7025+
tldts: "npm:^6.1.32"
7026+
checksum: 10/01908de89d5268e424eb07c17230ef69110fed598f8036db366d2c992d5e8e52ccd3af600c87b7fb43479046eb4289f21baa4467a3032a2230a8d3878d3cb76d
70337027
languageName: node
70347028
linkType: hard
70357029

@@ -7324,13 +7318,6 @@ __metadata:
73247318
languageName: node
73257319
linkType: hard
73267320

7327-
"universalify@npm:^0.2.0":
7328-
version: 0.2.0
7329-
resolution: "universalify@npm:0.2.0"
7330-
checksum: 10/e86134cb12919d177c2353196a4cc09981524ee87abf621f7bc8d249dbbbebaec5e7d1314b96061497981350df786e4c5128dbf442eba104d6e765bc260678b5
7331-
languageName: node
7332-
linkType: hard
7333-
73347321
"unpipe@npm:1.0.0, unpipe@npm:~1.0.0":
73357322
version: 1.0.0
73367323
resolution: "unpipe@npm:1.0.0"
@@ -7361,16 +7348,6 @@ __metadata:
73617348
languageName: node
73627349
linkType: hard
73637350

7364-
"url-parse@npm:^1.5.3":
7365-
version: 1.5.10
7366-
resolution: "url-parse@npm:1.5.10"
7367-
dependencies:
7368-
querystringify: "npm:^2.1.1"
7369-
requires-port: "npm:^1.0.0"
7370-
checksum: 10/c9e96bc8c5b34e9f05ddfeffc12f6aadecbb0d971b3cc26015b58d5b44676a99f50d5aeb1e5c9e61fa4d49961ae3ab1ae997369ed44da51b2f5ac010d188e6ad
7371-
languageName: node
7372-
linkType: hard
7373-
73747351
"util-deprecate@npm:^1.0.1":
73757352
version: 1.0.2
73767353
resolution: "util-deprecate@npm:1.0.2"

0 commit comments

Comments
 (0)