@budibase/server 2.3.18-alpha.13 → 2.3.18-alpha.15
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.5db9630c.js → index.b0911233.js} +352 -351
- package/builder/assets/{index.d4b6aa43.css → index.ca370ee3.css} +2 -2
- package/builder/index.html +2 -2
- package/dist/api/controllers/row/ExternalRequest.js +2 -2
- package/dist/api/controllers/row/internalSearch.js +6 -450
- package/dist/api/controllers/row/utils.js +1 -3
- package/dist/app.js +2 -0
- package/dist/db/index.js +25 -2
- package/dist/db/utils.js +2 -5
- package/dist/db/views/staticViews.js +2 -1
- package/dist/integrations/base/sql.js +2 -2
- package/dist/integrations/googlesheets.js +1 -1
- package/dist/package.json +7 -6
- package/dist/startup.js +3 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/jest.config.ts +1 -0
- package/package.json +8 -7
- package/src/api/controllers/row/ExternalRequest.ts +2 -3
- package/src/api/controllers/row/internalSearch.ts +11 -524
- package/src/api/controllers/row/utils.ts +1 -2
- package/src/app.ts +2 -0
- package/src/db/index.ts +2 -2
- package/src/db/utils.ts +0 -4
- package/src/db/views/staticViews.ts +3 -3
- package/src/integrations/base/sql.ts +2 -2
- package/src/integrations/googlesheets.ts +1 -1
- package/src/startup.ts +4 -1
- package/dist/integrations/base/utils.js +0 -16
- package/src/integrations/base/utils.ts +0 -12
|
@@ -172,7 +172,7 @@ class GoogleSheetsIntegration implements DatasourcePlus {
|
|
|
172
172
|
async connect() {
|
|
173
173
|
try {
|
|
174
174
|
// Initialise oAuth client
|
|
175
|
-
let googleConfig = await configs.
|
|
175
|
+
let googleConfig = await configs.getGoogleDatasourceConfig()
|
|
176
176
|
if (!googleConfig) {
|
|
177
177
|
throw new HTTPError("Google config not found", 400)
|
|
178
178
|
}
|
package/src/startup.ts
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
generateApiKey,
|
|
6
6
|
getChecklist,
|
|
7
7
|
} from "./utilities/workerRequests"
|
|
8
|
-
import { installation, tenancy, logging } from "@budibase/backend-core"
|
|
8
|
+
import { installation, tenancy, logging, events } from "@budibase/backend-core"
|
|
9
9
|
import fs from "fs"
|
|
10
10
|
import { watch } from "./watch"
|
|
11
11
|
import * as automations from "./automations"
|
|
@@ -124,6 +124,9 @@ export async function startup(app?: any, server?: any) {
|
|
|
124
124
|
// get the references to the queue promises, don't await as
|
|
125
125
|
// they will never end, unless the processing stops
|
|
126
126
|
let queuePromises = []
|
|
127
|
+
// configure events to use the pro audit log write
|
|
128
|
+
// can't integrate directly into backend-core due to cyclic issues
|
|
129
|
+
queuePromises.push(events.processors.init(pro.sdk.auditLogs.write))
|
|
127
130
|
queuePromises.push(automations.init())
|
|
128
131
|
queuePromises.push(initPro())
|
|
129
132
|
if (app) {
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.removeKeyNumbering = void 0;
|
|
4
|
-
const QUERY_START_REGEX = /\d[0-9]*:/g;
|
|
5
|
-
function removeKeyNumbering(key) {
|
|
6
|
-
if (typeof key === "string" && key.match(QUERY_START_REGEX) != null) {
|
|
7
|
-
const parts = key.split(":");
|
|
8
|
-
// remove the number
|
|
9
|
-
parts.shift();
|
|
10
|
-
return parts.join(":");
|
|
11
|
-
}
|
|
12
|
-
else {
|
|
13
|
-
return key;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.removeKeyNumbering = removeKeyNumbering;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const QUERY_START_REGEX = /\d[0-9]*:/g
|
|
2
|
-
|
|
3
|
-
export function removeKeyNumbering(key: any): string {
|
|
4
|
-
if (typeof key === "string" && key.match(QUERY_START_REGEX) != null) {
|
|
5
|
-
const parts = key.split(":")
|
|
6
|
-
// remove the number
|
|
7
|
-
parts.shift()
|
|
8
|
-
return parts.join(":")
|
|
9
|
-
} else {
|
|
10
|
-
return key
|
|
11
|
-
}
|
|
12
|
-
}
|