msw 0.48.1 → 0.48.2

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/index.js CHANGED
@@ -329,8 +329,8 @@ var getWorkerByRegistration = (registration, absoluteWorkerUrl, findWorker) => {
329
329
  };
330
330
 
331
331
  // src/utils/url/getAbsoluteWorkerUrl.ts
332
- function getAbsoluteWorkerUrl(relativeUrl) {
333
- return new URL(relativeUrl, location.origin).href;
332
+ function getAbsoluteWorkerUrl(workerUrl) {
333
+ return new URL(workerUrl, location.href).href;
334
334
  }
335
335
 
336
336
  // src/utils/internal/devUtils.ts