Socket
Socket
Sign inDemoInstall

workbox-core

Package Overview
Dependencies
Maintainers
6
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

workbox-core - npm Package Compare versions

Comparing version 6.2.0 to 6.2.1

2

_private/cacheMatchIgnoreParams.js

@@ -34,3 +34,3 @@ /*

// Otherwise, match by comparing keys
const keysOptions = { ...matchOptions, ignoreSearch: true };
const keysOptions = Object.assign(Object.assign({}, matchOptions), { ignoreSearch: true });
const cacheKeys = await cache.keys(request, keysOptions);

@@ -37,0 +37,0 @@ for (const cacheKey of cacheKeys) {

"use strict";
// @ts-ignore
try {
self['workbox:core:6.2.0'] && _();
self['workbox:core:6.2.1'] && _();
}
catch (e) { }

@@ -6,3 +6,3 @@ this.workbox = this.workbox || {};

try {
self['workbox:core:6.2.0'] && _();
self['workbox:core:6.2.1'] && _();
} catch (e) {}

@@ -584,20 +584,9 @@

function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
/*
Copyright 2020 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};
return _extends.apply(this, arguments);
}
function stripParams(fullURL, ignoreParams) {

@@ -634,6 +623,5 @@ const strippedURL = new URL(fullURL);

const keysOptions = _extends({}, matchOptions, {
const keysOptions = Object.assign(Object.assign({}, matchOptions), {
ignoreSearch: true
});
const cacheKeys = await cache.keys(request, keysOptions);

@@ -640,0 +628,0 @@

@@ -1,2 +0,2 @@

this.workbox=this.workbox||{},this.workbox.core=function(t){"use strict";try{self["workbox:core:6.2.0"]&&_()}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.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:""},s=t=>[o.prefix,t,o.suffix].filter((t=>t&&t.length>0)).join("-"),i={updateDetails:t=>{(t=>{for(const e of Object.keys(o))t(e)})((e=>{"string"==typeof t[e]&&(o[e]=t[e])}))},getGoogleAnalyticsName:t=>t||s(o.googleAnalytics),getPrecacheName:t=>t||s(o.precache),getPrefix:()=>o.prefix,getRuntimeName:t=>t||s(o.runtime),getSuffix:()=>o.suffix};function c(t,e){const n=new URL(t);for(const t of e)n.searchParams.delete(t);return n.href}let a,u;function f(){if(void 0===u){const t=new Response("");if("body"in t)try{new Response(t.body),u=!0}catch(t){u=!1}u=!1}return u}function l(t){return new Promise((e=>setTimeout(e,t)))}var g=Object.freeze({__proto__:null,assert:null,cacheMatchIgnoreParams:async function(t,e,n,r){const o=c(e.url,n);if(e.url===o)return t.match(e,r);const s=Object.assign(Object.assign({},r),{ignoreSearch:!0}),i=await t.keys(e,s);for(const e of i){if(o===c(e.url,n))return t.match(e,r)}},cacheNames:i,canConstructReadableStream:function(){if(void 0===a)try{new ReadableStream({start(){}}),a=!0}catch(t){a=!1}return a},canConstructResponseFromBodyStream:f,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 l(100);return r},timeout:l,waitUntil:function(t,e){const n=e();return t.waitUntil(n),n},WorkboxError:n});const w={get googleAnalytics(){return i.getGoogleAnalyticsName()},get precache(){return i.getPrecacheName()},get prefix(){return i.getPrefix()},get runtime(){return i.getRuntimeName()},get suffix(){return i.getSuffix()}};return t._private=g,t.cacheNames=w,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(),s={headers:new Headers(o.headers),status:o.status,statusText:o.statusText},i=e?e(s):s,c=f()?o.body:await o.blob();return new Response(c,i)},t.registerQuotaErrorCallback=function(t){r.add(t)},t.setCacheNameDetails=function(t){i.updateDetails(t)},t.skipWaiting=function(){self.skipWaiting()},t}({});
//# sourceMappingURL=workbox-core.prod.js.map
{
"name": "workbox-core",
"version": "6.2.0",
"version": "6.2.1",
"license": "MIT",

@@ -23,3 +23,3 @@ "author": "Google's Web DevRel Team",

"types": "index.d.ts",
"gitHead": "6ec515276226de76594d58ed9909afe433cdf136"
"gitHead": "494222e5c4e689f200cce45de6f4317f811a3ebd"
}
// @ts-ignore
try{self['workbox:core:6.2.0']&&_()}catch(e){}
try{self['workbox:core:6.2.1']&&_()}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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc