Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@serwist/strategies

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@serwist/strategies - npm Package Compare versions

Comparing version 9.0.0-preview.4 to 9.0.0-preview.5

3

dist/StaleWhileRevalidate.d.ts
import type { StrategyOptions } from "./Strategy.js";
import { Strategy } from "./Strategy.js";
import type { StrategyHandler } from "./StrategyHandler.js";
declare class StaleWhileRevalidate extends Strategy {
export declare class StaleWhileRevalidate extends Strategy {
/**

@@ -34,3 +34,2 @@ * An implementation of the

}
export { StaleWhileRevalidate };
//# sourceMappingURL=StaleWhileRevalidate.d.ts.map

@@ -30,3 +30,3 @@ import type { HandlerCallbackOptions, RouteHandlerObject, SerwistPlugin } from "@serwist/core";

*/
declare abstract class Strategy implements RouteHandlerObject {
export declare abstract class Strategy implements RouteHandlerObject {
cacheName: string;

@@ -84,3 +84,2 @@ plugins: SerwistPlugin[];

}
export { Strategy };
//# sourceMappingURL=Strategy.d.ts.map
{
"name": "@serwist/strategies",
"version": "9.0.0-preview.4",
"version": "9.0.0-preview.5",
"type": "module",

@@ -33,3 +33,3 @@ "description": "A service worker helper library implementing common caching strategies.",

"dependencies": {
"@serwist/core": "9.0.0-preview.4"
"@serwist/core": "9.0.0-preview.5"
},

@@ -39,3 +39,3 @@ "devDependencies": {

"typescript": "5.4.0-dev.20240206",
"@serwist/constants": "9.0.0-preview.4"
"@serwist/constants": "9.0.0-preview.5"
},

@@ -42,0 +42,0 @@ "peerDependencies": {

@@ -33,3 +33,3 @@ /*

* If the network request fails, this will throw a `SerwistError` exception.
*
*
* @param options

@@ -36,0 +36,0 @@ */

@@ -17,3 +17,3 @@ /*

class StaleWhileRevalidate extends Strategy {
export class StaleWhileRevalidate extends Strategy {
/**

@@ -110,3 +110,1 @@ * An implementation of the

}
export { StaleWhileRevalidate };

@@ -42,3 +42,3 @@ /*

*/
abstract class Strategy implements RouteHandlerObject {
export abstract class Strategy implements RouteHandlerObject {
cacheName: string;

@@ -205,3 +205,1 @@ plugins: SerwistPlugin[];

}
export { Strategy };

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