@serwist/turbopack 9.5.7 → 9.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/chunks/index.schema-RVDaKxz4.js +189 -0
  2. package/dist/chunks/index.schema-RVDaKxz4.js.map +1 -0
  3. package/dist/index.d.mts +96 -0
  4. package/dist/index.d.mts.map +1 -0
  5. package/dist/index.mjs +166 -0
  6. package/dist/index.mjs.map +1 -0
  7. package/dist/index.react.d.mts +42 -0
  8. package/dist/index.react.d.mts.map +1 -0
  9. package/dist/index.react.mjs +73 -0
  10. package/dist/index.react.mjs.map +1 -0
  11. package/dist/index.schema.d.mts +311 -0
  12. package/dist/index.schema.d.mts.map +1 -0
  13. package/dist/index.schema.mjs +2 -0
  14. package/dist/index.worker.d.mts +18 -0
  15. package/dist/index.worker.d.mts.map +1 -0
  16. package/dist/index.worker.mjs +227 -0
  17. package/dist/index.worker.mjs.map +1 -0
  18. package/package.json +31 -32
  19. package/dist/chunks/index.schema.js +0 -185
  20. package/dist/index.d.ts +0 -22
  21. package/dist/index.d.ts.map +0 -1
  22. package/dist/index.js +0 -190
  23. package/dist/index.react.d.ts +0 -25
  24. package/dist/index.react.d.ts.map +0 -1
  25. package/dist/index.react.js +0 -88
  26. package/dist/index.schema.d.ts +0 -301
  27. package/dist/index.schema.d.ts.map +0 -1
  28. package/dist/index.schema.js +0 -8
  29. package/dist/index.worker.d.ts +0 -14
  30. package/dist/index.worker.d.ts.map +0 -1
  31. package/dist/index.worker.js +0 -261
  32. package/dist/lib/constants.d.ts +0 -2
  33. package/dist/lib/constants.d.ts.map +0 -1
  34. package/dist/lib/context.d.ts +0 -7
  35. package/dist/lib/context.d.ts.map +0 -1
  36. package/dist/lib/index.d.ts +0 -3
  37. package/dist/lib/index.d.ts.map +0 -1
  38. package/dist/lib/logger.d.ts +0 -8
  39. package/dist/lib/logger.d.ts.map +0 -1
  40. package/dist/lib/utils.d.ts +0 -3
  41. package/dist/lib/utils.d.ts.map +0 -1
  42. package/dist/types.d.ts +0 -72
  43. package/dist/types.d.ts.map +0 -1
