@valbuild/server 0.38.0 → 0.40.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.
@@ -963,12 +963,12 @@ async function newValQuickJSRuntime(quickJSModule, moduleLoader, {
|
|
963
963
|
}
|
964
964
|
if (modulePath.startsWith("react/jsx-runtime")) {
|
965
965
|
return {
|
966
|
-
value: "export const jsx = () => { throw Error(`Cannot use 'jsx' in this type of file`) }; export default new Proxy({}, { get() { return () => { throw new Error(`Cannot import '
|
966
|
+
value: "export const jsx = () => { throw Error(`Cannot use 'jsx' in this type of file`) }; export default new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'react' in this file`) } } } )"
|
967
967
|
};
|
968
968
|
}
|
969
969
|
if (modulePath.startsWith("react")) {
|
970
970
|
return {
|
971
|
-
value: "export const useTransition = () => { throw Error(`Cannot use 'useTransition' in this type of file`) }; export default new Proxy({}, { get() { return () => { throw new Error(`Cannot import '
|
971
|
+
value: "export const useTransition = () => { throw Error(`Cannot use 'useTransition' in this type of file`) }; export default new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'react' in this file`) } } } )"
|
972
972
|
};
|
973
973
|
}
|
974
974
|
if (modulePath.includes("/ValNextProvider")) {
|
@@ -963,12 +963,12 @@ async function newValQuickJSRuntime(quickJSModule, moduleLoader, {
|
|
963
963
|
}
|
964
964
|
if (modulePath.startsWith("react/jsx-runtime")) {
|
965
965
|
return {
|
966
|
-
value: "export const jsx = () => { throw Error(`Cannot use 'jsx' in this type of file`) }; export default new Proxy({}, { get() { return () => { throw new Error(`Cannot import '
|
966
|
+
value: "export const jsx = () => { throw Error(`Cannot use 'jsx' in this type of file`) }; export default new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'react' in this file`) } } } )"
|
967
967
|
};
|
968
968
|
}
|
969
969
|
if (modulePath.startsWith("react")) {
|
970
970
|
return {
|
971
|
-
value: "export const useTransition = () => { throw Error(`Cannot use 'useTransition' in this type of file`) }; export default new Proxy({}, { get() { return () => { throw new Error(`Cannot import '
|
971
|
+
value: "export const useTransition = () => { throw Error(`Cannot use 'useTransition' in this type of file`) }; export default new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'react' in this file`) } } } )"
|
972
972
|
};
|
973
973
|
}
|
974
974
|
if (modulePath.includes("/ValNextProvider")) {
|
@@ -933,12 +933,12 @@ async function newValQuickJSRuntime(quickJSModule, moduleLoader, {
|
|
933
933
|
}
|
934
934
|
if (modulePath.startsWith("react/jsx-runtime")) {
|
935
935
|
return {
|
936
|
-
value: "export const jsx = () => { throw Error(`Cannot use 'jsx' in this type of file`) }; export default new Proxy({}, { get() { return () => { throw new Error(`Cannot import '
|
936
|
+
value: "export const jsx = () => { throw Error(`Cannot use 'jsx' in this type of file`) }; export default new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'react' in this file`) } } } )"
|
937
937
|
};
|
938
938
|
}
|
939
939
|
if (modulePath.startsWith("react")) {
|
940
940
|
return {
|
941
|
-
value: "export const useTransition = () => { throw Error(`Cannot use 'useTransition' in this type of file`) }; export default new Proxy({}, { get() { return () => { throw new Error(`Cannot import '
|
941
|
+
value: "export const useTransition = () => { throw Error(`Cannot use 'useTransition' in this type of file`) }; export default new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'react' in this file`) } } } )"
|
942
942
|
};
|
943
943
|
}
|
944
944
|
if (modulePath.includes("/ValNextProvider")) {
|
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.
|
15
|
+
"version": "0.40.0",
|
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.
|
28
|
-
"@valbuild/shared": "~0.
|
29
|
-
"@valbuild/ui": "~0.
|
27
|
+
"@valbuild/core": "~0.40.0",
|
28
|
+
"@valbuild/shared": "~0.40.0",
|
29
|
+
"@valbuild/ui": "~0.40.0",
|
30
30
|
"express": "^4.18.2",
|
31
31
|
"image-size": "^1.0.2",
|
32
32
|
"queue": "^6.0.2",
|