From 3ee5528956a09afae75c921fcbc9521b15fff551 Mon Sep 17 00:00:00 2001 From: Jonathan Norris Date: Thu, 26 Oct 2023 14:59:49 -0400 Subject: [PATCH] chore(deps): update mock service worker (#576) --- lib/shared/server-request/src/request.ts | 1 + package.json | 4 +- .../__tests__/cloudClient.spec.ts | 10 +- .../__tests__/initialize.spec.ts | 2 +- sdk/js-cloud-server/src/__mocks__/handlers.ts | 112 +++--- yarn.lock | 336 +++++++++--------- 6 files changed, 230 insertions(+), 235 deletions(-) diff --git a/lib/shared/server-request/src/request.ts b/lib/shared/server-request/src/request.ts index 072b7e9a3..e8cd1b031 100644 --- a/lib/shared/server-request/src/request.ts +++ b/lib/shared/server-request/src/request.ts @@ -78,6 +78,7 @@ export async function post( Authorization: sdkKey, 'Content-Type': 'application/json', } + const res = await _fetch(url, { ...config, headers: postHeaders, diff --git a/package.json b/package.json index c1279946e..7d62120d5 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "bootstrap": "5.1.3", "class-transformer": "0.5.1", "core-js": "^3.6.5", - "cross-fetch": "^3.1.5", + "cross-fetch": "^3.1.8", "eslint-plugin-lodash": "^7.4.0", "fetch-retry": "^5.0.3", "hoist-non-react-statics": "^3.3.2", @@ -153,7 +153,7 @@ "metro-react-native-babel-preset": "0.74.1", "metro-react-native-babel-transformer": "0.74.1", "metro-resolver": "0.74.1", - "msw": "^0.47.3", + "msw": "^2.0.0", "npm-run-all": "^4.1.5", "nx": "16.5.5", "prettier": "^2.8.8", diff --git a/sdk/js-cloud-server/__tests__/cloudClient.spec.ts b/sdk/js-cloud-server/__tests__/cloudClient.spec.ts index 71dc0e2dd..8aa37eac3 100644 --- a/sdk/js-cloud-server/__tests__/cloudClient.spec.ts +++ b/sdk/js-cloud-server/__tests__/cloudClient.spec.ts @@ -17,15 +17,16 @@ const respond500User = { user_id: '500' } jest.mock('fetch-retry') +beforeAll(() => server.listen()) +afterEach(() => server.resetHandlers()) +afterAll(() => server.close()) + describe('DevCycleCloudClient without EdgeDB', () => { beforeAll(async () => { client = DVC.initializeDevCycle('dvc_server_token', { logLevel: 'error', }) - server.listen() }) - afterEach(() => server.resetHandlers()) - afterAll(() => server.close()) describe('variable', () => { it('to return a Value and not be defaulted', async () => { @@ -247,10 +248,7 @@ describe('DevCycleCloudClient with EdgeDB Enabled', () => { logLevel: 'error', enableEdgeDB: true, }) - server.listen() }) - afterEach(() => server.resetHandlers()) - afterAll(() => server.close()) describe('variable', () => { it('to return a Value and not be defaulted', async () => { diff --git a/sdk/js-cloud-server/__tests__/initialize.spec.ts b/sdk/js-cloud-server/__tests__/initialize.spec.ts index 81e187133..981de373f 100644 --- a/sdk/js-cloud-server/__tests__/initialize.spec.ts +++ b/sdk/js-cloud-server/__tests__/initialize.spec.ts @@ -1,4 +1,4 @@ -import { DevCycleCloudClient, initializeDevCycle } from '../src/index' +import { initializeDevCycle } from '../src/index' describe('JS Cloud Bucketing Server SDK Initialize', () => { afterAll(() => { diff --git a/sdk/js-cloud-server/src/__mocks__/handlers.ts b/sdk/js-cloud-server/src/__mocks__/handlers.ts index 8279f23dc..8f6924948 100644 --- a/sdk/js-cloud-server/src/__mocks__/handlers.ts +++ b/sdk/js-cloud-server/src/__mocks__/handlers.ts @@ -1,104 +1,110 @@ // src/mocks/handlers.js -import { rest } from 'msw' +import { http, HttpResponse } from 'msw' export const handlers = [ - rest.post( + http.post( 'https://bucketing-api.devcycle.com/v1/variables/test-key-not-in-config', - (req, res, ctx) => { - return res(ctx.status(404), ctx.json({})) + () => { + console.log + return HttpResponse.json({}, { status: 404 }) }, ), - rest.post( + http.post( 'https://bucketing-api.devcycle.com/v1/variables/test-key', - (req, res, ctx) => { - const enableEdgeDB = req.url.searchParams.get('enableEdgeDB') - const { user_id } = req.body as Record + async ({ request }) => { + const body = await request.json() + const { user_id } = body as Record + const url = new URL(request.url) + const enableEdgeDB = url.searchParams.get('enableEdgeDB') if (user_id === '500') { - return res(ctx.status(500)) + return HttpResponse.json({}, { status: 500 }) } if (enableEdgeDB) { - return res( - ctx.status(200), - ctx.json({ + return HttpResponse.json( + { key: 'test-key-edgedb', value: true, type: 'Boolean', defaultValue: false, - }), + }, + { status: 200 }, ) } else { - return res( - ctx.status(200), - ctx.json({ + return HttpResponse.json( + { key: 'test-key', value: true, type: 'Boolean', defaultValue: false, - }), + }, + { status: 200 }, ) } }, ), - rest.post( + http.post( 'https://bucketing-api.devcycle.com/v1/variables', - (req, res, ctx) => { - const { user_id } = req.body as Record - const enableEdgeDB = req.url.searchParams.get('enableEdgeDB') + async ({ request }) => { + const body = await request.json() + const { user_id } = body as Record + const url = new URL(request.url) + const enableEdgeDB = url.searchParams.get('enableEdgeDB') if (user_id === 'bad') { - return res(ctx.status(400)) + return HttpResponse.json({}, { status: 400 }) } else if (user_id === '500') { - return res(ctx.status(500)) + return HttpResponse.json({}, { status: 500 }) } else if (user_id === 'empty') { - return res(ctx.status(200), ctx.json({})) + return HttpResponse.json({}, { status: 200 }) } else { if (enableEdgeDB) { - return res( - ctx.status(200), - ctx.json({ + return HttpResponse.json( + { 'test-key-edgedb': { key: 'test-key-edgedb', value: true, type: 'Boolean', defaultValue: false, }, - }), + }, + { status: 200 }, ) } else { - return res( - ctx.status(200), - ctx.json({ + return HttpResponse.json( + { 'test-key': { key: 'test-key', value: true, type: 'Boolean', defaultValue: false, }, - }), + }, + { status: 200 }, ) } } }, ), - rest.post( + http.post( 'https://bucketing-api.devcycle.com/v1/features', - (req, res, ctx) => { - const { user_id } = req.body as Record - const enableEdgeDB = req.url.searchParams.get('enableEdgeDB') + async ({ request }) => { + const body = await request.json() + const { user_id } = body as Record + const url = new URL(request.url) + const enableEdgeDB = url.searchParams.get('enableEdgeDB') if (user_id === 'bad') { - return res(ctx.status(400)) + return HttpResponse.json({}, { status: 400 }) } else if (user_id === '500') { - return res(ctx.status(500)) + return HttpResponse.json({}, { status: 500 }) } else if (user_id === 'empty') { - return res(ctx.status(200), ctx.json({})) + return HttpResponse.json({}, { status: 200 }) } else { if (enableEdgeDB) { - return res( - ctx.status(200), - ctx.json({ + return HttpResponse.json( + { 'test-feature-edgedb': { _id: 'test-id', _variation: 'variation-id', @@ -107,12 +113,12 @@ export const handlers = [ key: 'test-feature-edgedb', type: 'release', }, - }), + }, + { status: 200 }, ) } else { - return res( - ctx.status(200), - ctx.json({ + return HttpResponse.json( + { 'test-feature': { _id: 'test-id', _variation: 'variation-id', @@ -121,21 +127,23 @@ export const handlers = [ key: 'test-feature', type: 'release', }, - }), + }, + { status: 200 }, ) } } }, ), - rest.post( + http.post( 'https://bucketing-api.devcycle.com/v1/track', - (req, res, ctx) => { - const { user } = req.body as Record + async ({ request }) => { + const body = await request.json() + const { user } = body as Record if (user.user_id === 'bad') { - return res(ctx.status(400)) + return HttpResponse.json({}, { status: 400 }) } else { - return res(ctx.status(201)) + return HttpResponse.json({}, { status: 201 }) } }, ), diff --git a/yarn.lock b/yarn.lock index 0f94d43a9..3c89edb85 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4531,6 +4531,33 @@ __metadata: languageName: node linkType: hard +"@bundled-es-modules/cookie@npm:^2.0.0": + version: 2.0.0 + resolution: "@bundled-es-modules/cookie@npm:2.0.0" + dependencies: + cookie: ^0.5.0 + checksum: 53114eabbedda20ba6c63f45dcea35c568616d22adf5d1882cef9761f65ae636bf47e0c66325572cc8e3a335e0257caf5f76ff1287990d9e9265be7bc9767a87 + languageName: node + linkType: hard + +"@bundled-es-modules/js-levenshtein@npm:^2.0.1": + version: 2.0.1 + resolution: "@bundled-es-modules/js-levenshtein@npm:2.0.1" + dependencies: + js-levenshtein: ^1.1.6 + checksum: 13d0cbd2b00e563e09a797559dcff8c7e208c1f71e1787535a3d248f7e3d33ef3f0809b9f498d41788ab5fd399882dcca79917d70d97921b7dde94a282c1b7d8 + languageName: node + linkType: hard + +"@bundled-es-modules/statuses@npm:^1.0.1": + version: 1.0.1 + resolution: "@bundled-es-modules/statuses@npm:1.0.1" + dependencies: + statuses: ^2.0.1 + checksum: bcaa7de192e73056950b5fd20e75140d8d09074b1adc4437924b2051bb02b4dbf568c96e67d53b220fb7d735c3446e2ba746599cb1793ab2d23dd2ef230a8622 + languageName: node + linkType: hard + "@cloudflare/kv-asset-handler@npm:^0.2.0": version: 0.2.0 resolution: "@cloudflare/kv-asset-handler@npm:0.2.0" @@ -6951,29 +6978,24 @@ __metadata: languageName: node linkType: hard -"@mswjs/cookies@npm:^0.2.2": - version: 0.2.2 - resolution: "@mswjs/cookies@npm:0.2.2" - dependencies: - "@types/set-cookie-parser": ^2.4.0 - set-cookie-parser: ^2.4.6 - checksum: 23b1ef56d57efcc1b44600076f531a1fb703855af342a31e01bad4adaf0dab51f6d3b5595a95a7988c3f612ba075835f9a06c52833205284d101eb9a51dd72b0 +"@mswjs/cookies@npm:^1.0.0": + version: 1.0.0 + resolution: "@mswjs/cookies@npm:1.0.0" + checksum: 5ae38a399162fb96b367b9d0da24c1cf64dea9f5a0a07255a14c4b047da788049268059b0350a0b7788f37a32834c9fbef2fc5f60755d0d98bcf95bcb6ffe92e languageName: node linkType: hard -"@mswjs/interceptors@npm:^0.17.5": - version: 0.17.5 - resolution: "@mswjs/interceptors@npm:0.17.5" +"@mswjs/interceptors@npm:^0.25.1": + version: 0.25.7 + resolution: "@mswjs/interceptors@npm:0.25.7" dependencies: - "@open-draft/until": ^1.0.3 - "@types/debug": ^4.1.7 - "@xmldom/xmldom": ^0.7.5 - debug: ^4.3.3 - headers-polyfill: ^3.1.0 + "@open-draft/deferred-promise": ^2.2.0 + "@open-draft/logger": ^0.3.0 + "@open-draft/until": ^2.0.0 + is-node-process: ^1.2.0 outvariant: ^1.2.1 - strict-event-emitter: ^0.2.4 - web-encoding: ^1.1.5 - checksum: 0293ccc56c1c85fb7334cd5902574f7df20c26be74d633c83fde64ffd7620f81e08253fe7985c6b5ad3b64c04ad53c3610e9b9c07621518aabd977343026bb2b + strict-event-emitter: ^0.5.1 + checksum: d9dc1bf11e088b52ba01a4fbcedb3bf7451592bd0255e3591a6478f5465caf0fbd9264c7a32b0aad5bbd31baa2c9eabd6a36b5deace23a82061e34c884eb5fcb languageName: node linkType: hard @@ -8110,10 +8132,27 @@ __metadata: languageName: node linkType: hard -"@open-draft/until@npm:^1.0.3": - version: 1.0.3 - resolution: "@open-draft/until@npm:1.0.3" - checksum: 323e92ebef0150ed0f8caedc7d219b68cdc50784fa4eba0377eef93533d3f46514eb2400ced83dda8c51bddc3d2c7b8e9cf95e5ec85ab7f62dfc015d174f62f2 +"@open-draft/deferred-promise@npm:^2.2.0": + version: 2.2.0 + resolution: "@open-draft/deferred-promise@npm:2.2.0" + checksum: 7f29d39725bb8ab5b62f89d88a4202ce2439ac740860979f9e3d0015dfe4bc3daddcfa5727fa4eed482fdbee770aa591b1136b98b0a0f0569a65294f35bdf56a + languageName: node + linkType: hard + +"@open-draft/logger@npm:^0.3.0": + version: 0.3.0 + resolution: "@open-draft/logger@npm:0.3.0" + dependencies: + is-node-process: ^1.2.0 + outvariant: ^1.4.0 + checksum: 7adfe3d0ed8ca32333ce2a77f9a93d561ebc89c989eaa9722f1dc8a2d2854f5de1bef6fa6894cdf58e16fa4dd9cfa99444ea1f5cac6eb1518e9247911ed042d5 + languageName: node + linkType: hard + +"@open-draft/until@npm:^2.0.0, @open-draft/until@npm:^2.1.0": + version: 2.1.0 + resolution: "@open-draft/until@npm:2.1.0" + checksum: 140ea3b16f4a3a6a729c1256050e20a93d408d7aa1e125648ce2665b3c526ed452510c6e4a6f4b15d95fb5e41203fb51510eb8fbc8812d5e5a91880293d66471 languageName: node linkType: hard @@ -9679,15 +9718,6 @@ __metadata: languageName: node linkType: hard -"@types/debug@npm:^4.1.7": - version: 4.1.7 - resolution: "@types/debug@npm:4.1.7" - dependencies: - "@types/ms": "*" - checksum: 0a7b89d8ed72526858f0b61c6fd81f477853e8c4415bb97f48b1b5545248d2ae389931680b94b393b993a7cfe893537a200647d93defe6d87159b96812305adc - languageName: node - linkType: hard - "@types/eslint-scope@npm:^3.7.3": version: 3.7.3 resolution: "@types/eslint-scope@npm:3.7.3" @@ -9980,13 +10010,6 @@ __metadata: languageName: node linkType: hard -"@types/ms@npm:*": - version: 0.7.31 - resolution: "@types/ms@npm:0.7.31" - checksum: daadd354aedde024cce6f5aa873fefe7b71b22cd0e28632a69e8b677aeb48ae8caa1c60e5919bb781df040d116b01cb4316335167a3fc0ef6a63fa3614c0f6da - languageName: node - linkType: hard - "@types/node@npm:*, @types/node@npm:>=12": version: 17.0.33 resolution: "@types/node@npm:17.0.33" @@ -10184,15 +10207,6 @@ __metadata: languageName: node linkType: hard -"@types/set-cookie-parser@npm:^2.4.0": - version: 2.4.2 - resolution: "@types/set-cookie-parser@npm:2.4.2" - dependencies: - "@types/node": "*" - checksum: c31bf04eb9620829dc3c91bced74ac934ad039d20d20893fb5acac0f08769cbd4eef3bf7502a0289c7be59c3e9cfa456147b4e88bff47dd1b9efb4995ba5d5a3 - languageName: node - linkType: hard - "@types/sinonjs__fake-timers@npm:8.1.1": version: 8.1.1 resolution: "@types/sinonjs__fake-timers@npm:8.1.1" @@ -10223,6 +10237,13 @@ __metadata: languageName: node linkType: hard +"@types/statuses@npm:^2.0.1": + version: 2.0.3 + resolution: "@types/statuses@npm:2.0.3" + checksum: ff47ea1177c9ed37d733e8d089663fc45f006a4eea319e4cd558a49feb17159e32ab53013fbb6f32bf30f869f652eb88d00d42cb819d88009fb7ce0afe48d73c + languageName: node + linkType: hard + "@types/tough-cookie@npm:*": version: 4.0.2 resolution: "@types/tough-cookie@npm:4.0.2" @@ -10946,13 +10967,6 @@ __metadata: languageName: node linkType: hard -"@xmldom/xmldom@npm:^0.7.5": - version: 0.7.5 - resolution: "@xmldom/xmldom@npm:0.7.5" - checksum: 8d7ec35c1ef6183b4f621df08e01d7e61f244fb964a4719025e65fe6ac06fac418919be64fb40fe5908e69158ef728f2d936daa082db326fe04603012b5f2a84 - languageName: node - linkType: hard - "@xtuc/ieee754@npm:^1.2.0": version: 1.2.0 resolution: "@xtuc/ieee754@npm:1.2.0" @@ -11005,13 +11019,6 @@ __metadata: languageName: node linkType: hard -"@zxing/text-encoding@npm:0.9.0": - version: 0.9.0 - resolution: "@zxing/text-encoding@npm:0.9.0" - checksum: c23b12aee7639382e4949961304a1294776afaffa40f579e09ffecd0e5e68cf26ef3edd75009de46da8a536e571448755ca68b3e2ea707d53793c0edb2e2c34a - languageName: node - linkType: hard - "JSONStream@npm:1.3.5, JSONStream@npm:^1.0.4": version: 1.3.5 resolution: "JSONStream@npm:1.3.5" @@ -12939,16 +12946,6 @@ __metadata: languageName: node linkType: hard -"chalk@npm:4.1.1": - version: 4.1.1 - resolution: "chalk@npm:4.1.1" - dependencies: - ansi-styles: ^4.1.0 - supports-color: ^7.1.0 - checksum: 036e973e665ba1a32c975e291d5f3d549bceeb7b1b983320d4598fb75d70fe20c5db5d62971ec0fe76cdbce83985a00ee42372416abfc3a5584465005a7855ed - languageName: node - linkType: hard - "chalk@npm:^1.1.3": version: 1.1.3 resolution: "chalk@npm:1.1.3" @@ -13738,13 +13735,6 @@ __metadata: languageName: node linkType: hard -"cookie@npm:^0.4.2": - version: 0.4.2 - resolution: "cookie@npm:0.4.2" - checksum: a00833c998bedf8e787b4c342defe5fa419abd96b32f4464f718b91022586b8f1bafbddd499288e75c037642493c83083da426c6a9080d309e3bd90fd11baa9b - languageName: node - linkType: hard - "cookies@npm:0.8.0": version: 0.8.0 resolution: "cookies@npm:0.8.0" @@ -13948,7 +13938,7 @@ __metadata: languageName: node linkType: hard -"cross-fetch@npm:^3.0.4, cross-fetch@npm:^3.1.5": +"cross-fetch@npm:^3.0.4": version: 3.1.5 resolution: "cross-fetch@npm:3.1.5" dependencies: @@ -13957,6 +13947,15 @@ __metadata: languageName: node linkType: hard +"cross-fetch@npm:^3.1.8": + version: 3.1.8 + resolution: "cross-fetch@npm:3.1.8" + dependencies: + node-fetch: ^2.6.12 + checksum: 78f993fa099eaaa041122ab037fe9503ecbbcb9daef234d1d2e0b9230a983f64d645d088c464e21a247b825a08dc444a6e7064adfa93536d3a9454b4745b3632 + languageName: node + linkType: hard + "cross-spawn@npm:^4.0.2": version: 4.0.2 resolution: "cross-spawn@npm:4.0.2" @@ -14844,7 +14843,7 @@ __metadata: class-transformer: 0.5.1 core-js: ^3.6.5 cross-env: ^7.0.3 - cross-fetch: ^3.1.5 + cross-fetch: ^3.1.8 css-loader: ^6.4.0 cypress: 12.17.4 detox: 20.9.1 @@ -14891,7 +14890,7 @@ __metadata: metro-react-native-babel-transformer: 0.74.1 metro-resolver: 0.74.1 moment: ^2.29.4 - msw: ^0.47.3 + msw: ^2.0.0 murmurhash: ^2.0.0 next: 13.5.5 npm-run-all: ^4.1.5 @@ -17346,6 +17345,16 @@ __metadata: languageName: node linkType: hard +"formdata-node@npm:4.4.1": + version: 4.4.1 + resolution: "formdata-node@npm:4.4.1" + dependencies: + node-domexception: 1.0.0 + web-streams-polyfill: 4.0.0-beta.3 + checksum: d91d4f667cfed74827fc281594102c0dabddd03c9f8b426fc97123eedbf73f5060ee43205d89284d6854e2fc5827e030cd352ef68b93beda8decc2d72128c576 + languageName: node + linkType: hard + "forwarded@npm:0.2.0": version: 0.2.0 resolution: "forwarded@npm:0.2.0" @@ -18016,10 +18025,10 @@ __metadata: languageName: node linkType: hard -"graphql@npm:^15.0.0 || ^16.0.0": - version: 16.6.0 - resolution: "graphql@npm:16.6.0" - checksum: bf1d9e3c1938ce3c1a81e909bd3ead1ae4707c577f91cff1ca2eca474bfbc7873d5d7b942e1e9777ff5a8304421dba57a4b76d7a29eb19de8711cb70e3c2415e +"graphql@npm:^16.8.1": + version: 16.8.1 + resolution: "graphql@npm:16.8.1" + checksum: 8d304b7b6f708c8c5cc164b06e92467dfe36aff6d4f2cf31dd19c4c2905a0e7b89edac4b7e225871131fd24e21460836b369de0c06532644d15b461d55b1ccc0 languageName: node linkType: hard @@ -18184,10 +18193,10 @@ __metadata: languageName: node linkType: hard -"headers-polyfill@npm:^3.1.0": - version: 3.1.0 - resolution: "headers-polyfill@npm:3.1.0" - checksum: a95257065684653b7185efbb9a380c547ea832002991b5adf0d90cd222073da2701be9dc2849d1970ecf15e8c35b383984358566afe6e76ca8ff1dbd7cdce3af +"headers-polyfill@npm:^4.0.1": + version: 4.0.2 + resolution: "headers-polyfill@npm:4.0.2" + checksum: a95280ed58df429fc86c4f49b21596be3ea3f5f3d790e7d75238668df9b90b292f15a968c7c19ae1db88c0ae036dd1bf363a71b8e771199d82848e2d8b3c6c2e languageName: node linkType: hard @@ -18886,7 +18895,7 @@ __metadata: languageName: node linkType: hard -"is-arguments@npm:^1.0.4, is-arguments@npm:^1.1.1": +"is-arguments@npm:^1.1.1": version: 1.1.1 resolution: "is-arguments@npm:1.1.1" dependencies: @@ -19088,15 +19097,6 @@ __metadata: languageName: node linkType: hard -"is-generator-function@npm:^1.0.7": - version: 1.0.10 - resolution: "is-generator-function@npm:1.0.10" - dependencies: - has-tostringtag: ^1.0.0 - checksum: d54644e7dbaccef15ceb1e5d91d680eb5068c9ee9f9eb0a9e04173eb5542c9b51b5ab52c5537f5703e48d5fddfd376817c1ca07a84a407b7115b769d4bdde72b - languageName: node - linkType: hard - "is-glob@npm:^4.0.0, is-glob@npm:^4.0.1, is-glob@npm:^4.0.3, is-glob@npm:~4.0.1": version: 4.0.3 resolution: "is-glob@npm:4.0.3" @@ -19162,10 +19162,10 @@ __metadata: languageName: node linkType: hard -"is-node-process@npm:^1.0.1": - version: 1.0.1 - resolution: "is-node-process@npm:1.0.1" - checksum: 3ddb8a892a00f6eb9c2aea7e7e1426b8683512d9419933d95114f4f64b5455e26601c23a31c0682463890032136dd98a326988a770ab6b4eed54a43ade8bed50 +"is-node-process@npm:^1.2.0": + version: 1.2.0 + resolution: "is-node-process@npm:1.2.0" + checksum: 930765cdc6d81ab8f1bbecbea4a8d35c7c6d88a3ff61f3630e0fc7f22d624d7661c1df05c58547d0eb6a639dfa9304682c8e342c4113a6ed51472b704cee2928 languageName: node linkType: hard @@ -19383,7 +19383,7 @@ __metadata: languageName: node linkType: hard -"is-typed-array@npm:^1.1.3, is-typed-array@npm:^1.1.9": +"is-typed-array@npm:^1.1.9": version: 1.1.9 resolution: "is-typed-array@npm:1.1.9" dependencies: @@ -24060,38 +24060,41 @@ __metadata: languageName: node linkType: hard -"msw@npm:^0.47.3": - version: 0.47.3 - resolution: "msw@npm:0.47.3" - dependencies: - "@mswjs/cookies": ^0.2.2 - "@mswjs/interceptors": ^0.17.5 - "@open-draft/until": ^1.0.3 +"msw@npm:^2.0.0": + version: 2.0.0 + resolution: "msw@npm:2.0.0" + dependencies: + "@bundled-es-modules/cookie": ^2.0.0 + "@bundled-es-modules/js-levenshtein": ^2.0.1 + "@bundled-es-modules/statuses": ^1.0.1 + "@mswjs/cookies": ^1.0.0 + "@mswjs/interceptors": ^0.25.1 + "@open-draft/until": ^2.1.0 "@types/cookie": ^0.4.1 "@types/js-levenshtein": ^1.1.1 - chalk: 4.1.1 + "@types/statuses": ^2.0.1 + chalk: ^4.1.2 chokidar: ^3.4.2 - cookie: ^0.4.2 - graphql: ^15.0.0 || ^16.0.0 - headers-polyfill: ^3.1.0 + formdata-node: 4.4.1 + graphql: ^16.8.1 + headers-polyfill: ^4.0.1 inquirer: ^8.2.0 - is-node-process: ^1.0.1 + is-node-process: ^1.2.0 js-levenshtein: ^1.1.6 node-fetch: ^2.6.7 - outvariant: ^1.3.0 + outvariant: ^1.4.0 path-to-regexp: ^6.2.0 - statuses: ^2.0.0 - strict-event-emitter: ^0.2.0 + strict-event-emitter: ^0.5.0 type-fest: ^2.19.0 yargs: ^17.3.1 peerDependencies: - typescript: ">= 4.2.x <= 4.8.x" + typescript: ">= 4.7.x <= 5.2.x" peerDependenciesMeta: typescript: optional: true bin: msw: cli/index.js - checksum: 1be018c7b2eff982409967cccb5c604e45f65710ee9698bab57fbe794f8426d1a4d33e52b75ef395c6d226948c799241c7c2c7748ec4f5b741e7f25bcbafbd1e + checksum: b8de495c829f097ae59e74254bce5ab21742a1c4f8e034bb882f75d5f242e329db436ae10bbaa87497fc62003221860ddd115478a30034a349b44d4b36021d08 languageName: node linkType: hard @@ -24424,6 +24427,13 @@ __metadata: languageName: node linkType: hard +"node-domexception@npm:1.0.0": + version: 1.0.0 + resolution: "node-domexception@npm:1.0.0" + checksum: ee1d37dd2a4eb26a8a92cd6b64dfc29caec72bff5e1ed9aba80c294f57a31ba4895a60fd48347cf17dd6e766da0ae87d75657dfd1f384ebfa60462c2283f5c7f + languageName: node + linkType: hard + "node-fetch@npm:2.6.7, node-fetch@npm:^2.2.0, node-fetch@npm:^2.6.0, node-fetch@npm:^2.6.7, node-fetch@npm:cjs": version: 2.6.7 resolution: "node-fetch@npm:2.6.7" @@ -24452,6 +24462,20 @@ __metadata: languageName: node linkType: hard +"node-fetch@npm:^2.6.12": + version: 2.7.0 + resolution: "node-fetch@npm:2.7.0" + dependencies: + whatwg-url: ^5.0.0 + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + checksum: d76d2f5edb451a3f05b15115ec89fc6be39de37c6089f1b6368df03b91e1633fd379a7e01b7ab05089a25034b2023d959b47e59759cb38d88341b2459e89d6e5 + languageName: node + linkType: hard + "node-forge@npm:^1": version: 1.3.1 resolution: "node-forge@npm:1.3.1" @@ -25343,13 +25367,20 @@ __metadata: languageName: node linkType: hard -"outvariant@npm:^1.2.1, outvariant@npm:^1.3.0": +"outvariant@npm:^1.2.1": version: 1.3.0 resolution: "outvariant@npm:1.3.0" checksum: ac76ca375c1c642989e1c74f0e9ebac84c05bc9fdc8f28be949c16fae1658e9f1f2fb1133fe3cc1e98afabef78fe4298fe9360b5734baf8e6ad440c182680848 languageName: node linkType: hard +"outvariant@npm:^1.4.0": + version: 1.4.0 + resolution: "outvariant@npm:1.4.0" + checksum: ec32dfc315c464bb6e4906b2f450d259ce0b86caf70b70b249054359d9af21a7fccf53a8b6aa232f8d718449e31c1cfa594e6ebffaafe7bf908b502495256d7b + languageName: node + linkType: hard + "p-finally@npm:^1.0.0": version: 1.0.0 resolution: "p-finally@npm:1.0.0" @@ -28898,13 +28929,6 @@ __metadata: languageName: node linkType: hard -"set-cookie-parser@npm:^2.4.6": - version: 2.5.0 - resolution: "set-cookie-parser@npm:2.5.0" - checksum: df277b2c49f05738997f78a9848b8a9954a77ff57989d32e373622921788cf6b154c30b7fab8d69bc8d1cf7687cb904efa642d5adee7a9ebae883c15cea3c145 - languageName: node - linkType: hard - "setprototypeof@npm:1.1.0": version: 1.1.0 resolution: "setprototypeof@npm:1.1.0" @@ -29420,7 +29444,7 @@ __metadata: languageName: node linkType: hard -"statuses@npm:2.0.1, statuses@npm:^2.0.0": +"statuses@npm:2.0.1, statuses@npm:^2.0.1": version: 2.0.1 resolution: "statuses@npm:2.0.1" checksum: 18c7623fdb8f646fb213ca4051be4df7efb3484d4ab662937ca6fbef7ced9b9e12842709872eb3020cc3504b93bde88935c9f6417489627a7786f24f8031cbcb @@ -29489,12 +29513,10 @@ __metadata: languageName: node linkType: hard -"strict-event-emitter@npm:^0.2.0, strict-event-emitter@npm:^0.2.4": - version: 0.2.4 - resolution: "strict-event-emitter@npm:0.2.4" - dependencies: - events: ^3.3.0 - checksum: fe6af7baf4002910ffd04d16f37c994e7b9f56b4c01c8846a3b394efcea6689a9eba3ebcd5283774476c3a7632aae6b47ef89061b0fbf7f2256b8e07a5cab32d +"strict-event-emitter@npm:^0.5.0, strict-event-emitter@npm:^0.5.1": + version: 0.5.1 + resolution: "strict-event-emitter@npm:0.5.1" + checksum: 350480431bc1c28fdb601ef4976c2f8155fc364b4740f9692dd03e5bdd48aafc99a5e021fe655fbd986d0b803e9f3fc5c4b018b35cb838c4690d60f2a26f1cf3 languageName: node linkType: hard @@ -31192,20 +31214,6 @@ __metadata: languageName: node linkType: hard -"util@npm:^0.12.3": - version: 0.12.4 - resolution: "util@npm:0.12.4" - dependencies: - inherits: ^2.0.3 - is-arguments: ^1.0.4 - is-generator-function: ^1.0.7 - is-typed-array: ^1.1.3 - safe-buffer: ^5.1.2 - which-typed-array: ^1.1.2 - checksum: 8eac7a6e6b341c0f1b3eb73bbe5dfcae31a7e9699c8fc3266789f3e95f7637946a7700dcf1904dbd3749a58a36760ebf7acf4bb5b717f7468532a8a79f44eff0 - languageName: node - linkType: hard - "utils-merge@npm:1.0.1": version: 1.0.1 resolution: "utils-merge@npm:1.0.1" @@ -31528,16 +31536,10 @@ __metadata: languageName: node linkType: hard -"web-encoding@npm:^1.1.5": - version: 1.1.5 - resolution: "web-encoding@npm:1.1.5" - dependencies: - "@zxing/text-encoding": 0.9.0 - util: ^0.12.3 - dependenciesMeta: - "@zxing/text-encoding": - optional: true - checksum: 2234a2b122f41006ce07859b3c0bf2e18f46144fda2907d5db0b571b76aa5c26977c646100ad9c00d2f8a4f6f2b848bc02147845d8c447ab365ec4eff376338d +"web-streams-polyfill@npm:4.0.0-beta.3": + version: 4.0.0-beta.3 + resolution: "web-streams-polyfill@npm:4.0.0-beta.3" + checksum: dfec1fbf52b9140e4183a941e380487b6c3d5d3838dd1259be81506c1c9f2abfcf5aeb670aeeecfd9dff4271a6d8fef931b193c7bedfb42542a3b05ff36c0d16 languageName: node linkType: hard @@ -31820,20 +31822,6 @@ __metadata: languageName: node linkType: hard -"which-typed-array@npm:^1.1.2": - version: 1.1.8 - resolution: "which-typed-array@npm:1.1.8" - dependencies: - available-typed-arrays: ^1.0.5 - call-bind: ^1.0.2 - es-abstract: ^1.20.0 - for-each: ^0.3.3 - has-tostringtag: ^1.0.0 - is-typed-array: ^1.1.9 - checksum: bedf4d30a738e848404fe67fe0ace33433a7298cf3f5a4d4b2c624ba99c4d25f06a7fd6f3566c3d16af5f8a54f0c6293cbfded5b1208ce11812753990223b45a - languageName: node - linkType: hard - "which-typed-array@npm:^1.1.9": version: 1.1.9 resolution: "which-typed-array@npm:1.1.9"