@serwist/next 8.0.4 → 8.1.0
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.old.cjs +3 -2
- package/package.json +8 -8
package/dist/index.old.cjs
CHANGED
|
@@ -15,6 +15,7 @@ var process = require('node:process');
|
|
|
15
15
|
var os = require('node:os');
|
|
16
16
|
var tty = require('node:tty');
|
|
17
17
|
|
|
18
|
+
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
18
19
|
/**
|
|
19
20
|
* Find the first truthy value in an array.
|
|
20
21
|
* @param arr
|
|
@@ -39,7 +40,7 @@ const getContentHash = (file, isDev)=>{
|
|
|
39
40
|
return getFileHash(file).slice(0, 16);
|
|
40
41
|
};
|
|
41
42
|
|
|
42
|
-
node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (
|
|
43
|
+
node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.old.cjs', document.baseURI).href)));
|
|
43
44
|
|
|
44
45
|
const loadTSConfig = (baseDir, relativeTSConfigPath)=>{
|
|
45
46
|
try {
|
|
@@ -759,7 +760,7 @@ const event = (...message)=>{
|
|
|
759
760
|
prefixedLog("event", ...message);
|
|
760
761
|
};
|
|
761
762
|
|
|
762
|
-
const __dirname$1 = node_url.fileURLToPath(new URL(".", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (
|
|
763
|
+
const __dirname$1 = node_url.fileURLToPath(new URL(".", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.old.cjs', document.baseURI).href))));
|
|
763
764
|
const withPWAInit = (pluginOptions)=>{
|
|
764
765
|
return (nextConfig = {})=>({
|
|
765
766
|
...nextConfig,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serwist/next",
|
|
3
|
-
"version": "8.0
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A module that integrates Serwist into your Next.js application.",
|
|
6
6
|
"files": [
|
|
@@ -67,21 +67,21 @@
|
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"clean-webpack-plugin": "4.0.0",
|
|
69
69
|
"fast-glob": "3.3.2",
|
|
70
|
-
"@serwist/build": "8.0
|
|
71
|
-
"@serwist/webpack-plugin": "8.0
|
|
72
|
-
"@serwist/window": "8.0
|
|
70
|
+
"@serwist/build": "8.1.0",
|
|
71
|
+
"@serwist/webpack-plugin": "8.1.0",
|
|
72
|
+
"@serwist/window": "8.1.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@types/node": "20.10.
|
|
75
|
+
"@types/node": "20.10.5",
|
|
76
76
|
"chalk": "5.3.0",
|
|
77
77
|
"next": "14.0.4",
|
|
78
78
|
"react": "18.2.0",
|
|
79
79
|
"react-dom": "18.2.0",
|
|
80
|
-
"rollup": "
|
|
80
|
+
"rollup": "4.9.1",
|
|
81
81
|
"type-fest": "4.8.3",
|
|
82
|
-
"typescript": "5.4.0-dev.
|
|
82
|
+
"typescript": "5.4.0-dev.20231220",
|
|
83
83
|
"webpack": "5.89.0",
|
|
84
|
-
"@serwist/constants": "8.0
|
|
84
|
+
"@serwist/constants": "8.1.0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"next": ">=14.0.0",
|