@valbuild/server 0.60.14 → 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.
@@ -1007,10 +1007,11 @@ async function newValQuickJSRuntime(quickJSModule, moduleLoader, {
|
|
1007
1007
|
export const ValOverlay = () => {
|
1008
1008
|
throw Error("Cannot use 'ValOverlay' in this type of file")
|
1009
1009
|
};
|
1010
|
-
export const VAL_CSS_PATH = "";
|
1011
|
-
export const VAL_APP_PATH = "";
|
1012
|
-
export const VAL_APP_ID = "";
|
1013
|
-
export const
|
1010
|
+
export const VAL_CSS_PATH = "/spa/index.css";
|
1011
|
+
export const VAL_APP_PATH = "/app";
|
1012
|
+
export const VAL_APP_ID = "val-app";
|
1013
|
+
export const VAL_OVERLAY_ID = "val-overlay";
|
1014
|
+
export const IS_DEV = false;
|
1014
1015
|
`
|
1015
1016
|
};
|
1016
1017
|
}
|
@@ -1021,7 +1022,7 @@ export const IS_DEV = false;2
|
|
1021
1022
|
}
|
1022
1023
|
if (modulePath.startsWith("next/navigation")) {
|
1023
1024
|
return {
|
1024
|
-
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`) } } } );"
|
1025
1026
|
};
|
1026
1027
|
}
|
1027
1028
|
if (modulePath.startsWith("next")) {
|
@@ -1007,10 +1007,11 @@ async function newValQuickJSRuntime(quickJSModule, moduleLoader, {
|
|
1007
1007
|
export const ValOverlay = () => {
|
1008
1008
|
throw Error("Cannot use 'ValOverlay' in this type of file")
|
1009
1009
|
};
|
1010
|
-
export const VAL_CSS_PATH = "";
|
1011
|
-
export const VAL_APP_PATH = "";
|
1012
|
-
export const VAL_APP_ID = "";
|
1013
|
-
export const
|
1010
|
+
export const VAL_CSS_PATH = "/spa/index.css";
|
1011
|
+
export const VAL_APP_PATH = "/app";
|
1012
|
+
export const VAL_APP_ID = "val-app";
|
1013
|
+
export const VAL_OVERLAY_ID = "val-overlay";
|
1014
|
+
export const IS_DEV = false;
|
1014
1015
|
`
|
1015
1016
|
};
|
1016
1017
|
}
|
@@ -1021,7 +1022,7 @@ export const IS_DEV = false;2
|
|
1021
1022
|
}
|
1022
1023
|
if (modulePath.startsWith("next/navigation")) {
|
1023
1024
|
return {
|
1024
|
-
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`) } } } );"
|
1025
1026
|
};
|
1026
1027
|
}
|
1027
1028
|
if (modulePath.startsWith("next")) {
|
@@ -976,10 +976,11 @@ async function newValQuickJSRuntime(quickJSModule, moduleLoader, {
|
|
976
976
|
export const ValOverlay = () => {
|
977
977
|
throw Error("Cannot use 'ValOverlay' in this type of file")
|
978
978
|
};
|
979
|
-
export const VAL_CSS_PATH = "";
|
980
|
-
export const VAL_APP_PATH = "";
|
981
|
-
export const VAL_APP_ID = "";
|
982
|
-
export const
|
979
|
+
export const VAL_CSS_PATH = "/spa/index.css";
|
980
|
+
export const VAL_APP_PATH = "/app";
|
981
|
+
export const VAL_APP_ID = "val-app";
|
982
|
+
export const VAL_OVERLAY_ID = "val-overlay";
|
983
|
+
export const IS_DEV = false;
|
983
984
|
`
|
984
985
|
};
|
985
986
|
}
|
@@ -990,7 +991,7 @@ export const IS_DEV = false;2
|
|
990
991
|
}
|
991
992
|
if (modulePath.startsWith("next/navigation")) {
|
992
993
|
return {
|
993
|
-
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`) } } } );"
|
994
995
|
};
|
995
996
|
}
|
996
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",
|