From d3d135c32d7ba853e1c78a7d319832f70fb2fa07 Mon Sep 17 00:00:00 2001 From: "elastic-renovate-prod[bot]" <174716857+elastic-renovate-prod[bot]@users.noreply.github.com> Date: Thu, 9 Jan 2025 11:19:09 +0000 Subject: [PATCH 1/4] Update @elastic/kibana-cloud-security-posture dependencies --- package.json | 10 ++++---- yarn.lock | 69 ++++++++++++++++++++++++++-------------------------- 2 files changed, 40 insertions(+), 39 deletions(-) diff --git a/package.json b/package.json index 5b3ecadb48dfa..a6270b5ec3ab4 100644 --- a/package.json +++ b/package.json @@ -1094,7 +1094,7 @@ "blurhash": "^2.0.1", "borc": "3.0.0", "brok": "^6.0.0", - "byte-size": "^8.1.0", + "byte-size": "^9.0.1", "cacheable-lookup": "6", "camelcase-keys": "7.0.2", "canvg": "^3.0.9", @@ -1308,7 +1308,7 @@ "xml2js": "^0.5.0", "xstate": "^4.38.2", "xstate5": "npm:xstate@^5.18.1", - "xterm": "^5.1.0", + "xterm": "^5.3.0", "yaml": "^2.5.1", "yauzl": "^2.10.0", "yazl": "^2.5.1", @@ -1524,7 +1524,7 @@ "@kbn/whereis-pkg-cli": "link:packages/kbn-whereis-pkg-cli", "@kbn/yarn-lock-validator": "link:packages/kbn-yarn-lock-validator", "@mapbox/vector-tile": "1.3.1", - "@mswjs/http-middleware": "^0.10.1", + "@mswjs/http-middleware": "^0.10.2", "@octokit/rest": "^17.11.2", "@parcel/watcher": "^2.1.0", "@playwright/test": "1.49.0", @@ -1558,7 +1558,7 @@ "@types/async": "^3.2.3", "@types/aws4": "^1.5.0", "@types/base64-js": "^1.2.5", - "@types/byte-size": "^8.1.0", + "@types/byte-size": "^8.1.2", "@types/chance": "^1.0.0", "@types/chroma-js": "^2.1.0", "@types/chromedriver": "^81.0.5", @@ -1796,7 +1796,7 @@ "mochawesome-merge": "^4.3.0", "mock-fs": "^5.1.2", "ms-chromium-edge-driver": "^0.5.1", - "msw": "^2.4.12", + "msw": "^2.7.0", "mutation-observer": "^1.0.3", "native-hdr-histogram": "^1.0.0", "nock": "12.0.3", diff --git a/yarn.lock b/yarn.lock index d85b709bfcee1..5c185cea452af 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2019,12 +2019,12 @@ resolved "https://registry.yarnpkg.com/@bufbuild/protobuf/-/protobuf-1.2.1.tgz#f8b1fbbe79726a4eafa9772ddde147b57f85d177" integrity sha512-cwwGvLGqvoaOZmoP5+i4v/rbW+rHkguvTehuZyM2p/xpmaNSdT2h3B7kHw33aiffv35t1XrYHIkdJSEkSEMJuA== -"@bundled-es-modules/cookie@^2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@bundled-es-modules/cookie/-/cookie-2.0.0.tgz#c3b82703969a61cf6a46e959a012b2c257f6b164" - integrity sha512-Or6YHg/kamKHpxULAdSqhGqnWFneIXu1NKvvfBBzKGwpVsYuFIQ5aBPHDnnoR3ghW1nvSkALd+EF9iMtY7Vjxw== +"@bundled-es-modules/cookie@^2.0.1": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@bundled-es-modules/cookie/-/cookie-2.0.1.tgz#b41376af6a06b3e32a15241d927b840a9b4de507" + integrity sha512-8o+5fRPLNbjbdGRRmJj3h6Hh1AQJf2dk3qQ/5ZFb+PXkRNiSoMGGUKlsgLfrxneb72axVJyIYji64E2+nNfYyw== dependencies: - cookie "^0.5.0" + cookie "^0.7.2" "@bundled-es-modules/statuses@^1.0.1": version "1.0.1" @@ -8524,18 +8524,18 @@ resolved "https://registry.yarnpkg.com/@msgpackr-extract/msgpackr-extract-win32-x64/-/msgpackr-extract-win32-x64-3.0.2.tgz#0f164b726869f71da3c594171df5ebc1c4b0a407" integrity sha512-O+6Gs8UeDbyFpbSh2CPEz/UOrrdWPTBYNblZK5CxxLisYt4kGX3Sc+czffFonyjiGSq3jWLwJS/CCJc7tBr4sQ== -"@mswjs/http-middleware@^0.10.1": - version "0.10.1" - resolved "https://registry.yarnpkg.com/@mswjs/http-middleware/-/http-middleware-0.10.1.tgz#7ff38c5398ba01efe98e16a0da24d612ffd69ccc" - integrity sha512-I58RDHXzwKjMjaSO7aV7X0zUzbAvUEEDYsL9+I6Ro0zF5LgjnNdpZoMufG/WoYEenhDCgv7K+HMpLxGuhlfjKA== +"@mswjs/http-middleware@^0.10.2": + version "0.10.2" + resolved "https://registry.yarnpkg.com/@mswjs/http-middleware/-/http-middleware-0.10.2.tgz#553c4c5961d0c5a01ff511e607593177309d80c4" + integrity sha512-mgBUsindC0L30bzqFkHn9PgiKowhCndBV8m1SRY2ZFT1hHw1y+AEyVo2PFh5NfdSNrCruweZaM1A/Nx7raUFNA== dependencies: express "^4.18.2" strict-event-emitter "^0.5.1" -"@mswjs/interceptors@^0.36.5": - version "0.36.5" - resolved "https://registry.yarnpkg.com/@mswjs/interceptors/-/interceptors-0.36.5.tgz#c0fc6970a7a9f8c7b9f4c122dbab3827e4cc19a5" - integrity sha512-aQ8WF5zQwOdcxLsxSEk9Jd01GgGb80xxqCaiDDlewhtwqpSm8MOvUHslwPydVirasdW09++NxDNNftm1vLY8yA== +"@mswjs/interceptors@^0.37.0": + version "0.37.5" + resolved "https://registry.yarnpkg.com/@mswjs/interceptors/-/interceptors-0.37.5.tgz#9ce40c56be02b43fcbdb51b63f47e69fc4aaabe6" + integrity sha512-AAwRb5vXFcY4L+FvZ7LZusDuZ0vEe0Zm8ohn1FM6/X7A3bj4mqmkAcGRWuvC2JwSygNwHAAmMnAI73vPHeqsHA== dependencies: "@open-draft/deferred-promise" "^2.2.0" "@open-draft/logger" "^0.3.0" @@ -11271,10 +11271,10 @@ resolved "https://registry.yarnpkg.com/@types/braces/-/braces-3.0.0.tgz#7da1c0d44ff1c7eb660a36ec078ea61ba7eb42cb" integrity sha512-TbH79tcyi9FHwbyboOKeRachRq63mSuWYXOflsNO9ZyE5ClQ/JaozNKl+aWUq87qPNsXasXxi2AbgfwIJ+8GQw== -"@types/byte-size@^8.1.0": - version "8.1.0" - resolved "https://registry.yarnpkg.com/@types/byte-size/-/byte-size-8.1.0.tgz#013a3995d1ff2d85ad27da0801029f13328bd91b" - integrity sha512-LCIlZh8vyx+I2fgRycE1D34c33QDppYY6quBYYoaOpQ1nGhJ/avSP2VlrAefVotjJxgSk6WkKo0rTcCJwGG7vA== +"@types/byte-size@^8.1.2": + version "8.1.2" + resolved "https://registry.yarnpkg.com/@types/byte-size/-/byte-size-8.1.2.tgz#abb3d70ab62c400d8753bed1ff2aa315ef9ff7f5" + integrity sha512-jGyVzYu6avI8yuqQCNTZd65tzI8HZrLjKX9sdMqZrGWVlNChu0rf6p368oVEDCYJe5BMx2Ov04tD1wqtgTwGSA== "@types/cacheable-request@^6.0.1": version "6.0.1" @@ -14838,10 +14838,10 @@ builtin-status-codes@^3.0.0: resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" integrity sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug= -byte-size@^8.1.0: - version "8.1.0" - resolved "https://registry.yarnpkg.com/byte-size/-/byte-size-8.1.0.tgz#6353d0bc14ab7a69abcefbf11f8db0145a862cb5" - integrity sha512-FkgMTAg44I0JtEaUAvuZTtU2a2YDmBRbQxdsQNSMtLCjhG0hMcF5b1IMN9UjSCJaU4nvlj/GER7B9sI4nKdCgA== +byte-size@^9.0.1: + version "9.0.1" + resolved "https://registry.yarnpkg.com/byte-size/-/byte-size-9.0.1.tgz#7014b9f0e11ea732a8f2c21bef1cb8a78c6c55ff" + integrity sha512-YLe9x3rabBrcI0cueCdLS2l5ONUKywcRpTs02B8KP9/Cimhj7o3ZccGrPnRvcbyHMbb7W79/3MUJl7iGgTXKEw== bytes@3.0.0: version "3.0.0" @@ -15937,7 +15937,7 @@ cookie@^0.5.0: resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.5.0.tgz#d1f5d71adec6558c58f389987c366aa47e994f8b" integrity sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw== -cookie@^0.7.1: +cookie@^0.7.1, cookie@^0.7.2: version "0.7.2" resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.7.2.tgz#556369c472a2ba910f2979891b526b3436237ed7" integrity sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w== @@ -24851,25 +24851,26 @@ msgpackr@^1.9.9: optionalDependencies: msgpackr-extract "^3.0.2" -msw@^2.4.12: - version "2.5.2" - resolved "https://registry.yarnpkg.com/msw/-/msw-2.5.2.tgz#dfce10b68dbabc2d5dafeb6d7fb82c3c7073a4d1" - integrity sha512-eBsFgU30NYtrfC62XzS1rdAzFK+Br0zKU4ORqD9Qliq86362DWZyPiD6FLfMgy0Ktik83DPTXmqPMz2bqwmJdA== +msw@^2.7.0: + version "2.7.0" + resolved "https://registry.yarnpkg.com/msw/-/msw-2.7.0.tgz#d13ff87f7e018fc4c359800ff72ba5017033fb56" + integrity sha512-BIodwZ19RWfCbYTxWTUfTXc+sg4OwjCAgxU1ZsgmggX/7S3LdUifsbUPJs61j0rWb19CZRGY5if77duhc0uXzw== 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" - "@mswjs/interceptors" "^0.36.5" + "@mswjs/interceptors" "^0.37.0" + "@open-draft/deferred-promise" "^2.2.0" "@open-draft/until" "^2.1.0" "@types/cookie" "^0.6.0" "@types/statuses" "^2.0.4" - chalk "^4.1.2" graphql "^16.8.1" headers-polyfill "^4.0.2" is-node-process "^1.2.0" outvariant "^1.4.3" path-to-regexp "^6.3.0" + picocolors "^1.1.1" strict-event-emitter "^0.5.1" type-fest "^4.26.1" yargs "^17.7.2" @@ -26278,7 +26279,7 @@ picocolors@^0.2.1: resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-0.2.1.tgz#570670f793646851d1ba135996962abad587859f" integrity sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA== -picocolors@^1.0.0, picocolors@^1.1.0: +picocolors@^1.0.0, picocolors@^1.1.0, picocolors@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b" integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== @@ -33654,10 +33655,10 @@ xtend@~2.1.1: dependencies: object-keys "~0.4.0" -xterm@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/xterm/-/xterm-5.1.0.tgz#3e160d60e6801c864b55adf19171c49d2ff2b4fc" - integrity sha512-LovENH4WDzpwynj+OTkLyZgJPeDom9Gra4DMlGAgz6pZhIDCQ+YuO7yfwanY+gVbn/mmZIStNOnVRU/ikQuAEQ== +xterm@^5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/xterm/-/xterm-5.3.0.tgz#867daf9cc826f3d45b5377320aabd996cb0fce46" + integrity sha512-8QqjlekLUFTrU6x7xck1MsPzPA571K5zNqWm0M0oroYEWVOptZ0+ubQSkQ3uxIEhcIHRujJy6emDWX4A7qyFzg== y18n@^3.2.0: version "3.2.2" From 8201664a4b4df1b64bff768f2ef941f55dbd4ae1 Mon Sep 17 00:00:00 2001 From: Maxim Kholod Date: Fri, 10 Jan 2025 18:13:33 +0100 Subject: [PATCH 2/4] adjust according the mswjs/http-middleware createServer signature --- .../agentless/mock_agentless_api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/test/cloud_security_posture_functional/agentless/mock_agentless_api.ts b/x-pack/test/cloud_security_posture_functional/agentless/mock_agentless_api.ts index 129adde9c0018..df54e26dc0c86 100644 --- a/x-pack/test/cloud_security_posture_functional/agentless/mock_agentless_api.ts +++ b/x-pack/test/cloud_security_posture_functional/agentless/mock_agentless_api.ts @@ -10,7 +10,7 @@ import { createServer } from '@mswjs/http-middleware'; import { http, HttpResponse, StrictResponse } from 'msw'; export const setupMockServer = () => { - const server = createServer(deploymentHandler); + const server = createServer(undefined, deploymentHandler); return server; }; From 60db3205efed0043b50c743211493829a3af540d Mon Sep 17 00:00:00 2001 From: Maxim Kholod Date: Mon, 13 Jan 2025 11:37:36 +0100 Subject: [PATCH 3/4] downgrade @mswjs/http-middleware to 0.10.1 --- package.json | 2 +- .../agentless/mock_agentless_api.ts | 2 +- yarn.lock | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a6270b5ec3ab4..153c791fdd50a 100644 --- a/package.json +++ b/package.json @@ -1524,7 +1524,7 @@ "@kbn/whereis-pkg-cli": "link:packages/kbn-whereis-pkg-cli", "@kbn/yarn-lock-validator": "link:packages/kbn-yarn-lock-validator", "@mapbox/vector-tile": "1.3.1", - "@mswjs/http-middleware": "^0.10.2", + "@mswjs/http-middleware": "^0.10.1", "@octokit/rest": "^17.11.2", "@parcel/watcher": "^2.1.0", "@playwright/test": "1.49.0", diff --git a/x-pack/test/cloud_security_posture_functional/agentless/mock_agentless_api.ts b/x-pack/test/cloud_security_posture_functional/agentless/mock_agentless_api.ts index df54e26dc0c86..129adde9c0018 100644 --- a/x-pack/test/cloud_security_posture_functional/agentless/mock_agentless_api.ts +++ b/x-pack/test/cloud_security_posture_functional/agentless/mock_agentless_api.ts @@ -10,7 +10,7 @@ import { createServer } from '@mswjs/http-middleware'; import { http, HttpResponse, StrictResponse } from 'msw'; export const setupMockServer = () => { - const server = createServer(undefined, deploymentHandler); + const server = createServer(deploymentHandler); return server; }; diff --git a/yarn.lock b/yarn.lock index 5c185cea452af..d6aa9666a9ab3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8524,7 +8524,7 @@ resolved "https://registry.yarnpkg.com/@msgpackr-extract/msgpackr-extract-win32-x64/-/msgpackr-extract-win32-x64-3.0.2.tgz#0f164b726869f71da3c594171df5ebc1c4b0a407" integrity sha512-O+6Gs8UeDbyFpbSh2CPEz/UOrrdWPTBYNblZK5CxxLisYt4kGX3Sc+czffFonyjiGSq3jWLwJS/CCJc7tBr4sQ== -"@mswjs/http-middleware@^0.10.2": +"@mswjs/http-middleware@^0.10.1": version "0.10.2" resolved "https://registry.yarnpkg.com/@mswjs/http-middleware/-/http-middleware-0.10.2.tgz#553c4c5961d0c5a01ff511e607593177309d80c4" integrity sha512-mgBUsindC0L30bzqFkHn9PgiKowhCndBV8m1SRY2ZFT1hHw1y+AEyVo2PFh5NfdSNrCruweZaM1A/Nx7raUFNA== From 98e014346595b22f4f600c59c904e2694b4176dc Mon Sep 17 00:00:00 2001 From: Maxim Kholod Date: Mon, 13 Jan 2025 14:06:54 +0100 Subject: [PATCH 4/4] pin @mswjs/http-middleware to 0.10.1 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index f2984b2d9819c..20361a54688f7 100644 --- a/package.json +++ b/package.json @@ -1525,7 +1525,7 @@ "@kbn/whereis-pkg-cli": "link:packages/kbn-whereis-pkg-cli", "@kbn/yarn-lock-validator": "link:packages/kbn-yarn-lock-validator", "@mapbox/vector-tile": "1.3.1", - "@mswjs/http-middleware": "^0.10.1", + "@mswjs/http-middleware": "0.10.1", "@octokit/rest": "^17.11.2", "@parcel/watcher": "^2.1.0", "@playwright/test": "1.49.0", diff --git a/yarn.lock b/yarn.lock index 63dabeb504137..8b7bf79633be7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8535,10 +8535,10 @@ resolved "https://registry.yarnpkg.com/@msgpackr-extract/msgpackr-extract-win32-x64/-/msgpackr-extract-win32-x64-3.0.2.tgz#0f164b726869f71da3c594171df5ebc1c4b0a407" integrity sha512-O+6Gs8UeDbyFpbSh2CPEz/UOrrdWPTBYNblZK5CxxLisYt4kGX3Sc+czffFonyjiGSq3jWLwJS/CCJc7tBr4sQ== -"@mswjs/http-middleware@^0.10.1": - version "0.10.2" - resolved "https://registry.yarnpkg.com/@mswjs/http-middleware/-/http-middleware-0.10.2.tgz#553c4c5961d0c5a01ff511e607593177309d80c4" - integrity sha512-mgBUsindC0L30bzqFkHn9PgiKowhCndBV8m1SRY2ZFT1hHw1y+AEyVo2PFh5NfdSNrCruweZaM1A/Nx7raUFNA== +"@mswjs/http-middleware@0.10.1": + version "0.10.1" + resolved "https://registry.yarnpkg.com/@mswjs/http-middleware/-/http-middleware-0.10.1.tgz#7ff38c5398ba01efe98e16a0da24d612ffd69ccc" + integrity sha512-I58RDHXzwKjMjaSO7aV7X0zUzbAvUEEDYsL9+I6Ro0zF5LgjnNdpZoMufG/WoYEenhDCgv7K+HMpLxGuhlfjKA== dependencies: express "^4.18.2" strict-event-emitter "^0.5.1"