@budibase/server 2.6.1 → 2.6.3
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.
- package/builder/assets/{index.0ae5b337.js → index.3ee9b71d.js} +231 -231
- package/builder/index.html +1 -1
- package/dist/api/controllers/row/utils.js +2 -2
- package/dist/api/routes/public/index.js +6 -2
- package/dist/environment.js +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/api/controllers/row/utils.ts +2 -2
- package/src/api/routes/public/index.ts +8 -2
- package/src/environment.ts +1 -0
package/builder/index.html
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
|
9
9
|
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
|
|
10
10
|
rel="stylesheet" />
|
|
11
|
-
<script type="module" crossorigin src="/builder/assets/index.
|
|
11
|
+
<script type="module" crossorigin src="/builder/assets/index.3ee9b71d.js"></script>
|
|
12
12
|
<link rel="stylesheet" href="/builder/assets/index.4eae16b2.css">
|
|
13
13
|
</head>
|
|
14
14
|
|
|
@@ -102,9 +102,9 @@ function validate({ tableId, row, table, }) {
|
|
|
102
102
|
if (type === constants_1.FieldTypes.FORMULA || column.autocolumn) {
|
|
103
103
|
continue;
|
|
104
104
|
}
|
|
105
|
-
// special case for options, need to always allow unselected (
|
|
105
|
+
// special case for options, need to always allow unselected (empty)
|
|
106
106
|
if (type === constants_1.FieldTypes.OPTIONS && constraints.inclusion) {
|
|
107
|
-
constraints.inclusion.push(null);
|
|
107
|
+
constraints.inclusion.push(null, "");
|
|
108
108
|
}
|
|
109
109
|
let res;
|
|
110
110
|
// Validate.js doesn't seem to handle array
|
|
@@ -45,9 +45,13 @@ if (!environment_1.default.isTest()) {
|
|
|
45
45
|
host: REDIS_OPTS.host,
|
|
46
46
|
port: REDIS_OPTS.port,
|
|
47
47
|
},
|
|
48
|
-
password: REDIS_OPTS.opts.password,
|
|
49
|
-
database: 1,
|
|
48
|
+
password: REDIS_OPTS.opts.password || REDIS_OPTS.opts.redisOptions.password,
|
|
50
49
|
};
|
|
50
|
+
if (!environment_1.default.REDIS_CLUSTERED) {
|
|
51
|
+
// Can't set direct redis db in clustered env
|
|
52
|
+
// @ts-ignore
|
|
53
|
+
options.database = 1;
|
|
54
|
+
}
|
|
51
55
|
}
|
|
52
56
|
rateLimitStore = new Stores.Redis(options);
|
|
53
57
|
RateLimit.defaultOptions({
|
package/dist/environment.js
CHANGED
|
@@ -39,6 +39,7 @@ const environment = {
|
|
|
39
39
|
MINIO_SECRET_KEY: process.env.MINIO_SECRET_KEY,
|
|
40
40
|
REDIS_URL: process.env.REDIS_URL,
|
|
41
41
|
REDIS_PASSWORD: process.env.REDIS_PASSWORD,
|
|
42
|
+
REDIS_CLUSTERED: process.env.REDIS_CLUSTERED,
|
|
42
43
|
HTTP_MIGRATIONS: process.env.HTTP_MIGRATIONS,
|
|
43
44
|
API_REQ_LIMIT_PER_SEC: process.env.API_REQ_LIMIT_PER_SEC,
|
|
44
45
|
GOOGLE_CLIENT_ID: process.env.GOOGLE_CLIENT_ID,
|