Socket
Socket
Sign inDemoInstall

workbox-cacheable-response

Package Overview
Dependencies
Maintainers
4
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

workbox-cacheable-response - npm Package Compare versions

Comparing version 5.0.0 to 5.1.0

2

_version.js
"use strict";
// @ts-ignore
try {
self['workbox:cacheable-response:5.0.0'] && _();
self['workbox:cacheable-response:5.1.0'] && _();
}
catch (e) { }

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

try {
self['workbox:cacheable-response:5.0.0'] && _();
self['workbox:cacheable-response:5.1.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:5.0.0"]&&_()}catch(s){}class t{constructor(s={}){this.s=s.statuses,this.t=s.headers}isResponseCacheable(s){let t=!0;return this.s&&(t=this.s.includes(s.status)),this.t&&t&&(t=Object.keys(this.t).some(t=>s.headers.get(t)===this.t[t])),t}}return s.CacheableResponse=t,s.CacheableResponsePlugin=class{constructor(s){this.cacheWillUpdate=(async({response:s})=>this.i.isResponseCacheable(s)?s:null),this.i=new t(s)}},s}({});
this.workbox=this.workbox||{},this.workbox.cacheableResponse=function(s){"use strict";try{self["workbox:cacheable-response:5.1.0"]&&_()}catch(s){}class t{constructor(s={}){this.s=s.statuses,this.t=s.headers}isResponseCacheable(s){let t=!0;return this.s&&(t=this.s.includes(s.status)),this.t&&t&&(t=Object.keys(this.t).some(t=>s.headers.get(t)===this.t[t])),t}}return s.CacheableResponse=t,s.CacheableResponsePlugin=class{constructor(s){this.cacheWillUpdate=async({response:s})=>this.i.isResponseCacheable(s)?s:null,this.i=new t(s)}},s}({});
//# sourceMappingURL=workbox-cacheable-response.prod.js.map

@@ -17,4 +17,4 @@ import './_version.js';

declare class CacheableResponse {
private _statuses?;
private _headers?;
private readonly _statuses?;
private readonly _headers?;
/**

@@ -21,0 +21,0 @@ * To construct a new CacheableResponse instance you must provide at least

@@ -12,3 +12,3 @@ import { WorkboxPlugin } from 'workbox-core/types.js';

declare class CacheableResponsePlugin implements WorkboxPlugin {
private _cacheableResponse;
private readonly _cacheableResponse;
/**

@@ -15,0 +15,0 @@ * To construct a new CacheableResponsePlugin instance you must provide at

{
"name": "workbox-cacheable-response",
"version": "5.0.0",
"version": "5.1.0",
"license": "MIT",

@@ -30,5 +30,5 @@ "author": "Google's Web DevRel Team",

"dependencies": {
"workbox-core": "^5.0.0"
"workbox-core": "^5.1.0"
},
"gitHead": "571ffded1872309a305f108a99a5a36982fde342"
"gitHead": "2a6b84b892b5c404671b898e926bf37b65d261da"
}
// @ts-ignore
try{self['workbox:cacheable-response:5.0.0']&&_()}catch(e){}
try{self['workbox:cacheable-response:5.1.0']&&_()}catch(e){}

@@ -30,4 +30,4 @@ /*

class CacheableResponse {
private _statuses?: CacheableResponseOptions['statuses'];
private _headers?: CacheableResponseOptions['headers'];
private readonly _statuses?: CacheableResponseOptions['statuses'];
private readonly _headers?: CacheableResponseOptions['headers'];

@@ -34,0 +34,0 @@ /**

@@ -21,3 +21,3 @@ /*

class CacheableResponsePlugin implements WorkboxPlugin {
private _cacheableResponse: CacheableResponse;
private readonly _cacheableResponse: CacheableResponse;

@@ -24,0 +24,0 @@ /**

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