msw 2.4.9 → 2.4.10
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/lib/browser/index.js +9 -10
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/index.mjs +9 -10
- package/lib/browser/index.mjs.map +1 -1
- package/lib/iife/index.js +9 -10
- package/lib/iife/index.js.map +1 -1
- package/lib/mockServiceWorker.js +1 -1
- package/package.json +1 -1
- package/src/browser/setupWorker/start/utils/getWorkerInstance.ts +12 -10
package/lib/iife/index.js
CHANGED
|
@@ -28646,16 +28646,15 @@ Read more: https://mswjs.io/docs/getting-started/mocks`;
|
|
|
28646
28646
|
}
|
|
28647
28647
|
const [existingRegistration] = mockRegistrations;
|
|
28648
28648
|
if (existingRegistration) {
|
|
28649
|
-
|
|
28650
|
-
|
|
28651
|
-
|
|
28652
|
-
|
|
28653
|
-
|
|
28654
|
-
|
|
28655
|
-
|
|
28656
|
-
|
|
28657
|
-
|
|
28658
|
-
});
|
|
28649
|
+
existingRegistration.update();
|
|
28650
|
+
return [
|
|
28651
|
+
getWorkerByRegistration(
|
|
28652
|
+
existingRegistration,
|
|
28653
|
+
absoluteWorkerUrl,
|
|
28654
|
+
findWorker
|
|
28655
|
+
),
|
|
28656
|
+
existingRegistration
|
|
28657
|
+
];
|
|
28659
28658
|
}
|
|
28660
28659
|
const registrationResult = await until(
|
|
28661
28660
|
async () => {
|