@budibase/server 2.7.20-alpha.0 → 2.7.20-alpha.2
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.2e9069f3.css → index.36462e95.css} +1 -1
- package/builder/assets/{index.6b48215f.js → index.77561524.js} +276 -276
- package/builder/index.html +2 -2
- package/dist/automation.js +16 -1
- package/dist/automation.js.map +2 -2
- package/dist/index.js +16 -1
- package/dist/index.js.map +2 -2
- package/dist/query.js +16 -1
- package/dist/query.js.map +2 -2
- package/package.json +8 -8
- package/src/integrations/postgres.ts +19 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/server",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "2.7.20-alpha.
|
|
4
|
+
"version": "2.7.20-alpha.2",
|
|
5
5
|
"description": "Budibase Web Server",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"license": "GPL-3.0",
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@apidevtools/swagger-parser": "10.0.3",
|
|
49
|
-
"@budibase/backend-core": "2.7.20-alpha.
|
|
50
|
-
"@budibase/client": "2.7.20-alpha.
|
|
51
|
-
"@budibase/pro": "2.7.20-alpha.
|
|
52
|
-
"@budibase/shared-core": "2.7.20-alpha.
|
|
53
|
-
"@budibase/string-templates": "2.7.20-alpha.
|
|
54
|
-
"@budibase/types": "2.7.20-alpha.
|
|
49
|
+
"@budibase/backend-core": "2.7.20-alpha.2",
|
|
50
|
+
"@budibase/client": "2.7.20-alpha.2",
|
|
51
|
+
"@budibase/pro": "2.7.20-alpha.2",
|
|
52
|
+
"@budibase/shared-core": "2.7.20-alpha.2",
|
|
53
|
+
"@budibase/string-templates": "2.7.20-alpha.2",
|
|
54
|
+
"@budibase/types": "2.7.20-alpha.2",
|
|
55
55
|
"@bull-board/api": "3.7.0",
|
|
56
56
|
"@bull-board/koa": "3.9.4",
|
|
57
57
|
"@elastic/elasticsearch": "7.10.0",
|
|
@@ -195,5 +195,5 @@
|
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
},
|
|
198
|
-
"gitHead": "
|
|
198
|
+
"gitHead": "c8f23a7511efa6fd996aa2d28f2c864a8c14627d"
|
|
199
199
|
}
|
|
@@ -20,7 +20,7 @@ import Sql from "./base/sql"
|
|
|
20
20
|
import { PostgresColumn } from "./base/types"
|
|
21
21
|
import { escapeDangerousCharacters } from "../utilities"
|
|
22
22
|
|
|
23
|
-
import { Client, types } from "pg"
|
|
23
|
+
import { Client, ClientConfig, types } from "pg"
|
|
24
24
|
|
|
25
25
|
// Return "date" and "timestamp" types as plain strings.
|
|
26
26
|
// This lets us reference the original stored timezone.
|
|
@@ -42,6 +42,8 @@ interface PostgresConfig {
|
|
|
42
42
|
schema: string
|
|
43
43
|
ssl?: boolean
|
|
44
44
|
ca?: string
|
|
45
|
+
clientKey?: string
|
|
46
|
+
clientCert?: string
|
|
45
47
|
rejectUnauthorized?: boolean
|
|
46
48
|
}
|
|
47
49
|
|
|
@@ -98,6 +100,19 @@ const SCHEMA: Integration = {
|
|
|
98
100
|
required: false,
|
|
99
101
|
},
|
|
100
102
|
ca: {
|
|
103
|
+
display: "Server CA",
|
|
104
|
+
type: DatasourceFieldType.LONGFORM,
|
|
105
|
+
default: false,
|
|
106
|
+
required: false,
|
|
107
|
+
},
|
|
108
|
+
clientKey: {
|
|
109
|
+
display: "Client key",
|
|
110
|
+
type: DatasourceFieldType.LONGFORM,
|
|
111
|
+
default: false,
|
|
112
|
+
required: false,
|
|
113
|
+
},
|
|
114
|
+
clientCert: {
|
|
115
|
+
display: "Client cert",
|
|
101
116
|
type: DatasourceFieldType.LONGFORM,
|
|
102
117
|
default: false,
|
|
103
118
|
required: false,
|
|
@@ -144,12 +159,14 @@ class PostgresIntegration extends Sql implements DatasourcePlus {
|
|
|
144
159
|
super(SqlClient.POSTGRES)
|
|
145
160
|
this.config = config
|
|
146
161
|
|
|
147
|
-
let newConfig = {
|
|
162
|
+
let newConfig: ClientConfig = {
|
|
148
163
|
...this.config,
|
|
149
164
|
ssl: this.config.ssl
|
|
150
165
|
? {
|
|
151
166
|
rejectUnauthorized: this.config.rejectUnauthorized,
|
|
152
167
|
ca: this.config.ca,
|
|
168
|
+
key: this.config.clientKey,
|
|
169
|
+
cert: this.config.clientCert,
|
|
153
170
|
}
|
|
154
171
|
: undefined,
|
|
155
172
|
}
|