@valbuild/server 0.60.15 → 0.60.16
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.
@@ -1022,7 +1022,7 @@ export const IS_DEV = false;
|
|
1022
1022
|
}
|
1023
1023
|
if (modulePath.startsWith("next/navigation")) {
|
1024
1024
|
return {
|
1025
|
-
value: "export const useRouter = () => { throw Error(`Cannot use 'useRouter' in this type of file`) }; export default new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'next' in this file`) } } } );"
|
1025
|
+
value: "export const usePathname = () => { throw Error(`Cannot use 'usePathname' in this type of file`) }; export const useRouter = () => { throw Error(`Cannot use 'useRouter' in this type of file`) }; export default new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'next' in this file`) } } } );"
|
1026
1026
|
};
|
1027
1027
|
}
|
1028
1028
|
if (modulePath.startsWith("next")) {
|
@@ -1022,7 +1022,7 @@ export const IS_DEV = false;
|
|
1022
1022
|
}
|
1023
1023
|
if (modulePath.startsWith("next/navigation")) {
|
1024
1024
|
return {
|
1025
|
-
value: "export const useRouter = () => { throw Error(`Cannot use 'useRouter' in this type of file`) }; export default new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'next' in this file`) } } } );"
|
1025
|
+
value: "export const usePathname = () => { throw Error(`Cannot use 'usePathname' in this type of file`) }; export const useRouter = () => { throw Error(`Cannot use 'useRouter' in this type of file`) }; export default new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'next' in this file`) } } } );"
|
1026
1026
|
};
|
1027
1027
|
}
|
1028
1028
|
if (modulePath.startsWith("next")) {
|
@@ -991,7 +991,7 @@ export const IS_DEV = false;
|
|
991
991
|
}
|
992
992
|
if (modulePath.startsWith("next/navigation")) {
|
993
993
|
return {
|
994
|
-
value: "export const useRouter = () => { throw Error(`Cannot use 'useRouter' in this type of file`) }; export default new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'next' in this file`) } } } );"
|
994
|
+
value: "export const usePathname = () => { throw Error(`Cannot use 'usePathname' in this type of file`) }; export const useRouter = () => { throw Error(`Cannot use 'useRouter' in this type of file`) }; export default new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'next' in this file`) } } } );"
|
995
995
|
};
|
996
996
|
}
|
997
997
|
if (modulePath.startsWith("next")) {
|
package/package.json
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
"./package.json": "./package.json"
|
13
13
|
},
|
14
14
|
"types": "dist/valbuild-server.cjs.d.ts",
|
15
|
-
"version": "0.60.
|
15
|
+
"version": "0.60.16",
|
16
16
|
"scripts": {
|
17
17
|
"typecheck": "tsc --noEmit",
|
18
18
|
"test": "jest",
|
@@ -24,9 +24,9 @@
|
|
24
24
|
"concurrently": "^7.6.0"
|
25
25
|
},
|
26
26
|
"dependencies": {
|
27
|
-
"@valbuild/core": "~0.60.
|
28
|
-
"@valbuild/shared": "~0.60.
|
29
|
-
"@valbuild/ui": "~0.60.
|
27
|
+
"@valbuild/core": "~0.60.16",
|
28
|
+
"@valbuild/shared": "~0.60.16",
|
29
|
+
"@valbuild/ui": "~0.60.16",
|
30
30
|
"express": "^4.18.2",
|
31
31
|
"image-size": "^1.0.2",
|
32
32
|
"minimatch": "^3.0.4",
|