msw 0.49.2 → 1.0.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.
@@ -64,7 +64,7 @@ import {
64
64
 
65
65
  // src/SetupApi.ts
66
66
  import { invariant } from "outvariant";
67
- import { StrictEventEmitter } from "strict-event-emitter";
67
+ import { Emitter } from "strict-event-emitter";
68
68
 
69
69
  // src/utils/internal/devUtils.ts
70
70
  import { format } from "outvariant";
@@ -111,8 +111,8 @@ var SetupApi = class {
111
111
  this.validateHandlers(...initialHandlers);
112
112
  this.initialHandlers = toReadonlyArray(initialHandlers);
113
113
  this.currentHandlers = [...initialHandlers];
114
- this.emitter = new StrictEventEmitter();
115
- this.publicEmitter = new StrictEventEmitter();
114
+ this.emitter = new Emitter();
115
+ this.publicEmitter = new Emitter();
116
116
  pipeEvents(this.emitter, this.publicEmitter);
117
117
  this.events = this.createLifeCycleEvents();
118
118
  }
@@ -1486,6 +1486,7 @@ var setupServer = (...handlers) => {
1486
1486
  return new SetupServerApi([ClientRequestInterceptor, XMLHttpRequestInterceptor], ...handlers);
1487
1487
  };
1488
1488
  export {
1489
+ SetupServerApi,
1489
1490
  setupServer
1490
1491
  };
1491
1492
  //# sourceMappingURL=index.mjs.map