@serwist/svelte 9.1.1 → 10.0.0-preview.10
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.
package/dist/index.worker.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { PrecacheEntry, RuntimeCaching } from "serwist";
|
2
|
-
import { base as basePath, build as immutableAssets,
|
2
|
+
import { base as basePath, build as immutableAssets, prerendered as prerenderedRoutes, version as serviceWorkerVersion, files as staticAssets } from "$service-worker";
|
3
3
|
export { basePath, immutableAssets, staticAssets, prerenderedRoutes, serviceWorkerVersion };
|
4
4
|
export type StaticRevisions = string | {
|
5
5
|
[url: string]: string | null;
|
@@ -50,7 +50,7 @@ export interface GetPrecacheManifestOptions {
|
|
50
50
|
/**
|
51
51
|
* Retrieves the precache manifest generated by SvelteKit. A simple
|
52
52
|
* wrapper around SvelteKit's built-in service worker support. For more
|
53
|
-
* complex use cases, seek [the
|
53
|
+
* complex use cases, seek [the `vite-plugin-serwist` recipe for SvelteKit](https://serwist.pages.dev/docs/vite/recipes/svelte-kit).
|
54
54
|
*
|
55
55
|
* @param options
|
56
56
|
* @returns
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.worker.d.ts","sourceRoot":"","sources":["../src/index.worker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAI7D,OAAO,EACL,IAAI,IAAI,QAAQ,EAChB,KAAK,IAAI,eAAe,EACxB,
|
1
|
+
{"version":3,"file":"index.worker.d.ts","sourceRoot":"","sources":["../src/index.worker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAI7D,OAAO,EACL,IAAI,IAAI,QAAQ,EAChB,KAAK,IAAI,eAAe,EACxB,WAAW,IAAI,iBAAiB,EAChC,OAAO,IAAI,oBAAoB,EAC/B,KAAK,IAAI,YAAY,EACtB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,YAAY,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,CAAC;AAE5F,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC;AAExE,MAAM,MAAM,iBAAiB,GAAG,CAAC,QAAQ,EAAE,aAAa,EAAE,KAAK;IAC7D,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,MAAM,WAAW,0BAA0B;IACzC;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;;;;;;OAUG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC1C;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,GAAI,mGAMjC,0BAA+B,KAAG,aAAa,EAAE,GAAG,SA2CtD,CAAC;AAEF,eAAO,MAAM,0BAA0B,UAAgC,CAAC;AAExE;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,cAAc,EAmHpC,CAAC"}
|
package/package.json
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"name": "@serwist/svelte",
|
3
|
-
"version": "
|
3
|
+
"version": "10.0.0-preview.10",
|
4
4
|
"type": "module",
|
5
|
+
"sideEffects": false,
|
5
6
|
"description": "A module that complements SvelteKit's built-in service worker support.",
|
6
7
|
"files": [
|
7
8
|
"src",
|
@@ -40,12 +41,12 @@
|
|
40
41
|
"./package.json": "./package.json"
|
41
42
|
},
|
42
43
|
"dependencies": {
|
43
|
-
"serwist": "
|
44
|
+
"serwist": "10.0.0-preview.10"
|
44
45
|
},
|
45
46
|
"devDependencies": {
|
46
47
|
"@sveltejs/kit": "2.24.0",
|
47
48
|
"rollup": "4.45.1",
|
48
|
-
"@serwist/configs": "
|
49
|
+
"@serwist/configs": "10.0.0-preview.10"
|
49
50
|
},
|
50
51
|
"peerDependencies": {
|
51
52
|
"@sveltejs/kit": ">=2.0.0",
|
@@ -60,6 +61,7 @@
|
|
60
61
|
"build": "rimraf dist && NODE_ENV=production rollup --config rollup.config.js",
|
61
62
|
"dev": "rollup --config rollup.config.js --watch",
|
62
63
|
"lint": "biome lint ./src",
|
64
|
+
"qcheck": "biome check ./src",
|
63
65
|
"typecheck": "tsc"
|
64
66
|
}
|
65
67
|
}
|
package/src/index.worker.ts
CHANGED
@@ -5,9 +5,9 @@ import { logger } from "serwist/internal";
|
|
5
5
|
import {
|
6
6
|
base as basePath,
|
7
7
|
build as immutableAssets,
|
8
|
-
files as staticAssets,
|
9
8
|
prerendered as prerenderedRoutes,
|
10
9
|
version as serviceWorkerVersion,
|
10
|
+
files as staticAssets,
|
11
11
|
} from "$service-worker";
|
12
12
|
|
13
13
|
export { basePath, immutableAssets, staticAssets, prerenderedRoutes, serviceWorkerVersion };
|
@@ -62,7 +62,7 @@ export interface GetPrecacheManifestOptions {
|
|
62
62
|
/**
|
63
63
|
* Retrieves the precache manifest generated by SvelteKit. A simple
|
64
64
|
* wrapper around SvelteKit's built-in service worker support. For more
|
65
|
-
* complex use cases, seek [the
|
65
|
+
* complex use cases, seek [the `vite-plugin-serwist` recipe for SvelteKit](https://serwist.pages.dev/docs/vite/recipes/svelte-kit).
|
66
66
|
*
|
67
67
|
* @param options
|
68
68
|
* @returns
|