Comparing version 2.4.9 to 2.4.10
@@ -11,3 +11,3 @@ /* eslint-disable */ | ||
const PACKAGE_VERSION = '2.4.9' | ||
const PACKAGE_VERSION = '2.4.10' | ||
const INTEGRITY_CHECKSUM = '26357c79639bfa20d64c0efca2a87423' | ||
@@ -14,0 +14,0 @@ const IS_MOCKED_RESPONSE = Symbol('isMockedResponse') |
{ | ||
"name": "msw", | ||
"version": "2.4.9", | ||
"version": "2.4.10", | ||
"description": "Seamless REST/GraphQL API mocking library for browser and Node.js.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/core/index.js", |
@@ -39,13 +39,15 @@ import { until } from '@open-draft/until' | ||
if (existingRegistration) { | ||
// When the Service Worker is registered, update it and return the reference. | ||
return existingRegistration.update().then(() => { | ||
return [ | ||
getWorkerByRegistration( | ||
existingRegistration, | ||
absoluteWorkerUrl, | ||
findWorker, | ||
), | ||
// Schedule the worker update in the background. | ||
// Update ensures the existing worker is up-to-date. | ||
existingRegistration.update() | ||
// Return the worker reference immediately. | ||
return [ | ||
getWorkerByRegistration( | ||
existingRegistration, | ||
] | ||
}) | ||
absoluteWorkerUrl, | ||
findWorker, | ||
), | ||
existingRegistration, | ||
] | ||
} | ||
@@ -52,0 +54,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4065783
50348
9
2