New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@serwist/build

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@serwist/build - npm Package Compare versions

Comparing version 8.1.1 to 8.2.0

dist/index.cjs

20

dist/index.js

@@ -426,3 +426,11 @@ import assert from 'assert';

async function transformManifest({ additionalPrecacheEntries, dontCacheBustURLsMatching, fileDetails, manifestTransforms, maximumFileSizeToCacheInBytes, modifyURLPrefix, transformParam }) {
async function transformManifest({ additionalPrecacheEntries, dontCacheBustURLsMatching, fileDetails, manifestTransforms, maximumFileSizeToCacheInBytes, modifyURLPrefix, transformParam, disablePrecacheManifest }) {
if (disablePrecacheManifest) {
return {
count: 0,
size: 0,
manifestEntries: undefined,
warnings: []
};
}
const allWarnings = [];

@@ -481,3 +489,3 @@ // Take the array of fileDetail objects and convert it into an array of

async function getFileManifestEntries({ additionalPrecacheEntries, dontCacheBustURLsMatching, globDirectory, globFollow, globIgnores, globPatterns = [], globStrict, manifestTransforms, maximumFileSizeToCacheInBytes, modifyURLPrefix, templatedURLs }) {
async function getFileManifestEntries({ additionalPrecacheEntries, dontCacheBustURLsMatching, globDirectory, globFollow, globIgnores, globPatterns = [], globStrict, manifestTransforms, maximumFileSizeToCacheInBytes, modifyURLPrefix, templatedURLs, disablePrecacheManifest }) {
const warnings = [];

@@ -549,3 +557,4 @@ const allFileDetails = new Map();

modifyURLPrefix,
fileDetails: Array.from(allFileDetails.values())
fileDetails: Array.from(allFileDetails.values()),
disablePrecacheManifest
});

@@ -828,2 +837,7 @@ transformedManifest.warnings.push(...warnings);

type: "string"
},
disablePrecacheManifest: {
description: "Whether the precache manifest should be set to `undefined`.",
"default": false,
type: "boolean"
}

@@ -830,0 +844,0 @@ };

2

dist/lib/get-file-manifest-entries.d.ts
import type { GetManifestOptions, GetManifestResult } from "../types.js";
export declare function getFileManifestEntries({ additionalPrecacheEntries, dontCacheBustURLsMatching, globDirectory, globFollow, globIgnores, globPatterns, globStrict, manifestTransforms, maximumFileSizeToCacheInBytes, modifyURLPrefix, templatedURLs, }: GetManifestOptions): Promise<GetManifestResult>;
export declare function getFileManifestEntries({ additionalPrecacheEntries, dontCacheBustURLsMatching, globDirectory, globFollow, globIgnores, globPatterns, globStrict, manifestTransforms, maximumFileSizeToCacheInBytes, modifyURLPrefix, templatedURLs, disablePrecacheManifest, }: GetManifestOptions): Promise<GetManifestResult>;

@@ -53,6 +53,6 @@ import type { BasePartial, FileDetails, ManifestEntry } from "../types.js";

size: number;
manifestEntries: ManifestEntry[];
manifestEntries: ManifestEntry[] | undefined;
warnings: string[];
}
export declare function transformManifest({ additionalPrecacheEntries, dontCacheBustURLsMatching, fileDetails, manifestTransforms, maximumFileSizeToCacheInBytes, modifyURLPrefix, transformParam, }: BasePartial & {
export declare function transformManifest({ additionalPrecacheEntries, dontCacheBustURLsMatching, fileDetails, manifestTransforms, maximumFileSizeToCacheInBytes, modifyURLPrefix, transformParam, disablePrecacheManifest, }: BasePartial & {
fileDetails: Array<FileDetails>;

@@ -59,0 +59,0 @@ transformParam?: unknown;

@@ -237,2 +237,7 @@ export declare const optionsSchemas: {

};
disablePrecacheManifest: {
description: string;
default: boolean;
type: string;
};
};

@@ -239,0 +244,0 @@ required: string[];

@@ -134,2 +134,7 @@ import type { QueueOptions } from "@serwist/background-sync";

/**
* Whether the precache manifest should be set to `undefined`.
* @default false
*/
disablePrecacheManifest?: boolean;
/**
* Assets that match this will be assumed to be uniquely versioned via their

@@ -311,7 +316,2 @@ * URL, and exempted from the normal HTTP cache-busting that's done when

webpackCompilationPlugins?: Array<any>;
/**
* Whether the precache manifest should be set to `undefined`.
* @default false
*/
disablePrecacheManifest?: boolean;
}

@@ -323,3 +323,3 @@ export type GetManifestOptions = BasePartial & GlobPartial & RequiredGlobDirectoryPartial;

count: number;
manifestEntries: Array<ManifestEntry>;
manifestEntries: Array<ManifestEntry> | undefined;
size: number;

@@ -326,0 +326,0 @@ warnings: Array<string>;

{
"name": "@serwist/build",
"version": "8.1.1",
"version": "8.2.0",
"type": "module",

@@ -26,5 +26,5 @@ "description": "A module that integrates into your build process, helping you generate a manifest of local files that should be precached.",

"bugs": "https://github.com/serwist/serwist/issues",
"homepage": "https://ducanh-next-pwa.vercel.app",
"homepage": "https://serwist.vercel.app",
"module": "./dist/index.js",
"main": "./dist/index.old.cjs",
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",

@@ -38,4 +38,4 @@ "exports": {

"require": {
"types": "./dist/index.old.d.cts",
"default": "./dist/index.old.cjs"
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}

@@ -57,10 +57,10 @@ },

"upath": "2.0.1",
"@serwist/background-sync": "8.1.1",
"@serwist/broadcast-update": "8.1.1",
"@serwist/cacheable-response": "8.1.1",
"@serwist/core": "8.1.1",
"@serwist/expiration": "8.1.1",
"@serwist/google-analytics": "8.1.1",
"@serwist/precaching": "8.1.1",
"@serwist/routing": "8.1.1"
"@serwist/background-sync": "8.2.0",
"@serwist/broadcast-update": "8.2.0",
"@serwist/cacheable-response": "8.2.0",
"@serwist/core": "8.2.0",
"@serwist/expiration": "8.2.0",
"@serwist/google-analytics": "8.2.0",
"@serwist/precaching": "8.2.0",
"@serwist/routing": "8.2.0"
},

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

"type-fest": "4.8.3",
"@serwist/constants": "8.1.1"
"@serwist/constants": "8.2.0"
},

@@ -78,0 +78,0 @@ "scripts": {

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