msw 0.49.2 → 0.49.3

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.
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
 
4
4
  /**
5
- * Mock Service Worker (0.49.2).
5
+ * Mock Service Worker (0.49.3).
6
6
  * @see https://github.com/mswjs/msw
7
7
  * - Please do NOT modify this file.
8
8
  * - Please do NOT serve this file on production.
@@ -1,5 +1,5 @@
1
- import { b as RequestHandler } from '../SetupApi-b2f0e5ac.js';
2
- import { S as SetupServerApi } from '../SetupServerApi-70cc71a7.js';
1
+ import { b as RequestHandler } from '../SetupApi-f4099ef3.js';
2
+ import { S as SetupServerApi } from '../SetupServerApi-db0805bd.js';
3
3
  import 'strict-event-emitter';
4
4
  import 'headers-polyfill';
5
5
  import '@mswjs/interceptors';
@@ -110,8 +110,8 @@ var SetupApi = class {
110
110
  this.validateHandlers(...initialHandlers);
111
111
  this.initialHandlers = toReadonlyArray(initialHandlers);
112
112
  this.currentHandlers = [...initialHandlers];
113
- this.emitter = new import_strict_event_emitter.StrictEventEmitter();
114
- this.publicEmitter = new import_strict_event_emitter.StrictEventEmitter();
113
+ this.emitter = new import_strict_event_emitter.Emitter();
114
+ this.publicEmitter = new import_strict_event_emitter.Emitter();
115
115
  pipeEvents(this.emitter, this.publicEmitter);
116
116
  this.events = this.createLifeCycleEvents();
117
117
  }
@@ -63,7 +63,7 @@ import {
63
63
 
64
64
  // src/SetupApi.ts
65
65
  import { invariant } from "outvariant";
66
- import { StrictEventEmitter } from "strict-event-emitter";
66
+ import { Emitter } from "strict-event-emitter";
67
67
 
68
68
  // src/utils/internal/devUtils.ts
69
69
  import { format } from "outvariant";
@@ -110,8 +110,8 @@ var SetupApi = class {
110
110
  this.validateHandlers(...initialHandlers);
111
111
  this.initialHandlers = toReadonlyArray(initialHandlers);
112
112
  this.currentHandlers = [...initialHandlers];
113
- this.emitter = new StrictEventEmitter();
114
- this.publicEmitter = new StrictEventEmitter();
113
+ this.emitter = new Emitter();
114
+ this.publicEmitter = new Emitter();
115
115
  pipeEvents(this.emitter, this.publicEmitter);
116
116
  this.events = this.createLifeCycleEvents();
117
117
  }
@@ -1,7 +1,7 @@
1
- import { S as SetupServerApi } from '../SetupServerApi-70cc71a7.js';
2
- export { a as ServerLifecycleEventsMap } from '../SetupServerApi-70cc71a7.js';
3
- import { b as RequestHandler } from '../SetupApi-b2f0e5ac.js';
4
- export { a as SetupServerApi } from '../glossary-a30fab39.js';
1
+ import { S as SetupServerApi } from '../SetupServerApi-db0805bd.js';
2
+ export { a as ServerLifecycleEventsMap } from '../SetupServerApi-db0805bd.js';
3
+ import { b as RequestHandler } from '../SetupApi-f4099ef3.js';
4
+ export { a as SetupServerApi } from '../glossary-6c6965e4.js';
5
5
  import '@mswjs/interceptors';
6
6
  import 'strict-event-emitter';
7
7
  import 'headers-polyfill';
package/lib/node/index.js CHANGED
@@ -113,8 +113,8 @@ var SetupApi = class {
113
113
  this.validateHandlers(...initialHandlers);
114
114
  this.initialHandlers = toReadonlyArray(initialHandlers);
115
115
  this.currentHandlers = [...initialHandlers];
116
- this.emitter = new import_strict_event_emitter.StrictEventEmitter();
117
- this.publicEmitter = new import_strict_event_emitter.StrictEventEmitter();
116
+ this.emitter = new import_strict_event_emitter.Emitter();
117
+ this.publicEmitter = new import_strict_event_emitter.Emitter();
118
118
  pipeEvents(this.emitter, this.publicEmitter);
119
119
  this.events = this.createLifeCycleEvents();
120
120
  }