workbox-cacheable-response
Advanced tools
Comparing version 6.3.0 to 6.4.0
"use strict"; | ||
// @ts-ignore | ||
try { | ||
self['workbox:cacheable-response:6.2.4'] && _(); | ||
self['workbox:cacheable-response:6.3.0'] && _(); | ||
} | ||
catch (e) { } |
@@ -6,3 +6,3 @@ this.workbox = this.workbox || {}; | ||
try { | ||
self['workbox:cacheable-response:6.2.4'] && _(); | ||
self['workbox:cacheable-response:6.3.0'] && _(); | ||
} catch (e) {} | ||
@@ -9,0 +9,0 @@ |
@@ -1,2 +0,2 @@ | ||
this.workbox=this.workbox||{},this.workbox.cacheableResponse=function(s){"use strict";try{self["workbox:cacheable-response:6.2.4"]&&_()}catch(s){}class t{constructor(s={}){this.O=s.statuses,this._=s.headers}isResponseCacheable(s){let t=!0;return this.O&&(t=this.O.includes(s.status)),this._&&t&&(t=Object.keys(this._).some((t=>s.headers.get(t)===this._[t]))),t}}return s.CacheableResponse=t,s.CacheableResponsePlugin=class{constructor(s){this.cacheWillUpdate=async({response:s})=>this.G.isResponseCacheable(s)?s:null,this.G=new t(s)}},s}({}); | ||
this.workbox=this.workbox||{},this.workbox.cacheableResponse=function(s){"use strict";try{self["workbox:cacheable-response:6.3.0"]&&_()}catch(s){}class t{constructor(s={}){this.O=s.statuses,this._=s.headers}isResponseCacheable(s){let t=!0;return this.O&&(t=this.O.includes(s.status)),this._&&t&&(t=Object.keys(this._).some((t=>s.headers.get(t)===this._[t]))),t}}return s.CacheableResponse=t,s.CacheableResponsePlugin=class{constructor(s){this.cacheWillUpdate=async({response:s})=>this.G.isResponseCacheable(s)?s:null,this.G=new t(s)}},s}({}); | ||
//# sourceMappingURL=workbox-cacheable-response.prod.js.map |
@@ -98,6 +98,4 @@ /* | ||
logger.groupCollapsed(`View cacheability criteria here.`); | ||
logger.log(`Cacheable statuses: ` + | ||
JSON.stringify(this._statuses)); | ||
logger.log(`Cacheable headers: ` + | ||
JSON.stringify(this._headers, null, 2)); | ||
logger.log(`Cacheable statuses: ` + JSON.stringify(this._statuses)); | ||
logger.log(`Cacheable headers: ` + JSON.stringify(this._headers, null, 2)); | ||
logger.groupEnd(); | ||
@@ -110,4 +108,3 @@ const logFriendlyHeaders = {}; | ||
logger.log(`Response status: ${response.status}`); | ||
logger.log(`Response headers: ` + | ||
JSON.stringify(logFriendlyHeaders, null, 2)); | ||
logger.log(`Response headers: ` + JSON.stringify(logFriendlyHeaders, null, 2)); | ||
logger.groupEnd(); | ||
@@ -114,0 +111,0 @@ logger.groupCollapsed(`View full response details here.`); |
@@ -8,3 +8,3 @@ /* | ||
*/ | ||
import { CacheableResponse } from './CacheableResponse.js'; | ||
import { CacheableResponse, } from './CacheableResponse.js'; | ||
import './_version.js'; | ||
@@ -11,0 +11,0 @@ /** |
@@ -7,2 +7,2 @@ import { CacheableResponse } from './CacheableResponse.js'; | ||
*/ | ||
export { CacheableResponse, CacheableResponsePlugin, }; | ||
export { CacheableResponse, CacheableResponsePlugin }; |
@@ -14,2 +14,2 @@ /* | ||
*/ | ||
export { CacheableResponse, CacheableResponsePlugin, }; | ||
export { CacheableResponse, CacheableResponsePlugin }; |
{ | ||
"name": "workbox-cacheable-response", | ||
"version": "6.3.0", | ||
"version": "6.4.0", | ||
"license": "MIT", | ||
@@ -25,5 +25,5 @@ "author": "Google's Web DevRel Team", | ||
"dependencies": { | ||
"workbox-core": "6.3.0" | ||
"workbox-core": "6.4.0" | ||
}, | ||
"gitHead": "03055e64014a46f6cc977a3a50ad814c6409d36a" | ||
"gitHead": "cdad230c678a3626c217615d5792eb0f1c77194c" | ||
} |
// @ts-ignore | ||
try{self['workbox:cacheable-response:6.3.0']&&_()}catch(e){} | ||
try{self['workbox:cacheable-response:6.4.0']&&_()}catch(e){} |
@@ -15,3 +15,2 @@ /* | ||
export interface CacheableResponseOptions { | ||
@@ -114,11 +113,13 @@ statuses?: number[]; | ||
if (!cacheable) { | ||
logger.groupCollapsed(`The request for ` + | ||
`'${getFriendlyURL(response.url)}' returned a response that does ` + | ||
`not meet the criteria for being cached.`); | ||
logger.groupCollapsed( | ||
`The request for ` + | ||
`'${getFriendlyURL(response.url)}' returned a response that does ` + | ||
`not meet the criteria for being cached.`, | ||
); | ||
logger.groupCollapsed(`View cacheability criteria here.`); | ||
logger.log(`Cacheable statuses: ` + | ||
JSON.stringify(this._statuses)); | ||
logger.log(`Cacheable headers: ` + | ||
JSON.stringify(this._headers, null, 2)); | ||
logger.log(`Cacheable statuses: ` + JSON.stringify(this._statuses)); | ||
logger.log( | ||
`Cacheable headers: ` + JSON.stringify(this._headers, null, 2), | ||
); | ||
logger.groupEnd(); | ||
@@ -133,4 +134,5 @@ | ||
logger.log(`Response status: ${response.status}`); | ||
logger.log(`Response headers: ` + | ||
JSON.stringify(logFriendlyHeaders, null, 2)); | ||
logger.log( | ||
`Response headers: ` + JSON.stringify(logFriendlyHeaders, null, 2), | ||
); | ||
logger.groupEnd(); | ||
@@ -137,0 +139,0 @@ |
@@ -10,3 +10,6 @@ /* | ||
import {WorkboxPlugin} from 'workbox-core/types.js'; | ||
import {CacheableResponse, CacheableResponseOptions} from './CacheableResponse.js'; | ||
import { | ||
CacheableResponse, | ||
CacheableResponseOptions, | ||
} from './CacheableResponse.js'; | ||
import './_version.js'; | ||
@@ -53,5 +56,5 @@ | ||
return null; | ||
} | ||
}; | ||
} | ||
export {CacheableResponsePlugin}; |
@@ -13,3 +13,2 @@ /* | ||
/** | ||
@@ -19,5 +18,2 @@ * @module workbox-cacheable-response | ||
export { | ||
CacheableResponse, | ||
CacheableResponsePlugin, | ||
}; | ||
export {CacheableResponse, CacheableResponsePlugin}; |
@@ -8,8 +8,4 @@ { | ||
}, | ||
"include": [ | ||
"src/**/*.ts" | ||
], | ||
"references": [ | ||
{ "path": "../workbox-core/" } | ||
] | ||
"include": ["src/**/*.ts"], | ||
"references": [{"path": "../workbox-core/"}] | ||
} |
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
69012
649
+ Addedworkbox-core@6.4.0(transitive)
- Removedworkbox-core@6.3.0(transitive)
Updatedworkbox-core@6.4.0