msw 1.0.0 → 1.1.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.
- package/cli/init.js +0 -0
- package/config/scripts/postinstall.js +0 -0
- package/lib/{SetupServerApi-39df862c.d.ts → SetupServerApi-1855d9c6.d.ts} +1 -1
- package/lib/iife/index.js +1510 -1442
- package/lib/iife/index.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +547 -345
- package/lib/index.js.map +1 -1
- package/lib/mockServiceWorker.js +1 -1
- package/lib/native/index.d.ts +1 -1
- package/lib/native/index.js +329 -248
- package/lib/native/index.mjs +328 -248
- package/lib/node/index.d.ts +3 -4
- package/lib/node/index.js +334 -249
- package/lib/node/index.js.map +1 -1
- package/lib/node/index.mjs +333 -249
- package/lib/node/index.mjs.map +1 -1
- package/package.json +32 -28
- package/CHANGELOG.md +0 -4
package/lib/index.d.ts
CHANGED
|
@@ -138,7 +138,7 @@ declare class SetupWorkerApi extends SetupApi<WorkerLifecycleEventsMap> implemen
|
|
|
138
138
|
* @param {RequestHandler[]} handlers List of request handlers.
|
|
139
139
|
* @see {@link https://mswjs.io/docs/api/setup-worker `setupWorker`}
|
|
140
140
|
*/
|
|
141
|
-
declare function setupWorker(...handlers: Array<RequestHandler>):
|
|
141
|
+
declare function setupWorker(...handlers: Array<RequestHandler>): SetupWorker;
|
|
142
142
|
|
|
143
143
|
type RestHandlerMethod = string | RegExp;
|
|
144
144
|
interface RestHandlerInfo extends RequestHandlerDefaultInfo {
|