@valbuild/server 0.60.17 → 0.60.18
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.
@@ -1037,7 +1037,7 @@ export const IS_DEV = false;
|
|
1037
1037
|
}
|
1038
1038
|
if (modulePath.startsWith("react")) {
|
1039
1039
|
return {
|
1040
|
-
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`) } } } )"
|
1040
|
+
value: "export const createContext = () => new Proxy({}, { get() { return () => { throw new Error(`Cannot use 'createContext' in this file`) } } } ); 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`) } } } )"
|
1041
1041
|
};
|
1042
1042
|
}
|
1043
1043
|
if (modulePath.includes("/ValNextProvider")) {
|
@@ -1045,6 +1045,11 @@ export const IS_DEV = false;
|
|
1045
1045
|
value: "export const ValNextProvider = new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'ValNextProvider' in this file`) } } } )"
|
1046
1046
|
};
|
1047
1047
|
}
|
1048
|
+
if (modulePath.includes("/ValContext")) {
|
1049
|
+
return {
|
1050
|
+
value: "export const useValEvents = () => { throw Error(`Cannot use 'useValEvents' in this type of file`) }; export const ValContext = new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'ValContext' in this file`) } } } ) export const ValEvents = new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'ValEvents' in this file`) } } } )"
|
1051
|
+
};
|
1052
|
+
}
|
1048
1053
|
if (modulePath.includes("/ValImage")) {
|
1049
1054
|
return {
|
1050
1055
|
value: "export const ValImage = new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'ValImage' in this file`) } } } )"
|
@@ -1110,6 +1115,11 @@ export const IS_DEV = false;
|
|
1110
1115
|
value: requestedName
|
1111
1116
|
};
|
1112
1117
|
}
|
1118
|
+
if (requestedName.includes("/ValContext")) {
|
1119
|
+
return {
|
1120
|
+
value: requestedName
|
1121
|
+
};
|
1122
|
+
}
|
1113
1123
|
if (requestedName.includes("/ValImage")) {
|
1114
1124
|
return {
|
1115
1125
|
value: requestedName
|
@@ -1037,7 +1037,7 @@ export const IS_DEV = false;
|
|
1037
1037
|
}
|
1038
1038
|
if (modulePath.startsWith("react")) {
|
1039
1039
|
return {
|
1040
|
-
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`) } } } )"
|
1040
|
+
value: "export const createContext = () => new Proxy({}, { get() { return () => { throw new Error(`Cannot use 'createContext' in this file`) } } } ); 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`) } } } )"
|
1041
1041
|
};
|
1042
1042
|
}
|
1043
1043
|
if (modulePath.includes("/ValNextProvider")) {
|
@@ -1045,6 +1045,11 @@ export const IS_DEV = false;
|
|
1045
1045
|
value: "export const ValNextProvider = new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'ValNextProvider' in this file`) } } } )"
|
1046
1046
|
};
|
1047
1047
|
}
|
1048
|
+
if (modulePath.includes("/ValContext")) {
|
1049
|
+
return {
|
1050
|
+
value: "export const useValEvents = () => { throw Error(`Cannot use 'useValEvents' in this type of file`) }; export const ValContext = new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'ValContext' in this file`) } } } ) export const ValEvents = new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'ValEvents' in this file`) } } } )"
|
1051
|
+
};
|
1052
|
+
}
|
1048
1053
|
if (modulePath.includes("/ValImage")) {
|
1049
1054
|
return {
|
1050
1055
|
value: "export const ValImage = new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'ValImage' in this file`) } } } )"
|
@@ -1110,6 +1115,11 @@ export const IS_DEV = false;
|
|
1110
1115
|
value: requestedName
|
1111
1116
|
};
|
1112
1117
|
}
|
1118
|
+
if (requestedName.includes("/ValContext")) {
|
1119
|
+
return {
|
1120
|
+
value: requestedName
|
1121
|
+
};
|
1122
|
+
}
|
1113
1123
|
if (requestedName.includes("/ValImage")) {
|
1114
1124
|
return {
|
1115
1125
|
value: requestedName
|
@@ -1006,7 +1006,7 @@ export const IS_DEV = false;
|
|
1006
1006
|
}
|
1007
1007
|
if (modulePath.startsWith("react")) {
|
1008
1008
|
return {
|
1009
|
-
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`) } } } )"
|
1009
|
+
value: "export const createContext = () => new Proxy({}, { get() { return () => { throw new Error(`Cannot use 'createContext' in this file`) } } } ); 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`) } } } )"
|
1010
1010
|
};
|
1011
1011
|
}
|
1012
1012
|
if (modulePath.includes("/ValNextProvider")) {
|
@@ -1014,6 +1014,11 @@ export const IS_DEV = false;
|
|
1014
1014
|
value: "export const ValNextProvider = new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'ValNextProvider' in this file`) } } } )"
|
1015
1015
|
};
|
1016
1016
|
}
|
1017
|
+
if (modulePath.includes("/ValContext")) {
|
1018
|
+
return {
|
1019
|
+
value: "export const useValEvents = () => { throw Error(`Cannot use 'useValEvents' in this type of file`) }; export const ValContext = new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'ValContext' in this file`) } } } ) export const ValEvents = new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'ValEvents' in this file`) } } } )"
|
1020
|
+
};
|
1021
|
+
}
|
1017
1022
|
if (modulePath.includes("/ValImage")) {
|
1018
1023
|
return {
|
1019
1024
|
value: "export const ValImage = new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'ValImage' in this file`) } } } )"
|
@@ -1079,6 +1084,11 @@ export const IS_DEV = false;
|
|
1079
1084
|
value: requestedName
|
1080
1085
|
};
|
1081
1086
|
}
|
1087
|
+
if (requestedName.includes("/ValContext")) {
|
1088
|
+
return {
|
1089
|
+
value: requestedName
|
1090
|
+
};
|
1091
|
+
}
|
1082
1092
|
if (requestedName.includes("/ValImage")) {
|
1083
1093
|
return {
|
1084
1094
|
value: requestedName
|
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.18",
|
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.18",
|
28
|
+
"@valbuild/shared": "~0.60.18",
|
29
|
+
"@valbuild/ui": "~0.60.18",
|
30
30
|
"express": "^4.18.2",
|
31
31
|
"image-size": "^1.0.2",
|
32
32
|
"minimatch": "^3.0.4",
|