msw 2.7.5 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/browser/package.json +28 -3
  2. package/cli/index.js +5 -3
  3. package/cli/init.js +13 -8
  4. package/cli/invariant.js +3 -2
  5. package/cli/package.json +3 -0
  6. package/config/constants.js +9 -13
  7. package/config/package.json +3 -0
  8. package/config/scripts/postinstall.js +3 -3
  9. package/lib/browser/index.d.mts +4 -4
  10. package/lib/browser/index.d.ts +4 -4
  11. package/lib/browser/index.js +25 -25
  12. package/lib/browser/index.js.map +1 -1
  13. package/lib/browser/index.mjs.map +1 -1
  14. package/lib/core/{GraphQLHandler-D1CSV926.d.ts → GraphQLHandler-DOfinX9J.d.ts} +1 -1
  15. package/lib/core/{GraphQLHandler-BNMGdWQe.d.mts → GraphQLHandler-GA1kyXQ7.d.mts} +1 -1
  16. package/lib/core/{HttpResponse-BRDnWbjc.d.mts → HttpResponse-Bls5AXtT.d.mts} +9 -9
  17. package/lib/core/{HttpResponse-Cy7ytzUn.d.ts → HttpResponse-DQOloMJy.d.ts} +9 -9
  18. package/lib/core/HttpResponse.d.mts +1 -1
  19. package/lib/core/HttpResponse.d.ts +1 -1
  20. package/lib/core/HttpResponse.js +3 -6
  21. package/lib/core/HttpResponse.js.map +1 -1
  22. package/lib/core/HttpResponse.mjs +2 -5
  23. package/lib/core/HttpResponse.mjs.map +1 -1
  24. package/lib/core/SetupApi.d.mts +1 -1
  25. package/lib/core/SetupApi.d.ts +1 -1
  26. package/lib/core/SetupApi.js +4 -4
  27. package/lib/core/getResponse.d.mts +1 -1
  28. package/lib/core/getResponse.d.ts +1 -1
  29. package/lib/core/getResponse.js +1 -1
  30. package/lib/core/graphql.d.mts +4 -4
  31. package/lib/core/graphql.d.ts +4 -4
  32. package/lib/core/graphql.js +2 -2
  33. package/lib/core/graphql.js.map +1 -1
  34. package/lib/core/graphql.mjs +1 -1
  35. package/lib/core/graphql.mjs.map +1 -1
  36. package/lib/core/handlers/GraphQLHandler.d.mts +2 -2
  37. package/lib/core/handlers/GraphQLHandler.d.ts +2 -2
  38. package/lib/core/handlers/GraphQLHandler.js +10 -10
  39. package/lib/core/handlers/HttpHandler.d.mts +2 -2
  40. package/lib/core/handlers/HttpHandler.d.ts +2 -2
  41. package/lib/core/handlers/HttpHandler.js +11 -11
  42. package/lib/core/handlers/RequestHandler.d.mts +1 -1
  43. package/lib/core/handlers/RequestHandler.d.ts +1 -1
  44. package/lib/core/handlers/RequestHandler.js +2 -2
  45. package/lib/core/handlers/RequestHandler.js.map +1 -1
  46. package/lib/core/handlers/RequestHandler.mjs.map +1 -1
  47. package/lib/core/handlers/WebSocketHandler.js +2 -2
  48. package/lib/core/http.d.mts +2 -2
  49. package/lib/core/http.d.ts +2 -2
  50. package/lib/core/http.js +1 -1
  51. package/lib/core/index.d.mts +2 -2
  52. package/lib/core/index.d.ts +2 -2
  53. package/lib/core/index.js +21 -21
  54. package/lib/core/index.js.map +1 -1
  55. package/lib/core/passthrough.d.mts +2 -2
  56. package/lib/core/passthrough.d.ts +2 -2
  57. package/lib/core/passthrough.js.map +1 -1
  58. package/lib/core/passthrough.mjs.map +1 -1
  59. package/lib/core/utils/HttpResponse/decorators.d.mts +1 -1
  60. package/lib/core/utils/HttpResponse/decorators.d.ts +1 -1
  61. package/lib/core/utils/HttpResponse/decorators.js +1 -1
  62. package/lib/core/utils/cookieStore.js +1 -1
  63. package/lib/core/utils/executeHandlers.d.mts +1 -1
  64. package/lib/core/utils/executeHandlers.d.ts +1 -1
  65. package/lib/core/utils/handleRequest.d.mts +1 -1
  66. package/lib/core/utils/handleRequest.d.ts +1 -1
  67. package/lib/core/utils/handleRequest.js +3 -3
  68. package/lib/core/utils/internal/checkGlobals.js +1 -1
  69. package/lib/core/utils/internal/isHandlerKind.d.mts +1 -1
  70. package/lib/core/utils/internal/isHandlerKind.d.ts +1 -1
  71. package/lib/core/utils/internal/mergeRight.js +1 -1
  72. package/lib/core/utils/internal/parseGraphQLRequest.d.mts +2 -2
  73. package/lib/core/utils/internal/parseGraphQLRequest.d.ts +2 -2
  74. package/lib/core/utils/internal/parseGraphQLRequest.js +4 -4
  75. package/lib/core/utils/internal/parseMultipartData.d.mts +1 -1
  76. package/lib/core/utils/internal/parseMultipartData.d.ts +1 -1
  77. package/lib/core/utils/internal/requestHandlerUtils.d.mts +1 -1
  78. package/lib/core/utils/internal/requestHandlerUtils.d.ts +1 -1
  79. package/lib/core/utils/logging/serializeResponse.js +1 -1
  80. package/lib/core/utils/matching/matchRequestUrl.js +1 -1
  81. package/lib/core/utils/matching/normalizePath.js +2 -2
  82. package/lib/core/utils/request/getRequestCookies.js +2 -2
  83. package/lib/core/utils/request/onUnhandledRequest.js +3 -3
  84. package/lib/core/utils/request/storeResponseCookies.js +2 -2
  85. package/lib/core/utils/url/getAbsoluteUrl.js +1 -1
  86. package/lib/core/ws/WebSocketClientManager.js +2 -2
  87. package/lib/core/ws/handleWebSocketEvent.d.mts +1 -1
  88. package/lib/core/ws/handleWebSocketEvent.d.ts +1 -1
  89. package/lib/core/ws/handleWebSocketEvent.js +4 -4
  90. package/lib/core/ws/utils/attachWebSocketLogger.js +5 -5
  91. package/lib/core/ws/utils/getPublicData.js +1 -1
  92. package/lib/core/ws.js +3 -3
  93. package/lib/iife/index.js +6 -9
  94. package/lib/iife/index.js.map +1 -1
  95. package/lib/mockServiceWorker.js +1 -1
  96. package/lib/native/index.d.mts +5 -12
  97. package/lib/native/index.d.ts +5 -12
  98. package/lib/native/index.js +12 -12
  99. package/lib/native/index.js.map +1 -1
  100. package/lib/native/index.mjs +2 -2
  101. package/lib/native/index.mjs.map +1 -1
  102. package/lib/node/index.d.mts +6 -13
  103. package/lib/node/index.d.ts +6 -13
  104. package/lib/node/index.js +17 -16
  105. package/lib/node/index.js.map +1 -1
  106. package/lib/node/index.mjs +7 -6
  107. package/lib/node/index.mjs.map +1 -1
  108. package/native/package.json +25 -1
  109. package/node/package.json +28 -1
  110. package/package.json +148 -52
  111. package/src/browser/setupWorker/glossary.ts +3 -6
  112. package/src/browser/setupWorker/start/utils/printStartMessage.ts +2 -2
  113. package/src/core/HttpResponse.ts +16 -18
  114. package/src/core/graphql.ts +1 -1
  115. package/src/core/handlers/RequestHandler.ts +5 -3
  116. package/src/core/passthrough.ts +3 -3
  117. package/src/native/index.ts +1 -1
  118. package/src/node/SetupServerApi.ts +10 -6
  119. package/src/node/SetupServerCommonApi.ts +3 -3
  120. package/src/package.json +3 -0
  121. package/src/node/utils/isNodeExceptionLike.ts +0 -14
