diff --git a/package.json b/package.json index 297a1a555..f98362b22 100644 --- a/package.json +++ b/package.json @@ -139,7 +139,7 @@ ], "sideEffects": false, "dependencies": { - "@bundled-es-modules/cookie": "^2.0.0", + "@bundled-es-modules/cookie": "^2.0.1", "@bundled-es-modules/statuses": "^1.0.1", "@bundled-es-modules/tough-cookie": "^0.1.6", "@inquirer/confirm": "^5.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 453726cbf..96e9a96d2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,8 +6,8 @@ settings: dependencies: '@bundled-es-modules/cookie': - specifier: ^2.0.0 - version: 2.0.0 + specifier: ^2.0.1 + version: 2.0.1 '@bundled-es-modules/statuses': specifier: ^1.0.1 version: 1.0.1 @@ -16,10 +16,10 @@ dependencies: version: 0.1.6 '@inquirer/confirm': specifier: ^5.0.0 - version: 5.0.0(@types/node@18.19.28) + version: 5.0.1(@types/node@18.19.28) '@mswjs/interceptors': specifier: ^0.36.5 - version: 0.36.5 + version: 0.36.10 '@open-draft/deferred-promise': specifier: ^2.2.0 version: 2.2.0 @@ -78,7 +78,7 @@ devDependencies: version: 0.8.1 '@playwright/test': specifier: ^1.48.0 - version: 1.48.1 + version: 1.48.0 '@types/express': specifier: ^4.17.21 version: 4.17.21 @@ -96,10 +96,10 @@ devDependencies: version: 18.19.28 '@typescript-eslint/eslint-plugin': specifier: ^8.8.1 - version: 8.10.0(@typescript-eslint/parser@8.10.0)(eslint@8.57.0)(typescript@5.5.2) + version: 8.8.1(@typescript-eslint/parser@8.8.1)(eslint@8.57.0)(typescript@5.5.2) '@typescript-eslint/parser': specifier: ^8.8.1 - version: 8.10.0(eslint@8.57.0)(typescript@5.5.2) + version: 8.8.1(eslint@8.57.0)(typescript@5.5.2) '@web/dev-server': specifier: ^0.4.6 version: 0.4.6 @@ -186,7 +186,7 @@ devDependencies: version: 5.5.2 undici: specifier: ^6.20.0 - version: 6.20.1 + version: 6.20.0 url-loader: specifier: ^4.1.1 version: 4.1.1(webpack@5.95.0) @@ -418,10 +418,10 @@ packages: to-fast-properties: 2.0.0 dev: true - /@bundled-es-modules/cookie@2.0.0: - resolution: {integrity: sha512-Or6YHg/kamKHpxULAdSqhGqnWFneIXu1NKvvfBBzKGwpVsYuFIQ5aBPHDnnoR3ghW1nvSkALd+EF9iMtY7Vjxw==} + /@bundled-es-modules/cookie@2.0.1: + resolution: {integrity: sha512-8o+5fRPLNbjbdGRRmJj3h6Hh1AQJf2dk3qQ/5ZFb+PXkRNiSoMGGUKlsgLfrxneb72axVJyIYji64E2+nNfYyw==} dependencies: - cookie: 0.5.0 + cookie: 0.7.2 dev: false /@bundled-es-modules/statuses@1.0.1: @@ -1623,18 +1623,19 @@ packages: resolution: {integrity: sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==} dev: true - /@inquirer/confirm@5.0.0(@types/node@18.19.28): - resolution: {integrity: sha512-6QEzj6bZg8atviRIL+pR0tODC854cYSjvZxkyCarr8DVaOJPEyuGys7GmEG3W0Rb8kKSQec7P6okt0sJvNneFw==} + /@inquirer/confirm@5.0.1(@types/node@18.19.28): + resolution: {integrity: sha512-6ycMm7k7NUApiMGfVc32yIPp28iPKxhGRMqoNDiUjq2RyTAkbs5Fx0TdzBqhabcKvniDdAAvHCmsRjnNfTsogw==} engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' dependencies: - '@inquirer/core': 10.0.0(@types/node@18.19.28) + '@inquirer/core': 10.0.1(@types/node@18.19.28) '@inquirer/type': 3.0.0(@types/node@18.19.28) - transitivePeerDependencies: - - '@types/node' + '@types/node': 18.19.28 dev: false - /@inquirer/core@10.0.0(@types/node@18.19.28): - resolution: {integrity: sha512-7dwoKCGvgZGHWTZfOj2KLmbIAIdiXP9NTrwGaTO/XDfKMEmyBahZpnombiG6JDHmiOrmK3GLEJRXrWExXCDLmQ==} + /@inquirer/core@10.0.1(@types/node@18.19.28): + resolution: {integrity: sha512-KKTgjViBQUi3AAssqjUFMnMO3CM3qwCHvePV9EW+zTKGKafFGFF01sc1yOIYjLJ7QU52G/FbzKc+c01WLzXmVQ==} engines: {node: '>=18'} dependencies: '@inquirer/figures': 1.0.7 @@ -1887,8 +1888,8 @@ packages: - utf-8-validate dev: true - /@mswjs/interceptors@0.36.5: - resolution: {integrity: sha512-aQ8WF5zQwOdcxLsxSEk9Jd01GgGb80xxqCaiDDlewhtwqpSm8MOvUHslwPydVirasdW09++NxDNNftm1vLY8yA==} + /@mswjs/interceptors@0.36.10: + resolution: {integrity: sha512-GXrJgakgJW3DWKueebkvtYgGKkxA7s0u5B0P5syJM5rvQUnrpLPigvci8Hukl7yEM+sU06l+er2Fgvx/gmiRgg==} engines: {node: '>=18'} dependencies: '@open-draft/deferred-promise': 2.2.0 @@ -1991,12 +1992,12 @@ packages: engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} dev: true - /@playwright/test@1.48.1: - resolution: {integrity: sha512-s9RtWoxkOLmRJdw3oFvhFbs9OJS0BzrLUc8Hf6l2UdCNd1rqeEyD4BhCJkvzeEoD1FsK4mirsWwGerhVmYKtZg==} + /@playwright/test@1.48.0: + resolution: {integrity: sha512-W5lhqPUVPqhtc/ySvZI5Q8X2ztBOUgZ8LbAFy0JQgrXZs2xaILrUcNO3rQjwbLPfGK13+rZsDa1FpG+tqYkT5w==} engines: {node: '>=18'} hasBin: true dependencies: - playwright: 1.48.1 + playwright: 1.48.0 dev: true /@rollup/plugin-node-resolve@15.3.0(rollup@4.13.2): @@ -2588,8 +2589,8 @@ packages: '@types/yargs-parser': 21.0.3 dev: true - /@typescript-eslint/eslint-plugin@8.10.0(@typescript-eslint/parser@8.10.0)(eslint@8.57.0)(typescript@5.5.2): - resolution: {integrity: sha512-phuB3hoP7FFKbRXxjl+DRlQDuJqhpOnm5MmtROXyWi3uS/Xg2ZXqiQfcG2BJHiN4QKyzdOJi3NEn/qTnjUlkmQ==} + /@typescript-eslint/eslint-plugin@8.8.1(@typescript-eslint/parser@8.8.1)(eslint@8.57.0)(typescript@5.5.2): + resolution: {integrity: sha512-xfvdgA8AP/vxHgtgU310+WBnLB4uJQ9XdyP17RebG26rLtDrQJV3ZYrcopX91GrHmMoH8bdSwMRh2a//TiJ1jQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: '@typescript-eslint/parser': ^8.0.0 || ^8.0.0-alpha.0 @@ -2600,11 +2601,11 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.11.0 - '@typescript-eslint/parser': 8.10.0(eslint@8.57.0)(typescript@5.5.2) - '@typescript-eslint/scope-manager': 8.10.0 - '@typescript-eslint/type-utils': 8.10.0(eslint@8.57.0)(typescript@5.5.2) - '@typescript-eslint/utils': 8.10.0(eslint@8.57.0)(typescript@5.5.2) - '@typescript-eslint/visitor-keys': 8.10.0 + '@typescript-eslint/parser': 8.8.1(eslint@8.57.0)(typescript@5.5.2) + '@typescript-eslint/scope-manager': 8.8.1 + '@typescript-eslint/type-utils': 8.8.1(eslint@8.57.0)(typescript@5.5.2) + '@typescript-eslint/utils': 8.8.1(eslint@8.57.0)(typescript@5.5.2) + '@typescript-eslint/visitor-keys': 8.8.1 eslint: 8.57.0 graphemer: 1.4.0 ignore: 5.3.1 @@ -2615,8 +2616,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@8.10.0(eslint@8.57.0)(typescript@5.5.2): - resolution: {integrity: sha512-E24l90SxuJhytWJ0pTQydFT46Nk0Z+bsLKo/L8rtQSL93rQ6byd1V/QbDpHUTdLPOMsBCcYXZweADNCfOCmOAg==} + /@typescript-eslint/parser@8.8.1(eslint@8.57.0)(typescript@5.5.2): + resolution: {integrity: sha512-hQUVn2Lij2NAxVFEdvIGxT9gP1tq2yM83m+by3whWFsWC+1y8pxxxHUFE1UqDu2VsGi2i6RLcv4QvouM84U+ow==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -2625,10 +2626,10 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 8.10.0 - '@typescript-eslint/types': 8.10.0 - '@typescript-eslint/typescript-estree': 8.10.0(typescript@5.5.2) - '@typescript-eslint/visitor-keys': 8.10.0 + '@typescript-eslint/scope-manager': 8.8.1 + '@typescript-eslint/types': 8.8.1 + '@typescript-eslint/typescript-estree': 8.8.1(typescript@5.5.2) + '@typescript-eslint/visitor-keys': 8.8.1 debug: 4.3.6 eslint: 8.57.0 typescript: 5.5.2 @@ -2636,16 +2637,16 @@ packages: - supports-color dev: true - /@typescript-eslint/scope-manager@8.10.0: - resolution: {integrity: sha512-AgCaEjhfql9MDKjMUxWvH7HjLeBqMCBfIaBbzzIcBbQPZE7CPh1m6FF+L75NUMJFMLYhCywJXIDEMa3//1A0dw==} + /@typescript-eslint/scope-manager@8.8.1: + resolution: {integrity: sha512-X4JdU+66Mazev/J0gfXlcC/dV6JI37h+93W9BRYXrSn0hrE64IoWgVkO9MSJgEzoWkxONgaQpICWg8vAN74wlA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} dependencies: - '@typescript-eslint/types': 8.10.0 - '@typescript-eslint/visitor-keys': 8.10.0 + '@typescript-eslint/types': 8.8.1 + '@typescript-eslint/visitor-keys': 8.8.1 dev: true - /@typescript-eslint/type-utils@8.10.0(eslint@8.57.0)(typescript@5.5.2): - resolution: {integrity: sha512-PCpUOpyQSpxBn230yIcK+LeCQaXuxrgCm2Zk1S+PTIRJsEfU6nJ0TtwyH8pIwPK/vJoA+7TZtzyAJSGBz+s/dg==} + /@typescript-eslint/type-utils@8.8.1(eslint@8.57.0)(typescript@5.5.2): + resolution: {integrity: sha512-qSVnpcbLP8CALORf0za+vjLYj1Wp8HSoiI8zYU5tHxRVj30702Z1Yw4cLwfNKhTPWp5+P+k1pjmD5Zd1nhxiZA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '*' @@ -2653,8 +2654,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 8.10.0(typescript@5.5.2) - '@typescript-eslint/utils': 8.10.0(eslint@8.57.0)(typescript@5.5.2) + '@typescript-eslint/typescript-estree': 8.8.1(typescript@5.5.2) + '@typescript-eslint/utils': 8.8.1(eslint@8.57.0)(typescript@5.5.2) debug: 4.3.6 ts-api-utils: 1.3.0(typescript@5.5.2) typescript: 5.5.2 @@ -2663,13 +2664,13 @@ packages: - supports-color dev: true - /@typescript-eslint/types@8.10.0: - resolution: {integrity: sha512-k/E48uzsfJCRRbGLapdZgrX52csmWJ2rcowwPvOZ8lwPUv3xW6CcFeJAXgx4uJm+Ge4+a4tFOkdYvSpxhRhg1w==} + /@typescript-eslint/types@8.8.1: + resolution: {integrity: sha512-WCcTP4SDXzMd23N27u66zTKMuEevH4uzU8C9jf0RO4E04yVHgQgW+r+TeVTNnO1KIfrL8ebgVVYYMMO3+jC55Q==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} dev: true - /@typescript-eslint/typescript-estree@8.10.0(typescript@5.5.2): - resolution: {integrity: sha512-3OE0nlcOHaMvQ8Xu5gAfME3/tWVDpb/HxtpUZ1WeOAksZ/h/gwrBzCklaGzwZT97/lBbbxJ16dMA98JMEngW4w==} + /@typescript-eslint/typescript-estree@8.8.1(typescript@5.5.2): + resolution: {integrity: sha512-A5d1R9p+X+1js4JogdNilDuuq+EHZdsH9MjTVxXOdVFfTJXunKJR/v+fNNyO4TnoOn5HqobzfRlc70NC6HTcdg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '*' @@ -2677,8 +2678,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 8.10.0 - '@typescript-eslint/visitor-keys': 8.10.0 + '@typescript-eslint/types': 8.8.1 + '@typescript-eslint/visitor-keys': 8.8.1 debug: 4.3.6 fast-glob: 3.3.2 is-glob: 4.0.3 @@ -2690,27 +2691,27 @@ packages: - supports-color dev: true - /@typescript-eslint/utils@8.10.0(eslint@8.57.0)(typescript@5.5.2): - resolution: {integrity: sha512-Oq4uZ7JFr9d1ZunE/QKy5egcDRXT/FrS2z/nlxzPua2VHFtmMvFNDvpq1m/hq0ra+T52aUezfcjGRIB7vNJF9w==} + /@typescript-eslint/utils@8.8.1(eslint@8.57.0)(typescript@5.5.2): + resolution: {integrity: sha512-/QkNJDbV0bdL7H7d0/y0qBbV2HTtf0TIyjSDTvvmQEzeVx8jEImEbLuOA4EsvE8gIgqMitns0ifb5uQhMj8d9w==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@typescript-eslint/scope-manager': 8.10.0 - '@typescript-eslint/types': 8.10.0 - '@typescript-eslint/typescript-estree': 8.10.0(typescript@5.5.2) + '@typescript-eslint/scope-manager': 8.8.1 + '@typescript-eslint/types': 8.8.1 + '@typescript-eslint/typescript-estree': 8.8.1(typescript@5.5.2) eslint: 8.57.0 transitivePeerDependencies: - supports-color - typescript dev: true - /@typescript-eslint/visitor-keys@8.10.0: - resolution: {integrity: sha512-k8nekgqwr7FadWk548Lfph6V3r9OVqjzAIVskE7orMZR23cGJjAOVazsZSJW+ElyjfTM4wx/1g88Mi70DDtG9A==} + /@typescript-eslint/visitor-keys@8.8.1: + resolution: {integrity: sha512-0/TdC3aeRAsW7MDvYRwEc1Uwm0TIBfzjPFgg60UU2Haj5qsCs9cc3zNgY71edqE3LbWfF/WoZQd3lJoDXFQpag==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} dependencies: - '@typescript-eslint/types': 8.10.0 + '@typescript-eslint/types': 8.8.1 eslint-visitor-keys: 3.4.3 dev: true @@ -3626,7 +3627,6 @@ packages: /callsites@3.1.0: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} - requiresBuild: true dev: true /camelcase-keys@6.2.2: @@ -3979,11 +3979,6 @@ packages: engines: {node: '>= 0.6'} dev: true - /cookie@0.5.0: - resolution: {integrity: sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==} - engines: {node: '>= 0.6'} - dev: false - /cookie@0.6.0: resolution: {integrity: sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==} engines: {node: '>= 0.6'} @@ -3992,7 +3987,6 @@ packages: /cookie@0.7.2: resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==} engines: {node: '>= 0.6'} - dev: true /cookies@0.9.1: resolution: {integrity: sha512-TG2hpqe4ELx54QER/S3HQ9SRVnQnGBtKUz5bLQWtYAQ+o6GpgMs6sYUvaiJjVxb+UXwhRhAEP3m7LbsIZ77Hmw==} @@ -4491,7 +4485,6 @@ packages: /error-ex@1.3.2: resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} - requiresBuild: true dependencies: is-arrayish: 0.2.1 dev: true @@ -5073,7 +5066,7 @@ packages: '@nodelib/fs.walk': 1.2.8 glob-parent: 5.1.2 merge2: 1.4.1 - micromatch: 4.0.5 + micromatch: 4.0.8 dev: true /fast-json-stable-stringify@2.1.0: @@ -5146,8 +5139,8 @@ packages: reusify: 1.0.4 dev: true - /fdir@6.4.2(picomatch@4.0.2): - resolution: {integrity: sha512-KnhMXsKSPZlAhp7+IjUkRZKPb4fUyccpDrdFXbi4QL1qkmFh9kVY09Yox+n4MaOb3lHZ1Tv829C3oaaXoMYPDQ==} + /fdir@6.4.0(picomatch@4.0.2): + resolution: {integrity: sha512-3oB133prH1o4j/L5lLW7uOCF1PlD+/It2L0eL/iAqWMB91RBbqTewABqxhj0ibBd90EEmWZq7ntIWzVaWcXTGQ==} peerDependencies: picomatch: ^3 || ^4 peerDependenciesMeta: @@ -5264,7 +5257,7 @@ packages: dependencies: detect-file: 1.0.0 is-glob: 4.0.3 - micromatch: 4.0.5 + micromatch: 4.0.8 resolve-dir: 1.0.1 dev: true @@ -5926,7 +5919,6 @@ packages: /is-arrayish@0.2.1: resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} - requiresBuild: true dev: true /is-bigint@1.0.4: @@ -6314,7 +6306,6 @@ packages: /json-schema-traverse@1.0.0: resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} - requiresBuild: true dev: true /json-stable-stringify-without-jsonify@1.0.1: @@ -6761,14 +6752,6 @@ packages: engines: {node: '>= 0.6'} dev: true - /micromatch@4.0.5: - resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==} - engines: {node: '>=8.6'} - dependencies: - braces: 3.0.2 - picomatch: 2.3.1 - dev: true - /micromatch@4.0.8: resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} engines: {node: '>=8.6'} @@ -7261,7 +7244,6 @@ packages: /parent-module@1.0.1: resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} engines: {node: '>=6'} - requiresBuild: true dependencies: callsites: 3.1.0 dev: true @@ -7370,8 +7352,8 @@ packages: resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} dev: true - /picocolors@1.1.1: - resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + /picocolors@1.1.0: + resolution: {integrity: sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==} dev: true /picomatch@2.3.1: @@ -7483,8 +7465,8 @@ packages: hasBin: true dev: true - /playwright-core@1.48.1: - resolution: {integrity: sha512-Yw/t4VAFX/bBr1OzwCuOMZkY1Cnb4z/doAFSwf4huqAGWmf9eMNjmK7NiOljCdLmxeRYcGPPmcDgU0zOlzP0YA==} + /playwright-core@1.48.0: + resolution: {integrity: sha512-RBvzjM9rdpP7UUFrQzRwR8L/xR4HyC1QXMzGYTbf1vjw25/ya9NRAVnXi/0fvFopjebvyPzsmoK58xxeEOaVvA==} engines: {node: '>=18'} hasBin: true dev: true @@ -7499,12 +7481,12 @@ packages: fsevents: 2.3.2 dev: true - /playwright@1.48.1: - resolution: {integrity: sha512-j8CiHW/V6HxmbntOfyB4+T/uk08tBy6ph0MpBXwuoofkSnLmlfdYNNkFTYD6ofzzlSqLA1fwH4vwvVFvJgLN0w==} + /playwright@1.48.0: + resolution: {integrity: sha512-qPqFaMEHuY/ug8o0uteYJSRfMGFikhUysk8ZvAtfKmUK3kc/6oNl/y3EczF8OFGYIi/Ex2HspMfzYArk6+XQSA==} engines: {node: '>=18'} hasBin: true dependencies: - playwright-core: 1.48.1 + playwright-core: 1.48.0 optionalDependencies: fsevents: 2.3.2 dev: true @@ -7816,7 +7798,6 @@ packages: /resolve-from@4.0.0: resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} engines: {node: '>=4'} - requiresBuild: true dev: true /resolve-from@5.0.0: @@ -8685,7 +8666,7 @@ packages: resolution: {integrity: sha512-8or1+BGEdk1Zkkw2ii16qSS7uVrQJPre5A9o/XkWPATkk23FZh/15BKFxPnlTy6vkljZxLqYCzzBMj30ZrSvjw==} engines: {node: '>=12.0.0'} dependencies: - fdir: 6.4.2(picomatch@4.0.2) + fdir: 6.4.0(picomatch@4.0.2) picomatch: 4.0.2 dev: true @@ -8699,15 +8680,15 @@ packages: engines: {node: '>=14.0.0'} dev: true - /tldts-core@6.1.52: - resolution: {integrity: sha512-j4OxQI5rc1Ve/4m/9o2WhWSC4jGc4uVbCINdOEJRAraCi0YqTqgMcxUx7DbmuP0G3PCixoof/RZB0Q5Kh9tagw==} + /tldts-core@6.1.50: + resolution: {integrity: sha512-na2EcZqmdA2iV9zHV7OHQDxxdciEpxrjbkp+aHmZgnZKHzoElLajP59np5/4+sare9fQBfixgvXKx8ev1d7ytw==} dev: true - /tldts@6.1.52: - resolution: {integrity: sha512-fgrDJXDjbAverY6XnIt0lNfv8A0cf7maTEaZxNykLGsLG7XP+5xhjBTrt/ieAsFjAlZ+G5nmXomLcZDkxXnDzw==} + /tldts@6.1.50: + resolution: {integrity: sha512-q9GOap6q3KCsLMdOjXhWU5jVZ8/1dIib898JBRLsN+tBhENpBDcAVQbE0epADOjw11FhQQy9AcbqKGBQPUfTQA==} hasBin: true dependencies: - tldts-core: 6.1.52 + tldts-core: 6.1.50 dev: true /tmp@0.0.33: @@ -8753,7 +8734,7 @@ packages: resolution: {integrity: sha512-FRKsF7cz96xIIeMZ82ehjC3xW2E+O2+v11udrDYewUbszngYhsGa8z6YUMMzO9QJZzzyd0nGGXnML/TReX6W8Q==} engines: {node: '>=16'} dependencies: - tldts: 6.1.52 + tldts: 6.1.50 dev: true /tr46@0.0.3: @@ -8868,7 +8849,7 @@ packages: esbuild: 0.23.1 execa: 5.1.1 joycon: 3.1.1 - picocolors: 1.1.1 + picocolors: 1.1.0 postcss-load-config: 6.0.1 resolve-from: 5.0.0 rollup: 4.24.0 @@ -9025,8 +9006,8 @@ packages: '@fastify/busboy': 2.1.1 dev: true - /undici@6.20.1: - resolution: {integrity: sha512-AjQF1QsmqfJys+LXfGTNum+qw4S88CojRInG/6t31W/1fk6G59s92bnAvGz5Cmur+kQv2SURXEvvudLmbrE8QA==} + /undici@6.20.0: + resolution: {integrity: sha512-AITZfPuxubm31Sx0vr8bteSalEbs9wQb/BOBi9FPlD9Qpd6HxZ4Q0+hI742jBhkPb4RT2v5MQzaW5VhRVyj+9A==} engines: {node: '>=18.17'} dev: true diff --git a/src/core/utils/request/getRequestCookies.ts b/src/core/utils/request/getRequestCookies.ts index 9eab0f803..5cbe4bd7d 100644 --- a/src/core/utils/request/getRequestCookies.ts +++ b/src/core/utils/request/getRequestCookies.ts @@ -1,8 +1,21 @@ import cookieUtils from '@bundled-es-modules/cookie' import { cookieStore } from '../cookieStore' +function parseCookies(input: string): Record { + const parsedCookies = cookieUtils.parse(input) + const cookies: Record = {} + + for (const cookieName in parsedCookies) { + if (typeof parsedCookies[cookieName] !== 'undefined') { + cookies[cookieName] = parsedCookies[cookieName] + } + } + + return cookies +} + function getAllDocumentCookies() { - return cookieUtils.parse(document.cookie) + return parseCookies(document.cookie) } function getDocumentCookies(request: Request): Record { @@ -40,7 +53,7 @@ export function getAllRequestCookies(request: Request): Record { */ const requestCookieHeader = request.headers.get('cookie') const cookiesFromHeaders = requestCookieHeader - ? cookieUtils.parse(requestCookieHeader) + ? parseCookies(requestCookieHeader) : {} const cookiesFromDocument = getDocumentCookies(request) diff --git a/test/browser/graphql-api/cookies.test.ts b/test/browser/graphql-api/cookies.test.ts index c451f8dcc..fdc988853 100644 --- a/test/browser/graphql-api/cookies.test.ts +++ b/test/browser/graphql-api/cookies.test.ts @@ -1,4 +1,4 @@ -import * as cookieUtils from 'cookie' +import cookieUtils from '@bundled-es-modules/cookie' import { test, expect } from '../playwright.extend' import { gql } from '../../support/graphql' diff --git a/test/node/graphql-api/cookies.node.test.ts b/test/node/graphql-api/cookies.node.test.ts index 353aa8c66..7d6bd77b4 100644 --- a/test/node/graphql-api/cookies.node.test.ts +++ b/test/node/graphql-api/cookies.node.test.ts @@ -1,6 +1,4 @@ -/** - * @vitest-environment node - */ +// @vitest-environment node import cookieUtils from '@bundled-es-modules/cookie' import { graphql as executeGraphql, buildSchema } from 'graphql' import { graphql, HttpResponse } from 'msw'