workbox-core
Advanced tools
Comparing version 6.2.0-alpha.1 to 6.2.0-alpha.2
"use strict"; | ||
// @ts-ignore | ||
try { | ||
self['workbox:core:6.2.0-alpha.1'] && _(); | ||
self['workbox:core:6.2.0-alpha.2'] && _(); | ||
} | ||
catch (e) { } |
@@ -6,3 +6,3 @@ this.workbox = this.workbox || {}; | ||
try { | ||
self['workbox:core:6.2.0-alpha.1'] && _(); | ||
self['workbox:core:6.2.0-alpha.2'] && _(); | ||
} catch (e) {} | ||
@@ -9,0 +9,0 @@ |
@@ -1,2 +0,2 @@ | ||
this.workbox=this.workbox||{},this.workbox.core=function(t){"use strict";try{self["workbox:core:6.2.0-alpha.1"]&&_()}catch(t){}const e=(t,...e)=>{let n=t;return e.length>0&&(n+=" :: "+JSON.stringify(e)),n};class n extends Error{constructor(t,n){super(e(t,n)),this.name=t,this.details=n}}const r=new Set;const o={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},i=t=>[o.prefix,t,o.suffix].filter((t=>t&&t.length>0)).join("-"),s={updateDetails:t=>{(t=>{for(const e of Object.keys(o))t(e)})((e=>{"string"==typeof t[e]&&(o[e]=t[e])}))},getGoogleAnalyticsName:t=>t||i(o.googleAnalytics),getPrecacheName:t=>t||i(o.precache),getPrefix:()=>o.prefix,getRuntimeName:t=>t||i(o.runtime),getSuffix:()=>o.suffix};function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function a(t,e){const n=new URL(t);for(const t of e)n.searchParams.delete(t);return n.href}let u,f;function l(){if(void 0===f){const t=new Response("");if("body"in t)try{new Response(t.body),f=!0}catch(t){f=!1}f=!1}return f}function g(t){return new Promise((e=>setTimeout(e,t)))}var w=Object.freeze({__proto__:null,assert:null,cacheMatchIgnoreParams:async function(t,e,n,r){const o=a(e.url,n);if(e.url===o)return t.match(e,r);const i=c({},r,{ignoreSearch:!0}),s=await t.keys(e,i);for(const e of s){if(o===a(e.url,n))return t.match(e,r)}},cacheNames:s,canConstructReadableStream:function(){if(void 0===u)try{new ReadableStream({start(){}}),u=!0}catch(t){u=!1}return u},canConstructResponseFromBodyStream:l,dontWaitFor:function(t){t.then((()=>{}))},Deferred:class{constructor(){this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}},executeQuotaErrorCallbacks:async function(){for(const t of r)await t()},getFriendlyURL:t=>new URL(String(t),location.href).href.replace(new RegExp("^"+location.origin),""),logger:null,resultingClientExists:async function(t){if(!t)return;let e=await self.clients.matchAll({type:"window"});const n=new Set(e.map((t=>t.id)));let r;const o=performance.now();for(;performance.now()-o<2e3&&(e=await self.clients.matchAll({type:"window"}),r=e.find((e=>t?e.id===t:!n.has(e.id))),!r);)await g(100);return r},timeout:g,waitUntil:function(t,e){const n=e();return t.waitUntil(n),n},WorkboxError:n});const h={get googleAnalytics(){return s.getGoogleAnalyticsName()},get precache(){return s.getPrecacheName()},get prefix(){return s.getPrefix()},get runtime(){return s.getRuntimeName()},get suffix(){return s.getSuffix()}};return t._private=w,t.cacheNames=h,t.clientsClaim=function(){self.addEventListener("activate",(()=>self.clients.claim()))},t.copyResponse=async function(t,e){let r=null;if(t.url){r=new URL(t.url).origin}if(r!==self.location.origin)throw new n("cross-origin-copy-response",{origin:r});const o=t.clone(),i={headers:new Headers(o.headers),status:o.status,statusText:o.statusText},s=e?e(i):i,c=l()?o.body:await o.blob();return new Response(c,s)},t.registerQuotaErrorCallback=function(t){r.add(t)},t.setCacheNameDetails=function(t){s.updateDetails(t)},t.skipWaiting=function(){self.skipWaiting()},t}({}); | ||
this.workbox=this.workbox||{},this.workbox.core=function(t){"use strict";try{self["workbox:core:6.2.0-alpha.2"]&&_()}catch(t){}const e=(t,...e)=>{let n=t;return e.length>0&&(n+=" :: "+JSON.stringify(e)),n};class n extends Error{constructor(t,n){super(e(t,n)),this.name=t,this.details=n}}const r=new Set;const o={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},i=t=>[o.prefix,t,o.suffix].filter((t=>t&&t.length>0)).join("-"),s={updateDetails:t=>{(t=>{for(const e of Object.keys(o))t(e)})((e=>{"string"==typeof t[e]&&(o[e]=t[e])}))},getGoogleAnalyticsName:t=>t||i(o.googleAnalytics),getPrecacheName:t=>t||i(o.precache),getPrefix:()=>o.prefix,getRuntimeName:t=>t||i(o.runtime),getSuffix:()=>o.suffix};function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function a(t,e){const n=new URL(t);for(const t of e)n.searchParams.delete(t);return n.href}let u,f;function l(){if(void 0===f){const t=new Response("");if("body"in t)try{new Response(t.body),f=!0}catch(t){f=!1}f=!1}return f}function g(t){return new Promise((e=>setTimeout(e,t)))}var w=Object.freeze({__proto__:null,assert:null,cacheMatchIgnoreParams:async function(t,e,n,r){const o=a(e.url,n);if(e.url===o)return t.match(e,r);const i=c({},r,{ignoreSearch:!0}),s=await t.keys(e,i);for(const e of s){if(o===a(e.url,n))return t.match(e,r)}},cacheNames:s,canConstructReadableStream:function(){if(void 0===u)try{new ReadableStream({start(){}}),u=!0}catch(t){u=!1}return u},canConstructResponseFromBodyStream:l,dontWaitFor:function(t){t.then((()=>{}))},Deferred:class{constructor(){this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}},executeQuotaErrorCallbacks:async function(){for(const t of r)await t()},getFriendlyURL:t=>new URL(String(t),location.href).href.replace(new RegExp("^"+location.origin),""),logger:null,resultingClientExists:async function(t){if(!t)return;let e=await self.clients.matchAll({type:"window"});const n=new Set(e.map((t=>t.id)));let r;const o=performance.now();for(;performance.now()-o<2e3&&(e=await self.clients.matchAll({type:"window"}),r=e.find((e=>t?e.id===t:!n.has(e.id))),!r);)await g(100);return r},timeout:g,waitUntil:function(t,e){const n=e();return t.waitUntil(n),n},WorkboxError:n});const h={get googleAnalytics(){return s.getGoogleAnalyticsName()},get precache(){return s.getPrecacheName()},get prefix(){return s.getPrefix()},get runtime(){return s.getRuntimeName()},get suffix(){return s.getSuffix()}};return t._private=w,t.cacheNames=h,t.clientsClaim=function(){self.addEventListener("activate",(()=>self.clients.claim()))},t.copyResponse=async function(t,e){let r=null;if(t.url){r=new URL(t.url).origin}if(r!==self.location.origin)throw new n("cross-origin-copy-response",{origin:r});const o=t.clone(),i={headers:new Headers(o.headers),status:o.status,statusText:o.statusText},s=e?e(i):i,c=l()?o.body:await o.blob();return new Response(c,s)},t.registerQuotaErrorCallback=function(t){r.add(t)},t.setCacheNameDetails=function(t){s.updateDetails(t)},t.skipWaiting=function(){self.skipWaiting()},t}({}); | ||
//# sourceMappingURL=workbox-core.prod.js.map |
{ | ||
"name": "workbox-core", | ||
"version": "6.2.0-alpha.1", | ||
"version": "6.2.0-alpha.2", | ||
"license": "MIT", | ||
@@ -23,3 +23,3 @@ "author": "Google's Web DevRel Team", | ||
"types": "index.d.ts", | ||
"gitHead": "8c49eb93d9a11431fc981f0d297247ca9484b003" | ||
"gitHead": "a3476487cb3b212258644a7e30adc025a821be06" | ||
} |
// @ts-ignore | ||
try{self['workbox:core:6.2.0-alpha.1']&&_()}catch(e){} | ||
try{self['workbox:core:6.2.0-alpha.2']&&_()}catch(e){} |
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 4 instances 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 4 instances in 1 package