@valbuild/server 0.55.0 → 0.55.1

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.
@@ -983,6 +983,19 @@ async function newValQuickJSRuntime(quickJSModule, moduleLoader, {
983
983
  value: "export const useVal = () => { throw Error(`Cannot use 'useVal' in this type of file`) }; export function ValProvider() { throw Error(`Cannot use 'ValProvider' in this type of file`) }; export function ValRichText() { throw Error(`Cannot use 'ValRichText' in this type of file`)};"
984
984
  };
985
985
  }
986
+ if (modulePath === "@valbuild/ui") {
987
+ return {
988
+ value: `
989
+ export const ValOverlay = () => {
990
+ throw Error("Cannot use 'ValOverlay' in this type of file")
991
+ };
992
+ export const VAL_CSS_PATH = "";
993
+ export const VAL_APP_PATH = "";
994
+ export const VAL_APP_ID = "";
995
+ export const IS_DEV = false;2
996
+ `
997
+ };
998
+ }
986
999
  if (modulePath === "@valbuild/react/stega") {
987
1000
  return {
988
1001
  value: "export const useVal = () => { throw Error(`Cannot use 'useVal' in this type of file`) }; export const fetchVal = () => { throw Error(`Cannot use 'fetchVal' in this type of file`) }; export const autoTagJSX = () => { /* ignore */ }; export const stegaClean = () => { throw Error(`Cannot use 'stegaClean' in this type of file`) }; export const stegaDecodeString = () => { throw Error(`Cannot use 'stegaDecodeString' in this type of file`) }; "
@@ -1023,11 +1036,6 @@ async function newValQuickJSRuntime(quickJSModule, moduleLoader, {
1023
1036
  value: "export const ValApp = new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'ValApp' in this file`) } } } )"
1024
1037
  };
1025
1038
  }
1026
- if (modulePath.includes("/ValTypes")) {
1027
- return {
1028
- value: "export type inferSchema = {};"
1029
- };
1030
- }
1031
1039
  return {
1032
1040
  value: moduleLoader.getModule(modulePath)
1033
1041
  };
@@ -1053,6 +1061,11 @@ async function newValQuickJSRuntime(quickJSModule, moduleLoader, {
1053
1061
  value: requestedName
1054
1062
  };
1055
1063
  }
1064
+ if (requestedName === "@valbuild/ui") {
1065
+ return {
1066
+ value: requestedName
1067
+ };
1068
+ }
1056
1069
  if (requestedName.startsWith("next/navigation")) {
1057
1070
  return {
1058
1071
  value: requestedName
@@ -1088,11 +1101,6 @@ async function newValQuickJSRuntime(quickJSModule, moduleLoader, {
1088
1101
  value: requestedName
1089
1102
  };
1090
1103
  }
1091
- if (requestedName.includes("/ValTypes")) {
1092
- return {
1093
- value: requestedName
1094
- };
1095
- }
1096
1104
  const modulePath = moduleLoader.resolveModulePath(baseModuleName, requestedName);
1097
1105
  return {
1098
1106
  value: modulePath
@@ -983,6 +983,19 @@ async function newValQuickJSRuntime(quickJSModule, moduleLoader, {
983
983
  value: "export const useVal = () => { throw Error(`Cannot use 'useVal' in this type of file`) }; export function ValProvider() { throw Error(`Cannot use 'ValProvider' in this type of file`) }; export function ValRichText() { throw Error(`Cannot use 'ValRichText' in this type of file`)};"
984
984
  };
985
985
  }
986
+ if (modulePath === "@valbuild/ui") {
987
+ return {
988
+ value: `
989
+ export const ValOverlay = () => {
990
+ throw Error("Cannot use 'ValOverlay' in this type of file")
991
+ };
992
+ export const VAL_CSS_PATH = "";
993
+ export const VAL_APP_PATH = "";
994
+ export const VAL_APP_ID = "";
995
+ export const IS_DEV = false;2
996
+ `
997
+ };
998
+ }
986
999
  if (modulePath === "@valbuild/react/stega") {
987
1000
  return {
988
1001
  value: "export const useVal = () => { throw Error(`Cannot use 'useVal' in this type of file`) }; export const fetchVal = () => { throw Error(`Cannot use 'fetchVal' in this type of file`) }; export const autoTagJSX = () => { /* ignore */ }; export const stegaClean = () => { throw Error(`Cannot use 'stegaClean' in this type of file`) }; export const stegaDecodeString = () => { throw Error(`Cannot use 'stegaDecodeString' in this type of file`) }; "
@@ -1023,11 +1036,6 @@ async function newValQuickJSRuntime(quickJSModule, moduleLoader, {
1023
1036
  value: "export const ValApp = new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'ValApp' in this file`) } } } )"
1024
1037
  };
1025
1038
  }
1026
- if (modulePath.includes("/ValTypes")) {
1027
- return {
1028
- value: "export type inferSchema = {};"
1029
- };
1030
- }
1031
1039
  return {
1032
1040
  value: moduleLoader.getModule(modulePath)
1033
1041
  };
@@ -1053,6 +1061,11 @@ async function newValQuickJSRuntime(quickJSModule, moduleLoader, {
1053
1061
  value: requestedName
1054
1062
  };
1055
1063
  }
1064
+ if (requestedName === "@valbuild/ui") {
1065
+ return {
1066
+ value: requestedName
1067
+ };
1068
+ }
1056
1069
  if (requestedName.startsWith("next/navigation")) {
1057
1070
  return {
1058
1071
  value: requestedName
@@ -1088,11 +1101,6 @@ async function newValQuickJSRuntime(quickJSModule, moduleLoader, {
1088
1101
  value: requestedName
1089
1102
  };
1090
1103
  }
1091
- if (requestedName.includes("/ValTypes")) {
1092
- return {
1093
- value: requestedName
1094
- };
1095
- }
1096
1104
  const modulePath = moduleLoader.resolveModulePath(baseModuleName, requestedName);
1097
1105
  return {
1098
1106
  value: modulePath
@@ -953,6 +953,19 @@ async function newValQuickJSRuntime(quickJSModule, moduleLoader, {
953
953
  value: "export const useVal = () => { throw Error(`Cannot use 'useVal' in this type of file`) }; export function ValProvider() { throw Error(`Cannot use 'ValProvider' in this type of file`) }; export function ValRichText() { throw Error(`Cannot use 'ValRichText' in this type of file`)};"
954
954
  };
955
955
  }
956
+ if (modulePath === "@valbuild/ui") {
957
+ return {
958
+ value: `
959
+ export const ValOverlay = () => {
960
+ throw Error("Cannot use 'ValOverlay' in this type of file")
961
+ };
962
+ export const VAL_CSS_PATH = "";
963
+ export const VAL_APP_PATH = "";
964
+ export const VAL_APP_ID = "";
965
+ export const IS_DEV = false;2
966
+ `
967
+ };
968
+ }
956
969
  if (modulePath === "@valbuild/react/stega") {
957
970
  return {
958
971
  value: "export const useVal = () => { throw Error(`Cannot use 'useVal' in this type of file`) }; export const fetchVal = () => { throw Error(`Cannot use 'fetchVal' in this type of file`) }; export const autoTagJSX = () => { /* ignore */ }; export const stegaClean = () => { throw Error(`Cannot use 'stegaClean' in this type of file`) }; export const stegaDecodeString = () => { throw Error(`Cannot use 'stegaDecodeString' in this type of file`) }; "
@@ -993,11 +1006,6 @@ async function newValQuickJSRuntime(quickJSModule, moduleLoader, {
993
1006
  value: "export const ValApp = new Proxy({}, { get() { return () => { throw new Error(`Cannot import 'ValApp' in this file`) } } } )"
994
1007
  };
995
1008
  }
996
- if (modulePath.includes("/ValTypes")) {
997
- return {
998
- value: "export type inferSchema = {};"
999
- };
1000
- }
1001
1009
  return {
1002
1010
  value: moduleLoader.getModule(modulePath)
1003
1011
  };
@@ -1023,6 +1031,11 @@ async function newValQuickJSRuntime(quickJSModule, moduleLoader, {
1023
1031
  value: requestedName
1024
1032
  };
1025
1033
  }
1034
+ if (requestedName === "@valbuild/ui") {
1035
+ return {
1036
+ value: requestedName
1037
+ };
1038
+ }
1026
1039
  if (requestedName.startsWith("next/navigation")) {
1027
1040
  return {
1028
1041
  value: requestedName
@@ -1058,11 +1071,6 @@ async function newValQuickJSRuntime(quickJSModule, moduleLoader, {
1058
1071
  value: requestedName
1059
1072
  };
1060
1073
  }
1061
- if (requestedName.includes("/ValTypes")) {
1062
- return {
1063
- value: requestedName
1064
- };
1065
- }
1066
1074
  const modulePath = moduleLoader.resolveModulePath(baseModuleName, requestedName);
1067
1075
  return {
1068
1076
  value: modulePath
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.55.0",
15
+ "version": "0.55.1",
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.55.0",
28
- "@valbuild/shared": "~0.55.0",
29
- "@valbuild/ui": "~0.55.0",
27
+ "@valbuild/core": "~0.55.1",
28
+ "@valbuild/shared": "~0.55.1",
29
+ "@valbuild/ui": "~0.55.1",
30
30
  "express": "^4.18.2",
31
31
  "image-size": "^1.0.2",
32
32
  "queue": "^6.0.2",