workbox-broadcast-cache-update
Advanced tools
Comparing version 3.0.0-alpha.1 to 3.0.0-alpha.2
@@ -6,3 +6,3 @@ this.workbox = this.workbox || {}; | ||
try { | ||
self.workbox.v['workbox:broadcast-cache-update:3.0.0-alpha.1'] = 1; | ||
self.workbox.v['workbox:broadcast-cache-update:3.0.0-alpha.2'] = 1; | ||
} catch (e) {} // eslint-disable-line | ||
@@ -287,3 +287,3 @@ | ||
*/ | ||
class BroadcastCacheUpdatePlugin { | ||
class Plugin { | ||
/** | ||
@@ -322,3 +322,3 @@ * Construct a new instance with a specific `channelName` to | ||
moduleName: 'workbox-broadcast-cache-update', | ||
className: 'BroadcastCacheUpdatePlugin', | ||
className: 'Plugin', | ||
funcName: 'constructor', | ||
@@ -329,3 +329,3 @@ paramName: 'cacheName' | ||
moduleName: 'workbox-broadcast-cache-update', | ||
className: 'BroadcastCacheUpdatePlugin', | ||
className: 'Plugin', | ||
funcName: 'constructor', | ||
@@ -378,3 +378,3 @@ paramName: 'newResponse' | ||
exports.BroadcastCacheUpdate = BroadcastCacheUpdate; | ||
exports.BroadcastCacheUpdatePlugin = BroadcastCacheUpdatePlugin; | ||
exports.Plugin = Plugin; | ||
exports.broadcastUpdate = broadcastUpdate; | ||
@@ -381,0 +381,0 @@ exports.messageTypes = messageTypes; |
@@ -1,2 +0,2 @@ | ||
this.workbox=this.workbox||{},this.workbox.broadcastUpdate=function(t){"use strict";try{self.workbox.v["workbox:broadcast-cache-update:3.0.0-alpha.1"]=1}catch(t){}var e={CACHE_UPDATED:"CACHE_UPDATED"};const s=(t,s,a,c)=>{t.postMessage({type:e.CACHE_UPDATED,meta:c,payload:{cacheName:s,updatedUrl:a}})};class a{constructor(t,{headersToCheck:e,source:s}={}){this.t=t,this.e=e||["content-length","etag","last-modified"],this.s=s||"workbox-broadcast-cache-update"}a(){return this.c||(this.c=new BroadcastChannel(this.t)),this.c}notifyIfUpdated(t,e,a,c){((t,e,s)=>{return!s.some(s=>t.headers.has(s)&&e.headers.has(s))||s.every(s=>{const a=t.headers.has(s)===e.headers.has(s),c=t.headers.get(s)===e.headers.get(s);return a&&c})})(t,e,this.e)||s(this.a(),c,a,this.s)}}class c{constructor(t,e){this.h=new a(t,e)}cacheDidUpdate({cacheName:t,oldResponse:e,newResponse:s,url:a}){e&&this.h.notifyIfUpdated(e,s,t,a)}}return t.BroadcastCacheUpdate=a,t.BroadcastCacheUpdatePlugin=c,t.broadcastUpdate=s,t.messageTypes=e,t}({}); | ||
this.workbox=this.workbox||{},this.workbox.broadcastUpdate=function(t){"use strict";try{self.workbox.v["workbox:broadcast-cache-update:3.0.0-alpha.2"]=1}catch(t){}var e={CACHE_UPDATED:"CACHE_UPDATED"};const s=(t,s,a,c)=>{t.postMessage({type:e.CACHE_UPDATED,meta:c,payload:{cacheName:s,updatedUrl:a}})};class a{constructor(t,{headersToCheck:e,source:s}={}){this.t=t,this.e=e||["content-length","etag","last-modified"],this.s=s||"workbox-broadcast-cache-update"}a(){return this.c||(this.c=new BroadcastChannel(this.t)),this.c}notifyIfUpdated(t,e,a,c){((t,e,s)=>!s.some(s=>t.headers.has(s)&&e.headers.has(s))||s.every(s=>{const a=t.headers.has(s)===e.headers.has(s),c=t.headers.get(s)===e.headers.get(s);return a&&c}))(t,e,this.e)||s(this.a(),c,a,this.s)}}class c{constructor(t,e){this.h=new a(t,e)}cacheDidUpdate({cacheName:t,oldResponse:e,newResponse:s,url:a}){e&&this.h.notifyIfUpdated(e,s,t,a)}}return t.BroadcastCacheUpdate=a,t.Plugin=c,t.broadcastUpdate=s,t.messageTypes=e,t}({}); | ||
//# sourceMappingURL=workbox-broadcast-cache-update.prod.js.map |
{ | ||
"name": "workbox-broadcast-cache-update", | ||
"version": "3.0.0-alpha.1", | ||
"version": "3.0.0-alpha.2", | ||
"license": "Apache-2.0", | ||
@@ -28,4 +28,4 @@ "author": "Google's Web DevRel Team", | ||
"dependencies": { | ||
"workbox-core": "^3.0.0-alpha.1" | ||
"workbox-core": "^3.0.0-alpha.2" | ||
} | ||
} |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
109718
Updatedworkbox-core@^3.0.0-alpha.2