workbox-navigation-preload
Advanced tools
Comparing version 5.0.0-rc.0 to 5.0.0-rc.1
"use strict"; | ||
// @ts-ignore | ||
try { | ||
self['workbox:navigation-preload:5.0.0-rc.0'] && _(); | ||
self['workbox:navigation-preload:5.0.0-rc.1'] && _(); | ||
} | ||
catch (e) { } |
@@ -6,3 +6,3 @@ this.workbox = this.workbox || {}; | ||
try { | ||
self['workbox:navigation-preload:5.0.0-rc.0'] && _(); | ||
self['workbox:navigation-preload:5.0.0-rc.1'] && _(); | ||
} catch (e) {} | ||
@@ -9,0 +9,0 @@ |
@@ -1,2 +0,2 @@ | ||
this.workbox=this.workbox||{},this.workbox.navigationPreload=function(t){"use strict";try{self["workbox:navigation-preload:5.0.0-rc.0"]&&_()}catch(t){}function e(){return Boolean(self.registration&&self.registration.navigationPreload)}return t.disable=function(){e()&&self.addEventListener("activate",t=>{t.waitUntil(self.registration.navigationPreload.disable().then(()=>{}))})},t.enable=function(t){e()&&self.addEventListener("activate",e=>{e.waitUntil(self.registration.navigationPreload.enable().then(()=>{t&&self.registration.navigationPreload.setHeaderValue(t)}))})},t.isSupported=e,t}({}); | ||
this.workbox=this.workbox||{},this.workbox.navigationPreload=function(t){"use strict";try{self["workbox:navigation-preload:5.0.0-rc.1"]&&_()}catch(t){}function e(){return Boolean(self.registration&&self.registration.navigationPreload)}return t.disable=function(){e()&&self.addEventListener("activate",t=>{t.waitUntil(self.registration.navigationPreload.disable().then(()=>{}))})},t.enable=function(t){e()&&self.addEventListener("activate",e=>{e.waitUntil(self.registration.navigationPreload.enable().then(()=>{t&&self.registration.navigationPreload.setHeaderValue(t)}))})},t.isSupported=e,t}({}); | ||
//# sourceMappingURL=workbox-navigation-preload.prod.js.map |
@@ -12,3 +12,3 @@ import './_version.js'; | ||
*/ | ||
declare function enable(headerValue: string): void; | ||
declare function enable(headerValue?: string): void; | ||
export { enable }; |
{ | ||
"name": "workbox-navigation-preload", | ||
"version": "5.0.0-rc.0", | ||
"version": "5.0.0-rc.1", | ||
"license": "MIT", | ||
@@ -30,5 +30,5 @@ "author": "Google's Web DevRel Team", | ||
"dependencies": { | ||
"workbox-core": "^5.0.0-rc.0" | ||
"workbox-core": "^5.0.0-rc.1" | ||
}, | ||
"gitHead": "94542f92ceaec96ef59a09bda3aee1677ea5512b" | ||
"gitHead": "f03f71e50507e13d82d4e0a875cc49ba4501aff3" | ||
} |
// @ts-ignore | ||
try{self['workbox:navigation-preload:5.0.0-rc.0']&&_()}catch(e){} | ||
try{self['workbox:navigation-preload:5.0.0-rc.1']&&_()}catch(e){} |
@@ -27,3 +27,3 @@ /* | ||
*/ | ||
function enable(headerValue: string) { | ||
function enable(headerValue?: string) { | ||
if (isSupported()) { | ||
@@ -30,0 +30,0 @@ self.addEventListener('activate', (event: ExtendableEvent) => { |
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 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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
133897
Updatedworkbox-core@^5.0.0-rc.1