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

@serwist/precaching

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/precaching - npm Package Compare versions

Comparing version 8.4.4 to 9.0.0-preview.0

dist/_types.d.ts.map

5

dist/_types.d.ts

@@ -15,6 +15,6 @@ export interface InstallResult {

/**
* The `directoryIndex` will check cache entries for a URLs ending with '/'
* The `directoryIndex` will check cache entries for a URL ending with '/'
* to see if there is a hit when appending the `directoryIndex` value.
*/
directoryIndex?: string;
directoryIndex?: string | null;
/**

@@ -38,1 +38,2 @@ * An array of RegExp's to remove search params when looking for a cache match.

}) => URL[];
//# sourceMappingURL=_types.d.ts.map

1

dist/addPlugins.d.ts

@@ -9,1 +9,2 @@ import type { SerwistPlugin } from "@serwist/core";

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

@@ -16,1 +16,2 @@ import type { PrecacheRouteOptions } from "./_types.js";

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

@@ -7,1 +7,2 @@ /**

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

@@ -18,1 +18,2 @@ import type { RouteHandlerCallback } from "@serwist/core";

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

@@ -20,1 +20,2 @@ /**

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

@@ -25,1 +25,2 @@ import { PrecacheController } from "./PrecacheController.js";

export * from "./_types.js";
//# sourceMappingURL=index.d.ts.map

@@ -15,1 +15,2 @@ /**

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

@@ -18,3 +18,4 @@ import type { PrecacheEntry } from "./_types.js";

*/
declare function precache(entries: Array<PrecacheEntry | string>): void;
declare function precache(entries: (PrecacheEntry | string)[]): void;
export { precache };
//# sourceMappingURL=precache.d.ts.map

@@ -13,3 +13,4 @@ import type { PrecacheEntry, PrecacheRouteOptions } from "./_types.js";

*/
declare function precacheAndRoute(entries: Array<PrecacheEntry | string>, options?: PrecacheRouteOptions): void;
declare function precacheAndRoute(entries: (PrecacheEntry | string)[], options?: PrecacheRouteOptions): void;
export { precacheAndRoute };
//# sourceMappingURL=precacheAndRoute.d.ts.map

@@ -49,3 +49,3 @@ import type { RouteHandlerCallback, SerwistPlugin } from "@serwist/core";

*/
precache(entries: Array<PrecacheEntry | string>): void;
precache(entries: (PrecacheEntry | string)[]): void;
/**

@@ -57,3 +57,3 @@ * This method will add items to the precache list, removing duplicates

*/
addToCacheList(entries: Array<PrecacheEntry | string>): void;
addToCacheList(entries: (PrecacheEntry | string)[]): void;
/**

@@ -94,3 +94,3 @@ * Precaches new and updated assets. Call this method from the service worker

*/
getCachedURLs(): Array<string>;
getCachedURLs(): string[];
/**

@@ -141,1 +141,2 @@ * Returns the cache key used for storing a given URL. If that URL is

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

@@ -44,1 +44,2 @@ import type { SerwistPlugin } from "@serwist/core";

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

@@ -20,1 +20,2 @@ import { Route } from "@serwist/routing";

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

@@ -67,1 +67,2 @@ import type { SerwistPlugin } from "@serwist/core";

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

@@ -16,1 +16,2 @@ import type { PrecacheEntry } from "../_types.js";

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

@@ -19,1 +19,2 @@ /**

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

@@ -12,1 +12,2 @@ import type { PrecacheRouteOptions } from "../_types.js";

export declare function generateURLVariations(url: string, { ignoreURLParametersMatching, directoryIndex, cleanURLs, urlManipulation, }?: PrecacheRouteOptions): Generator<string, void, unknown>;
//# sourceMappingURL=generateURLVariations.d.ts.map

@@ -14,1 +14,2 @@ import type { PrecacheRouteOptions } from "../_types.js";

export declare const getCacheKeyForURL: (url: string, options: PrecacheRouteOptions) => string | undefined;
//# sourceMappingURL=getCacheKeyForURL.d.ts.map

@@ -7,1 +7,2 @@ import { PrecacheController } from "../PrecacheController.js";

export declare const getOrCreatePrecacheController: () => PrecacheController;
//# sourceMappingURL=getOrCreatePrecacheController.d.ts.map

@@ -17,1 +17,2 @@ import type { SerwistPlugin } from "@serwist/core";

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

@@ -15,1 +15,2 @@ import type { SerwistPlugin } from "@serwist/core";

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

@@ -6,1 +6,2 @@ /**

export declare function printCleanupDetails(deletedURLs: string[]): void;
//# sourceMappingURL=printCleanupDetails.d.ts.map

@@ -7,1 +7,2 @@ /**

export declare function printInstallDetails(urlsToPrecache: string[], urlsAlreadyPrecached: string[]): void;
//# sourceMappingURL=printInstallDetails.d.ts.map

@@ -12,1 +12,2 @@ /**

export declare function removeIgnoredSearchParams(urlObject: URL, ignoreURLParametersMatching?: RegExp[]): URL;
//# sourceMappingURL=removeIgnoredSearchParams.d.ts.map
{
"name": "@serwist/precaching",
"version": "8.4.4",
"version": "9.0.0-preview.0",
"type": "module",
"description": "This module efficiently precaches assets.",
"files": [
"dist",
"!dist/**/dts"
"src",
"dist"
],

@@ -21,15 +21,8 @@ "keywords": [

"homepage": "https://serwist.pages.dev",
"module": "./dist/index.js",
"main": "./dist/index.cjs",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},

@@ -39,10 +32,19 @@ "./package.json": "./package.json"

"dependencies": {
"@serwist/core": "8.4.4",
"@serwist/routing": "8.4.4",
"@serwist/strategies": "8.4.4"
"@serwist/core": "9.0.0-preview.0",
"@serwist/routing": "9.0.0-preview.0",
"@serwist/strategies": "9.0.0-preview.0"
},
"devDependencies": {
"rollup": "4.9.1",
"@serwist/constants": "8.4.4"
"rollup": "4.9.6",
"typescript": "5.4.0-dev.20240203",
"@serwist/constants": "9.0.0-preview.0"
},
"peerDependencies": {
"typescript": ">=5.0.0"
},
"peerDependenciesMeta": {
"typescript": {
"optional": true
}
},
"scripts": {

@@ -49,0 +51,0 @@ "build": "rimraf dist && cross-env NODE_ENV=production rollup --config rollup.config.js",

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