@@ -1,301 +0,0 @@
1
- import z from "zod";
2
- export declare const turboPartial: z.ZodObject<{
3
- cwd: z.ZodPrefault<z.ZodString>;
4
- nextConfig: z.ZodOptional<z.ZodObject<{
5
- assetPrefix: z.ZodOptional<z.ZodString>;
6
- basePath: z.ZodOptional<z.ZodString>;
7
- distDir: z.ZodOptional<z.ZodString>;
8
- }, z.z.core.$strip>>;
9
- useNativeEsbuild: z.ZodPrefault<z.ZodBoolean>;
10
- rebuildOnChange: z.ZodPrefault<z.ZodBoolean>;
11
- esbuildOptions: z.ZodPrefault<z.ZodRecord<z.ZodLiteral<"bundle" | "splitting" | "preserveSymlinks" | "external" | "packages" | "alias" | "loader" | "resolveExtensions" | "mainFields" | "conditions" | "allowOverwrite" | "tsconfig" | "outExtension" | "publicPath" | "inject" | "banner" | "footer" | "plugins" | "sourcemap" | "legalComments" | "sourceRoot" | "sourcesContent" | "format" | "globalName" | "target" | "supported" | "mangleProps" | "reserveProps" | "mangleQuoted" | "mangleCache" | "drop" | "dropLabels" | "minify" | "minifyWhitespace" | "minifyIdentifiers" | "minifySyntax" | "lineLimit" | "charset" | "treeShaking" | "ignoreAnnotations" | "jsx" | "jsxFactory" | "jsxFragment" | "jsxImportSource" | "jsxDev" | "jsxSideEffects" | "define" | "pure" | "keepNames" | "absPaths" | "color" | "logLevel" | "logLimit" | "logOverride" | "tsconfigRaw"> & z.z.core.$partial, z.ZodAny>>;
12
- }, z.z.core.$strict>;
13
- export declare const injectManifestOptions: z.ZodPipe<z.ZodObject<{
14
- cwd: z.ZodPrefault<z.ZodString>;
15
- useNativeEsbuild: z.ZodPrefault<z.ZodBoolean>;
16
- rebuildOnChange: z.ZodPrefault<z.ZodBoolean>;
17
- esbuildOptions: z.ZodPrefault<z.ZodRecord<z.ZodLiteral<"bundle" | "splitting" | "preserveSymlinks" | "external" | "packages" | "alias" | "loader" | "resolveExtensions" | "mainFields" | "conditions" | "allowOverwrite" | "tsconfig" | "outExtension" | "publicPath" | "inject" | "banner" | "footer" | "plugins" | "sourcemap" | "legalComments" | "sourceRoot" | "sourcesContent" | "format" | "globalName" | "target" | "supported" | "mangleProps" | "reserveProps" | "mangleQuoted" | "mangleCache" | "drop" | "dropLabels" | "minify" | "minifyWhitespace" | "minifyIdentifiers" | "minifySyntax" | "lineLimit" | "charset" | "treeShaking" | "ignoreAnnotations" | "jsx" | "jsxFactory" | "jsxFragment" | "jsxImportSource" | "jsxDev" | "jsxSideEffects" | "define" | "pure" | "keepNames" | "absPaths" | "color" | "logLevel" | "logLimit" | "logOverride" | "tsconfigRaw"> & z.z.core.$partial, z.ZodAny>>;
18
- nextConfig: z.ZodOptional<z.ZodObject<{
19
- assetPrefix: z.ZodOptional<z.ZodString>;
20
- basePath: z.ZodOptional<z.ZodString>;
21
- distDir: z.ZodOptional<z.ZodString>;
22
- }, z.z.core.$strip>>;
23
- additionalPrecacheEntries: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
24
- integrity: z.ZodOptional<z.ZodString>;
25
- revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
- url: z.ZodString;
27
- }, z.z.core.$strict>]>>>;
28
- dontCacheBustURLsMatching: z.ZodOptional<z.ZodCustom<RegExp, RegExp>>;
29
- manifestTransforms: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodCustom<z.z.core.$InferInnerFunctionTypeAsync<z.ZodTuple<[z.ZodArray<z.ZodObject<{
30
- size: z.ZodNumber;
31
- integrity: z.ZodOptional<z.ZodString>;
32
- revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
- url: z.ZodString;
34
- }, z.z.core.$strip>>, z.ZodOptional<z.ZodUnknown>], null>, z.ZodObject<{
35
- manifest: z.ZodArray<z.ZodObject<{
36
- size: z.ZodNumber;
37
- integrity: z.ZodOptional<z.ZodString>;
38
- revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
- url: z.ZodString;
40
- }, z.z.core.$strip>>;
41
- warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
42
- }, z.z.core.$strict>>, z.z.core.$InferInnerFunctionTypeAsync<z.ZodTuple<[z.ZodArray<z.ZodObject<{
43
- size: z.ZodNumber;
44
- integrity: z.ZodOptional<z.ZodString>;
45
- revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
- url: z.ZodString;
47
- }, z.z.core.$strip>>, z.ZodOptional<z.ZodUnknown>], null>, z.ZodObject<{
48
- manifest: z.ZodArray<z.ZodObject<{
49
- size: z.ZodNumber;
50
- integrity: z.ZodOptional<z.ZodString>;
51
- revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
- url: z.ZodString;
53
- }, z.z.core.$strip>>;
54
- warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
55
- }, z.z.core.$strict>>>, z.ZodTransform<z.z.core.$InferOuterFunctionTypeAsync<z.ZodTuple<[z.ZodArray<z.ZodObject<{
56
- size: z.ZodNumber;
57
- integrity: z.ZodOptional<z.ZodString>;
58
- revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
- url: z.ZodString;
60
- }, z.z.core.$strip>>, z.ZodOptional<z.ZodUnknown>], null>, z.ZodObject<{
61
- manifest: z.ZodArray<z.ZodObject<{
62
- size: z.ZodNumber;
63
- integrity: z.ZodOptional<z.ZodString>;
64
- revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
- url: z.ZodString;
66
- }, z.z.core.$strip>>;
67
- warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
68
- }, z.z.core.$strict>>, z.z.core.$InferInnerFunctionTypeAsync<z.ZodTuple<[z.ZodArray<z.ZodObject<{
69
- size: z.ZodNumber;
70
- integrity: z.ZodOptional<z.ZodString>;
71
- revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
- url: z.ZodString;
73
- }, z.z.core.$strip>>, z.ZodOptional<z.ZodUnknown>], null>, z.ZodObject<{
74
- manifest: z.ZodArray<z.ZodObject<{
75
- size: z.ZodNumber;
76
- integrity: z.ZodOptional<z.ZodString>;
77
- revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
- url: z.ZodString;
79
- }, z.z.core.$strip>>;
80
- warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
81
- }, z.z.core.$strict>>>>>>;
82
- maximumFileSizeToCacheInBytes: z.ZodDefault<z.ZodNumber>;
83
- modifyURLPrefix: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
84
- globFollow: z.ZodDefault<z.ZodBoolean>;
85
- globIgnores: z.ZodDefault<z.ZodArray<z.ZodString>>;
86
- globPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
87
- globStrict: z.ZodDefault<z.ZodBoolean>;
88
- templatedURLs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
89
- injectionPoint: z.ZodDefault<z.ZodString>;
90
- swSrc: z.ZodString;
91
- globDirectory: z.ZodOptional<z.ZodString>;
92
- }, z.z.core.$strict>, z.ZodTransform<{
93
- swSrc: string;
94
- globPatterns: string[];
95
- globDirectory: string;
96
- dontCacheBustURLsMatching: RegExp;
97
- nextConfig: {
98
- distDir: string;
99
- basePath: string;
100
- assetPrefix: string;
101
- allowedDevOrigins: string[];
102
- exportPathMap: (defaultMap: import("next/dist/server/config-shared.js").ExportPathMap, ctx: {
103
- dev: boolean;
104
- dir: string;
105
- outDir: string | null;
106
- distDir: string;
107
- buildId: string;
108
- }) => Promise<import("next/dist/server/config-shared.js").ExportPathMap> | import("next/dist/server/config-shared.js").ExportPathMap;
109
- i18n: import("next/dist/server/config-shared.js").I18NConfig | null;
110
- typescript: import("next/dist/server/config-shared.js").TypeScriptConfig;
111
- typedRoutes: boolean;
112
- headers: () => Promise<import("next/dist/lib/load-custom-routes.js").Header[]> | import("next/dist/lib/load-custom-routes.js").Header[];
113
- rewrites: () => Promise<import("next/dist/lib/load-custom-routes.js").Rewrite[] | {
114
- beforeFiles?: import("next/dist/lib/load-custom-routes.js").Rewrite[];
115
- afterFiles?: import("next/dist/lib/load-custom-routes.js").Rewrite[];
116
- fallback?: import("next/dist/lib/load-custom-routes.js").Rewrite[];
117
- }> | import("next/dist/lib/load-custom-routes.js").Rewrite[] | {
118
- beforeFiles?: import("next/dist/lib/load-custom-routes.js").Rewrite[];
119
- afterFiles?: import("next/dist/lib/load-custom-routes.js").Rewrite[];
120
- fallback?: import("next/dist/lib/load-custom-routes.js").Rewrite[];
121
- };
122
- redirects: () => Promise<import("next/dist/lib/load-custom-routes.js").Redirect[]> | import("next/dist/lib/load-custom-routes.js").Redirect[];
123
- excludeDefaultMomentLocales: boolean;
124
- webpack: import("next/dist/server/config-shared.js").NextJsWebpackConfig | null;
125
- trailingSlash: boolean;
126
- env: Record<string, string | undefined>;
127
- cleanDistDir: boolean;
128
- cacheHandler: string;
129
- cacheHandlers: {
130
- default?: string;
131
- remote?: string;
132
- static?: string;
133
- [handlerName: string]: string | undefined;
134
- };
135
- cacheMaxMemorySize: number;
136
- useFileSystemPublicRoutes: boolean;
137
- generateBuildId: () => string | null | Promise<string | null>;
138
- generateEtags: boolean;
139
- pageExtensions: string[];
140
- compress: boolean;
141
- poweredByHeader: boolean;
142
- images: Partial<import("next/dist/shared/lib/image-config.js").ImageConfigComplete> & Required<import("next/dist/shared/lib/image-config.js").ImageConfigComplete>;
143
- devIndicators: false | {
144
- position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
145
- };
146
- onDemandEntries: {
147
- maxInactiveAge?: number;
148
- pagesBufferLength?: number;
149
- };
150
- deploymentId: string;
151
- sassOptions: {
152
- implementation?: string;
153
- [key: string]: any;
154
- };
155
- productionBrowserSourceMaps: boolean;
156
- reactCompiler: boolean | import("next/dist/server/config-shared.js").ReactCompilerOptions;
157
- reactProductionProfiling: boolean;
158
- reactStrictMode: boolean | null;
159
- reactMaxHeadersLength: number;
160
- httpAgentOptions: {
161
- keepAlive?: boolean;
162
- };
163
- staticPageGenerationTimeout: number;
164
- crossOrigin: "anonymous" | "use-credentials";
165
- compiler: {
166
- reactRemoveProperties?: boolean | {
167
- properties?: string[];
168
- };
169
- relay?: {
170
- src: string;
171
- artifactDirectory?: string;
172
- language?: "typescript" | "javascript" | "flow";
173
- eagerEsModules?: boolean;
174
- };
175
- removeConsole?: boolean | {
176
- exclude?: string[];
177
- };
178
- styledComponents?: boolean | import("next/dist/server/config-shared.js").StyledComponentsConfig;
179
- emotion?: boolean | import("next/dist/server/config-shared.js").EmotionConfig;
180
- styledJsx?: boolean | {
181
- useLightningcss?: boolean;
182
- };
183
- define?: Record<string, string>;
184
- defineServer?: Record<string, string>;
185
- runAfterProductionCompile?: (metadata: {
186
- projectDir: string;
187
- distDir: string;
188
- }) => Promise<void>;
189
- };
190
- output: "standalone" | "export";
191
- transpilePackages: string[];
192
- turbopack: import("next/dist/server/config-shared.js").TurbopackOptions;
193
- skipMiddlewareUrlNormalize: boolean;
194
- skipProxyUrlNormalize: boolean;
195
- skipTrailingSlashRedirect: boolean;
196
- modularizeImports: Record<string, {
197
- transform: string | Record<string, string>;
198
- preventFullImport?: boolean;
199
- skipDefaultConversion?: boolean;
200
- }>;
201
- logging: import("next/dist/server/config-shared.js").LoggingConfig | false;
202
- enablePrerenderSourceMaps: boolean;
203
- cacheComponents: boolean;
204
- cacheLife: {
205
- [profile: string]: {
206
- stale?: number;
207
- revalidate?: number;
208
- expire?: number;
209
- };
210
- };
211
- expireTime: number;
212
- experimental: import("next/dist/server/config-shared.js").ExperimentalConfig;
213
- bundlePagesRouterDependencies: boolean;
214
- serverExternalPackages: string[];
215
- outputFileTracingRoot: string;
216
- outputFileTracingExcludes: Record<string, string[]>;
217
- outputFileTracingIncludes: Record<string, string[]>;
218
- watchOptions: {
219
- pollIntervalMs?: number;
220
- };
221
- htmlLimitedBots: RegExp & string;
222
- configFile: string | undefined;
223
- configFileName: string;
224
- distDirRoot: string;
225
- } | {
226
- distDir: string;
227
- basePath: string;
228
- assetPrefix: string;
229
- };
230
- cwd: string;
231
- useNativeEsbuild: boolean;
232
- rebuildOnChange: boolean;
233
- esbuildOptions: Partial<Record<"bundle" | "splitting" | "preserveSymlinks" | "external" | "packages" | "alias" | "loader" | "resolveExtensions" | "mainFields" | "conditions" | "allowOverwrite" | "tsconfig" | "outExtension" | "publicPath" | "inject" | "banner" | "footer" | "plugins" | "sourcemap" | "legalComments" | "sourceRoot" | "sourcesContent" | "format" | "globalName" | "target" | "supported" | "mangleProps" | "reserveProps" | "mangleQuoted" | "mangleCache" | "drop" | "dropLabels" | "minify" | "minifyWhitespace" | "minifyIdentifiers" | "minifySyntax" | "lineLimit" | "charset" | "treeShaking" | "ignoreAnnotations" | "jsx" | "jsxFactory" | "jsxFragment" | "jsxImportSource" | "jsxDev" | "jsxSideEffects" | "define" | "pure" | "keepNames" | "absPaths" | "color" | "logLevel" | "logLimit" | "logOverride" | "tsconfigRaw", any>>;
234
- maximumFileSizeToCacheInBytes: number;
235
- globFollow: boolean;
236
- globIgnores: string[];
237
- globStrict: boolean;
238
- injectionPoint: string;
239
- additionalPrecacheEntries?: (string | {
240
- url: string;
241
- integrity?: string | undefined;
242
- revision?: string | null | undefined;
243
- })[] | undefined;
244
- manifestTransforms?: z.z.core.$InferOuterFunctionTypeAsync<z.ZodTuple<[z.ZodArray<z.ZodObject<{
245
- size: z.ZodNumber;
246
- integrity: z.ZodOptional<z.ZodString>;
247
- revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
248
- url: z.ZodString;
249
- }, z.z.core.$strip>>, z.ZodOptional<z.ZodUnknown>], null>, z.ZodObject<{
250
- manifest: z.ZodArray<z.ZodObject<{
251
- size: z.ZodNumber;
252
- integrity: z.ZodOptional<z.ZodString>;
253
- revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
254
- url: z.ZodString;
255
- }, z.z.core.$strip>>;
256
- warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
257
- }, z.z.core.$strict>>[] | undefined;
258
- modifyURLPrefix?: Record<string, string> | undefined;
259
- templatedURLs?: Record<string, string | string[]> | undefined;
260
- }, {
261
- cwd: string;
262
- useNativeEsbuild: boolean;
263
- rebuildOnChange: boolean;
264
- esbuildOptions: Partial<Record<"bundle" | "splitting" | "preserveSymlinks" | "external" | "packages" | "alias" | "loader" | "resolveExtensions" | "mainFields" | "conditions" | "allowOverwrite" | "tsconfig" | "outExtension" | "publicPath" | "inject" | "banner" | "footer" | "plugins" | "sourcemap" | "legalComments" | "sourceRoot" | "sourcesContent" | "format" | "globalName" | "target" | "supported" | "mangleProps" | "reserveProps" | "mangleQuoted" | "mangleCache" | "drop" | "dropLabels" | "minify" | "minifyWhitespace" | "minifyIdentifiers" | "minifySyntax" | "lineLimit" | "charset" | "treeShaking" | "ignoreAnnotations" | "jsx" | "jsxFactory" | "jsxFragment" | "jsxImportSource" | "jsxDev" | "jsxSideEffects" | "define" | "pure" | "keepNames" | "absPaths" | "color" | "logLevel" | "logLimit" | "logOverride" | "tsconfigRaw", any>>;
265
- maximumFileSizeToCacheInBytes: number;
266
- globFollow: boolean;
267
- globIgnores: string[];
268
- globStrict: boolean;
269
- injectionPoint: string;
270
- swSrc: string;
271
- nextConfig?: {
272
- assetPrefix?: string | undefined;
273
- basePath?: string | undefined;
274
- distDir?: string | undefined;
275
- } | undefined;
276
- additionalPrecacheEntries?: (string | {
277
- url: string;
278
- integrity?: string | undefined;
279
- revision?: string | null | undefined;
280
- })[] | undefined;
281
- dontCacheBustURLsMatching?: RegExp | undefined;
282
- manifestTransforms?: z.z.core.$InferOuterFunctionTypeAsync<z.ZodTuple<[z.ZodArray<z.ZodObject<{
283
- size: z.ZodNumber;
284
- integrity: z.ZodOptional<z.ZodString>;
285
- revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
286
- url: z.ZodString;
287
- }, z.z.core.$strip>>, z.ZodOptional<z.ZodUnknown>], null>, z.ZodObject<{
288
- manifest: z.ZodArray<z.ZodObject<{
289
- size: z.ZodNumber;
290
- integrity: z.ZodOptional<z.ZodString>;
291
- revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
292
- url: z.ZodString;
293
- }, z.z.core.$strip>>;
294
- warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
295
- }, z.z.core.$strict>>[] | undefined;
296
- modifyURLPrefix?: Record<string, string> | undefined;
297
- globPatterns?: string[] | undefined;
298
- templatedURLs?: Record<string, string | string[]> | undefined;
299
- globDirectory?: string | undefined;
300
- }>>;
301
- //# sourceMappingURL=index.schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.schema.d.ts","sourceRoot":"","sources":["../src/index.schema.ts"],"names":[],"mappings":"AAGA,OAAO,CAAC,MAAM,KAAK,CAAC;AAMpB,eAAO,MAAM,YAAY;;;;;;;;;;oBAYvB,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA8C6o0B,CAAC;sBAA+B,CAAC;oBAA6B,CAAC;;uBAAuD,CAAC;sBAA+B,CAAC;oBAA6B,CAAC;;;;;;;;;;mBAA+5E,CAAC;kBAAwB,CAAC;kBAAwB,CAAC;;;;;;;;;;;;oBAAo9D,CAAC;;;0BAAie,CAAC;6BAA4H,CAAC;;;;0BAAkiB,CAAC;;;;;;;;;qBAA4+C,CAAC;;;;;iCAA+sB,CAAC;0BAAoC,CAAC;;iBAAoC,CAAC;;iCAA0D,CAAC;wBAA8B,CAAC;8BAAkE,CAAC;;yBAA2C,CAAC;uBAAiC,CAAC;;4BAA+C,CAAC;mBAAmD,CAAC;qBAA4C,CAAC;+BAAyC,CAAC;;kBAA6L,CAAC;wBAAsO,CAAC;qCAA2R,CAAC;;;;;;;;;;;;;6BAAm0D,CAAC;iCAAwC,CAAC;;;;;;;qBAAowB,CAAC;0BAAgC,CAAC;sBAA4B,CAAC;;;;;;;;;;;0BAA21C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GANnwuC,CAAC"}
@@ -1,8 +0,0 @@
1
- import 'node:path';
2
- import '@serwist/build/schema';
3
- import 'semver';
4
- import 'zod';
5
- export { i as injectManifestOptions, t as turboPartial } from './chunks/index.schema.js';
6
- import 'node:module';
7
- import 'kolorist';
8
- import 'next/constants.js';
@@ -1,14 +0,0 @@
1
- import type { RuntimeCaching } from "serwist";
2
- export declare const PAGES_CACHE_NAME: {
3
- readonly rscPrefetch: "pages-rsc-prefetch";
4
- readonly rsc: "pages-rsc";
5
- readonly html: "pages";
6
- };
7
- /**
8
- * The default, recommended list of caching strategies for applications
9
- * built with Next.js.
10
- *
11
- * @see https://serwist.pages.dev/docs/next/worker-exports#default-cache
12
- */
13
- export declare const defaultCache: RuntimeCaching[];
14
- //# sourceMappingURL=index.worker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.worker.d.ts","sourceRoot":"","sources":["../src/index.worker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAG9C,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,cAAc,EAkQlC,CAAC"}
@@ -1,261 +0,0 @@
1
- import { NetworkOnly, CacheFirst, StaleWhileRevalidate, NetworkFirst, ExpirationPlugin, RangeRequestsPlugin } from 'serwist';
2
-
3
- const PAGES_CACHE_NAME = {
4
- rscPrefetch: "pages-rsc-prefetch",
5
- rsc: "pages-rsc",
6
- html: "pages"
7
- };
8
- const defaultCache = process.env.NODE_ENV !== "production" ? [
9
- {
10
- matcher: /.*/i,
11
- handler: new NetworkOnly()
12
- }
13
- ] : [
14
- {
15
- matcher: /^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,
16
- handler: new CacheFirst({
17
- cacheName: "google-fonts-webfonts",
18
- plugins: [
19
- new ExpirationPlugin({
20
- maxEntries: 4,
21
- maxAgeSeconds: 365 * 24 * 60 * 60,
22
- maxAgeFrom: "last-used"
23
- })
24
- ]
25
- })
26
- },
27
- {
28
- matcher: /^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,
29
- handler: new StaleWhileRevalidate({
30
- cacheName: "google-fonts-stylesheets",
31
- plugins: [
32
- new ExpirationPlugin({
33
- maxEntries: 4,
34
- maxAgeSeconds: 7 * 24 * 60 * 60,
35
- maxAgeFrom: "last-used"
36
- })
37
- ]
38
- })
39
- },
40
- {
41
- matcher: /\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,
42
- handler: new StaleWhileRevalidate({
43
- cacheName: "static-font-assets",
44
- plugins: [
45
- new ExpirationPlugin({
46
- maxEntries: 4,
47
- maxAgeSeconds: 7 * 24 * 60 * 60,
48
- maxAgeFrom: "last-used"
49
- })
50
- ]
51
- })
52
- },
53
- {
54
- matcher: /\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,
55
- handler: new StaleWhileRevalidate({
56
- cacheName: "static-image-assets",
57
- plugins: [
58
- new ExpirationPlugin({
59
- maxEntries: 64,
60
- maxAgeSeconds: 30 * 24 * 60 * 60,
61
- maxAgeFrom: "last-used"
62
- })
63
- ]
64
- })
65
- },
66
- {
67
- matcher: /\/_next\/static.+\.js$/i,
68
- handler: new CacheFirst({
69
- cacheName: "next-static-js-assets",
70
- plugins: [
71
- new ExpirationPlugin({
72
- maxEntries: 64,
73
- maxAgeSeconds: 24 * 60 * 60,
74
- maxAgeFrom: "last-used"
75
- })
76
- ]
77
- })
78
- },
79
- {
80
- matcher: /\/_next\/image\?url=.+$/i,
81
- handler: new StaleWhileRevalidate({
82
- cacheName: "next-image",
83
- plugins: [
84
- new ExpirationPlugin({
85
- maxEntries: 64,
86
- maxAgeSeconds: 24 * 60 * 60,
87
- maxAgeFrom: "last-used"
88
- })
89
- ]
90
- })
91
- },
92
- {
93
- matcher: /\.(?:mp3|wav|ogg)$/i,
94
- handler: new CacheFirst({
95
- cacheName: "static-audio-assets",
96
- plugins: [
97
- new ExpirationPlugin({
98
- maxEntries: 32,
99
- maxAgeSeconds: 24 * 60 * 60,
100
- maxAgeFrom: "last-used"
101
- }),
102
- new RangeRequestsPlugin()
103
- ]
104
- })
105
- },
106
- {
107
- matcher: /\.(?:mp4|webm)$/i,
108
- handler: new CacheFirst({
109
- cacheName: "static-video-assets",
110
- plugins: [
111
- new ExpirationPlugin({
112
- maxEntries: 32,
113
- maxAgeSeconds: 24 * 60 * 60,
114
- maxAgeFrom: "last-used"
115
- }),
116
- new RangeRequestsPlugin()
117
- ]
118
- })
119
- },
120
- {
121
- matcher: /\.(?:js)$/i,
122
- handler: new StaleWhileRevalidate({
123
- cacheName: "static-js-assets",
124
- plugins: [
125
- new ExpirationPlugin({
126
- maxEntries: 48,
127
- maxAgeSeconds: 24 * 60 * 60,
128
- maxAgeFrom: "last-used"
129
- })
130
- ]
131
- })
132
- },
133
- {
134
- matcher: /\.(?:css|less)$/i,
135
- handler: new StaleWhileRevalidate({
136
- cacheName: "static-style-assets",
137
- plugins: [
138
- new ExpirationPlugin({
139
- maxEntries: 32,
140
- maxAgeSeconds: 24 * 60 * 60,
141
- maxAgeFrom: "last-used"
142
- })
143
- ]
144
- })
145
- },
146
- {
147
- matcher: /\/_next\/data\/.+\/.+\.json$/i,
148
- handler: new NetworkFirst({
149
- cacheName: "next-data",
150
- plugins: [
151
- new ExpirationPlugin({
152
- maxEntries: 32,
153
- maxAgeSeconds: 24 * 60 * 60,
154
- maxAgeFrom: "last-used"
155
- })
156
- ]
157
- })
158
- },
159
- {
160
- matcher: /\.(?:json|xml|csv)$/i,
161
- handler: new NetworkFirst({
162
- cacheName: "static-data-assets",
163
- plugins: [
164
- new ExpirationPlugin({
165
- maxEntries: 32,
166
- maxAgeSeconds: 24 * 60 * 60,
167
- maxAgeFrom: "last-used"
168
- })
169
- ]
170
- })
171
- },
172
- {
173
- matcher: /\/api\/auth\/.*/,
174
- handler: new NetworkOnly({
175
- networkTimeoutSeconds: 10
176
- })
177
- },
178
- {
179
- matcher: ({ sameOrigin, url: { pathname } })=>sameOrigin && pathname.startsWith("/api/"),
180
- method: "GET",
181
- handler: new NetworkFirst({
182
- cacheName: "apis",
183
- plugins: [
184
- new ExpirationPlugin({
185
- maxEntries: 16,
186
- maxAgeSeconds: 24 * 60 * 60,
187
- maxAgeFrom: "last-used"
188
- })
189
- ],
190
- networkTimeoutSeconds: 10
191
- })
192
- },
193
- {
194
- matcher: ({ request, url: { pathname }, sameOrigin })=>request.headers.get("RSC") === "1" && request.headers.get("Next-Router-Prefetch") === "1" && sameOrigin && !pathname.startsWith("/api/"),
195
- handler: new NetworkFirst({
196
- cacheName: PAGES_CACHE_NAME.rscPrefetch,
197
- plugins: [
198
- new ExpirationPlugin({
199
- maxEntries: 32,
200
- maxAgeSeconds: 24 * 60 * 60
201
- })
202
- ]
203
- })
204
- },
205
- {
206
- matcher: ({ request, url: { pathname }, sameOrigin })=>request.headers.get("RSC") === "1" && sameOrigin && !pathname.startsWith("/api/"),
207
- handler: new NetworkFirst({
208
- cacheName: PAGES_CACHE_NAME.rsc,
209
- plugins: [
210
- new ExpirationPlugin({
211
- maxEntries: 32,
212
- maxAgeSeconds: 24 * 60 * 60
213
- })
214
- ]
215
- })
216
- },
217
- {
218
- matcher: ({ request, url: { pathname }, sameOrigin })=>request.headers.get("Content-Type")?.includes("text/html") && sameOrigin && !pathname.startsWith("/api/"),
219
- handler: new NetworkFirst({
220
- cacheName: PAGES_CACHE_NAME.html,
221
- plugins: [
222
- new ExpirationPlugin({
223
- maxEntries: 32,
224
- maxAgeSeconds: 24 * 60 * 60
225
- })
226
- ]
227
- })
228
- },
229
- {
230
- matcher: ({ url: { pathname }, sameOrigin })=>sameOrigin && !pathname.startsWith("/api/"),
231
- handler: new NetworkFirst({
232
- cacheName: "others",
233
- plugins: [
234
- new ExpirationPlugin({
235
- maxEntries: 32,
236
- maxAgeSeconds: 24 * 60 * 60
237
- })
238
- ]
239
- })
240
- },
241
- {
242
- matcher: ({ sameOrigin })=>!sameOrigin,
243
- handler: new NetworkFirst({
244
- cacheName: "cross-origin",
245
- plugins: [
246
- new ExpirationPlugin({
247
- maxEntries: 32,
248
- maxAgeSeconds: 60 * 60
249
- })
250
- ],
251
- networkTimeoutSeconds: 10
252
- })
253
- },
254
- {
255
- matcher: /.*/i,
256
- method: "GET",
257
- handler: new NetworkOnly()
258
- }
259
- ];
260
-
261
- export { PAGES_CACHE_NAME, defaultCache };
@@ -1,2 +0,0 @@
1
- export declare const SUPPORTED_ESBUILD_OPTIONS: readonly ["sourcemap", "legalComments", "sourceRoot", "sourcesContent", "format", "globalName", "target", "supported", "define", "treeShaking", "minify", "mangleProps", "reserveProps", "mangleQuoted", "mangleCache", "drop", "dropLabels", "minifyWhitespace", "minifyIdentifiers", "minifySyntax", "lineLimit", "charset", "ignoreAnnotations", "jsx", "jsxFactory", "jsxFragment", "jsxImportSource", "jsxDev", "jsxSideEffects", "pure", "keepNames", "absPaths", "color", "logLevel", "logLimit", "logOverride", "tsconfigRaw", "bundle", "splitting", "preserveSymlinks", "external", "packages", "alias", "loader", "resolveExtensions", "mainFields", "conditions", "allowOverwrite", "tsconfig", "outExtension", "publicPath", "inject", "banner", "footer", "plugins"];
2
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/lib/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,ovBA0Dc,CAAC"}
@@ -1,7 +0,0 @@
1
- import type { Serwist } from "@serwist/window";
2
- export interface SerwistContextValues {
3
- serwist: Serwist | null;
4
- }
5
- export declare const SerwistContext: import("react").Context<SerwistContextValues>;
6
- export declare const useSerwist: () => SerwistContextValues;
7
- //# sourceMappingURL=context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/lib/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAG/C,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;CACzB;AAED,eAAO,MAAM,cAAc,+CAA6C,CAAC;AAEzE,eAAO,MAAM,UAAU,4BAMtB,CAAC"}
@@ -1,3 +0,0 @@
1
- import * as logger from "./logger.js";
2
- export { logger };
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -1,8 +0,0 @@
1
- export declare const NEXT_VERSION: string;
2
- export type LoggingMethods = "wait" | "error" | "warn" | "info" | "event";
3
- export declare const wait: (...message: any[]) => void;
4
- export declare const error: (...message: any[]) => void;
5
- export declare const warn: (...message: any[]) => void;
6
- export declare const info: (...message: any[]) => void;
7
- export declare const event: (...message: any[]) => void;
8
- //# sourceMappingURL=logger.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/lib/logger.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,EAA2C,MAAM,CAAC;AAI3E,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAyC1E,eAAO,MAAM,IAAI,GAAI,GAAG,SAAS,GAAG,EAAE,SAAoC,CAAC;AAE3E,eAAO,MAAM,KAAK,GAAI,GAAG,SAAS,GAAG,EAAE,SAAqC,CAAC;AAE7E,eAAO,MAAM,IAAI,GAAI,GAAG,SAAS,GAAG,EAAE,SAAoC,CAAC;AAE3E,eAAO,MAAM,IAAI,GAAI,GAAG,SAAS,GAAG,EAAE,SAAoC,CAAC;AAE3E,eAAO,MAAM,KAAK,GAAI,GAAG,SAAS,GAAG,EAAE,SAAqC,CAAC"}
@@ -1,3 +0,0 @@
1
- export declare const loadNextConfig: (cwd: string, isDev: boolean) => Promise<import("next/dist/server/config-shared.js").NextConfigComplete>;
2
- export declare const generateGlobPatterns: (distDir: string) => string[];
3
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,GAAU,KAAK,MAAM,EAAE,OAAO,OAAO,4EAS/D,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,SAAS,MAAM,aAGnD,CAAC"}