@serwist/next 8.0.0 → 8.0.1

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.
@@ -1,3 +1,2 @@
1
1
  import type { RuntimeCaching } from "@serwist/build";
2
2
  export declare const defaultCache: RuntimeCaching[];
3
- //# sourceMappingURL=index.browser.d.ts.map
package/dist/index.d.ts CHANGED
@@ -3,4 +3,3 @@ import type { PluginOptions } from "./types.js";
3
3
  declare const withPWAInit: (pluginOptions: PluginOptions) => (nextConfig?: NextConfig) => NextConfig;
4
4
  export default withPWAInit;
5
5
  export * from "./types.js";
6
- //# sourceMappingURL=index.d.ts.map
@@ -7,4 +7,3 @@ export interface SerwistNextOptions {
7
7
  reloadOnOnline: boolean;
8
8
  swEntryWorker: string | undefined;
9
9
  }
10
- //# sourceMappingURL=internal-types.d.ts.map
@@ -5,4 +5,3 @@ export type MessageType = {
5
5
  type: "__START_URL_CACHE__";
6
6
  url: URL | string;
7
7
  };
8
- //# sourceMappingURL=sw-entry-worker.d.ts.map
@@ -4,4 +4,3 @@ declare global {
4
4
  serwist: Serwist;
5
5
  }
6
6
  }
7
- //# sourceMappingURL=sw-entry.d.ts.map
package/dist/types.d.ts CHANGED
@@ -80,4 +80,3 @@ export interface PluginOptions extends Require<WebpackInjectManifestOptions, "sw
80
80
  reloadOnOnline?: boolean;
81
81
  }
82
82
  export {};
83
- //# sourceMappingURL=types.d.ts.map
@@ -5,4 +5,3 @@
5
5
  * @returns
6
6
  */
7
7
  export declare const findFirstTruthy: <T, U>(arr: T[], fn: (elm: T) => U) => NonNullable<U> | undefined;
8
- //# sourceMappingURL=find-first-truthy.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import type fs from "node:fs";
2
2
  export declare const getContentHash: (file: fs.PathOrFileDescriptor, isDev: boolean) => string;
3
- //# sourceMappingURL=get-content-hash.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import fs from "node:fs";
2
2
  export declare const getFileHash: (file: fs.PathOrFileDescriptor) => string;
3
- //# sourceMappingURL=get-file-hash.d.ts.map
@@ -4,4 +4,3 @@
4
4
  * @returns
5
5
  */
6
6
  export declare const getPackageVersion: (packageName: string) => string | undefined;
7
- //# sourceMappingURL=get-package-version.d.ts.map
@@ -4,4 +4,3 @@ export { getFileHash } from "./get-file-hash.js";
4
4
  export { getPackageVersion } from "./get-package-version.js";
5
5
  export { loadTSConfig } from "./load-tsconfig.js";
6
6
  export * as logger from "./logger.js";
7
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import type { TsConfigJson as TSConfigJSON } from "type-fest";
2
2
  export declare const loadTSConfig: (baseDir: string, relativeTSConfigPath: string | undefined) => TSConfigJSON | undefined;
3
- //# sourceMappingURL=load-tsconfig.d.ts.map
@@ -3,4 +3,3 @@ export declare const error: (...message: any[]) => void;
3
3
  export declare const warn: (...message: any[]) => void;
4
4
  export declare const info: (...message: any[]) => void;
5
5
  export declare const event: (...message: any[]) => void;
6
- //# sourceMappingURL=logger.d.ts.map
package/dist/utils.d.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  import fs from "node:fs";
2
2
  export declare const getFileHash: (file: fs.PathOrFileDescriptor) => string;
3
3
  export declare const getContentHash: (file: fs.PathOrFileDescriptor, isDev: boolean) => string;
4
- //# sourceMappingURL=utils.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/next",
3
- "version": "8.0.0",
3
+ "version": "8.0.1",
4
4
  "type": "module",
5
5
  "description": "A module that integrates Serwist into your Next.js application.",