@@ -1,5 +1,30 @@
1
1
  {
2
- "main": "../lib/browser/index.js",
3
- "module": "../lib/browser/index.mjs",
4
- "types": "../lib/browser/index.d.ts"
2
+ "type": "module",
3
+ "main": "../lib/browser/index.mjs",
4
+ "types": "../lib/browser/index.d.mts",
5
+ "exports": {
6
+ ".": {
7
+ "module-sync": {
8
+ "types": "./../lib/browser/index.d.mts",
9
+ "default": "./../lib/browser/index.mjs"
10
+ },
11
+ "module": {
12
+ "types": "./../lib/browser/index.d.mts",
13
+ "default": "./../lib/browser/index.mjs"
14
+ },
15
+ "browser": {
16
+ "types": "./../lib/browser/index.d.mts",
17
+ "default": "./../lib/browser/index.mjs"
18
+ },
19
+ "import": {
20
+ "types": "./../lib/browser/index.d.mts",
21
+ "default": "./../lib/browser/index.mjs"
22
+ },
23
+ "default": {
24
+ "types": "./../lib/browser/index.d.ts",
25
+ "default": "./../lib/browser/index.js"
26
+ }
27
+ },
28
+ "./package.json": "./package.json"
29
+ }
5
30
  }
package/cli/index.js CHANGED
@@ -1,7 +1,9 @@
1
1
  #!/usr/bin/env node
