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

@serwist/build

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

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

3

dist/chunks/webpack.js

@@ -24,4 +24,3 @@ import { z } from 'zod';

]), z.boolean())
])).optional(),
mode: z.string().nullable().optional()
])).optional()
}).strict("Do not pass invalid properties to WebpackPartial!");

@@ -28,0 +27,0 @@ const webpackInjectManifestPartial = z.object({

@@ -78,8 +78,2 @@ import stringify from 'fast-json-stable-stringify';

'templatedURLs'.`,
"invalid-runtime-caching": oneLine`The 'runtimeCaching' parameter must an an
array of objects with at least a 'urlPattern' and 'handler'.`,
"urlPattern-is-required": oneLine`The 'urlPattern' option is required when using
'runtimeCaching'.`,
"handler-is-required": oneLine`The 'handler' option is required when using
runtimeCaching.`,
"invalid-generate-file-manifest-arg": oneLine`The input to generateFileManifest()

@@ -86,0 +80,0 @@ must be an Object.`,

@@ -38,5 +38,2 @@ export declare const errors: {

"bad-template-urls-asset": string;
"invalid-runtime-caching": string;
"urlPattern-is-required": string;
"handler-is-required": string;
"invalid-generate-file-manifest-arg": string;

@@ -43,0 +40,0 @@ "invalid-sw-src": string;

@@ -135,3 +135,2 @@ import { z } from "zod";

include: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>, z.ZodFunction<z.ZodTuple<[z.ZodAny], null>, z.ZodBoolean>]>, "many">>;
mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
compileSrc: z.ZodDefault<z.ZodBoolean>;

@@ -192,3 +191,2 @@ webpackCompilationPlugins: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;

include?: (string | RegExp | ((args_0: any) => boolean))[] | undefined;
mode?: string | null | undefined;
webpackCompilationPlugins?: any[] | undefined;

@@ -234,3 +232,2 @@ scope?: string | undefined;

include?: (string | RegExp | ((args_0: any) => boolean))[] | undefined;
mode?: string | null | undefined;
compileSrc?: boolean | undefined;

@@ -237,0 +234,0 @@ webpackCompilationPlugins?: any[] | undefined;

@@ -7,3 +7,2 @@ import { z } from "zod";

include: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>, z.ZodFunction<z.ZodTuple<[z.ZodAny], null>, z.ZodBoolean>]>, "many">>;
mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, "strict", z.ZodTypeAny, {

@@ -14,3 +13,2 @@ exclude: (string | RegExp | ((args_0: any) => boolean))[];

include?: (string | RegExp | ((args_0: any) => boolean))[] | undefined;
mode?: string | null | undefined;
}, {

@@ -21,3 +19,2 @@ chunks?: string[] | undefined;

include?: (string | RegExp | ((args_0: any) => boolean))[] | undefined;
mode?: string | null | undefined;
}>;

@@ -145,3 +142,2 @@ export declare const webpackInjectManifestPartial: z.ZodObject<{

include: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>, z.ZodFunction<z.ZodTuple<[z.ZodAny], null>, z.ZodBoolean>]>, "many">>;
mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
compileSrc: z.ZodDefault<z.ZodBoolean>;

@@ -189,3 +185,2 @@ swDest: z.ZodOptional<z.ZodString>;

include?: (string | RegExp | ((args_0: any) => boolean))[] | undefined;
mode?: string | null | undefined;
swDest?: string | undefined;

@@ -231,3 +226,2 @@ webpackCompilationPlugins?: any[] | undefined;

include?: (string | RegExp | ((args_0: any) => boolean))[] | undefined;
mode?: string | null | undefined;
compileSrc?: boolean | undefined;

@@ -234,0 +228,0 @@ swDest?: string | undefined;

@@ -177,9 +177,2 @@ import type { Require } from "@serwist/utils";

include?: (string | RegExp | ((arg0: any) => boolean))[];
/**
* If set to 'production', then an optimized service worker bundle that
* excludes debugging info will be produced. If not explicitly configured
* here, the `mode` value configured in the current `webpack` compilation
* will be used.
*/
mode?: string | null;
}

@@ -186,0 +179,0 @@ export type WebpackResolved = Require<WebpackPartial, "exclude">;

{
"name": "@serwist/build",
"version": "9.0.0-preview.4",
"version": "9.0.0-preview.5",
"type": "module",

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

"zod": "3.22.4",
"@serwist/background-sync": "9.0.0-preview.4",
"@serwist/broadcast-update": "9.0.0-preview.4",
"@serwist/cacheable-response": "9.0.0-preview.4",
"@serwist/core": "9.0.0-preview.4",
"@serwist/expiration": "9.0.0-preview.4",
"@serwist/google-analytics": "9.0.0-preview.4",
"@serwist/precaching": "9.0.0-preview.4",
"@serwist/routing": "9.0.0-preview.4"
"@serwist/background-sync": "9.0.0-preview.5",
"@serwist/broadcast-update": "9.0.0-preview.5",
"@serwist/cacheable-response": "9.0.0-preview.5",
"@serwist/core": "9.0.0-preview.5",
"@serwist/expiration": "9.0.0-preview.5",
"@serwist/google-analytics": "9.0.0-preview.5",
"@serwist/precaching": "9.0.0-preview.5",
"@serwist/routing": "9.0.0-preview.5"
},

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

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

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

@@ -75,8 +75,2 @@ /*

'templatedURLs'.`,
"invalid-runtime-caching": ol`The 'runtimeCaching' parameter must an an
array of objects with at least a 'urlPattern' and 'handler'.`,
"urlPattern-is-required": ol`The 'urlPattern' option is required when using
'runtimeCaching'.`,
"handler-is-required": ol`The 'handler' option is required when using
runtimeCaching.`,
"invalid-generate-file-manifest-arg": ol`The input to generateFileManifest()

@@ -83,0 +77,0 @@ must be an Object.`,

@@ -23,3 +23,2 @@ import { z } from "zod";

include: z.array(z.union([z.string(), z.instanceof(RegExp), z.function(z.tuple([z.any()]), z.boolean())])).optional(),
mode: z.string().nullable().optional(),
})

@@ -43,3 +42,3 @@ .strict("Do not pass invalid properties to WebpackPartial!");

assertType<Equals<WebpackPartial, z.input<typeof webpackPartial>>>();
assertType<Equals<z.input<typeof webpackPartial>, WebpackPartial>>();
assertType<Equals<WebpackResolved, z.output<typeof webpackPartial>>>();

@@ -46,0 +45,0 @@ assertType<Equals<WebpackInjectManifestPartial, z.input<typeof webpackInjectManifestPartial>>>();

@@ -197,9 +197,2 @@ import type { Require } from "@serwist/utils";

include?: (string | RegExp | ((arg0: any) => boolean))[];
/**
* If set to 'production', then an optimized service worker bundle that
* excludes debugging info will be produced. If not explicitly configured
* here, the `mode` value configured in the current `webpack` compilation
* will be used.
*/
mode?: string | null;
}

@@ -206,0 +199,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