6
6
  "files": [
@@ -55,10 +55,10 @@
55
55
  "fast-glob": "3.3.1",
56
56
  "semver": "7.5.4",
57
57
  "terser-webpack-plugin": "5.3.9",
58
- "@serwist/build": "8.0.0",
59
- "@serwist/core": "8.0.0",
60
- "@serwist/webpack-plugin": "8.0.0",
61
- "@serwist/window": "8.0.0"
58
+ "@serwist/build": "8.0.1",
59
+ "@serwist/core": "8.0.1",
60
+ "@serwist/webpack-plugin": "8.0.1",
61
+ "@serwist/window": "8.0.1"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@rollup/plugin-alias": "5.0.1",
@@ -78,7 +78,7 @@
78
78
  "type-fest": "4.5.0",
79
79
  "typescript": "5.3.0-dev.20231011",
80
80
  "webpack": "5.89.0",
81
- "@serwist/constants": "8.0.0"
81
+ "@serwist/constants": "8.0.1"
82
82
  },
83
83
  "peerDependencies": {
84
84
  "next": ">=14.0.0",
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.browser.d.ts","sourceRoot":"","sources":["../src/index.browser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD,eAAO,MAAM,YAAY,EAAE,cAAc,EA+MxC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAKhD,QAAA,MAAM,WAAW,kBAAmB,aAAa,mBAAkB,UAAU,KAAK,UAqNjF,CAAC;AAEF,eAAe,WAAW,CAAC;AAC3B,cAAc,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"internal-types.d.ts","sourceRoot":"","sources":["../src/internal-types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG,yBAAyB,CAAC;AAE9D,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,EAAE,OAAO,CAAC;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"sw-entry-worker.d.ts","sourceRoot":"","sources":["../src/sw-entry-worker.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GACnB;IACE,IAAI,EAAE,wBAAwB,CAAC;IAC/B,GAAG,EAAE,GAAG,GAAG,MAAM,CAAC;CACnB,GACD;IACE,IAAI,EAAE,qBAAqB,CAAC;IAC5B,GAAG,EAAE,GAAG,GAAG,MAAM,CAAC;CACnB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"sw-entry.d.ts","sourceRoot":"","sources":["../src/sw-entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAK1C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,OAAO,EAAE,OAAO,CAAC;KAClB;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAEnE,KAAK,OAAO,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAE9D,MAAM,WAAW,aAAc,SAAQ,OAAO,CAAC,4BAA4B,EAAE,QAAQ,CAAC;IACpF;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+CG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-first-truthy.d.ts","sourceRoot":"","sources":["../../src/utils/find-first-truthy.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,eAAe,mEAQ3B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-content-hash.d.ts","sourceRoot":"","sources":["../../src/utils/get-content-hash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAI9B,eAAO,MAAM,cAAc,SAAU,GAAG,oBAAoB,SAAS,OAAO,WAK3E,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-file-hash.d.ts","sourceRoot":"","sources":["../../src/utils/get-file-hash.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,SAAS,CAAC;AAEzB,eAAO,MAAM,WAAW,SAAU,GAAG,oBAAoB,WAAyE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-package-version.d.ts","sourceRoot":"","sources":["../../src/utils/get-package-version.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,gBAAiB,MAAM,KAAG,MAAM,GAAG,SAMhE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"load-tsconfig.d.ts","sourceRoot":"","sources":["../../src/utils/load-tsconfig.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,IAAI,YAAY,EAAE,MAAM,WAAW,CAAC;AAI9D,eAAO,MAAM,YAAY,YAAa,MAAM,wBAAwB,MAAM,GAAG,SAAS,KAAG,YAAY,GAAG,SAmBvG,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"AAsCA,eAAO,MAAM,IAAI,eAAgB,GAAG,EAAE,SAErC,CAAC;AAEF,eAAO,MAAM,KAAK,eAAgB,GAAG,EAAE,SAEtC,CAAC;AAEF,eAAO,MAAM,IAAI,eAAgB,GAAG,EAAE,SAErC,CAAC;AAEF,eAAO,MAAM,IAAI,eAAgB,GAAG,EAAE,SAErC,CAAC;AAEF,eAAO,MAAM,KAAK,eAAgB,GAAG,EAAE,SAEtC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,SAAS,CAAC;AAEzB,eAAO,MAAM,WAAW,SAAU,GAAG,oBAAoB,WAAyE,CAAC;AAEnI,eAAO,MAAM,cAAc,SAAU,GAAG,oBAAoB,SAAS,OAAO,WAK3E,CAAC"}