2
- const yargs = require('yargs')
2
+ import yargs from 'yargs'
3
+ import { init } from './init.js'
3
4
 
4
- yargs
5
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
6
+ yargs(process.argv.slice(2))
5
7
  .usage('$0 <cmd> [args]')
6
8
  .command(
7
9
  'init',
@@ -27,7 +29,7 @@ yargs
27
29
  .example('msw init ./public')
28
30
  .example('msw init ./static --save')
29
31
  },
30
- require('./init'),
32
+ init,
31
33
  )
32
34
  .demandCommand()
33
35
  .help().argv
package/cli/init.js CHANGED
@@ -1,11 +1,11 @@
1
- const fs = require('fs')
2
- const path = require('path')
3
- const colors = require('picocolors')
4
- const confirm = require('@inquirer/confirm').default
5
- const invariant = require('./invariant')
6
- const { SERVICE_WORKER_BUILD_PATH } = require('../config/constants')
7
-
8
- module.exports = async function init(args) {
1
+ import fs from 'node:fs'
2
+ import path from 'node:path'
3
+ import colors from 'picocolors'
4
+ import confirm from '@inquirer/confirm'
5
+ import { invariant } from './invariant.js'
6
+ import { SERVICE_WORKER_BUILD_PATH } from '../config/constants.js'
7
+
8
+ export async function init(args) {
9
9
  const CWD = args.cwd || process.cwd()
10
10
  const publicDir = args._[1] ? normalizePath(args._[1]) : undefined
11
11
 
@@ -33,6 +33,7 @@ module.exports = async function init(args) {
33
33
  // You can also provide the "--no-save" option, and then "args.save"
34
34
  // will equal to false.
35
35
  else if (args.save == null) {
36
+ // eslint-disable-next-line no-console
36
37
  console.log(`\
37
38
  ${colors.cyan(
38
39
  'INFO',
@@ -126,6 +127,7 @@ async function copyWorkerScript(destination, cwd) {
126
127
  })
127
128
  }
128
129
 
130
+ // eslint-disable-next-line no-console
129
131
  console.log('Copying the worker script at "%s"...', absolutePublicDir)
130
132
 
131
133
  const workerFilename = path.basename(SERVICE_WORKER_BUILD_PATH)
@@ -140,6 +142,7 @@ async function copyWorkerScript(destination, cwd) {
140
142
  * @param {Array<string>} paths
141
143
  */
142
144
  function printSuccessMessage(paths) {
145
+ // eslint-disable-next-line no-console
143
146
  console.log(`
144
147
  ${colors.green('Worker script successfully copied!')}
145
148
  ${paths.map((path) => colors.gray(` - ${path}\n`))}
@@ -151,6 +154,7 @@ ${colors.red(colors.bold('https://mswjs.io/docs/getting-started'))}
151
154
  }
152
155
 
153
156
  function printFailureMessage(pathsWithErrors) {
157
+ // eslint-disable-next-line no-console
154
158
  console.error(`\
155
159
  ${colors.red('Copying the worker script failed at following paths:')}
156
160
  ${pathsWithErrors
@@ -166,6 +170,7 @@ ${pathsWithErrors
166
170
  function saveWorkerDirectory(packageJsonPath, publicDir) {
167
171
  const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'))
168
172
 
173
+ // eslint-disable-next-line no-console
169
174
  console.log(
170
175
  colors.gray('Updating "msw.workerDirectory" at "%s"...'),
171
176
  packageJsonPath,
package/cli/invariant.js CHANGED
@@ -1,7 +1,8 @@
1
- const colors = require('picocolors')
1
+ import colors from 'picocolors'
2
2
 
3
- module.exports = function invariant(predicate, message, ...args) {
3
+ export function invariant(predicate, message, ...args) {
4
4
  if (!predicate) {
5
+ // eslint-disable-next-line no-console
5
6
  console.error(colors.red(message), ...args)
6
7
  process.exit(1)
7
8
  }
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -1,17 +1,13 @@
1
- const path = require('path')
1
+ import url from 'node:url'
2
+ import path from 'node:path'
2
3
 
3
- const SERVICE_WORKER_SOURCE_PATH = path.resolve(
4
- __dirname,
5
- '../src/mockServiceWorker.js',
4
+ export const SERVICE_WORKER_SOURCE_PATH = url.fileURLToPath(
5
+ new URL('../src/mockServiceWorker.js', import.meta.url),
6
6
  )
7
7
 
8
- const SERVICE_WORKER_BUILD_PATH = path.resolve(
9
- __dirname,
10
- '../lib',
11
- path.basename(SERVICE_WORKER_SOURCE_PATH),
8
+ export const SERVICE_WORKER_BUILD_PATH = url.fileURLToPath(
9
+ new URL(
10
+ path.join('../lib', path.basename(SERVICE_WORKER_SOURCE_PATH)),
11
+ import.meta.url,
12
+ ),
12
13
  )
13
-
14
- module.exports = {
15
- SERVICE_WORKER_SOURCE_PATH,
16
- SERVICE_WORKER_BUILD_PATH,
17
- }
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -1,6 +1,6 @@
1
- const fs = require('fs')
2
- const path = require('path')
3
- const { execSync } = require('child_process')
1
+ import fs from 'node:fs'
2
+ import path from 'node:path'
3
+ import { execSync } from 'node:child_process'
4
4
 
5
5
  // When executing the "postinstall" script, the "process.cwd" equals
6
6
  // the package directory, not the parent project where the package is installed.
@@ -1,7 +1,7 @@
1
- import { SharedOptions, LifeCycleEventEmitter, LifeCycleEventsMap } from "../core/sharedOptions";
2
- import { RequestHandler } from "../core/handlers/RequestHandler";
3
- import { WebSocketHandler } from "../core/handlers/WebSocketHandler";
4
- import { SetupApi } from "../core/SetupApi";
1
+ import { SharedOptions, LifeCycleEventEmitter, LifeCycleEventsMap } from "../core/sharedOptions.mjs";
2
+ import { RequestHandler } from "../core/handlers/RequestHandler.mjs";
3
+ import { WebSocketHandler } from "../core/handlers/WebSocketHandler.mjs";
4
+ import { SetupApi } from "../core/SetupApi.mjs";
5
5
 
6
6
  type FindWorker = (scriptUrl: string, mockServiceWorkerUrl: string) => boolean;
7
7
  interface StartOptions extends SharedOptions {
@@ -1,7 +1,7 @@
1
- import { SharedOptions, LifeCycleEventEmitter, LifeCycleEventsMap } from "../core/sharedOptions";
2
- import { RequestHandler } from "../core/handlers/RequestHandler";
3
- import { WebSocketHandler } from "../core/handlers/WebSocketHandler";
4
- import { SetupApi } from "../core/SetupApi";
1
+ import { SharedOptions, LifeCycleEventEmitter, LifeCycleEventsMap } from "../core/sharedOptions.mjs";
2
+ import { RequestHandler } from "../core/handlers/RequestHandler.mjs";
3
+ import { WebSocketHandler } from "../core/handlers/WebSocketHandler.mjs";
4
+ import { SetupApi } from "../core/SetupApi.mjs";
5
5
 
6
6
  type FindWorker = (scriptUrl: string, mockServiceWorkerUrl: string) => boolean;
7
7
  interface StartOptions extends SharedOptions {
@@ -18,12 +18,12 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
20
  // src/browser/index.ts
21
- var browser_exports = {};
22
- __export(browser_exports, {
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
23
  SetupWorkerApi: () => SetupWorkerApi,
24
24
  setupWorker: () => setupWorker
25
25
  });
26
- module.exports = __toCommonJS(browser_exports);
26
+ module.exports = __toCommonJS(index_exports);
27
27
 
28
28
  // node_modules/.pnpm/outvariant@1.4.3/node_modules/outvariant/lib/index.mjs
29
29
  var POSITIONALS_EXP = /(%?)(%([sdijo]))/g;
@@ -125,7 +125,7 @@ function isNodeProcess() {
125
125
  }
126
126
 
127
127
  // src/browser/setupWorker/start/createStartHandler.ts
128
- var import_devUtils7 = require("../core/utils/internal/devUtils.js");
128
+ var import_devUtils7 = require("../core/utils/internal/devUtils");
129
129
 
130
130
  // node_modules/.pnpm/@open-draft+until@2.1.0/node_modules/@open-draft/until/lib/index.mjs
131
131
  var until = async (promise) => {
@@ -140,7 +140,7 @@ var until = async (promise) => {
140
140
  };
141
141
 
142
142
  // src/browser/setupWorker/start/utils/getWorkerInstance.ts
143
- var import_devUtils = require("../core/utils/internal/devUtils.js");
143
+ var import_devUtils = require("../core/utils/internal/devUtils");
144
144
 
145
145
  // src/browser/utils/getAbsoluteWorkerUrl.ts
146
146
  function getAbsoluteWorkerUrl(workerUrl) {
@@ -220,10 +220,10 @@ Learn more about creating the Service Worker script: https://mswjs.io/docs/cli/i
220
220
  };
221
221
 
222
222
  // src/browser/setupWorker/start/utils/enableMocking.ts
223
- var import_devUtils3 = require("../core/utils/internal/devUtils.js");
223
+ var import_devUtils3 = require("../core/utils/internal/devUtils");
224
224
 
225
225
  // src/browser/setupWorker/start/utils/printStartMessage.ts
226
- var import_devUtils2 = require("../core/utils/internal/devUtils.js");
226
+ var import_devUtils2 = require("../core/utils/internal/devUtils");
227
227
  function printStartMessage(args = {}) {
228
228
  if (args.quiet) {
229
229
  return;
@@ -298,11 +298,11 @@ function parseWorkerRequest(incomingRequest) {
298
298
  }
299
299
 
300
300
  // src/browser/setupWorker/start/createRequestListener.ts
301
- var import_RequestHandler = require("../core/handlers/RequestHandler.js");
302
- var import_handleRequest = require("../core/utils/handleRequest.js");
303
- var import_devUtils4 = require("../core/utils/internal/devUtils.js");
304
- var import_toResponseInit = require("../core/utils/toResponseInit.js");
305
- var import_isHandlerKind = require("../core/utils/internal/isHandlerKind.js");
301
+ var import_RequestHandler = require("../core/handlers/RequestHandler");
302
+ var import_handleRequest = require("../core/utils/handleRequest");
303
+ var import_devUtils4 = require("../core/utils/internal/devUtils");
304
+ var import_toResponseInit = require("../core/utils/toResponseInit");
305
+ var import_isHandlerKind = require("../core/utils/internal/isHandlerKind");
306
306
  var createRequestListener = (context, options) => {
307
307
  return async (event, message) => {
308
308
  const messageChannel = new WorkerChannel(event.ports[0]);
@@ -386,7 +386,7 @@ This exception has been gracefully handled as a 500 response, however, it's stro
386
386
  };
387
387
 
388
388
  // src/browser/utils/checkWorkerIntegrity.ts
389
- var import_devUtils5 = require("../core/utils/internal/devUtils.js");
389
+ var import_devUtils5 = require("../core/utils/internal/devUtils");
390
390
  async function checkWorkerIntegrity(context) {
391
391
  context.workerChannel.send("INTEGRITY_CHECK_REQUEST");
392
392
  const { payload } = await context.events.once("INTEGRITY_CHECK_RESPONSE");
@@ -1149,7 +1149,7 @@ function createResponseListener(context) {
1149
1149
  }
1150
1150
 
1151
1151
  // src/browser/setupWorker/start/utils/validateWorkerScope.ts
1152
- var import_devUtils6 = require("../core/utils/internal/devUtils.js");
1152
+ var import_devUtils6 = require("../core/utils/internal/devUtils");
1153
1153
  function validateWorkerScope(registration, options) {
1154
1154
  if (!options?.quiet && !location.href.startsWith(registration.scope)) {
1155
1155
  import_devUtils6.devUtils.warn(
@@ -1241,10 +1241,10 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
1241
1241
  };
1242
1242
 
1243
1243
  // src/browser/setupWorker/stop/createStop.ts
1244
- var import_devUtils9 = require("../core/utils/internal/devUtils.js");
1244
+ var import_devUtils9 = require("../core/utils/internal/devUtils");
1245
1245
 
1246
1246
  // src/browser/setupWorker/stop/utils/printStopMessage.ts
1247
- var import_devUtils8 = require("../core/utils/internal/devUtils.js");
1247
+ var import_devUtils8 = require("../core/utils/internal/devUtils");
1248
1248
  function printStopMessage(args = {}) {
1249
1249
  if (args.quiet) {
1250
1250
  return;
@@ -1273,7 +1273,7 @@ var createStop = (context) => {
1273
1273
  };
1274
1274
 
1275
1275
  // src/browser/setupWorker/start/utils/prepareStartHandler.ts
1276
- var import_mergeRight = require("../core/utils/internal/mergeRight.js");
1276
+ var import_mergeRight = require("../core/utils/internal/mergeRight");
1277
1277
  var DEFAULT_START_OPTIONS = {
1278
1278
  serviceWorker: {
1279
1279
  url: "/mockServiceWorker.js",
@@ -2622,8 +2622,8 @@ var XMLHttpRequestInterceptor = _XMLHttpRequestInterceptor;
2622
2622
  XMLHttpRequestInterceptor.interceptorSymbol = Symbol("xhr");
2623
2623
 
2624
2624
  // src/browser/setupWorker/start/createFallbackRequestListener.ts
2625
- var import_handleRequest2 = require("../core/utils/handleRequest.js");
2626
- var import_isHandlerKind2 = require("../core/utils/internal/isHandlerKind.js");
2625
+ var import_handleRequest2 = require("../core/utils/handleRequest");
2626
+ var import_isHandlerKind2 = require("../core/utils/internal/isHandlerKind");
2627
2627
  function createFallbackRequestListener(context, options) {
2628
2628
  const interceptor = new BatchInterceptor({
2629
2629
  name: "fallback",
@@ -2696,9 +2696,9 @@ function createFallbackStop(context) {
2696
2696
  }
2697
2697
 
2698
2698
  // src/browser/setupWorker/setupWorker.ts
2699
- var import_devUtils10 = require("../core/utils/internal/devUtils.js");
2700
- var import_SetupApi = require("../core/SetupApi.js");
2701
- var import_mergeRight2 = require("../core/utils/internal/mergeRight.js");
2699
+ var import_devUtils10 = require("../core/utils/internal/devUtils");
2700
+ var import_SetupApi = require("../core/SetupApi");
2701
+ var import_mergeRight2 = require("../core/utils/internal/mergeRight");
2702
2702
 
2703
2703
  // src/browser/utils/supportsReadableStreamTransfer.ts
2704
2704
  function supportsReadableStreamTransfer() {
@@ -2715,9 +2715,9 @@ function supportsReadableStreamTransfer() {
2715
2715
  }
2716
2716
 
2717
2717
  // src/browser/setupWorker/setupWorker.ts
2718
- var import_webSocketInterceptor = require("../core/ws/webSocketInterceptor.js");
2719
- var import_handleWebSocketEvent = require("../core/ws/handleWebSocketEvent.js");
2720
- var import_attachWebSocketLogger = require("../core/ws/utils/attachWebSocketLogger.js");
2718
+ var import_webSocketInterceptor = require("../core/ws/webSocketInterceptor");
2719
+ var import_handleWebSocketEvent = require("../core/ws/handleWebSocketEvent");
2720
+ var import_attachWebSocketLogger = require("../core/ws/utils/attachWebSocketLogger");
2721
2721
  var SetupWorkerApi = class extends import_SetupApi.SetupApi {
2722
2722
  context;
2723
2723
  startHandler = null;