@serwist/next 9.0.0-preview.10 → 9.0.0-preview.12
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.js +1 -1
- package/package.json +12 -13
- package/src/index.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -143,7 +143,7 @@ const withSerwistInit = (pluginOptions)=>{
|
|
|
143
143
|
info("Service worker won't be automatically registered as per the config, please call the following code in componentDidMount or useEffect:");
|
|
144
144
|
info(" window.serwist.register()");
|
|
145
145
|
if (!tsConfigJson?.compilerOptions?.types?.includes("@serwist/next/typings")) {
|
|
146
|
-
info("You may also want to add @serwist/next/typings to compilerOptions.types in your tsconfig.json/jsconfig.json.");
|
|
146
|
+
info("You may also want to add '@serwist/next/typings' to compilerOptions.types in your tsconfig.json/jsconfig.json.");
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
const { swSrc: userSwSrc, swDest: userSwDest, additionalPrecacheEntries, exclude, manifestTransforms = [], ...otherBuildOptions } = buildOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serwist/next",
|
|
3
|
-
"version": "9.0.0-preview.
|
|
3
|
+
"version": "9.0.0-preview.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A module that integrates Serwist into your Next.js application.",
|
|
6
6
|
"files": [
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"chalk": "5.3.0",
|
|
59
59
|
"glob": "10.3.10",
|
|
60
|
-
"@serwist/build": "9.0.0-preview.
|
|
61
|
-
"@serwist/core": "9.0.0-preview.
|
|
62
|
-
"@serwist/expiration": "9.0.0-preview.
|
|
63
|
-
"@serwist/range-requests": "9.0.0-preview.
|
|
64
|
-
"@serwist/strategies": "9.0.0-preview.
|
|
65
|
-
"@serwist/webpack-plugin": "9.0.0-preview.
|
|
66
|
-
"@serwist/window": "9.0.0-preview.
|
|
60
|
+
"@serwist/build": "9.0.0-preview.12",
|
|
61
|
+
"@serwist/core": "9.0.0-preview.12",
|
|
62
|
+
"@serwist/expiration": "9.0.0-preview.12",
|
|
63
|
+
"@serwist/range-requests": "9.0.0-preview.12",
|
|
64
|
+
"@serwist/strategies": "9.0.0-preview.12",
|
|
65
|
+
"@serwist/webpack-plugin": "9.0.0-preview.12",
|
|
66
|
+
"@serwist/window": "9.0.0-preview.12"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/node": "20.11.16",
|
|
@@ -74,15 +74,14 @@
|
|
|
74
74
|
"type-fest": "4.10.2",
|
|
75
75
|
"typescript": "5.4.0-dev.20240206",
|
|
76
76
|
"webpack": "5.90.1",
|
|
77
|
-
"@serwist/constants": "9.0.0-preview.
|
|
78
|
-
"@serwist/sw": "9.0.0-preview.
|
|
79
|
-
"@serwist/utils": "9.0.0-preview.
|
|
77
|
+
"@serwist/constants": "9.0.0-preview.12",
|
|
78
|
+
"@serwist/sw": "9.0.0-preview.12",
|
|
79
|
+
"@serwist/utils": "9.0.0-preview.12"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"next": ">=14.0.0",
|
|
83
83
|
"typescript": ">=5.0.0",
|
|
84
|
-
"
|
|
85
|
-
"@serwist/sw": "9.0.0-preview.10"
|
|
84
|
+
"@serwist/sw": "9.0.0-preview.12"
|
|
86
85
|
},
|
|
87
86
|
"peerDependenciesMeta": {
|
|
88
87
|
"@serwist/sw": {
|
package/src/index.ts
CHANGED
|
@@ -95,7 +95,7 @@ const withSerwistInit = (pluginOptions: NextInjectManifestOptions): ((nextConfig
|
|
|
95
95
|
logger.info(" window.serwist.register()");
|
|
96
96
|
|
|
97
97
|
if (!tsConfigJson?.compilerOptions?.types?.includes("@serwist/next/typings")) {
|
|
98
|
-
logger.info("You may also want to add @serwist/next/typings to compilerOptions.types in your tsconfig.json/jsconfig.json.");
|
|
98
|
+
logger.info("You may also want to add '@serwist/next/typings' to compilerOptions.types in your tsconfig.json/jsconfig.json.");
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
|